Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed Aug 17, 2022
1 parent 5a56686 commit 3c5a866
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions node_modules/bin-links/lib/link-gently.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ const linkGently = async ({ path, to, from, absFrom, force }) => {
if (target.indexOf(path) === 0 || force) {
return rm(to).then(() => CLOBBER)
}
// neither skip nor clobber
return false
})
} else {
// doesn't exist, dir might not either
Expand Down
5 changes: 3 additions & 2 deletions node_modules/bin-links/lib/shim-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,20 @@ const shimBin = ({ path, to, from, absFrom, force }) => {
}

if (force) {
return
return false
}

return Promise.all(shims.map((s, i) => [s, stats[i]]).map(([s, st]) => {
if (!st) {
return
return false
}
return readCmdShim(s)
.then(target => {
target = resolve(dirname(to), target)
if (target.indexOf(resolve(path)) !== 0) {
return failEEXIST({ from, to, path })
}
return false
}, er => handleReadCmdShimError({ er, from, to }))
}))
})
Expand Down
8 changes: 4 additions & 4 deletions node_modules/bin-links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bin-links",
"version": "3.0.1",
"version": "3.0.2",
"description": "JavaScript package binary linker",
"main": "./lib/index.js",
"scripts": {
Expand Down Expand Up @@ -35,10 +35,10 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.2.2",
"@npmcli/template-oss": "3.5.0",
"mkdirp": "^1.0.3",
"require-inject": "^1.4.4",
"tap": "^15.0.10"
"tap": "^16.0.1"
},
"tap": {
"check-coverage": true,
Expand All @@ -55,6 +55,6 @@
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"windowsCI": false,
"version": "3.2.2"
"version": "3.5.0"
}
}
6 changes: 3 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1484,9 +1484,9 @@
}
},
"node_modules/bin-links": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/bin-links/-/bin-links-3.0.1.tgz",
"integrity": "sha512-9vx+ypzVhASvHTS6K+YSGf7nwQdANoz7v6MTC0aCtYnOEZ87YvMf81aY737EZnGZdpbRM3sfWjO9oWkKmuIvyQ==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/bin-links/-/bin-links-3.0.2.tgz",
"integrity": "sha512-+oSWBdbCUK6X4LOCSrU36fWRzZNaK7/evX7GozR9xwl2dyiVi3UOUwTyyOVYI1FstgugfsM9QESRrWo7gjCYbg==",
"dependencies": {
"cmd-shim": "^5.0.0",
"mkdirp-infer-owner": "^2.0.0",
Expand Down

0 comments on commit 3c5a866

Please sign in to comment.