From 4af9e863d1a3ad4a934315113745bad4f3c29bb0 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 9 Apr 2024 12:06:33 -0700 Subject: [PATCH] deps: builtins@5.1.0 --- node_modules/builtins/index.js | 6 +++--- node_modules/builtins/package.json | 9 ++++----- package-lock.json | 6 +++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/node_modules/builtins/index.js b/node_modules/builtins/index.js index b715278437cbc..01d23876aae32 100644 --- a/node_modules/builtins/index.js +++ b/node_modules/builtins/index.js @@ -1,6 +1,6 @@ 'use strict' -const semver = require('semver') +const satisfies = require('semver/functions/satisfies') const permanentModules = [ 'assert', @@ -60,7 +60,7 @@ module.exports = ({ version = process.version, experimental = false } = {}) => { const builtins = [...permanentModules] for (const [name, semverRange] of Object.entries(versionLockedModules)) { - if (version === '*' || semver.satisfies(version, semverRange)) { + if (version === '*' || satisfies(version, semverRange)) { builtins.push(name) } } @@ -69,7 +69,7 @@ module.exports = ({ version = process.version, experimental = false } = {}) => { for (const [name, semverRange] of Object.entries(experimentalModules)) { if ( !builtins.includes(name) && - (version === '*' || semver.satisfies(version, semverRange)) + (version === '*' || satisfies(version, semverRange)) ) { builtins.push(name) } diff --git a/node_modules/builtins/package.json b/node_modules/builtins/package.json index 1c43660c7483f..d37e02e076818 100644 --- a/node_modules/builtins/package.json +++ b/node_modules/builtins/package.json @@ -1,20 +1,19 @@ { "name": "builtins", - "version": "5.0.1", + "version": "5.1.0", "description": "List of node.js builtin modules", "repository": "juliangruber/builtins", "license": "MIT", "main": "index.js", "files": [], "scripts": { - "test": "prettier-standard && standard && node-core-test" + "test": "standard --fix && node--test" }, "dependencies": { "semver": "^7.0.0" }, "devDependencies": { - "node-core-test": "^1.4.0", - "prettier-standard": "^15.0.1", - "standard": "^14.3.4" + "standard": "^17.0.0", + "test": "^3.0.0" } } diff --git a/package-lock.json b/package-lock.json index cab633e929cfd..0857f1bdbddde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3035,9 +3035,9 @@ "dev": true }, "node_modules/builtins": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", - "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz", + "integrity": "sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==", "inBundle": true, "dependencies": { "semver": "^7.0.0"