Skip to content

Commit

Permalink
deps: update [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Oct 2, 2024
1 parent 75786ad commit 99ccae3
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 406 deletions.
2 changes: 2 additions & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
graph LR;
bin-links-->cmd-shim;
bin-links-->npm-normalize-package-bin;
bin-links-->proc-log;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
cacache-->fs-minipass;
Expand Down Expand Up @@ -264,6 +265,7 @@ graph LR;
aggregate-error-->indent-string;
bin-links-->cmd-shim;
bin-links-->npm-normalize-package-bin;
bin-links-->proc-log;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
brace-expansion-->balanced-match;
Expand Down
3 changes: 1 addition & 2 deletions node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
!/bin-links
!/bin-links/node_modules/
/bin-links/node_modules/*
!/bin-links/node_modules/write-file-atomic
!/bin-links/node_modules/npm-normalize-package-bin
!/binary-extensions
!/brace-expansion
!/cacache
Expand Down Expand Up @@ -193,7 +193,6 @@
/npm-bundled/node_modules/*
!/npm-bundled/node_modules/npm-normalize-package-bin
!/npm-install-checks
!/npm-normalize-package-bin
!/npm-package-arg
!/npm-pick-manifest
!/npm-pick-manifest/node_modules/
Expand Down
16 changes: 11 additions & 5 deletions node_modules/bin-links/lib/link-gently.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@

const { resolve, dirname } = require('path')
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
}

const rmOpts = {
Expand Down Expand Up @@ -37,8 +43,8 @@ const linkGently = async ({ path, to, from, absFrom, force }) => {
// or at least a warning, but npm has always behaved this
// way in the past, so it'd be a breaking change
return Promise.all([
lstat(absFrom).catch(throwNonEnoent),
lstat(to).catch(throwNonEnoent),
lstat(absFrom).catch(throwSignificant),
lstat(to).catch(throwSignificant),
]).then(([stFrom, stTo]) => {
// not present in package, skip it
if (!stFrom) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
{
"name": "npm-normalize-package-bin",
"version": "3.0.1",
"version": "4.0.0",
"description": "Turn any flavor of allowable package.json bin into a normalized object",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/npm/npm-normalize-package-bin.git"
"url": "git+https://github.com/npm/npm-normalize-package-bin.git"
},
"author": "GitHub Inc.",
"license": "ISC",
"scripts": {
"test": "tap",
"snap": "tap",
"lint": "eslint \"**/*.js\"",
"lint": "npm run eslint",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint"
"lintfix": "npm run eslint -- --fix",
"posttest": "npm run lint",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.14.1",
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"tap": "^16.3.0"
},
"files": [
"bin/",
"lib/"
],
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
"node": "^18.17.0 || >=20.5.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.14.1",
"version": "4.23.3",
"publish": "true"
},
"tap": {
Expand Down

This file was deleted.

267 changes: 0 additions & 267 deletions node_modules/bin-links/node_modules/write-file-atomic/lib/index.js

This file was deleted.

Loading

0 comments on commit 99ccae3

Please sign in to comment.