Skip to content

Commit 99ccae3

Browse files
committedOct 2, 2024
deps: update bin-links@5.0.0
1 parent 75786ad commit 99ccae3

File tree

15 files changed

+86
-406
lines changed

15 files changed

+86
-406
lines changed
 

‎DEPENDENCIES.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
graph LR;
66
bin-links-->cmd-shim;
77
bin-links-->npm-normalize-package-bin;
8+
bin-links-->proc-log;
89
bin-links-->read-cmd-shim;
910
bin-links-->write-file-atomic;
1011
cacache-->fs-minipass;
@@ -264,6 +265,7 @@ graph LR;
264265
aggregate-error-->indent-string;
265266
bin-links-->cmd-shim;
266267
bin-links-->npm-normalize-package-bin;
268+
bin-links-->proc-log;
267269
bin-links-->read-cmd-shim;
268270
bin-links-->write-file-atomic;
269271
brace-expansion-->balanced-match;

‎node_modules/.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
!/bin-links
7171
!/bin-links/node_modules/
7272
/bin-links/node_modules/*
73-
!/bin-links/node_modules/write-file-atomic
73+
!/bin-links/node_modules/npm-normalize-package-bin
7474
!/binary-extensions
7575
!/brace-expansion
7676
!/cacache
@@ -193,7 +193,6 @@
193193
/npm-bundled/node_modules/*
194194
!/npm-bundled/node_modules/npm-normalize-package-bin
195195
!/npm-install-checks
196-
!/npm-normalize-package-bin
197196
!/npm-package-arg
198197
!/npm-pick-manifest
199198
!/npm-pick-manifest/node_modules/

‎node_modules/bin-links/lib/link-gently.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66

77
const { resolve, dirname } = require('path')
88
const { lstat, mkdir, readlink, rm, symlink } = require('fs/promises')
9-
const throwNonEnoent = er => {
10-
if (er.code !== 'ENOENT') {
11-
throw er
9+
const { log } = require('proc-log')
10+
const throwSignificant = er => {
11+
if (er.code === 'ENOENT') {
12+
return
1213
}
14+
if (er.code === 'EACCES') {
15+
log.warn('error adding file', er.message)
16+
return
17+
}
18+
throw er
1319
}
1420

1521
const rmOpts = {
@@ -37,8 +43,8 @@ const linkGently = async ({ path, to, from, absFrom, force }) => {
3743
// or at least a warning, but npm has always behaved this
3844
// way in the past, so it'd be a breaking change
3945
return Promise.all([
40-
lstat(absFrom).catch(throwNonEnoent),
41-
lstat(to).catch(throwNonEnoent),
46+
lstat(absFrom).catch(throwSignificant),
47+
lstat(to).catch(throwSignificant),
4248
]).then(([stFrom, stTo]) => {
4349
// not present in package, skip it
4450
if (!stFrom) {

‎node_modules/npm-normalize-package-bin/package.json ‎node_modules/bin-links/node_modules/npm-normalize-package-bin/package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
{
22
"name": "npm-normalize-package-bin",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"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-normalize-package-bin.git"
8+
"url": "git+https://github.com/npm/npm-normalize-package-bin.git"
99
},
1010
"author": "GitHub Inc.",
1111
"license": "ISC",
1212
"scripts": {
1313
"test": "tap",
1414
"snap": "tap",
15-
"lint": "eslint \"**/*.js\"",
15+
"lint": "npm run eslint",
1616
"postlint": "template-oss-check",
1717
"template-oss-apply": "template-oss-apply --force",
18-
"lintfix": "npm run lint -- --fix",
19-
"posttest": "npm run lint"
18+
"lintfix": "npm run eslint -- --fix",
19+
"posttest": "npm run lint",
20+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
2021
},
2122
"devDependencies": {
22-
"@npmcli/eslint-config": "^4.0.0",
23-
"@npmcli/template-oss": "4.14.1",
23+
"@npmcli/eslint-config": "^5.0.0",
24+
"@npmcli/template-oss": "4.23.3",
2425
"tap": "^16.3.0"
2526
},
2627
"files": [
2728
"bin/",
2829
"lib/"
2930
],
3031
"engines": {
31-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
32+
"node": "^18.17.0 || >=20.5.0"
3233
},
3334
"templateOSS": {
3435
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
35-
"version": "4.14.1",
36+
"version": "4.23.3",
3637
"publish": "true"
3738
},
3839
"tap": {

‎node_modules/bin-links/node_modules/write-file-atomic/LICENSE.md

-6
This file was deleted.

‎node_modules/bin-links/node_modules/write-file-atomic/lib/index.js

-267
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.