Skip to content

Commit b1863bf

Browse files
committed
1 parent b632746 commit b1863bf

File tree

29 files changed

+2046
-488
lines changed

29 files changed

+2046
-488
lines changed

node_modules/@npmcli/git/node_modules/@npmcli/promise-spawn/LICENSE

Lines changed: 0 additions & 15 deletions
This file was deleted.

node_modules/@npmcli/promise-spawn/index.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

node_modules/@npmcli/promise-spawn/package.json

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,46 @@
11
{
22
"name": "@npmcli/promise-spawn",
3-
"version": "1.3.2",
3+
"version": "3.0.0",
44
"files": [
5-
"index.js"
5+
"bin/",
6+
"lib/"
67
],
8+
"main": "./lib/index.js",
79
"description": "spawn processes the way the npm cli likes to do",
810
"repository": {
911
"type": "git",
10-
"url": "git+https://github.com/npm/promise-spawn"
12+
"url": "https://github.com/npm/promise-spawn.git"
1113
},
12-
"author": "Isaac Z. Schlueter <[email protected]> (https://izs.me)",
14+
"author": "GitHub Inc.",
1315
"license": "ISC",
1416
"scripts": {
1517
"test": "tap",
1618
"snap": "tap",
1719
"preversion": "npm test",
1820
"postversion": "npm publish",
19-
"prepublishOnly": "git push origin --follow-tags"
21+
"prepublishOnly": "git push origin --follow-tags",
22+
"lint": "eslint \"**/*.js\"",
23+
"lintfix": "npm run lint -- --fix",
24+
"posttest": "npm run lint",
25+
"postsnap": "npm run lintfix --",
26+
"postlint": "template-oss-check",
27+
"template-oss-apply": "template-oss-apply --force"
2028
},
2129
"tap": {
2230
"check-coverage": true
2331
},
2432
"devDependencies": {
33+
"@npmcli/eslint-config": "^3.0.1",
34+
"@npmcli/template-oss": "3.2.2",
2535
"minipass": "^3.1.1",
26-
"require-inject": "^1.4.4",
27-
"tap": "^14.10.6"
36+
"tap": "^16.0.1"
37+
},
38+
"engines": {
39+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
40+
},
41+
"templateOSS": {
42+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
43+
"version": "3.2.2"
2844
},
2945
"dependencies": {
3046
"infer-owner": "^1.0.4"

node_modules/@npmcli/run-script/node_modules/@npmcli/promise-spawn/LICENSE

Lines changed: 0 additions & 15 deletions
This file was deleted.

node_modules/@npmcli/run-script/node_modules/@npmcli/promise-spawn/lib/index.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

node_modules/@npmcli/run-script/node_modules/@npmcli/promise-spawn/package.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

node_modules/ignore-walk/index.js renamed to node_modules/ignore-walk/lib/index.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Walker extends EE {
6464
this.entries = entries
6565
if (entries.length === 0) {
6666
if (this.includeEmpty) {
67-
this.result.add(this.path.substr(this.root.length + 1))
67+
this.result.add(this.path.slice(this.root.length + 1))
6868
}
6969
this.emit('done', this.result)
7070
} else {
@@ -108,7 +108,9 @@ class Walker extends EE {
108108
}
109109
const rules = data.split(/\r?\n/)
110110
.filter(line => !/^#|^$/.test(line.trim()))
111-
.map(r => new Minimatch(r, mmopt))
111+
.map(rule => {
112+
return new Minimatch(rule.trim(), mmopt)
113+
})
112114

113115
this.ignoreRules[file] = rules
114116

@@ -156,7 +158,7 @@ class Walker extends EE {
156158
const abs = this.path + '/' + entry
157159
if (!st.isDirectory()) {
158160
if (file) {
159-
this.result.add(abs.substr(this.root.length + 1))
161+
this.result.add(abs.slice(this.root.length + 1))
160162
}
161163
then()
162164
} else {
@@ -171,21 +173,21 @@ class Walker extends EE {
171173

172174
stat ({ entry, file, dir }, then) {
173175
const abs = this.path + '/' + entry
174-
fs.lstat(abs, (er, st) => {
175-
if (er) {
176-
this.emit('error', er)
176+
fs.lstat(abs, (lstatErr, lstatResult) => {
177+
if (lstatErr) {
178+
this.emit('error', lstatErr)
177179
} else {
178-
const isSymbolicLink = st.isSymbolicLink()
180+
const isSymbolicLink = lstatResult.isSymbolicLink()
179181
if (this.follow && isSymbolicLink) {
180-
fs.stat(abs, (er, st) => {
181-
if (er) {
182-
this.emit('error', er)
182+
fs.stat(abs, (statErr, statResult) => {
183+
if (statErr) {
184+
this.emit('error', statErr)
183185
} else {
184-
this.onstat({ st, entry, file, dir, isSymbolicLink }, then)
186+
this.onstat({ st: statResult, entry, file, dir, isSymbolicLink }, then)
185187
}
186188
})
187189
} else {
188-
this.onstat({ st, entry, file, dir, isSymbolicLink }, then)
190+
this.onstat({ st: lstatResult, entry, file, dir, isSymbolicLink }, then)
189191
}
190192
}
191193
})
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2013 Julian Gruber <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)