New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chatie/semver

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatie/semver - npm Package Compare versions

Comparing version 0.4.2 to 0.4.5

4

bin/semver-is-prod.ts

@@ -18,7 +18,7 @@ #!/usr/bin/env node

if (semver.isProd) {
console.info(`${version} is production release`)
console.info(`YES: ${version} is production release`)
process.exit(0)
} else {
console.info(`${version} is development release`)
console.info(`NO: ${version} is development release`)
process.exit(1)
}

@@ -14,9 +14,9 @@ #!/usr/bin/env node

if (semver.isProd) {
console.info(`${version} is production release`);
console.info(`YES: ${version} is production release`);
process.exit(0);
}
else {
console.info(`${version} is development release`);
console.info(`NO: ${version} is development release`);
process.exit(1);
}
//# sourceMappingURL=semver-is-prod.js.map
{
"name": "@chatie/semver",
"version": "0.4.2",
"version": "0.4.5",
"description": "The Enhanced Semantic Versioner for NPM",

@@ -36,3 +36,2 @@ "main": "dist/src/index.js",

"bin": {
"semver-is-dev": "dist/bin/semver-is-dev.js",
"semver-is-prod": "dist/bin/semver-is-prod.js"

@@ -39,0 +38,0 @@ },

@@ -45,2 +45,3 @@ # @chatie/semver

1. remove binary `semver-is-dev` because it might introduce bugs when using in devops. Use `semver-is-prod` instead.

@@ -47,0 +48,0 @@ ### v0.2 June 09, 2019

@@ -29,7 +29,5 @@ #!/usr/bin/env ts-node

const isProd = exec(`npx semver-is-prod ${version} > /dev/null`).code === 0
const isDev = exec(`npx semver-is-dev ${version} > /dev/null`).code === 0
t.equal(isProd, prod, `version/prod should match: ${version} -> ${prod}`)
t.equal(isDev, !prod, `version/dev should match: ${version} -> ${!prod}`)
}
})

@@ -23,2 +23,1 @@ #!/usr/bin/env ts-node

})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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