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

@semantic-release/last-release-npm

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-release/last-release-npm - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

package.json
{
"name": "@semantic-release/last-release-npm",
"version": "1.1.0",
"description": "determine the version of the last release via the npm registry",

@@ -19,3 +18,3 @@ "author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",

"@semantic-release/error": "^1.0.0",
"npm-registry-client": "^6.5.1",
"npm-registry-client": "^7.0.1",
"npmlog": "^1.2.1"

@@ -32,3 +31,3 @@ },

"semantic-release": "^4.0.3",
"standard": "^4.2.1",
"standard": "^5.1.0",
"tap": "^1.3.2"

@@ -62,3 +61,4 @@ },

"test:suite": "nyc tap --no-cov .test/specs/*.js"
}
}
},
"version": "1.1.1"
}

@@ -29,1 +29,3 @@ const nock = require('nock')

.reply(404, {})
.get('/unavailable-no-body')
.reply(404)

@@ -9,3 +9,4 @@ const { defaults } = require('lodash')

registry: 'http://registry.npmjs.org/',
tag: 'latest'
tag: 'latest',
loglevel: 'error'
}

@@ -70,2 +71,4 @@

t.test('get nothing from not yet published package name', (tt) => {
tt.plan(4)
lastRelease({}, {

@@ -77,6 +80,12 @@ pkg: {name: 'unavailable'},

tt.is(release.version, undefined, 'no version')
})
tt.end()
lastRelease({}, {
pkg: {name: 'unavailable-no-body'},
npm
}, (err, release) => {
tt.error(err)
tt.is(release.version, undefined, 'no version')
})
})
})
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