From d20ac242aeb44aa3581c65c052802a02d5eb22f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 15 Aug 2018 13:15:47 -0700 Subject: npm-packlist@1.1.11 No real changes in npm-packlist, but npm-bundled included a circular dependency fix, as well as adding a proper LICENSE file. Credit: @isaacs --- node_modules/npm-bundled/LICENSE | 15 +++++++++++++++ node_modules/npm-bundled/README.md | 2 ++ node_modules/npm-bundled/index.js | 4 +++- node_modules/npm-bundled/package.json | 14 +++++++------- 4 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 node_modules/npm-bundled/LICENSE (limited to 'node_modules/npm-bundled') diff --git a/node_modules/npm-bundled/LICENSE b/node_modules/npm-bundled/LICENSE new file mode 100644 index 000000000..20a476254 --- /dev/null +++ b/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/node_modules/npm-bundled/README.md b/node_modules/npm-bundled/README.md index 2974afa0e..fcfb2322f 100644 --- a/node_modules/npm-bundled/README.md +++ b/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/node_modules/npm-bundled/index.js b/node_modules/npm-bundled/index.js index dadd84734..c0c5f60cc 100644 --- a/node_modules/npm-bundled/index.js +++ b/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/node_modules/npm-bundled/package.json b/node_modules/npm-bundled/package.json index 26e0e2b77..4c46838ce 100644 --- a/node_modules/npm-bundled/package.json +++ b/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" } -- cgit v1.2.3