Skip to content

Commit

Permalink
fix: replace npm to pacote (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas authored Jan 29, 2025
1 parent ad88b09 commit a946ee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/npm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'
const libnpm = require('libnpm')
const pacote = require('pacote')

const Packument = module.exports.Packument =
class Packument {
Expand All @@ -12,7 +12,7 @@ class Packument {
}

module.exports.getPackument = async function getNpmPackument (packageName) {
const resp = await libnpm.packument(packageName)
const resp = await pacote.packument(packageName)
return new Packument(resp)
}

Expand All @@ -30,6 +30,6 @@ class Manifest {
}
}
module.exports.getManifest = async function getNpmManifest (packageName) {
const resp = await libnpm.manifest(packageName)
const resp = await pacote.manifest(packageName)
return new Manifest(resp)
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@
"install": "^0.13.0",
"js-yaml": "^3.13.1",
"level": "^5.0.1",
"libnpm": "^2.0.1",
"lit-element": "^2.2.1",
"nighthawk": "^2.3.0-1",
"npm": "^6.10.3",
"pacote": "^20.0.0",
"regenerator-runtime": "^0.13.3",
"yargs": "^13.3.0"
},
Expand Down

0 comments on commit a946ee3

Please sign in to comment.