Skip to content

Commit c9ad0c4

Browse files
committed
deps: @npmcli/git@6.0.3
1 parent 7ec0831 commit c9ad0c4

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

Lines changed: 0 additions & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy