Socket
Socket
Sign inDemoInstall

is-my-node-vulnerable

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

is-my-node-vulnerable - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

action.js

12

package.json
{
"name": "is-my-node-vulnerable",
"version": "1.1.0",
"version": "1.2.0",
"description": "package that checks if your Node.js installation is vulnerable to known security vulnerabilities",

@@ -14,2 +14,3 @@ "main": "index.js",

"scripts": {
"build": "ncc build action.js -o dist",
"test": "npm run lint && node test.js",

@@ -23,4 +24,10 @@ "lint": "standard"

},
"standard": {
"ignore": [
"dist/**"
]
},
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@pkgjs/nv": "^0.2.1",

@@ -33,4 +40,5 @@ "cli-color": "^2.0.3",

"devDependencies": {
"standard": "^17.0.0"
"standard": "^17.0.0",
"@vercel/ncc": "^0.36.1"
}
}

@@ -83,1 +83,23 @@ # is-my-node-vulnerable

[Node.js Security Database]: https://github.com/nodejs/security-wg/tree/main/vuln
## Github Action
This package also provide a Github Action, just include the `node-version` in the yml as follows in order to check an specific version:
```yml
name: "Node.js Vulnerabilities"
on:
schedule:
- cron: "0 0 * * *"
jobs:
is-my-node-vulnerable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Node.js
uses: RafaelGSS/is-my-node-vulnerable@v1.2.0
with:
node-version: "18.14.1"
```

@@ -10,2 +10,5 @@ const assert = require('assert')

assert.ok(await isNodeVulnerable('16.0.0'))
assert.ok(await isNodeVulnerable('19.6.0'))
assert.ok(await isNodeVulnerable('18.14.0'))
assert.ok(await isNodeVulnerable('16.19.0'))

@@ -12,0 +15,0 @@ assert.rejects(() => isNodeVulnerable('lts'), /not get exactly one version/)

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