builtin-modules 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,5 +36,7 @@
36
36
  "util",
37
37
  "v8",
38
38
  "vm",
39
+ "wasi",
40
+ "worker_threads",
39
41
  "zlib"
40
42
  ]
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
  const {builtinModules} = require('module');
3
3
 
4
- const blacklist = [
4
+ const ignoreList = [
5
5
  'sys'
6
6
  ];
7
7
 
8
8
  // eslint-disable-next-line node/no-deprecated-api
9
9
  module.exports = (builtinModules || Object.keys(process.binding('natives')))
10
- .filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !blacklist.includes(x))
10
+ .filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
11
11
  .sort();
package/license CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "builtin-modules",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "List of the Node.js builtin modules",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/builtin-modules",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
7
8
  "author": {
8
9
  "name": "Sindre Sorhus",
9
10
  "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
+ "url": "https://sindresorhus.com"
11
12
  },
12
13
  "engines": {
13
14
  "node": ">=6"
package/readme.md CHANGED
@@ -1,9 +1,8 @@
1
- # builtin-modules [![Build Status](https://travis-ci.org/sindresorhus/builtin-modules.svg?branch=master)](https://travis-ci.org/sindresorhus/builtin-modules)
1
+ # builtin-modules
2
2
 
3
3
  > List of the Node.js builtin modules
4
4
 
5
- The list is just a [JSON file](builtin-modules.json) and can be used wherever.
6
-
5
+ The list is just a [JSON file](builtin-modules.json) and can be used anywhere.
7
6
 
8
7
  ## Install
9
8
 
@@ -11,7 +10,6 @@ The list is just a [JSON file](builtin-modules.json) and can be used wherever.
11
10
  $ npm install builtin-modules
12
11
  ```
13
12
 
14
-
15
13
  ## Usage
16
14
 
17
15
  ```js
@@ -21,7 +19,6 @@ console.log(builtinModules);
21
19
  //=> ['assert', 'buffer', ...]
22
20
  ```
23
21
 
24
-
25
22
  ## API
26
23
 
27
24
  Returns an array of builtin modules fetched from the running Node.js version.
@@ -30,12 +27,18 @@ Returns an array of builtin modules fetched from the running Node.js version.
30
27
 
31
28
  This module also comes bundled with a static array of builtin modules generated from the latest Node.js version. You can get it with `require('builtin-modules/static');`
32
29
 
33
-
34
30
  ## Related
35
31
 
36
32
  - [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module
37
33
 
38
-
39
- ## License
40
-
41
- MIT © [Sindre Sorhus](https://sindresorhus.com)
34
+ ---
35
+
36
+ <div align="center">
37
+ <b>
38
+ <a href="https://tidelift.com/subscription/pkg/npm-builtin-modules?utm_source=npm-builtin-modules&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
39
+ </b>
40
+ <br>
41
+ <sub>
42
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
43
+ </sub>
44
+ </div>