Skip to content

Commit c9ad0c4

Browse files
committed
deps: @npmcli/[email protected]
1 parent 7ec0831 commit c9ad0c4

File tree

9 files changed

+15
-99
lines changed

9 files changed

+15
-99
lines changed

DEPENDENCIES.md

-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,6 @@ graph LR;
630630
npmcli-git-->npm-pick-manifest;
631631
npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];
632632
npmcli-git-->proc-log;
633-
npmcli-git-->promise-inflight;
634633
npmcli-git-->promise-retry;
635634
npmcli-git-->semver;
636635
npmcli-git-->which;

node_modules/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@
175175
!/proggy
176176
!/promise-all-reject-late
177177
!/promise-call-limit
178-
!/promise-inflight
179178
!/promise-retry
180179
!/promzard
181180
!/qrcode-terminal

node_modules/@npmcli/git/lib/revs.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
const pinflight = require('promise-inflight')
21
const spawn = require('./spawn.js')
32
const { LRUCache } = require('lru-cache')
3+
const linesToRevs = require('./lines-to-revs.js')
44

55
const revsCache = new LRUCache({
66
max: 100,
77
ttl: 5 * 60 * 1000,
88
})
99

10-
const linesToRevs = require('./lines-to-revs.js')
11-
1210
module.exports = async (repo, opts = {}) => {
1311
if (!opts.noGitRevCache) {
1412
const cached = revsCache.get(repo)
@@ -17,12 +15,8 @@ module.exports = async (repo, opts = {}) => {
1715
}
1816
}
1917

20-
return pinflight(`ls-remote:${repo}`, () =>
21-
spawn(['ls-remote', repo], opts)
22-
.then(({ stdout }) => linesToRevs(stdout.trim().split('\n')))
23-
.then(revs => {
24-
revsCache.set(repo, revs)
25-
return revs
26-
})
27-
)
18+
const { stdout } = await spawn(['ls-remote', repo], opts)
19+
const revs = linesToRevs(stdout.trim().split('\n'))
20+
revsCache.set(repo, revs)
21+
return revs
2822
}

node_modules/@npmcli/git/package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/git",
3-
"version": "6.0.1",
3+
"version": "6.0.3",
44
"main": "lib/index.js",
55
"files": [
66
"bin/",
@@ -32,8 +32,8 @@
3232
},
3333
"devDependencies": {
3434
"@npmcli/eslint-config": "^5.0.0",
35-
"@npmcli/template-oss": "4.23.3",
36-
"npm-package-arg": "^11.0.0",
35+
"@npmcli/template-oss": "4.24.1",
36+
"npm-package-arg": "^12.0.1",
3737
"slash": "^3.0.0",
3838
"tap": "^16.0.1"
3939
},
@@ -43,7 +43,6 @@
4343
"lru-cache": "^10.0.1",
4444
"npm-pick-manifest": "^10.0.0",
4545
"proc-log": "^5.0.0",
46-
"promise-inflight": "^1.0.1",
4746
"promise-retry": "^2.0.1",
4847
"semver": "^7.3.5",
4948
"which": "^5.0.0"
@@ -53,7 +52,7 @@
5352
},
5453
"templateOSS": {
5554
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
56-
"version": "4.23.3",
55+
"version": "4.24.1",
5756
"publish": true
5857
}
5958
}

node_modules/promise-inflight/LICENSE

-14
This file was deleted.

node_modules/promise-inflight/inflight.js

-36
This file was deleted.

node_modules/promise-inflight/package.json

-24
This file was deleted.

package-lock.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"devDependencies": {
159159
"@npmcli/docs": "^1.0.0",
160160
"@npmcli/eslint-config": "^5.1.0",
161-
"@npmcli/git": "^6.0.1",
161+
"@npmcli/git": "^6.0.3",
162162
"@npmcli/mock-globals": "^1.0.0",
163163
"@npmcli/mock-registry": "^1.0.0",
164164
"@npmcli/template-oss": "4.23.6",
@@ -3575,9 +3575,9 @@
35753575
}
35763576
},
35773577
"node_modules/@npmcli/git": {
3578-
"version": "6.0.1",
3579-
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-6.0.1.tgz",
3580-
"integrity": "sha512-BBWMMxeQzalmKadyimwb2/VVQyJB01PH0HhVSNLHNBDZN/M/h/02P6f8fxedIiFhpMj11SO9Ep5tKTBE7zL2nw==",
3578+
"version": "6.0.3",
3579+
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-6.0.3.tgz",
3580+
"integrity": "sha512-GUYESQlxZRAdhs3UhbB6pVRNUELQOHXwK9ruDkwmCv2aZ5y0SApQzUJCg02p3A7Ue2J5hxvlk1YI53c00NmRyQ==",
35813581
"inBundle": true,
35823582
"license": "ISC",
35833583
"dependencies": {
@@ -3586,7 +3586,6 @@
35863586
"lru-cache": "^10.0.1",
35873587
"npm-pick-manifest": "^10.0.0",
35883588
"proc-log": "^5.0.0",
3589-
"promise-inflight": "^1.0.1",
35903589
"promise-retry": "^2.0.1",
35913590
"semver": "^7.3.5",
35923591
"which": "^5.0.0"
@@ -13429,7 +13428,7 @@
1342913428
"version": "1.0.1",
1343013429
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
1343113430
"integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
13432-
"inBundle": true,
13431+
"dev": true,
1343313432
"license": "ISC"
1343413433
},
1343513434
"node_modules/promise-retry": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
"devDependencies": {
190190
"@npmcli/docs": "^1.0.0",
191191
"@npmcli/eslint-config": "^5.1.0",
192-
"@npmcli/git": "^6.0.1",
192+
"@npmcli/git": "^6.0.3",
193193
"@npmcli/mock-globals": "^1.0.0",
194194
"@npmcli/mock-registry": "^1.0.0",
195195
"@npmcli/template-oss": "4.23.6",

0 commit comments

Comments
 (0)