Skip to content

Commit

Permalink
fix: use lru-cache named export
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 14, 2023
1 parent c98e908 commit f9f7fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict'

const LRU = require('lru-cache')
const { LRUCache } = require('lru-cache')
const hosts = require('./hosts.js')
const fromUrl = require('./from-url.js')
const parseUrl = require('./parse-url.js')

const cache = new LRU({ max: 1000 })
const cache = new LRUCache({ max: 1000 })

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

0 comments on commit f9f7fde

Please sign in to comment.