A RetroSearch Logo

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

Search Query:

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

@npmcli/git@6.0.3 · npm/cli@c9ad0c4 · GitHub

File tree Expand file treeCollapse file tree 9 files changed

+15

-99

lines changed

Filter options

Expand file treeCollapse file tree 9 files changed

+15

-99

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

@@ -630,7 +630,6 @@ graph LR;

630 630

npmcli-git-->npm-pick-manifest;

631 631

npmcli-git-->npmcli-promise-spawn["@npmcli/promise-spawn"];

632 632

npmcli-git-->proc-log;

633 -

npmcli-git-->promise-inflight;

634 633

npmcli-git-->promise-retry;

635 634

npmcli-git-->semver;

636 635

npmcli-git-->which;

Original file line number Diff line number Diff line change

@@ -175,7 +175,6 @@

175 175

!/proggy

176 176

!/promise-all-reject-late

177 177

!/promise-call-limit

178 -

!/promise-inflight

179 178

!/promise-retry

180 179

!/promzard

181 180

!/qrcode-terminal

Original file line number Diff line number Diff line change

@@ -1,14 +1,12 @@

1 -

const pinflight = require('promise-inflight')

2 1

const spawn = require('./spawn.js')

3 2

const { LRUCache } = require('lru-cache')

3 +

const linesToRevs = require('./lines-to-revs.js')

4 4 5 5

const revsCache = new LRUCache({

6 6

max: 100,

7 7

ttl: 5 * 60 * 1000,

8 8

})

9 9 10 -

const linesToRevs = require('./lines-to-revs.js')

11 - 12 10

module.exports = async (repo, opts = {}) => {

13 11

if (!opts.noGitRevCache) {

14 12

const cached = revsCache.get(repo)

@@ -17,12 +15,8 @@ module.exports = async (repo, opts = {}) => {

17 15

}

18 16

}

19 17 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

28 22

}

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

{

2 2

"name": "@npmcli/git",

3 -

"version": "6.0.1",

3 +

"version": "6.0.3",

4 4

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

5 5

"files": [

6 6

"bin/",

@@ -32,8 +32,8 @@

32 32

},

33 33

"devDependencies": {

34 34

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

37 37

"slash": "^3.0.0",

38 38

"tap": "^16.0.1"

39 39

},

@@ -43,7 +43,6 @@

43 43

"lru-cache": "^10.0.1",

44 44

"npm-pick-manifest": "^10.0.0",

45 45

"proc-log": "^5.0.0",

46 -

"promise-inflight": "^1.0.1",

47 46

"promise-retry": "^2.0.1",

48 47

"semver": "^7.3.5",

49 48

"which": "^5.0.0"

@@ -53,7 +52,7 @@

53 52

},

54 53

"templateOSS": {

55 54

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

57 56

"publish": true

58 57

}

59 58

}

Original file line number Diff line number Diff line change

@@ -158,7 +158,7 @@

158 158

"devDependencies": {

159 159

"@npmcli/docs": "^1.0.0",

160 160

"@npmcli/eslint-config": "^5.1.0",

161 -

"@npmcli/git": "^6.0.1",

161 +

"@npmcli/git": "^6.0.3",

162 162

"@npmcli/mock-globals": "^1.0.0",

163 163

"@npmcli/mock-registry": "^1.0.0",

164 164

"@npmcli/template-oss": "4.23.6",

@@ -3575,9 +3575,9 @@

3575 3575

}

3576 3576

},

3577 3577

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

3581 3581

"inBundle": true,

3582 3582

"license": "ISC",

3583 3583

"dependencies": {

@@ -3586,7 +3586,6 @@

3586 3586

"lru-cache": "^10.0.1",

3587 3587

"npm-pick-manifest": "^10.0.0",

3588 3588

"proc-log": "^5.0.0",

3589 -

"promise-inflight": "^1.0.1",

3590 3589

"promise-retry": "^2.0.1",

3591 3590

"semver": "^7.3.5",

3592 3591

"which": "^5.0.0"

@@ -13429,7 +13428,7 @@

13429 13428

"version": "1.0.1",

13430 13429

"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",

13431 13430

"integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",

13432 -

"inBundle": true,

13431 +

"dev": true,

13433 13432

"license": "ISC"

13434 13433

},

13435 13434

"node_modules/promise-retry": {

Original file line number Diff line number Diff line change

@@ -189,7 +189,7 @@

189 189

"devDependencies": {

190 190

"@npmcli/docs": "^1.0.0",

191 191

"@npmcli/eslint-config": "^5.1.0",

192 -

"@npmcli/git": "^6.0.1",

192 +

"@npmcli/git": "^6.0.3",

193 193

"@npmcli/mock-globals": "^1.0.0",

194 194

"@npmcli/mock-registry": "^1.0.0",

195 195

"@npmcli/template-oss": "4.23.6",

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