Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Apr 9, 2024
1 parent 7546b56 commit 4af9e86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions node_modules/builtins/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const semver = require('semver')
const satisfies = require('semver/functions/satisfies')

const permanentModules = [
'assert',
Expand Down Expand Up @@ -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)
}
}
Expand All @@ -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)
}
Expand Down
9 changes: 4 additions & 5 deletions node_modules/builtins/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
6 changes: 3 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4af9e86

Please sign in to comment.