Socket
Socket
Sign inDemoInstall

semantic-release

Package Overview
Dependencies
Maintainers
1
Versions
408
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "semantic-release",
"description": "semantic semver compliant package publishing",
"version": "1.1.0",
"version": "1.1.1",
"author": "Stephan Bönnemann <stephan@boennemann.me>",

@@ -6,0 +6,0 @@ "bin": "./bin/semantic-release",

@@ -20,3 +20,3 @@ # semantic-release

"scripts": {
"prepublish": "semantic-release pre"
"prepublish": "semantic-release pre",
"postpublish": "semantic-release post"

@@ -23,0 +23,0 @@ }

@@ -5,3 +5,3 @@ 'use strict'

module.exports = function () {
var exports = module.exports = function (cb) {
// npm loads package.json data before running the `prepublish` hook

@@ -14,5 +14,19 @@ // changing the version on `prepublish` has no effect

var child = spawn('npm', ['publish', '--semantic-release-rerun'])
var handler = exports.handleCloseAndExit.bind(null, cb)
child.stdout.pipe(process.stdout)
child.stderr.pipe(process.stderr)
child.on('close', handler)
child.on('exit', handler)
child.on('error', cb)
}
exports.handleCloseAndExit = function (cb, code, signal) {
if (code === 0) return cb(null)
cb({
code: code,
signal: signal,
message: 'npm publish failed'
})
}

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