Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

auto-dist-tag

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-dist-tag - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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;
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc