A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/99ccae3ded6f7013b26ed268a208c24473cdeb8f below:

update bin-links@5.0.0 · npm/cli@99ccae3 · GitHub

File tree Expand file treeCollapse file tree 15 files changed

+86

-406

lines changed

Filter options

Expand file treeCollapse file tree 15 files changed

+86

-406

lines changed Original file line number Diff line number Diff line change

@@ -5,6 +5,7 @@

5 5

graph LR;

6 6

bin-links-->cmd-shim;

7 7

bin-links-->npm-normalize-package-bin;

8 +

bin-links-->proc-log;

8 9

bin-links-->read-cmd-shim;

9 10

bin-links-->write-file-atomic;

10 11

cacache-->fs-minipass;

@@ -264,6 +265,7 @@ graph LR;

264 265

aggregate-error-->indent-string;

265 266

bin-links-->cmd-shim;

266 267

bin-links-->npm-normalize-package-bin;

268 +

bin-links-->proc-log;

267 269

bin-links-->read-cmd-shim;

268 270

bin-links-->write-file-atomic;

269 271

brace-expansion-->balanced-match;

Original file line number Diff line number Diff line change

@@ -70,7 +70,7 @@

70 70

!/bin-links

71 71

!/bin-links/node_modules/

72 72

/bin-links/node_modules/*

73 -

!/bin-links/node_modules/write-file-atomic

73 +

!/bin-links/node_modules/npm-normalize-package-bin

74 74

!/binary-extensions

75 75

!/brace-expansion

76 76

!/cacache

@@ -193,7 +193,6 @@

193 193

/npm-bundled/node_modules/*

194 194

!/npm-bundled/node_modules/npm-normalize-package-bin

195 195

!/npm-install-checks

196 -

!/npm-normalize-package-bin

197 196

!/npm-package-arg

198 197

!/npm-pick-manifest

199 198

!/npm-pick-manifest/node_modules/

Original file line number Diff line number Diff line change

@@ -6,10 +6,16 @@

6 6 7 7

const { resolve, dirname } = require('path')

8 8

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

12 13

}

14 +

if (er.code === 'EACCES') {

15 +

log.warn('error adding file', er.message)

16 +

return

17 +

}

18 +

throw er

13 19

}

14 20 15 21

const rmOpts = {

@@ -37,8 +43,8 @@ const linkGently = async ({ path, to, from, absFrom, force }) => {

37 43

// or at least a warning, but npm has always behaved this

38 44

// way in the past, so it'd be a breaking change

39 45

return Promise.all([

40 -

lstat(absFrom).catch(throwNonEnoent),

41 -

lstat(to).catch(throwNonEnoent),

46 +

lstat(absFrom).catch(throwSignificant),

47 +

lstat(to).catch(throwSignificant),

42 48

]).then(([stFrom, stTo]) => {

43 49

// not present in package, skip it

44 50

if (!stFrom) {

File renamed without changes.

File renamed without changes.

Original file line number Diff line number Diff line change

@@ -1,38 +1,39 @@

1 1

{

2 2

"name": "npm-normalize-package-bin",

3 -

"version": "3.0.1",

3 +

"version": "4.0.0",

4 4

"description": "Turn any flavor of allowable package.json bin into a normalized object",

5 5

"main": "lib/index.js",

6 6

"repository": {

7 7

"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"

9 9

},

10 10

"author": "GitHub Inc.",

11 11

"license": "ISC",

12 12

"scripts": {

13 13

"test": "tap",

14 14

"snap": "tap",

15 -

"lint": "eslint \"**/*.js\"",

15 +

"lint": "npm run eslint",

16 16

"postlint": "template-oss-check",

17 17

"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}\""

20 21

},

21 22

"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",

24 25

"tap": "^16.3.0"

25 26

},

26 27

"files": [

27 28

"bin/",

28 29

"lib/"

29 30

],

30 31

"engines": {

31 -

"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

32 +

"node": "^18.17.0 || >=20.5.0"

32 33

},

33 34

"templateOSS": {

34 35

"//@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",

36 37

"publish": "true"

37 38

},

38 39

"tap": {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4