Reduce dependencies to squash security issues.
This commit is contained in:
parent
e0e0dbef18
commit
738d34969d
@ -2,7 +2,7 @@
|
||||
|
||||
const resolve = require("path").resolve;
|
||||
|
||||
const npm = require("libnpm");
|
||||
const npmpub = require("libnpmpublish");
|
||||
const semver = require("semver");
|
||||
|
||||
const local = require("./local");
|
||||
@ -60,7 +60,7 @@ async function getTarballHash(name, version) {
|
||||
|
||||
async function _publish(info, tarball, options) {
|
||||
try {
|
||||
let result = await npm.publish(info, tarball, options);
|
||||
let result = await npmpub.publish(info, tarball, options);
|
||||
return result;
|
||||
} catch (error) {
|
||||
|
||||
|
2503
package-lock.json
generated
2503
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@
|
||||
"karma-chrome-launcher": "3.1.0",
|
||||
"karma-mocha": "2.0.0",
|
||||
"lerna": "^3.20.2",
|
||||
"libnpm": "2.0.1",
|
||||
"libnpmpublish": "1.1.3",
|
||||
"mocha": "^7.1.1",
|
||||
"npm-packlist": "1.4.1",
|
||||
"rollup": "1.20.1",
|
||||
|
Loading…
Reference in New Issue
Block a user