Skip to content

Commit

Permalink
fix(deps): Explicit npm-registry-fetch ^3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Feb 4, 2019
1 parent 0d2ee1f commit a83c487
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions commands/publish/__tests__/get-npm-username.test.js
@@ -1,8 +1,8 @@
"use strict";

jest.mock("libnpm/fetch");
jest.mock("npm-registry-fetch");

const fetch = require("libnpm/fetch");
const fetch = require("npm-registry-fetch");
const loggingOutput = require("@lerna-test/logging-output");
const getNpmUsername = require("../lib/get-npm-username");

Expand Down
2 changes: 1 addition & 1 deletion commands/publish/index.js
Expand Up @@ -72,7 +72,7 @@ class PublishCommand extends Command {
this.gitReset = this.options.gitReset !== false;
this.verifyAccess = this.options.verifyAccess !== false;

// npmSession and user-agent are consumed by libnpm/fetch (via libnpm/publish)
// npmSession and user-agent are consumed by npm-registry-fetch (via libnpm/publish)
const npmSession = crypto.randomBytes(8).toString("hex");
const userAgent = `lerna/${this.options.lernaVersion}/node@${process.version}+${process.arch} (${
process.platform
Expand Down
2 changes: 1 addition & 1 deletion commands/publish/lib/get-npm-username.js
@@ -1,6 +1,6 @@
"use strict";

const fetch = require("libnpm/fetch");
const fetch = require("npm-registry-fetch");
const pulseTillDone = require("@lerna/pulse-till-done");
const ValidationError = require("@lerna/validation-error");
const FetchConfig = require("./fetch-config");
Expand Down
1 change: 1 addition & 0 deletions commands/publish/package.json
Expand Up @@ -54,6 +54,7 @@
"figgy-pudding": "^3.5.1",
"fs-extra": "^7.0.0",
"libnpm": "^2.0.1",
"npm-registry-fetch": "^3.9.0",
"p-finally": "^1.0.0",
"p-map": "^1.2.0",
"p-pipe": "^1.2.0",
Expand Down
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions utils/npm-dist-tag/__tests__/npm-dist-tag.test.js
@@ -1,9 +1,9 @@
"use strict";

jest.mock("libnpm/fetch");
jest.mock("npm-registry-fetch");

// mocked modules
const fetch = require("libnpm/fetch");
const fetch = require("npm-registry-fetch");

// file under test
const npmDistTag = require("..");
Expand Down
2 changes: 1 addition & 1 deletion utils/npm-dist-tag/npm-dist-tag.js
Expand Up @@ -2,7 +2,7 @@

const log = require("libnpm/log");
const npa = require("libnpm/parse-arg");
const fetch = require("libnpm/fetch");
const fetch = require("npm-registry-fetch");
const figgyPudding = require("figgy-pudding");

exports.add = add;
Expand Down
3 changes: 2 additions & 1 deletion utils/npm-dist-tag/package.json
Expand Up @@ -32,6 +32,7 @@
},
"dependencies": {
"figgy-pudding": "^3.5.1",
"libnpm": "^2.0.1"
"libnpm": "^2.0.1",
"npm-registry-fetch": "^3.9.0"
}
}

0 comments on commit a83c487

Please sign in to comment.