Skip to content

Commit 729e893

Browse files
committed
1 parent 7af81c7 commit 729e893

File tree

26 files changed

+763
-53
lines changed

26 files changed

+763
-53
lines changed

node_modules/.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
!/@npmcli/package-json
3737
!/@npmcli/package-json/node_modules/
3838
/@npmcli/package-json/node_modules/*
39-
!/@npmcli/package-json/node_modules/hosted-git-info
40-
!/@npmcli/package-json/node_modules/lru-cache
4139
!/@npmcli/package-json/node_modules/normalize-package-data
4240
!/@npmcli/promise-spawn
4341
!/@npmcli/query
@@ -124,6 +122,9 @@
124122
!/has-unicode
125123
!/has
126124
!/hosted-git-info
125+
!/hosted-git-info/node_modules/
126+
/hosted-git-info/node_modules/*
127+
!/hosted-git-info/node_modules/lru-cache
127128
!/http-cache-semantics
128129
!/http-proxy-agent
129130
!/https-proxy-agent
@@ -211,11 +212,17 @@
211212
!/node-gyp/node_modules/which
212213
!/nopt
213214
!/normalize-package-data
215+
!/normalize-package-data/node_modules/
216+
/normalize-package-data/node_modules/*
217+
!/normalize-package-data/node_modules/hosted-git-info
214218
!/npm-audit-report
215219
!/npm-bundled
216220
!/npm-install-checks
217221
!/npm-normalize-package-bin
218222
!/npm-package-arg
223+
!/npm-package-arg/node_modules/
224+
/npm-package-arg/node_modules/*
225+
!/npm-package-arg/node_modules/hosted-git-info
219226
!/npm-packlist
220227
!/npm-pick-manifest
221228
!/npm-profile

node_modules/hosted-git-info/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict'
22

3-
const LRU = require('lru-cache')
3+
const { LRUCache } = require('lru-cache')
44
const hosts = require('./hosts.js')
55
const fromUrl = require('./from-url.js')
66
const parseUrl = require('./parse-url.js')
77

8-
const cache = new LRU({ max: 1000 })
8+
const cache = new LRUCache({ max: 1000 })
99

1010
class GitHost {
1111
constructor (type, user, auth, project, committish, defaultRepresentation, opts = {}) {

0 commit comments

Comments
 (0)