Socket
Socket
Sign inDemoInstall

standard-version

Package Overview
Dependencies
168
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0-candidate.1 to 4.1.0-candidate.2

4

lib/lifecycles/bump.js

@@ -20,3 +20,3 @@ const chalk = require('chalk')

var newVersion = pkg.version
return runLifecycleScript(args, 'prebump', null)
return runLifecycleScript(args, 'prebump')
.then((stdout) => {

@@ -36,3 +36,3 @@ if (stdout && stdout.trim().length) args.releaseAs = stdout.trim()

.then(() => {
return runLifecycleScript(args, 'postbump', newVersion, args)
return runLifecycleScript(args, 'postbump')
})

@@ -39,0 +39,0 @@ .then(() => {

@@ -11,3 +11,3 @@ const accessSync = require('fs-access').sync

if (args.skip.changelog) return Promise.resolve()
return runLifecycleScript(args, 'prechangelog', newVersion, args)
return runLifecycleScript(args, 'prechangelog')
.then(() => {

@@ -17,3 +17,3 @@ return outputChangelog(args, newVersion)

.then(() => {
return runLifecycleScript(args, 'postchangelog', newVersion, args)
return runLifecycleScript(args, 'postchangelog')
})

@@ -20,0 +20,0 @@ }

@@ -10,3 +10,3 @@ const bump = require('../lifecycles/bump')

if (args.skip.commit) return Promise.resolve()
return runLifecycleScript(args, 'precommit', newVersion, args)
return runLifecycleScript(args, 'precommit')
.then((message) => {

@@ -17,3 +17,3 @@ if (message && message.length) args.message = message

.then(() => {
return runLifecycleScript(args, 'postcommit', newVersion, args)
return runLifecycleScript(args, 'postcommit')
})

@@ -20,0 +20,0 @@ }

@@ -10,3 +10,3 @@ const chalk = require('chalk')

if (args.skip.tag) return Promise.resolve()
return runLifecycleScript(args, 'pretag', newVersion, args)
return runLifecycleScript(args, 'pretag')
.then(() => {

@@ -16,3 +16,3 @@ return execTag(newVersion, pkgPrivate, args)

.then(() => {
return runLifecycleScript(args, 'posttag', newVersion, args)
return runLifecycleScript(args, 'posttag')
})

@@ -19,0 +19,0 @@ }

@@ -6,7 +6,6 @@ const chalk = require('chalk')

module.exports = function (args, hookName, newVersion) {
module.exports = function (args, hookName) {
const scripts = args.scripts
if (!scripts || !scripts[hookName]) return Promise.resolve()
var command = scripts[hookName]
if (newVersion) command += ' --new-version="' + newVersion + '"'
checkpoint(args, 'Running lifecycle script "%s"', [hookName])

@@ -13,0 +12,0 @@ checkpoint(args, '- execute command: "%s"', [command], chalk.blue(figures.info))

{
"name": "standard-version",
"version": "4.1.0-candidate.1",
"version": "4.1.0-candidate.2",
"description": "replacement for `npm version` with automatic CHANGELOG generation",

@@ -5,0 +5,0 @@ "bin": "bin/cli.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc