Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9392488

Browse files
committed
1 parent 0082083 commit 9392488

File tree

15 files changed

+77
-371
lines changed

15 files changed

+77
-371
lines changed

node_modules/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
!/@npmcli/agent
2222
!/@npmcli/fs
2323
!/@npmcli/git
24+
!/@npmcli/git/node_modules/
25+
/@npmcli/git/node_modules/*
26+
!/@npmcli/git/node_modules/npm-pick-manifest
2427
!/@npmcli/installed-package-contents
2528
!/@npmcli/map-workspaces
2629
!/@npmcli/map-workspaces/node_modules/
@@ -197,6 +200,9 @@
197200
!/npm-packlist/node_modules/ignore-walk
198201
!/npm-packlist/node_modules/minimatch
199202
!/npm-pick-manifest
203+
!/npm-pick-manifest/node_modules/
204+
/npm-pick-manifest/node_modules/*
205+
!/npm-pick-manifest/node_modules/npm-package-arg
200206
!/npm-profile
201207
!/npm-registry-fetch
202208
!/npm-registry-fetch/node_modules/
File renamed without changes.

node_modules/@npmcli/package-json/node_modules/npm-pick-manifest/lib/index.js renamed to node_modules/@npmcli/git/node_modules/npm-pick-manifest/lib/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,13 @@ const pickManifest = (packument, wanted, opts) => {
9393
throw new Error('Only tag, version, and range are supported')
9494
}
9595

96-
// if the type is 'tag', and not just the implicit default, then it must be that exactly, or nothing else will do.
96+
// if the type is 'tag', and not just the implicit default, then it must
97+
// be that exactly, or nothing else will do.
9798
if (wanted && type === 'tag') {
9899
const ver = distTags[wanted]
99-
// if the version in the dist-tags is before the before date, then we use that. Otherwise, we get the highest precedence version prior to the dist-tag.
100+
// if the version in the dist-tags is before the before date, then
101+
// we use that. Otherwise, we get the highest precedence version
102+
// prior to the dist-tag.
100103
if (isBefore(verTimes, ver, time)) {
101104
return decorateAvoid(versions[ver] || staged[ver] || restricted[ver], avoid)
102105
} else {
@@ -114,7 +117,9 @@ const pickManifest = (packument, wanted, opts) => {
114117
// ok, sort based on our heuristics, and pick the best fit
115118
const range = type === 'range' ? wanted : '*'
116119

117-
// if the range is *, then we prefer the 'latest' if available but skip this if it should be avoided, in that case we have to try a little harder.
120+
// if the range is *, then we prefer the 'latest' if available
121+
// but skip this if it should be avoided, in that case we have
122+
// to try a little harder.
118123
const defaultVer = distTags[defaultTag]
119124
if (defaultVer &&
120125
(range === '*' || semver.satisfies(defaultVer, range, { loose: true })) &&

node_modules/pacote/node_modules/npm-pick-manifest/package.json renamed to node_modules/@npmcli/git/node_modules/npm-pick-manifest/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-pick-manifest",
3-
"version": "11.0.1",
3+
"version": "10.0.0",
44
"description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.",
55
"main": "./lib",
66
"files": [
@@ -32,12 +32,12 @@
3232
"dependencies": {
3333
"npm-install-checks": "^7.1.0",
3434
"npm-normalize-package-bin": "^4.0.0",
35-
"npm-package-arg": "^13.0.0",
35+
"npm-package-arg": "^12.0.0",
3636
"semver": "^7.3.5"
3737
},
3838
"devDependencies": {
3939
"@npmcli/eslint-config": "^5.0.0",
40-
"@npmcli/template-oss": "4.25.0",
40+
"@npmcli/template-oss": "4.23.3",
4141
"tap": "^16.0.1"
4242
},
4343
"tap": {
@@ -48,11 +48,11 @@
4848
]
4949
},
5050
"engines": {
51-
"node": "^20.17.0 || >=22.9.0"
51+
"node": "^18.17.0 || >=20.5.0"
5252
},
5353
"templateOSS": {
5454
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55-
"version": "4.25.0",
55+
"version": "4.23.3",
5656
"publish": true
5757
}
5858
}

node_modules/@npmcli/package-json/node_modules/npm-pick-manifest/package.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

node_modules/npm-pick-manifest/lib/index.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,10 @@ const pickManifest = (packument, wanted, opts) => {
9393
throw new Error('Only tag, version, and range are supported')
9494
}
9595

96-
// if the type is 'tag', and not just the implicit default, then it must
97-
// be that exactly, or nothing else will do.
96+
// if the type is 'tag', and not just the implicit default, then it must be that exactly, or nothing else will do.
9897
if (wanted && type === 'tag') {
9998
const ver = distTags[wanted]
100-
// if the version in the dist-tags is before the before date, then
101-
// we use that. Otherwise, we get the highest precedence version
102-
// prior to the dist-tag.
99+
// if the version in the dist-tags is before the before date, then we use that. Otherwise, we get the highest precedence version prior to the dist-tag.
103100
if (isBefore(verTimes, ver, time)) {
104101
return decorateAvoid(versions[ver] || staged[ver] || restricted[ver], avoid)
105102
} else {
@@ -117,9 +114,7 @@ const pickManifest = (packument, wanted, opts) => {
117114
// ok, sort based on our heuristics, and pick the best fit
118115
const range = type === 'range' ? wanted : '*'
119116

120-
// if the range is *, then we prefer the 'latest' if available
121-
// but skip this if it should be avoided, in that case we have
122-
// to try a little harder.
117+
// if the range is *, then we prefer the 'latest' if available but skip this if it should be avoided, in that case we have to try a little harder.
123118
const defaultVer = distTags[defaultTag]
124119
if (defaultVer &&
125120
(range === '*' || semver.satisfies(defaultVer, range, { loose: true })) &&
File renamed without changes.
File renamed without changes.
File renamed without changes.

node_modules/npm-pick-manifest/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-pick-manifest",
3-
"version": "10.0.0",
3+
"version": "11.0.1",
44
"description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.",
55
"main": "./lib",
66
"files": [
@@ -32,12 +32,12 @@
3232
"dependencies": {
3333
"npm-install-checks": "^7.1.0",
3434
"npm-normalize-package-bin": "^4.0.0",
35-
"npm-package-arg": "^12.0.0",
35+
"npm-package-arg": "^13.0.0",
3636
"semver": "^7.3.5"
3737
},
3838
"devDependencies": {
3939
"@npmcli/eslint-config": "^5.0.0",
40-
"@npmcli/template-oss": "4.23.3",
40+
"@npmcli/template-oss": "4.25.0",
4141
"tap": "^16.0.1"
4242
},
4343
"tap": {
@@ -48,11 +48,11 @@
4848
]
4949
},
5050
"engines": {
51-
"node": "^18.17.0 || >=20.5.0"
51+
"node": "^20.17.0 || >=22.9.0"
5252
},
5353
"templateOSS": {
5454
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
55-
"version": "4.23.3",
55+
"version": "4.25.0",
5656
"publish": true
5757
}
5858
}

0 commit comments

Comments
 (0)