Skip to content

Commit e401a81

Browse files
committed
deps: npm-bundled@2.0.1
1 parent 6e2d6b4 commit e401a81

File tree

14 files changed

+106
-328
lines changed

14 files changed

+106
-328
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "npm-bundled",
3+
"version": "1.1.2",
4+
"description": "list things in node_modules that are bundledDependencies, or transitive dependencies thereof",
5+
"main": "index.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/npm/npm-bundled.git"
9+
},
10+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
11+
"license": "ISC",
12+
"devDependencies": {
13+
"mkdirp": "^0.5.1",
14+
"mutate-fs": "^1.1.0",
15+
"rimraf": "^2.6.1",
16+
"tap": "^12.0.1"
17+
},
18+
"scripts": {
19+
"test": "tap test/*.js -J --100",
20+
"preversion": "npm test",
21+
"postversion": "npm publish",
22+
"postpublish": "git push origin --all; git push origin --tags"
23+
},
24+
"files": [
25+
"index.js"
26+
],
27+
"dependencies": {
28+
"npm-normalize-package-bin": "^1.0.1"
29+
}
30+
}

node_modules/npm-packlist/node_modules/npm-bundled/node_modules/npm-normalize-package-bin/index.js node_modules/npm-bundled/node_modules/npm-normalize-package-bin/lib/index.js

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// pass in a manifest with a 'bin' field here, and it'll turn it
22
// into a properly santized bin object
3-
const {join, basename} = require('path')
3+
const { join, basename } = require('path')
44

55
const normalize = pkg =>
66
!pkg.bin ? removeBin(pkg)
@@ -10,8 +10,9 @@ const normalize = pkg =>
1010
: removeBin(pkg)
1111

1212
const normalizeString = pkg => {
13-
if (!pkg.name)
13+
if (!pkg.name) {
1414
return removeBin(pkg)
15+
}
1516
pkg.bin = { [pkg.name]: pkg.bin }
1617
return normalizeObject(pkg)
1718
}
@@ -34,25 +35,28 @@ const normalizeObject = pkg => {
3435
const clean = {}
3536
let hasBins = false
3637
Object.keys(orig).forEach(binKey => {
37-
const base = join('/', basename(binKey.replace(/\\|:/g, '/'))).substr(1)
38+
const base = join('/', basename(binKey.replace(/\\|:/g, '/'))).slice(1)
3839

39-
if (typeof orig[binKey] !== 'string' || !base)
40+
if (typeof orig[binKey] !== 'string' || !base) {
4041
return
42+
}
4143

4244
const binTarget = join('/', orig[binKey])
43-
.replace(/\\/g, '/').substr(1)
45+
.replace(/\\/g, '/').slice(1)
4446

45-
if (!binTarget)
47+
if (!binTarget) {
4648
return
49+
}
4750

4851
clean[base] = binTarget
4952
hasBins = true
5053
})
5154

52-
if (hasBins)
55+
if (hasBins) {
5356
pkg.bin = clean
54-
else
57+
} else {
5558
delete pkg.bin
59+
}
5660

5761
return pkg
5862
}

node_modules/npm-packlist/node_modules/npm-bundled/package.json node_modules/npm-bundled/node_modules/npm-normalize-package-bin/package.json

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,36 @@
11
{
2-
"name": "npm-bundled",
2+
"name": "npm-normalize-package-bin",
33
"version": "2.0.0",
4-
"description": "list things in node_modules that are bundledDependencies, or transitive dependencies thereof",
4+
"description": "Turn any flavor of allowable package.json bin into a normalized object",
55
"main": "lib/index.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/npm/npm-bundled.git"
8+
"url": "https://github.com/npm/npm-normalize-package-bin.git"
99
},
1010
"author": "GitHub Inc.",
1111
"license": "ISC",
12-
"devDependencies": {
13-
"@npmcli/eslint-config": "^3.1.0",
14-
"@npmcli/template-oss": "3.5.0",
15-
"mkdirp": "^1.0.4",
16-
"mutate-fs": "^2.1.1",
17-
"rimraf": "^3.0.2",
18-
"tap": "^16.3.0"
19-
},
2012
"scripts": {
2113
"test": "tap",
14+
"snap": "tap",
2215
"preversion": "npm test",
2316
"postversion": "npm publish",
24-
"postpublish": "git push origin --all; git push origin --tags",
17+
"postpublish": "git push origin --follow-tags",
2518
"lint": "eslint \"**/*.js\"",
2619
"postlint": "template-oss-check",
2720
"template-oss-apply": "template-oss-apply --force",
2821
"lintfix": "npm run lint -- --fix",
2922
"prepublishOnly": "git push origin --follow-tags",
30-
"snap": "tap",
3123
"posttest": "npm run lint"
3224
},
25+
"devDependencies": {
26+
"@npmcli/eslint-config": "^3.1.0",
27+
"@npmcli/template-oss": "3.5.0",
28+
"tap": "^16.3.0"
29+
},
3330
"files": [
3431
"bin/",
3532
"lib/"
3633
],
37-
"dependencies": {
38-
"npm-normalize-package-bin": "^1.0.1"
39-
},
4034
"engines": {
4135
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
4236
},

node_modules/npm-bundled/package.json

+29-12
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
11
{
22
"name": "npm-bundled",
3-
"version": "1.1.2",
3+
"version": "2.0.1",
44
"description": "list things in node_modules that are bundledDependencies, or transitive dependencies thereof",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/npm/npm-bundled.git"
8+
"url": "https://github.com/npm/npm-bundled.git"
99
},
10-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
10+
"author": "GitHub Inc.",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"mkdirp": "^0.5.1",
14-
"mutate-fs": "^1.1.0",
15-
"rimraf": "^2.6.1",
16-
"tap": "^12.0.1"
13+
"@npmcli/eslint-config": "^3.1.0",
14+
"@npmcli/template-oss": "3.5.0",
15+
"mkdirp": "^1.0.4",
16+
"mutate-fs": "^2.1.1",
17+
"rimraf": "^3.0.2",
18+
"tap": "^16.3.0"
1719
},
1820
"scripts": {
19-
"test": "tap test/*.js -J --100",
21+
"test": "tap",
2022
"preversion": "npm test",
2123
"postversion": "npm publish",
22-
"postpublish": "git push origin --all; git push origin --tags"
24+
"postpublish": "git push origin --all; git push origin --tags",
25+
"lint": "eslint \"**/*.js\"",
26+
"postlint": "template-oss-check",
27+
"template-oss-apply": "template-oss-apply --force",
28+
"lintfix": "npm run lint -- --fix",
29+
"prepublishOnly": "git push origin --follow-tags",
30+
"snap": "tap",
31+
"posttest": "npm run lint"
2332
},
2433
"files": [
25-
"index.js"
34+
"bin/",
35+
"lib/"
2636
],
2737
"dependencies": {
28-
"npm-normalize-package-bin": "^1.0.1"
38+
"npm-normalize-package-bin": "^2.0.0"
39+
},
40+
"engines": {
41+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
42+
},
43+
"templateOSS": {
44+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
45+
"version": "3.5.0"
2946
}
3047
}

node_modules/npm-packlist/node_modules/npm-bundled/node_modules/npm-normalize-package-bin/package.json

-21
This file was deleted.

node_modules/npm-packlist/node_modules/npm-bundled/node_modules/npm-normalize-package-bin/test/array.js

-37
This file was deleted.

node_modules/npm-packlist/node_modules/npm-bundled/node_modules/npm-normalize-package-bin/test/nobin.js

-35
This file was deleted.

0 commit comments

Comments
 (0)