Comparing version 4.0.4 to 5.0.0
@@ -9,6 +9,12 @@ // if the thing isn't there, skip it | ||
const { lstat, mkdir, readlink, rm, symlink } = require('fs/promises') | ||
const throwNonEnoent = er => { | ||
if (er.code !== 'ENOENT') { | ||
throw er | ||
const { log } = require('proc-log') | ||
const throwSignificant = er => { | ||
if (er.code === 'ENOENT') { | ||
return | ||
} | ||
if (er.code === 'EACCES') { | ||
log.warn('error adding file', er.message) | ||
return | ||
} | ||
throw er | ||
} | ||
@@ -41,4 +47,4 @@ | ||
return Promise.all([ | ||
lstat(absFrom).catch(throwNonEnoent), | ||
lstat(to).catch(throwNonEnoent), | ||
lstat(absFrom).catch(throwSignificant), | ||
lstat(to).catch(throwSignificant), | ||
]).then(([stFrom, stTo]) => { | ||
@@ -45,0 +51,0 @@ // not present in package, skip it |
{ | ||
"name": "bin-links", | ||
"version": "4.0.4", | ||
"version": "5.0.0", | ||
"description": "JavaScript package binary linker", | ||
@@ -9,7 +9,8 @@ "main": "./lib/index.js", | ||
"test": "tap", | ||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", | ||
"lint": "npm run eslint", | ||
"postlint": "template-oss-check", | ||
"lintfix": "npm run lint -- --fix", | ||
"lintfix": "npm run eslint -- --fix", | ||
"posttest": "npm run lint", | ||
"template-oss-apply": "template-oss-apply --force" | ||
"template-oss-apply": "template-oss-apply --force", | ||
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"" | ||
}, | ||
@@ -27,10 +28,11 @@ "repository": { | ||
"dependencies": { | ||
"cmd-shim": "^6.0.0", | ||
"npm-normalize-package-bin": "^3.0.0", | ||
"read-cmd-shim": "^4.0.0", | ||
"write-file-atomic": "^5.0.0" | ||
"cmd-shim": "^7.0.0", | ||
"npm-normalize-package-bin": "^4.0.0", | ||
"proc-log": "^5.0.0", | ||
"read-cmd-shim": "^5.0.0", | ||
"write-file-atomic": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "4.22.0", | ||
"@npmcli/eslint-config": "^5.0.0", | ||
"@npmcli/template-oss": "4.23.3", | ||
"require-inject": "^1.4.4", | ||
@@ -52,3 +54,3 @@ "tap": "^16.0.1" | ||
"engines": { | ||
"node": "^14.17.0 || ^16.13.0 || >=18.0.0" | ||
"node": "^18.17.0 || >=20.5.0" | ||
}, | ||
@@ -59,5 +61,5 @@ "author": "GitHub Inc.", | ||
"windowsCI": false, | ||
"version": "4.22.0", | ||
"version": "4.23.3", | ||
"publish": true | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20855
454
5
+ Addedproc-log@^5.0.0
+ Addedcmd-shim@7.0.0(transitive)
+ Addednpm-normalize-package-bin@4.0.0(transitive)
+ Addedproc-log@5.0.0(transitive)
+ Addedread-cmd-shim@5.0.0(transitive)
+ Addedwrite-file-atomic@6.0.0(transitive)
- Removedcmd-shim@6.0.3(transitive)
- Removednpm-normalize-package-bin@3.0.1(transitive)
- Removedread-cmd-shim@4.0.0(transitive)
- Removedwrite-file-atomic@5.0.1(transitive)
Updatedcmd-shim@^7.0.0
Updatedread-cmd-shim@^5.0.0
Updatedwrite-file-atomic@^6.0.0