Skip to content

Commit a5eb5dd

Browse files
committed
deps: @npmcli/git@6.0.3
1 parent e510f14 commit a5eb5dd

File tree

9 files changed

+15
-99
lines changed

9 files changed

+15
-99
lines changed

DEPENDENCIES.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ graph LR;
648648
npmcli-git-->npm-pick-manifest;
649649
npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];
650650
npmcli-git-->proc-log;
651-
npmcli-git-->promise-inflight;
652651
npmcli-git-->promise-retry;
653652
npmcli-git-->semver;
654653
npmcli-git-->which;

node_modules/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@
180180
!/proggy
181181
!/promise-all-reject-late
182182
!/promise-call-limit
183-
!/promise-inflight
184183
!/promise-retry
185184
!/promzard
186185
!/qrcode-terminal
Lines changed: 5 additions & 11 deletions
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

Lines changed: 4 additions & 5 deletions
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

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

node_modules/promise-inflight/inflight.js

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

node_modules/promise-inflight/package.json

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

package-lock.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"devDependencies": {
163163
"@npmcli/docs": "^1.0.0",
164164
"@npmcli/eslint-config": "^5.0.1",
165-
"@npmcli/git": "^6.0.1",
165+
"@npmcli/git": "^6.0.3",
166166
"@npmcli/mock-globals": "^1.0.0",
167167
"@npmcli/mock-registry": "^1.0.0",
168168
"@npmcli/template-oss": "4.23.3",
@@ -1617,9 +1617,9 @@
16171617
}
16181618
},
16191619
"node_modules/@npmcli/git": {
1620-
"version": "6.0.1",
1621-
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-6.0.1.tgz",
1622-
"integrity": "sha512-BBWMMxeQzalmKadyimwb2/VVQyJB01PH0HhVSNLHNBDZN/M/h/02P6f8fxedIiFhpMj11SO9Ep5tKTBE7zL2nw==",
1620+
"version": "6.0.3",
1621+
"resolved": "https://registry.npmjs.org/@npmcli/git/-/git-6.0.3.tgz",
1622+
"integrity": "sha512-GUYESQlxZRAdhs3UhbB6pVRNUELQOHXwK9ruDkwmCv2aZ5y0SApQzUJCg02p3A7Ue2J5hxvlk1YI53c00NmRyQ==",
16231623
"inBundle": true,
16241624
"license": "ISC",
16251625
"dependencies": {
@@ -1628,7 +1628,6 @@
16281628
"lru-cache": "^10.0.1",
16291629
"npm-pick-manifest": "^10.0.0",
16301630
"proc-log": "^5.0.0",
1631-
"promise-inflight": "^1.0.1",
16321631
"promise-retry": "^2.0.1",
16331632
"semver": "^7.3.5",
16341633
"which": "^5.0.0"
@@ -11684,7 +11683,7 @@
1168411683
"version": "1.0.1",
1168511684
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
1168611685
"integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
11687-
"inBundle": true,
11686+
"dev": true,
1168811687
"license": "ISC"
1168911688
},
1169011689
"node_modules/promise-retry": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"devDependencies": {
194194
"@npmcli/docs": "^1.0.0",
195195
"@npmcli/eslint-config": "^5.0.1",
196-
"@npmcli/git": "^6.0.1",
196+
"@npmcli/git": "^6.0.3",
197197
"@npmcli/mock-globals": "^1.0.0",
198198
"@npmcli/mock-registry": "^1.0.0",
199199
"@npmcli/template-oss": "4.23.3",

0 commit comments

Comments
 (0)