Skip to content

Commit f9f7fde

Browse files
committedAug 14, 2023
fix: use lru-cache named export
1 parent c98e908 commit f9f7fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/index.js

+2-2
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)
Please sign in to comment.