aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-bundled
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npm-bundled')
-rw-r--r--deps/npm/node_modules/npm-bundled/LICENSE15
-rw-r--r--deps/npm/node_modules/npm-bundled/README.md2
-rw-r--r--deps/npm/node_modules/npm-bundled/index.js4
-rw-r--r--deps/npm/node_modules/npm-bundled/package.json14
4 files changed, 27 insertions, 8 deletions
diff --git a/deps/npm/node_modules/npm-bundled/LICENSE b/deps/npm/node_modules/npm-bundled/LICENSE
new file mode 100644
index 0000000000..20a4762540
--- /dev/null
+++ b/deps/npm/node_modules/npm-bundled/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) npm, Inc. 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/deps/npm/node_modules/npm-bundled/README.md b/deps/npm/node_modules/npm-bundled/README.md
index 2974afa0e0..fcfb2322fa 100644
--- a/deps/npm/node_modules/npm-bundled/README.md
+++ b/deps/npm/node_modules/npm-bundled/README.md
@@ -4,6 +4,8 @@ Run this in a node package, and it'll tell you which things in
node_modules are bundledDependencies, or transitive dependencies of
bundled dependencies.
+[![Build Status](https://travis-ci.org/npm/npm-bundled.svg?branch=master)](https://travis-ci.org/npm/npm-bundled)
+
## USAGE
To get the list of deps at the top level that are bundled (or
diff --git a/deps/npm/node_modules/npm-bundled/index.js b/deps/npm/node_modules/npm-bundled/index.js
index dadd847349..c0c5f60cc0 100644
--- a/deps/npm/node_modules/npm-bundled/index.js
+++ b/deps/npm/node_modules/npm-bundled/index.js
@@ -35,6 +35,7 @@ class BundleWalker extends EE {
this.packageJsonCache = opt.packageJsonCache || new Map()
}
+ this.seen = new Set()
this.didDone = false
this.children = 0
this.node_modules = []
@@ -114,7 +115,8 @@ class BundleWalker extends EE {
}
childDep (dep) {
- if (this.node_modules.indexOf(dep) !== -1) {
+ if (this.node_modules.indexOf(dep) !== -1 && !this.seen.has(dep)) {
+ this.seen.add(dep)
this.child(dep)
} else if (this.parent) {
this.parent.childDep(dep)
diff --git a/deps/npm/node_modules/npm-bundled/package.json b/deps/npm/node_modules/npm-bundled/package.json
index 26e0e2b771..4c46838ce4 100644
--- a/deps/npm/node_modules/npm-bundled/package.json
+++ b/deps/npm/node_modules/npm-bundled/package.json
@@ -1,8 +1,8 @@
{
"_from": "npm-bundled@^1.0.1",
- "_id": "npm-bundled@1.0.3",
+ "_id": "npm-bundled@1.0.5",
"_inBundle": false,
- "_integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==",
+ "_integrity": "sha512-m/e6jgWu8/v5niCUKQi9qQl8QdeEduFA96xHDDzFGqly0OOjI7c+60KM/2sppfnUU9JJagf+zs+yGhqSOFj71g==",
"_location": "/npm-bundled",
"_phantomChildren": {},
"_requested": {
@@ -18,10 +18,10 @@
"_requiredBy": [
"/npm-packlist"
],
- "_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz",
- "_shasum": "7e71703d973af3370a9591bafe3a63aca0be2308",
+ "_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.5.tgz",
+ "_shasum": "3c1732b7ba936b3a10325aef616467c0ccbcc979",
"_spec": "npm-bundled@^1.0.1",
- "_where": "/Users/rebecca/code/npm/node_modules/npm-packlist",
+ "_where": "/Users/zkat/Documents/code/work/npm/node_modules/npm-packlist",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -37,7 +37,7 @@
"mkdirp": "^0.5.1",
"mutate-fs": "^1.1.0",
"rimraf": "^2.6.1",
- "tap": "^10.3.2"
+ "tap": "^12.0.1"
},
"files": [
"index.js"
@@ -56,5 +56,5 @@
"preversion": "npm test",
"test": "tap test/*.js -J --100"
},
- "version": "1.0.3"
+ "version": "1.0.5"
}