Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-09-27 19:31:42 +0300
committerGar <gar+gh@danger.computer>2021-09-27 19:31:42 +0300
commit69ab10bbf83d42a5d3b5d3f43e5e5b861f3dfed0 (patch)
treefd2fe47278c8d79116ff5253eb47e9189eec4bcc /node_modules
parent6ae8cbe7ed70c17b121bd9ea42f8d8af11823c18 (diff)
deps: is-core-module@2.7.0
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/is-core-module/core.json112
-rw-r--r--node_modules/is-core-module/package.json5
-rw-r--r--node_modules/is-core-module/test/index.js22
3 files changed, 81 insertions, 58 deletions
diff --git a/node_modules/is-core-module/core.json b/node_modules/is-core-module/core.json
index ec741dd94..5cd90d173 100644
--- a/node_modules/is-core-module/core.json
+++ b/node_modules/is-core-module/core.json
@@ -1,105 +1,105 @@
{
"assert": true,
- "node:assert": ">= 16",
+ "node:assert": [">= 14.18 && < 15", ">= 16"],
"assert/strict": ">= 15",
"node:assert/strict": ">= 16",
"async_hooks": ">= 8",
- "node:async_hooks": ">= 16",
+ "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
"buffer_ieee754": "< 0.9.7",
"buffer": true,
- "node:buffer": ">= 16",
+ "node:buffer": [">= 14.18 && < 15", ">= 16"],
"child_process": true,
- "node:child_process": ">= 16",
+ "node:child_process": [">= 14.18 && < 15", ">= 16"],
"cluster": true,
- "node:cluster": ">= 16",
+ "node:cluster": [">= 14.18 && < 15", ">= 16"],
"console": true,
- "node:console": ">= 16",
+ "node:console": [">= 14.18 && < 15", ">= 16"],
"constants": true,
- "node:constants": ">= 16",
+ "node:constants": [">= 14.18 && < 15", ">= 16"],
"crypto": true,
- "node:crypto": ">= 16",
+ "node:crypto": [">= 14.18 && < 15", ">= 16"],
"_debug_agent": ">= 1 && < 8",
"_debugger": "< 8",
"dgram": true,
- "node:dgram": ">= 16",
+ "node:dgram": [">= 14.18 && < 15", ">= 16"],
"diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
- "node:diagnostics_channel": ">= 16",
+ "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
"dns": true,
- "node:dns": ">= 16",
+ "node:dns": [">= 14.18 && < 15", ">= 16"],
"dns/promises": ">= 15",
"node:dns/promises": ">= 16",
"domain": ">= 0.7.12",
- "node:domain": ">= 16",
+ "node:domain": [">= 14.18 && < 15", ">= 16"],
"events": true,
- "node:events": ">= 16",
+ "node:events": [">= 14.18 && < 15", ">= 16"],
"freelist": "< 6",
"fs": true,
- "node:fs": ">= 16",
+ "node:fs": [">= 14.18 && < 15", ">= 16"],
"fs/promises": [">= 10 && < 10.1", ">= 14"],
- "node:fs/promises": ">= 16",
+ "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
"_http_agent": ">= 0.11.1",
- "node:_http_agent": ">= 16",
+ "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
"_http_client": ">= 0.11.1",
- "node:_http_client": ">= 16",
+ "node:_http_client": [">= 14.18 && < 15", ">= 16"],
"_http_common": ">= 0.11.1",
- "node:_http_common": ">= 16",
+ "node:_http_common": [">= 14.18 && < 15", ">= 16"],
"_http_incoming": ">= 0.11.1",
- "node:_http_incoming": ">= 16",
+ "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
"_http_outgoing": ">= 0.11.1",
- "node:_http_outgoing": ">= 16",
+ "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
"_http_server": ">= 0.11.1",
- "node:_http_server": ">= 16",
+ "node:_http_server": [">= 14.18 && < 15", ">= 16"],
"http": true,
- "node:http": ">= 16",
+ "node:http": [">= 14.18 && < 15", ">= 16"],
"http2": ">= 8.8",
- "node:http2": ">= 16",
+ "node:http2": [">= 14.18 && < 15", ">= 16"],
"https": true,
- "node:https": ">= 16",
+ "node:https": [">= 14.18 && < 15", ">= 16"],
"inspector": ">= 8",
- "node:inspector": ">= 16",
+ "node:inspector": [">= 14.18 && < 15", ">= 16"],
"_linklist": "< 8",
"module": true,
- "node:module": ">= 16",
+ "node:module": [">= 14.18 && < 15", ">= 16"],
"net": true,
- "node:net": ">= 16",
+ "node:net": [">= 14.18 && < 15", ">= 16"],
"node-inspect/lib/_inspect": ">= 7.6 && < 12",
"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
"os": true,
- "node:os": ">= 16",
+ "node:os": [">= 14.18 && < 15", ">= 16"],
"path": true,
- "node:path": ">= 16",
+ "node:path": [">= 14.18 && < 15", ">= 16"],
"path/posix": ">= 15.3",
"node:path/posix": ">= 16",
"path/win32": ">= 15.3",
"node:path/win32": ">= 16",
"perf_hooks": ">= 8.5",
- "node:perf_hooks": ">= 16",
+ "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
"process": ">= 1",
- "node:process": ">= 16",
+ "node:process": [">= 14.18 && < 15", ">= 16"],
"punycode": true,
- "node:punycode": ">= 16",
+ "node:punycode": [">= 14.18 && < 15", ">= 16"],
"querystring": true,
- "node:querystring": ">= 16",
+ "node:querystring": [">= 14.18 && < 15", ">= 16"],
"readline": true,
- "node:readline": ">= 16",
+ "node:readline": [">= 14.18 && < 15", ">= 16"],
"repl": true,
- "node:repl": ">= 16",
+ "node:repl": [">= 14.18 && < 15", ">= 16"],
"smalloc": ">= 0.11.5 && < 3",
"_stream_duplex": ">= 0.9.4",
- "node:_stream_duplex": ">= 16",
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
"_stream_transform": ">= 0.9.4",
- "node:_stream_transform": ">= 16",
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
"_stream_wrap": ">= 1.4.1",
- "node:_stream_wrap": ">= 16",
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
"_stream_passthrough": ">= 0.9.4",
- "node:_stream_passthrough": ">= 16",
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
"_stream_readable": ">= 0.9.4",
- "node:_stream_readable": ">= 16",
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
"_stream_writable": ">= 0.9.4",
- "node:_stream_writable": ">= 16",
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
"stream": true,
- "node:stream": ">= 16",
+ "node:stream": [">= 14.18 && < 15", ">= 16"],
"stream/consumers": ">= 16.7",
"node:stream/consumers": ">= 16.7",
"stream/promises": ">= 15",
@@ -107,28 +107,28 @@
"stream/web": ">= 16.5",
"node:stream/web": ">= 16.5",
"string_decoder": true,
- "node:string_decoder": ">= 16",
+ "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
"sys": [">= 0.6 && < 0.7", ">= 0.8"],
- "node:sys": ">= 16",
+ "node:sys": [">= 14.18 && < 15", ">= 16"],
"timers": true,
- "node:timers": ">= 16",
+ "node:timers": [">= 14.18 && < 15", ">= 16"],
"timers/promises": ">= 15",
"node:timers/promises": ">= 16",
"_tls_common": ">= 0.11.13",
- "node:_tls_common": ">= 16",
+ "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
"_tls_legacy": ">= 0.11.3 && < 10",
"_tls_wrap": ">= 0.11.3",
- "node:_tls_wrap": ">= 16",
+ "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
"tls": true,
- "node:tls": ">= 16",
+ "node:tls": [">= 14.18 && < 15", ">= 16"],
"trace_events": ">= 10",
- "node:trace_events": ">= 16",
+ "node:trace_events": [">= 14.18 && < 15", ">= 16"],
"tty": true,
- "node:tty": ">= 16",
+ "node:tty": [">= 14.18 && < 15", ">= 16"],
"url": true,
- "node:url": ">= 16",
+ "node:url": [">= 14.18 && < 15", ">= 16"],
"util": true,
- "node:util": ">= 16",
+ "node:util": [">= 14.18 && < 15", ">= 16"],
"util/types": ">= 15.3",
"node:util/types": ">= 16",
"v8/tools/arguments": ">= 10 && < 12",
@@ -139,12 +139,12 @@
"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
"v8": ">= 1",
- "node:v8": ">= 16",
+ "node:v8": [">= 14.18 && < 15", ">= 16"],
"vm": true,
- "node:vm": ">= 16",
+ "node:vm": [">= 14.18 && < 15", ">= 16"],
"wasi": ">= 13.4 && < 13.5",
"worker_threads": ">= 11.7",
- "node:worker_threads": ">= 16",
+ "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
"zlib": true,
- "node:zlib": ">= 16"
+ "node:zlib": [">= 14.18 && < 15", ">= 16"]
}
diff --git a/node_modules/is-core-module/package.json b/node_modules/is-core-module/package.json
index a12bd4889..2b58b2332 100644
--- a/node_modules/is-core-module/package.json
+++ b/node_modules/is-core-module/package.json
@@ -1,8 +1,9 @@
{
"name": "is-core-module",
- "version": "2.6.0",
+ "version": "2.7.0",
"description": "Is this specifier a node.js core module?",
"main": "index.js",
+ "sideEffects": false,
"exports": {
".": [
{
@@ -48,7 +49,7 @@
"has": "^1.0.3"
},
"devDependencies": {
- "@ljharb/eslint-config": "^17.6.0",
+ "@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^7.32.0",
diff --git a/node_modules/is-core-module/test/index.js b/node_modules/is-core-module/test/index.js
index 59a0055e7..392678e85 100644
--- a/node_modules/is-core-module/test/index.js
+++ b/node_modules/is-core-module/test/index.js
@@ -104,5 +104,27 @@ test('core modules', function (t) {
st.end();
});
+ t.test('Object.prototype pollution', function (st) {
+ /* eslint no-extend-native: 1 */
+ var nonKey = 'not a core module';
+ st.teardown(function () {
+ delete Object.prototype.fs;
+ delete Object.prototype.path;
+ delete Object.prototype.http;
+ delete Object.prototype[nonKey];
+ });
+ Object.prototype.fs = false;
+ Object.prototype.path = '>= 999999999';
+ Object.prototype.http = data.http;
+ Object.prototype[nonKey] = true;
+
+ st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
+ st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
+ st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
+ st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
+
+ st.end();
+ });
+
t.end();
});