Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 29, 2022
1 parent e3e4319 commit 3da4797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const semver = require('semver')

const coreModules = [
const permanentModules = [
'assert',
'buffer',
'child_process',
Expand Down Expand Up @@ -56,7 +56,7 @@ const experimentalModules = {
}

module.exports = ({ version = process.version, experimental = false } = {}) => {
const builtins = [...coreModules]
const builtins = [...permanentModules]

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

0 comments on commit 3da4797

Please sign in to comment.