auto-dist-tag
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "auto-dist-tag", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Automatically rewrites the publishConfig.tag setting in your package.json file for you", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Turbo87/auto-dist-tag#readme", |
@@ -32,5 +32,6 @@ auto-dist-tag | ||
`auto-dist-tag` will automatically figure out what the best `dist-tag` is based | ||
on the `version` property in your `package.json` file and the previously | ||
published versions unless you explicitly specify a tag yourself. | ||
`auto-dist-tag` will automatically figure out what the best | ||
[`dist-tag`](https://docs.npmjs.com/cli/dist-tag) is based on the `version` | ||
property in your `package.json` file and the previously published versions | ||
unless you explicitly specify a tag yourself. | ||
@@ -37,0 +38,0 @@ Have a look at our [tests](test/calc-dist-tag-test.js) to figure out what |
@@ -7,3 +7,10 @@ 'use strict'; | ||
return packageJson(packageName, { allVersions: true }) | ||
.then(json => json['dist-tags']); | ||
.then(json => json['dist-tags']) | ||
.catch(error => { | ||
if (error && error.message === `Package \`${packageName}\` doesn't exist`) { | ||
return {}; | ||
} | ||
throw error; | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43218
159
58