Socket
Socket
Sign inDemoInstall

builtins

Package Overview
Dependencies
3
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1 to 5.1.0

6

index.js
'use strict'
const semver = require('semver')
const satisfies = require('semver/functions/satisfies')

@@ -63,3 +63,3 @@ const permanentModules = [

for (const [name, semverRange] of Object.entries(versionLockedModules)) {
if (version === '*' || semver.satisfies(version, semverRange)) {
if (version === '*' || satisfies(version, semverRange)) {
builtins.push(name)

@@ -73,3 +73,3 @@ }

!builtins.includes(name) &&
(version === '*' || semver.satisfies(version, semverRange))
(version === '*' || satisfies(version, semverRange))
) {

@@ -76,0 +76,0 @@ builtins.push(name)

{
"name": "builtins",
"version": "5.0.1",
"version": "5.1.0",
"description": "List of node.js builtin modules",

@@ -10,3 +10,3 @@ "repository": "juliangruber/builtins",

"scripts": {
"test": "prettier-standard && standard && node-core-test"
"test": "standard --fix && node--test"
},

@@ -17,6 +17,5 @@ "dependencies": {

"devDependencies": {
"node-core-test": "^1.4.0",
"prettier-standard": "^15.0.1",
"standard": "^14.3.4"
"standard": "^17.0.0",
"test": "^3.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc