@kenan/npm-cli-login 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -21,7 +21,7 @@ module.exports = function (user, pass, email, registry, scope, quotes, configPat
21
21
  throw new TypeError('`email` is a required argument.')
22
22
  }
23
23
 
24
- ncl.login(finalArgs, function (err, { token }) {
24
+ ncl.login(finalArgs, function (err, data) {
25
25
  if (err) {
26
26
  throw err;
27
27
  }
@@ -30,6 +30,7 @@ module.exports = function (user, pass, email, registry, scope, quotes, configPat
30
30
  throw err;
31
31
  }
32
32
  else {
33
+ const { token } = data;
33
34
  const newContent = ncl.generateFileContents(
34
35
  finalArgs,
35
36
  content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenan/npm-cli-login",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Fork of npm-cli-login",
5
5
  "author": "Postman Team <help@getpostman.com>",
6
6
  "license": "Apache-2.0",
@@ -29,11 +29,11 @@
29
29
  "npm-profile": "^7.0.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@semantic-release/changelog": "^6.0.2",
32
+ "@semantic-release/changelog": "^6.0.3",
33
33
  "@semantic-release/git": "^10.0.1",
34
34
  "chai": "^4.3.7",
35
35
  "conventional-changelog-conventionalcommits": "^5.0.0",
36
36
  "mocha": "^10.2.0",
37
- "semantic-release": "^20.1.1"
37
+ "semantic-release": "^21.0.2"
38
38
  }
39
39
  }