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>2019-07-02 02:33:48 +0300
committerisaacs <i@izs.me>2019-07-03 20:08:32 +0300
commit429226a5e992cd907d4f19bd738037007cf78c1f (patch)
tree1fa749a95ffb71de82f5280b4e7b2974d7f637e4 /node_modules/yallist
parent3cbd577120a9da6e51bb8b13534d1bf71ea5712c (diff)
lru-cache@5.1.1
Diffstat (limited to 'node_modules/yallist')
-rw-r--r--node_modules/yallist/iterator.js11
-rw-r--r--node_modules/yallist/package.json24
-rw-r--r--node_modules/yallist/yallist.js6
3 files changed, 24 insertions, 17 deletions
diff --git a/node_modules/yallist/iterator.js b/node_modules/yallist/iterator.js
index 4a15bf22c..d41c97a19 100644
--- a/node_modules/yallist/iterator.js
+++ b/node_modules/yallist/iterator.js
@@ -1,7 +1,8 @@
-var Yallist = require('./yallist.js')
-
-Yallist.prototype[Symbol.iterator] = function* () {
- for (let walker = this.head; walker; walker = walker.next) {
- yield walker.value
+'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/yallist/package.json b/node_modules/yallist/package.json
index f56d6b6a3..a478663fa 100644
--- a/node_modules/yallist/package.json
+++ b/node_modules/yallist/package.json
@@ -1,27 +1,27 @@
{
- "_from": "yallist@^2.1.2",
- "_id": "yallist@2.1.2",
+ "_from": "yallist@^3.0.2",
+ "_id": "yallist@3.0.3",
"_inBundle": false,
- "_integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
+ "_integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
"_location": "/yallist",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
- "raw": "yallist@^2.1.2",
+ "raw": "yallist@^3.0.2",
"name": "yallist",
"escapedName": "yallist",
- "rawSpec": "^2.1.2",
+ "rawSpec": "^3.0.2",
"saveSpec": null,
- "fetchSpec": "^2.1.2"
+ "fetchSpec": "^3.0.2"
},
"_requiredBy": [
"/lru-cache"
],
- "_resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
- "_shasum": "1c11f9218f076089a47dd512f93c6699a6a81d52",
- "_spec": "yallist@^2.1.2",
- "_where": "/Users/rebecca/code/npm/node_modules/lru-cache",
+ "_resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
+ "_shasum": "b4b049e314be545e3ce802236d6cd22cd91c3de9",
+ "_spec": "yallist@^3.0.2",
+ "_where": "/Users/isaacs/dev/npm/cli/node_modules/lru-cache",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -35,7 +35,7 @@
"deprecated": false,
"description": "Yet Another Linked List",
"devDependencies": {
- "tap": "^10.3.0"
+ "tap": "^12.1.0"
},
"directories": {
"test": "test"
@@ -58,5 +58,5 @@
"preversion": "npm test",
"test": "tap test/*.js --100"
},
- "version": "2.1.2"
+ "version": "3.0.3"
}
diff --git a/node_modules/yallist/yallist.js b/node_modules/yallist/yallist.js
index 518d23330..b0ab36cf3 100644
--- a/node_modules/yallist/yallist.js
+++ b/node_modules/yallist/yallist.js
@@ -1,3 +1,4 @@
+'use strict'
module.exports = Yallist
Yallist.Node = Node
@@ -368,3 +369,8 @@ function Node (value, prev, next, list) {
this.next = null
}
}
+
+try {
+ // add if support for Symbol.iterator is present
+ require('./iterator.js')(Yallist)
+} catch (er) {}