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

npm-install-checks

Package Overview
Dependencies
Maintainers
9
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-install-checks - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

.nyc_output/0fd7c2130a17f3f9ae82e8ec24d37485.json

5

index.js

@@ -10,5 +10,6 @@ var fs = require('fs')

var eng = target.engines
var opt = { includePrerelease: true }
if (!eng) return cb()
if (nodev && eng.node && !semver.satisfies(nodev, eng.node) ||
eng.npm && !semver.satisfies(npmVer, eng.npm)) {
if (nodev && eng.node && !semver.satisfies(nodev, eng.node, opt) ||
eng.npm && !semver.satisfies(npmVer, eng.npm, opt)) {
var er = new Error(util.format('Unsupported engine for %s: wanted: %j (current: %j)',

@@ -15,0 +16,0 @@ target._id, eng, {node: nodev, npm: npmVer}))

8

package.json
{
"name": "npm-install-checks",
"version": "3.0.0",
"version": "3.0.1",
"description": "checks that npm runs during the installation of a module",

@@ -10,6 +10,6 @@ "main": "index.js",

"devDependencies": {
"mkdirp": "~0.3.5",
"rimraf": "~2.2.5",
"mkdirp": "^0.5.1",
"rimraf": "^2.6.3",
"standard": "^5.4.1",
"tap": "^5.0.1"
"tap": "^12.4.0"
},

@@ -16,0 +16,0 @@ "scripts": {

@@ -63,1 +63,10 @@ var test = require('tap').test

})
test('npm prerelease', function (t) {
var target = { engines: { node: '>=0.8', npm: '>=1.2.3' } }
c(target, '69.420.0-yolo', '69.420.0-yolo', true, true, function (err, warn) {
t.notOk(err, 'returns no error')
t.notOk(warn, 'returns no warning')
t.end()
})
})
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