Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-02-20 04:01:36 +0300
committerisaacs <i@izs.me>2020-05-08 04:11:52 +0300
commit1618e82f94e5dab8b0f6617ee5c77adeb2c743c8 (patch)
tree717033947c62de4163ca72903e91f7b5f84e0db2 /node_modules
parent0d43d75611920449b3ad6fa587f766418c91665b (diff)
@npmcli/arborist@0.0.0-pre.9
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/arborist/node_modules/bin-links/package.json27
-rw-r--r--node_modules/@npmcli/arborist/package.json33
l---------node_modules/@npmcli/run-script/node_modules/.bin/semver (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/.bin/semver)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/package.json62
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/CHANGELOG.md (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/CHANGELOG.md)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/LICENSE (renamed from node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/LICENSE)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/README.md (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/README.md)0
-rwxr-xr-xnode_modules/@npmcli/run-script/node_modules/semver/bin/semver (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/bin/semver)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/package.json (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/package.json)4
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/range.bnf (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/range.bnf)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/semver/semver.js (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/semver.js)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/LICENSE15
-rw-r--r--node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/README.md204
-rw-r--r--node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/iterator.js8
-rw-r--r--node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/yallist.js426
-rw-r--r--node_modules/@npmcli/run-script/node_modules/yallist/LICENSE (renamed from node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/LICENSE)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/yallist/README.md (renamed from node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/README.md)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/yallist/iterator.js (renamed from node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/iterator.js)0
-rw-r--r--node_modules/@npmcli/run-script/node_modules/yallist/package.json (renamed from node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/package.json)3
-rw-r--r--node_modules/@npmcli/run-script/node_modules/yallist/yallist.js (renamed from node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/yallist.js)0
20 files changed, 34 insertions, 748 deletions
diff --git a/node_modules/@npmcli/arborist/node_modules/bin-links/package.json b/node_modules/@npmcli/arborist/node_modules/bin-links/package.json
index 380f70020..d09336977 100644
--- a/node_modules/@npmcli/arborist/node_modules/bin-links/package.json
+++ b/node_modules/@npmcli/arborist/node_modules/bin-links/package.json
@@ -1,26 +1,27 @@
{
- "_from": "github:npm/bin-links#v2",
- "_id": "bin-links@2.0.0-pre",
+ "_from": "bin-links@^2.0.0",
+ "_id": "bin-links@2.0.0",
"_inBundle": false,
- "_integrity": "",
+ "_integrity": "sha512-VvBk9YwChMjdn9rs1c9Yt0vRwbZ0SgDBsb9pT07DAmFvuTlxqAuazKtIa4be+6ChBGI+io8gYjT+vq586foYaw==",
"_location": "/@npmcli/arborist/bin-links",
"_phantomChildren": {},
"_requested": {
- "type": "git",
- "raw": "bin-links@github:npm/bin-links#v2",
+ "type": "range",
+ "registry": true,
+ "raw": "bin-links@^2.0.0",
"name": "bin-links",
"escapedName": "bin-links",
- "rawSpec": "github:npm/bin-links#v2",
- "saveSpec": "github:npm/bin-links#v2",
- "fetchSpec": null,
- "gitCommittish": "v2"
+ "rawSpec": "^2.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/@npmcli/arborist"
],
- "_resolved": "github:npm/bin-links#c141781820bf8b7783284c332939993a44ca713b",
- "_spec": "bin-links@github:npm/bin-links#v2",
- "_where": "/Users/claudiahdz/npm/cli/node_modules/@npmcli/arborist",
+ "_resolved": "https://registry.npmjs.org/bin-links/-/bin-links-2.0.0.tgz",
+ "_shasum": "7b281e1f6c2238ae809589490c2d61380c027a8b",
+ "_spec": "bin-links@^2.0.0",
+ "_where": "/Users/isaacs/dev/npm/cli/node_modules/@npmcli/arborist",
"bugs": {
"url": "https://github.com/npm/bin-links/issues"
},
@@ -70,5 +71,5 @@
"check-coverage": true,
"coverage-map": "map.js"
},
- "version": "2.0.0-pre"
+ "version": "2.0.0"
}
diff --git a/node_modules/@npmcli/arborist/package.json b/node_modules/@npmcli/arborist/package.json
index 445b3971a..1b6fc796e 100644
--- a/node_modules/@npmcli/arborist/package.json
+++ b/node_modules/@npmcli/arborist/package.json
@@ -1,38 +1,35 @@
{
- "_args": [
- [
- "@npmcli/arborist@0.0.0-pre.8",
- "/Users/isaacs/dev/npm/cli"
- ]
- ],
- "_from": "@npmcli/arborist@0.0.0-pre.8",
- "_id": "@npmcli/arborist@0.0.0-pre.8",
+ "_from": "@npmcli/arborist@latest",
+ "_id": "@npmcli/arborist@0.0.0-pre.9",
"_inBundle": false,
- "_integrity": "sha512-l1qCEvdxX3NR69ifgVPX3bG7GbvhsrEv63G7nKvRNMYedQzBtQx8H3ECukVblk00KbqVoJh/3hfzMPUJVRP17g==",
+ "_integrity": "sha512-P9iWMYo5ePQoOiiSf5xu+IvahV/FQ7Vtw/bmGGQG3BWk9d+tEWmReBsRGp/ENxGIA+PV+SY12qHVO1YsBGNPNg==",
"_location": "/@npmcli/arborist",
"_phantomChildren": {
"glob": "7.1.4",
"graceful-fs": "4.2.3",
"mkdirp-infer-owner": "1.0.2",
"npm-normalize-package-bin": "1.0.1",
+ "semver": "7.1.3",
"write-file-atomic": "2.4.3"
},
"_requested": {
- "type": "version",
+ "type": "tag",
"registry": true,
- "raw": "@npmcli/arborist@0.0.0-pre.8",
+ "raw": "@npmcli/arborist@latest",
"name": "@npmcli/arborist",
"escapedName": "@npmcli%2farborist",
"scope": "@npmcli",
- "rawSpec": "0.0.0-pre.8",
+ "rawSpec": "latest",
"saveSpec": null,
- "fetchSpec": "0.0.0-pre.8"
+ "fetchSpec": "latest"
},
"_requiredBy": [
+ "#USER",
"/"
],
- "_resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.0-pre.8.tgz",
- "_spec": "0.0.0-pre.8",
+ "_resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-0.0.0-pre.9.tgz",
+ "_shasum": "5c9bf32bbe12bf4d2b93bcb6eb7bf3b60318d032",
+ "_spec": "@npmcli/arborist@latest",
"_where": "/Users/isaacs/dev/npm/cli",
"author": {
"name": "Isaac Z. Schlueter",
@@ -42,10 +39,11 @@
"bugs": {
"url": "https://github.com/npm/arborist/issues"
},
+ "bundleDependencies": false,
"dependencies": {
"@npmcli/installed-package-contents": "^1.0.5",
"@npmcli/run-script": "^1.2.1",
- "bin-links": "github:npm/bin-links#v2",
+ "bin-links": "^2.0.0",
"json-stringify-nice": "^1.1.1",
"mkdirp-infer-owner": "^1.0.2",
"npm-install-checks": "^4.0.0",
@@ -59,6 +57,7 @@
"semver": "^7.1.2",
"treeverse": "^1.0.1"
},
+ "deprecated": false,
"description": "Manage node_modules trees",
"devDependencies": {
"minify-registry-metadata": "^2.1.0",
@@ -92,5 +91,5 @@
"esm": false,
"timeout": "60"
},
- "version": "0.0.0-pre.8"
+ "version": "0.0.0-pre.9"
}
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/.bin/semver b/node_modules/@npmcli/run-script/node_modules/.bin/semver
index 317eb293d..317eb293d 120000
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/.bin/semver
+++ b/node_modules/@npmcli/run-script/node_modules/.bin/semver
diff --git a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/package.json b/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/package.json
deleted file mode 100644
index d4036ad94..000000000
--- a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "yallist@^3.0.0",
- "_id": "yallist@3.1.1",
- "_inBundle": false,
- "_integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
- "_location": "/@npmcli/run-script/minipass/yallist",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "yallist@^3.0.0",
- "name": "yallist",
- "escapedName": "yallist",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/@npmcli/run-script/minipass"
- ],
- "_resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
- "_shasum": "dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd",
- "_spec": "yallist@^3.0.0",
- "_where": "/Users/isaacs/dev/npm/cli/node_modules/@npmcli/run-script/node_modules/minipass",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/yallist/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Yet Another Linked List",
- "devDependencies": {
- "tap": "^12.1.0"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "yallist.js",
- "iterator.js"
- ],
- "homepage": "https://github.com/isaacs/yallist#readme",
- "license": "ISC",
- "main": "yallist.js",
- "name": "yallist",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/yallist.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js --100"
- },
- "version": "3.1.1"
-}
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/CHANGELOG.md b/node_modules/@npmcli/run-script/node_modules/semver/CHANGELOG.md
index 66304fdd2..66304fdd2 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/CHANGELOG.md
+++ b/node_modules/@npmcli/run-script/node_modules/semver/CHANGELOG.md
diff --git a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/LICENSE b/node_modules/@npmcli/run-script/node_modules/semver/LICENSE
index 19129e315..19129e315 100644
--- a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/LICENSE
+++ b/node_modules/@npmcli/run-script/node_modules/semver/LICENSE
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/README.md b/node_modules/@npmcli/run-script/node_modules/semver/README.md
index f8dfa5a0d..f8dfa5a0d 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/README.md
+++ b/node_modules/@npmcli/run-script/node_modules/semver/README.md
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/bin/semver b/node_modules/@npmcli/run-script/node_modules/semver/bin/semver
index 801e77f13..801e77f13 100755
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/bin/semver
+++ b/node_modules/@npmcli/run-script/node_modules/semver/bin/semver
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/package.json b/node_modules/@npmcli/run-script/node_modules/semver/package.json
index ecbef9875..e0e770274 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/package.json
+++ b/node_modules/@npmcli/run-script/node_modules/semver/package.json
@@ -3,7 +3,7 @@
"_id": "semver@5.7.1",
"_inBundle": false,
"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "_location": "/@npmcli/run-script/node-gyp/semver",
+ "_location": "/@npmcli/run-script/semver",
"_phantomChildren": {},
"_requested": {
"type": "range",
@@ -21,7 +21,7 @@
"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"_shasum": "a954f931aeba508d307bbf069eff0c01c96116f7",
"_spec": "semver@^5.7.1",
- "_where": "/Users/mperrotte/npminc/cli/node_modules/@npmcli/run-script/node_modules/node-gyp",
+ "_where": "/Users/isaacs/dev/npm/cli/node_modules/@npmcli/run-script/node_modules/node-gyp",
"bin": {
"semver": "bin/semver"
},
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/range.bnf b/node_modules/@npmcli/run-script/node_modules/semver/range.bnf
index d4c6ae0d7..d4c6ae0d7 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/range.bnf
+++ b/node_modules/@npmcli/run-script/node_modules/semver/range.bnf
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/semver.js b/node_modules/@npmcli/run-script/node_modules/semver/semver.js
index d315d5d68..d315d5d68 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/semver.js
+++ b/node_modules/@npmcli/run-script/node_modules/semver/semver.js
diff --git a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/LICENSE b/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/LICENSE
deleted file mode 100644
index 19129e315..000000000
--- a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/README.md b/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/README.md
deleted file mode 100644
index f58610186..000000000
--- a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/README.md
+++ /dev/null
@@ -1,204 +0,0 @@
-# yallist
-
-Yet Another Linked List
-
-There are many doubly-linked list implementations like it, but this
-one is mine.
-
-For when an array would be too big, and a Map can't be iterated in
-reverse order.
-
-
-[![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist)
-
-## basic usage
-
-```javascript
-var yallist = require('yallist')
-var myList = yallist.create([1, 2, 3])
-myList.push('foo')
-myList.unshift('bar')
-// of course pop() and shift() are there, too
-console.log(myList.toArray()) // ['bar', 1, 2, 3, 'foo']
-myList.forEach(function (k) {
- // walk the list head to tail
-})
-myList.forEachReverse(function (k, index, list) {
- // walk the list tail to head
-})
-var myDoubledList = myList.map(function (k) {
- return k + k
-})
-// now myDoubledList contains ['barbar', 2, 4, 6, 'foofoo']
-// mapReverse is also a thing
-var myDoubledListReverse = myList.mapReverse(function (k) {
- return k + k
-}) // ['foofoo', 6, 4, 2, 'barbar']
-
-var reduced = myList.reduce(function (set, entry) {
- set += entry
- return set
-}, 'start')
-console.log(reduced) // 'startfoo123bar'
-```
-
-## api
-
-The whole API is considered "public".
-
-Functions with the same name as an Array method work more or less the
-same way.
-
-There's reverse versions of most things because that's the point.
-
-### Yallist
-
-Default export, the class that holds and manages a list.
-
-Call it with either a forEach-able (like an array) or a set of
-arguments, to initialize the list.
-
-The Array-ish methods all act like you'd expect. No magic length,
-though, so if you change that it won't automatically prune or add
-empty spots.
-
-### Yallist.create(..)
-
-Alias for Yallist function. Some people like factories.
-
-#### yallist.head
-
-The first node in the list
-
-#### yallist.tail
-
-The last node in the list
-
-#### yallist.length
-
-The number of nodes in the list. (Change this at your peril. It is
-not magic like Array length.)
-
-#### yallist.toArray()
-
-Convert the list to an array.
-
-#### yallist.forEach(fn, [thisp])
-
-Call a function on each item in the list.
-
-#### yallist.forEachReverse(fn, [thisp])
-
-Call a function on each item in the list, in reverse order.
-
-#### yallist.get(n)
-
-Get the data at position `n` in the list. If you use this a lot,
-probably better off just using an Array.
-
-#### yallist.getReverse(n)
-
-Get the data at position `n`, counting from the tail.
-
-#### yallist.map(fn, thisp)
-
-Create a new Yallist with the result of calling the function on each
-item.
-
-#### yallist.mapReverse(fn, thisp)
-
-Same as `map`, but in reverse.
-
-#### yallist.pop()
-
-Get the data from the list tail, and remove the tail from the list.
-
-#### yallist.push(item, ...)
-
-Insert one or more items to the tail of the list.
-
-#### yallist.reduce(fn, initialValue)
-
-Like Array.reduce.
-
-#### yallist.reduceReverse
-
-Like Array.reduce, but in reverse.
-
-#### yallist.reverse
-
-Reverse the list in place.
-
-#### yallist.shift()
-
-Get the data from the list head, and remove the head from the list.
-
-#### yallist.slice([from], [to])
-
-Just like Array.slice, but returns a new Yallist.
-
-#### yallist.sliceReverse([from], [to])
-
-Just like yallist.slice, but the result is returned in reverse.
-
-#### yallist.toArray()
-
-Create an array representation of the list.
-
-#### yallist.toArrayReverse()
-
-Create a reversed array representation of the list.
-
-#### yallist.unshift(item, ...)
-
-Insert one or more items to the head of the list.
-
-#### yallist.unshiftNode(node)
-
-Move a Node object to the front of the list. (That is, pull it out of
-wherever it lives, and make it the new head.)
-
-If the node belongs to a different list, then that list will remove it
-first.
-
-#### yallist.pushNode(node)
-
-Move a Node object to the end of the list. (That is, pull it out of
-wherever it lives, and make it the new tail.)
-
-If the node belongs to a list already, then that list will remove it
-first.
-
-#### yallist.removeNode(node)
-
-Remove a node from the list, preserving referential integrity of head
-and tail and other nodes.
-
-Will throw an error if you try to have a list remove a node that
-doesn't belong to it.
-
-### Yallist.Node
-
-The class that holds the data and is actually the list.
-
-Call with `var n = new Node(value, previousNode, nextNode)`
-
-Note that if you do direct operations on Nodes themselves, it's very
-easy to get into weird states where the list is broken. Be careful :)
-
-#### node.next
-
-The next node in the list.
-
-#### node.prev
-
-The previous node in the list.
-
-#### node.value
-
-The data the node contains.
-
-#### node.list
-
-The list to which this node belongs. (Null if it does not belong to
-any list.)
diff --git a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/iterator.js b/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/iterator.js
deleted file mode 100644
index d41c97a19..000000000
--- a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/iterator.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict'
-module.exports = function (Yallist) {
- Yallist.prototype[Symbol.iterator] = function* () {
- for (let walker = this.head; walker; walker = walker.next) {
- yield walker.value
- }
- }
-}
diff --git a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/yallist.js b/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/yallist.js
deleted file mode 100644
index ed4e7303a..000000000
--- a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/yallist.js
+++ /dev/null
@@ -1,426 +0,0 @@
-'use strict'
-module.exports = Yallist
-
-Yallist.Node = Node
-Yallist.create = Yallist
-
-function Yallist (list) {
- var self = this
- if (!(self instanceof Yallist)) {
- self = new Yallist()
- }
-
- self.tail = null
- self.head = null
- self.length = 0
-
- if (list && typeof list.forEach === 'function') {
- list.forEach(function (item) {
- self.push(item)
- })
- } else if (arguments.length > 0) {
- for (var i = 0, l = arguments.length; i < l; i++) {
- self.push(arguments[i])
- }
- }
-
- return self
-}
-
-Yallist.prototype.removeNode = function (node) {
- if (node.list !== this) {
- throw new Error('removing node which does not belong to this list')
- }
-
- var next = node.next
- var prev = node.prev
-
- if (next) {
- next.prev = prev
- }
-
- if (prev) {
- prev.next = next
- }
-
- if (node === this.head) {
- this.head = next
- }
- if (node === this.tail) {
- this.tail = prev
- }
-
- node.list.length--
- node.next = null
- node.prev = null
- node.list = null
-
- return next
-}
-
-Yallist.prototype.unshiftNode = function (node) {
- if (node === this.head) {
- return
- }
-
- if (node.list) {
- node.list.removeNode(node)
- }
-
- var head = this.head
- node.list = this
- node.next = head
- if (head) {
- head.prev = node
- }
-
- this.head = node
- if (!this.tail) {
- this.tail = node
- }
- this.length++
-}
-
-Yallist.prototype.pushNode = function (node) {
- if (node === this.tail) {
- return
- }
-
- if (node.list) {
- node.list.removeNode(node)
- }
-
- var tail = this.tail
- node.list = this
- node.prev = tail
- if (tail) {
- tail.next = node
- }
-
- this.tail = node
- if (!this.head) {
- this.head = node
- }
- this.length++
-}
-
-Yallist.prototype.push = function () {
- for (var i = 0, l = arguments.length; i < l; i++) {
- push(this, arguments[i])
- }
- return this.length
-}
-
-Yallist.prototype.unshift = function () {
- for (var i = 0, l = arguments.length; i < l; i++) {
- unshift(this, arguments[i])
- }
- return this.length
-}
-
-Yallist.prototype.pop = function () {
- if (!this.tail) {
- return undefined
- }
-
- var res = this.tail.value
- this.tail = this.tail.prev
- if (this.tail) {
- this.tail.next = null
- } else {
- this.head = null
- }
- this.length--
- return res
-}
-
-Yallist.prototype.shift = function () {
- if (!this.head) {
- return undefined
- }
-
- var res = this.head.value
- this.head = this.head.next
- if (this.head) {
- this.head.prev = null
- } else {
- this.tail = null
- }
- this.length--
- return res
-}
-
-Yallist.prototype.forEach = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this.head, i = 0; walker !== null; i++) {
- fn.call(thisp, walker.value, i, this)
- walker = walker.next
- }
-}
-
-Yallist.prototype.forEachReverse = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
- fn.call(thisp, walker.value, i, this)
- walker = walker.prev
- }
-}
-
-Yallist.prototype.get = function (n) {
- for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
- // abort out of the list early if we hit a cycle
- walker = walker.next
- }
- if (i === n && walker !== null) {
- return walker.value
- }
-}
-
-Yallist.prototype.getReverse = function (n) {
- for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
- // abort out of the list early if we hit a cycle
- walker = walker.prev
- }
- if (i === n && walker !== null) {
- return walker.value
- }
-}
-
-Yallist.prototype.map = function (fn, thisp) {
- thisp = thisp || this
- var res = new Yallist()
- for (var walker = this.head; walker !== null;) {
- res.push(fn.call(thisp, walker.value, this))
- walker = walker.next
- }
- return res
-}
-
-Yallist.prototype.mapReverse = function (fn, thisp) {
- thisp = thisp || this
- var res = new Yallist()
- for (var walker = this.tail; walker !== null;) {
- res.push(fn.call(thisp, walker.value, this))
- walker = walker.prev
- }
- return res
-}
-
-Yallist.prototype.reduce = function (fn, initial) {
- var acc
- var walker = this.head
- if (arguments.length > 1) {
- acc = initial
- } else if (this.head) {
- walker = this.head.next
- acc = this.head.value
- } else {
- throw new TypeError('Reduce of empty list with no initial value')
- }
-
- for (var i = 0; walker !== null; i++) {
- acc = fn(acc, walker.value, i)
- walker = walker.next
- }
-
- return acc
-}
-
-Yallist.prototype.reduceReverse = function (fn, initial) {
- var acc
- var walker = this.tail
- if (arguments.length > 1) {
- acc = initial
- } else if (this.tail) {
- walker = this.tail.prev
- acc = this.tail.value
- } else {
- throw new TypeError('Reduce of empty list with no initial value')
- }
-
- for (var i = this.length - 1; walker !== null; i--) {
- acc = fn(acc, walker.value, i)
- walker = walker.prev
- }
-
- return acc
-}
-
-Yallist.prototype.toArray = function () {
- var arr = new Array(this.length)
- for (var i = 0, walker = this.head; walker !== null; i++) {
- arr[i] = walker.value
- walker = walker.next
- }
- return arr
-}
-
-Yallist.prototype.toArrayReverse = function () {
- var arr = new Array(this.length)
- for (var i = 0, walker = this.tail; walker !== null; i++) {
- arr[i] = walker.value
- walker = walker.prev
- }
- return arr
-}
-
-Yallist.prototype.slice = function (from, to) {
- to = to || this.length
- if (to < 0) {
- to += this.length
- }
- from = from || 0
- if (from < 0) {
- from += this.length
- }
- var ret = new Yallist()
- if (to < from || to < 0) {
- return ret
- }
- if (from < 0) {
- from = 0
- }
- if (to > this.length) {
- to = this.length
- }
- for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
- walker = walker.next
- }
- for (; walker !== null && i < to; i++, walker = walker.next) {
- ret.push(walker.value)
- }
- return ret
-}
-
-Yallist.prototype.sliceReverse = function (from, to) {
- to = to || this.length
- if (to < 0) {
- to += this.length
- }
- from = from || 0
- if (from < 0) {
- from += this.length
- }
- var ret = new Yallist()
- if (to < from || to < 0) {
- return ret
- }
- if (from < 0) {
- from = 0
- }
- if (to > this.length) {
- to = this.length
- }
- for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
- walker = walker.prev
- }
- for (; walker !== null && i > from; i--, walker = walker.prev) {
- ret.push(walker.value)
- }
- return ret
-}
-
-Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) {
- if (start > this.length) {
- start = this.length - 1
- }
- if (start < 0) {
- start = this.length + start;
- }
-
- for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
- walker = walker.next
- }
-
- var ret = []
- for (var i = 0; walker && i < deleteCount; i++) {
- ret.push(walker.value)
- walker = this.removeNode(walker)
- }
- if (walker === null) {
- walker = this.tail
- }
-
- if (walker !== this.head && walker !== this.tail) {
- walker = walker.prev
- }
-
- for (var i = 2; i < arguments.length; i++) {
- walker = insert(this, walker, arguments[i])
- }
- return ret;
-}
-
-Yallist.prototype.reverse = function () {
- var head = this.head
- var tail = this.tail
- for (var walker = head; walker !== null; walker = walker.prev) {
- var p = walker.prev
- walker.prev = walker.next
- walker.next = p
- }
- this.head = tail
- this.tail = head
- return this
-}
-
-function insert (self, node, value) {
- var inserted = node === self.head ?
- new Node(value, null, node, self) :
- new Node(value, node, node.next, self)
-
- if (inserted.next === null) {
- self.tail = inserted
- }
- if (inserted.prev === null) {
- self.head = inserted
- }
-
- self.length++
-
- return inserted
-}
-
-function push (self, item) {
- self.tail = new Node(item, self.tail, null, self)
- if (!self.head) {
- self.head = self.tail
- }
- self.length++
-}
-
-function unshift (self, item) {
- self.head = new Node(item, null, self.head, self)
- if (!self.tail) {
- self.tail = self.head
- }
- self.length++
-}
-
-function Node (value, prev, next, list) {
- if (!(this instanceof Node)) {
- return new Node(value, prev, next, list)
- }
-
- this.list = list
- this.value = value
-
- if (prev) {
- prev.next = this
- this.prev = prev
- } else {
- this.prev = null
- }
-
- if (next) {
- next.prev = this
- this.next = next
- } else {
- this.next = null
- }
-}
-
-try {
- // add if support for Symbol.iterator is present
- require('./iterator.js')(Yallist)
-} catch (er) {}
diff --git a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/LICENSE b/node_modules/@npmcli/run-script/node_modules/yallist/LICENSE
index 19129e315..19129e315 100644
--- a/node_modules/@npmcli/run-script/node_modules/node-gyp/node_modules/semver/LICENSE
+++ b/node_modules/@npmcli/run-script/node_modules/yallist/LICENSE
diff --git a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/README.md b/node_modules/@npmcli/run-script/node_modules/yallist/README.md
index f58610186..f58610186 100644
--- a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/README.md
+++ b/node_modules/@npmcli/run-script/node_modules/yallist/README.md
diff --git a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/iterator.js b/node_modules/@npmcli/run-script/node_modules/yallist/iterator.js
index d41c97a19..d41c97a19 100644
--- a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/iterator.js
+++ b/node_modules/@npmcli/run-script/node_modules/yallist/iterator.js
diff --git a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/package.json b/node_modules/@npmcli/run-script/node_modules/yallist/package.json
index 6e37a2f21..5460abb30 100644
--- a/node_modules/@npmcli/run-script/node_modules/tar/node_modules/yallist/package.json
+++ b/node_modules/@npmcli/run-script/node_modules/yallist/package.json
@@ -3,7 +3,7 @@
"_id": "yallist@3.1.1",
"_inBundle": false,
"_integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
- "_location": "/@npmcli/run-script/tar/yallist",
+ "_location": "/@npmcli/run-script/yallist",
"_phantomChildren": {},
"_requested": {
"type": "range",
@@ -16,6 +16,7 @@
"fetchSpec": "^3.0.3"
},
"_requiredBy": [
+ "/@npmcli/run-script/minipass",
"/@npmcli/run-script/tar"
],
"_resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
diff --git a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/yallist.js b/node_modules/@npmcli/run-script/node_modules/yallist/yallist.js
index ed4e7303a..ed4e7303a 100644
--- a/node_modules/@npmcli/run-script/node_modules/minipass/node_modules/yallist/yallist.js
+++ b/node_modules/@npmcli/run-script/node_modules/yallist/yallist.js