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

libnpmversion

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmversion - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

2

lib/commit.js

@@ -13,3 +13,3 @@ const git = require('@npmcli/git')

args.push('-m')
return git.spawn(['commit', ...args, message.replace(/%s/g, version)], opts)
return git.spawn([...args, message.replace(/%s/g, version)], opts)
}

@@ -107,2 +107,4 @@ // called with all the options already set to their defaults

await runScript('postversion')
return newV
}
{
"name": "libnpmversion",
"version": "1.0.0",
"version": "1.0.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "files": [

@@ -29,4 +29,4 @@ # libnpmversion

message: 'v%s', // message for tag and commit, replace %s with the version
}).then(pkg => {
console.error('version updated!', pkg)
}).then(newVersion => {
console.error('version updated!', newVersion)
})

@@ -104,5 +104,5 @@ ```

### `npmVersion(newversion, options = {}) -> Promise`
### `npmVersion(newversion, options = {}) -> Promise<String>`
Do the things. Returns a promise that resolves to the package manifest if
Do the things. Returns a promise that resolves to the new version if
all is well, or rejects if any errors are encountered.

@@ -109,0 +109,0 @@

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