Socket
Socket
Sign inDemoInstall

is-core-module

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.3.0

15

CHANGELOG.md

@@ -8,2 +8,17 @@ # Changelog

## [v2.3.0](https://github.com/inspect-js/is-core-module/compare/v2.2.0...v2.3.0) - 2021-04-24
### Commits
- [meta] do not publish github action workflow files [`060d4bb`](https://github.com/inspect-js/is-core-module/commit/060d4bb971a29451c19ff336eb56bee27f9fa95a)
- [New] add support for `node:` prefix, in node 16+ [`7341223`](https://github.com/inspect-js/is-core-module/commit/73412230a769f6e81c05eea50b6520cebf54ed2f)
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`016269a`](https://github.com/inspect-js/is-core-module/commit/016269abae9f6657a5254adfbb813f09a05067f9)
- [patch] remove unneeded `.0` in version ranges [`cb466a6`](https://github.com/inspect-js/is-core-module/commit/cb466a6d89e52b8389e5c12715efcd550c41cea3)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`c9f9c39`](https://github.com/inspect-js/is-core-module/commit/c9f9c396ace60ef81906f98059c064e6452473ed)
- [actions] update workflows [`3ee4a89`](https://github.com/inspect-js/is-core-module/commit/3ee4a89fd5a02fccd43882d905448ea6a98e9a3c)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`dee4fed`](https://github.com/inspect-js/is-core-module/commit/dee4fed79690c1d43a22f7fa9426abebdc6d727f)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`7d046ba`](https://github.com/inspect-js/is-core-module/commit/7d046ba07ae8c9292e43652694ca808d7b309de8)
- [meta] use `prepublishOnly` script for npm 7+ [`149e677`](https://github.com/inspect-js/is-core-module/commit/149e6771a5ede6d097e71785b467a9c4b4977cc7)
- [readme] remove travis badge [`903b51d`](https://github.com/inspect-js/is-core-module/commit/903b51d6b69b98abeabfbc3695c345b02646f19c)
## [v2.2.0](https://github.com/inspect-js/is-core-module/compare/v2.1.0...v2.2.0) - 2020-11-26

@@ -10,0 +25,0 @@

85

core.json
{
"assert": true,
"node:assert": ">= 16",
"assert/strict": ">= 15",
"node:assert/strict": ">= 16",
"async_hooks": ">= 8",
"node:async_hooks": ">= 16",
"buffer_ieee754": "< 0.9.7",
"buffer": true,
"node:buffer": ">= 16",
"child_process": true,
"node:child_process": ">= 16",
"cluster": true,
"node:cluster": ">= 16",
"console": true,
"node:console": ">= 16",
"constants": true,
"node:constants": ">= 16",
"crypto": true,
"node:crypto": ">= 16",
"_debug_agent": ">= 1 && < 8",
"_debugger": "< 8",
"dgram": true,
"node:dgram": ">= 16",
"diagnostics_channel": ">= 15.1",
"node:diagnostics_channel": ">= 16",
"dns": true,
"node:dns": ">= 16",
"dns/promises": ">= 15",
"node:dns/promises": ">= 16",
"domain": ">= 0.7.12",
"node:domain": ">= 16",
"events": true,
"node:events": ">= 16",
"freelist": "< 6",
"fs": true,
"node:fs": ">= 16",
"fs/promises": [">= 10 && < 10.1", ">= 14"],
"node:fs/promises": ">= 16",
"_http_agent": ">= 0.11.1",
"node:_http_agent": ">= 16",
"_http_client": ">= 0.11.1",
"node:_http_client": ">= 16",
"_http_common": ">= 0.11.1",
"node:_http_common": ">= 16",
"_http_incoming": ">= 0.11.1",
"node:_http_incoming": ">= 16",
"_http_outgoing": ">= 0.11.1",
"node:_http_outgoing": ">= 16",
"_http_server": ">= 0.11.1",
"node:_http_server": ">= 16",
"http": true,
"node:http": ">= 16",
"http2": ">= 8.8",
"node:http2": ">= 16",
"https": true,
"inspector": ">= 8.0.0",
"node:https": ">= 16",
"inspector": ">= 8",
"node:inspector": ">= 16",
"_linklist": "< 8",
"module": true,
"node:module": ">= 16",
"net": true,
"node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
"node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
"node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
"node:net": ">= 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",
"path": true,
"node:path": ">= 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",
"process": ">= 1",
"node:process": ">= 16",
"punycode": true,
"node:punycode": ">= 16",
"querystring": true,
"node:querystring": ">= 16",
"readline": true,
"node:readline": ">= 16",
"repl": true,
"node:repl": ">= 16",
"smalloc": ">= 0.11.5 && < 3",
"_stream_duplex": ">= 0.9.4",
"node:_stream_duplex": ">= 16",
"_stream_transform": ">= 0.9.4",
"node:_stream_transform": ">= 16",
"_stream_wrap": ">= 1.4.1",
"node:_stream_wrap": ">= 16",
"_stream_passthrough": ">= 0.9.4",
"node:_stream_passthrough": ">= 16",
"_stream_readable": ">= 0.9.4",
"node:_stream_readable": ">= 16",
"_stream_writable": ">= 0.9.4",
"node:_stream_writable": ">= 16",
"stream": true,
"node:stream": ">= 16",
"stream/promises": ">= 15",
"node:stream/promises": ">= 16",
"string_decoder": true,
"node:string_decoder": ">= 16",
"sys": [">= 0.6 && < 0.7", ">= 0.8"],
"node:sys": ">= 16",
"timers": true,
"node:timers": ">= 16",
"timers/promises": ">= 15",
"node:timers/promises": ">= 16",
"_tls_common": ">= 0.11.13",
"node:_tls_common": ">= 16",
"_tls_legacy": ">= 0.11.3 && < 10",
"_tls_wrap": ">= 0.11.3",
"node:_tls_wrap": ">= 16",
"tls": true,
"node:tls": ">= 16",
"trace_events": ">= 10",
"node:trace_events": ">= 16",
"tty": true,
"node:tty": ">= 16",
"url": true,
"node:url": ">= 16",
"util": true,
"node:util": ">= 16",
"util/types": ">= 15.3",
"node:util/types": ">= 16",
"v8/tools/arguments": ">= 10 && < 12",
"v8/tools/codemap": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/consarray": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/csvparser": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/logreader": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/profile_view": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/splaytree": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 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",
"vm": true,
"node:vm": ">= 16",
"wasi": ">= 13.4 && < 13.5",
"worker_threads": ">= 11.7",
"zlib": true
"node:worker_threads": ">= 16",
"zlib": true,
"node:zlib": ">= 16"
}

14

package.json
{
"name": "is-core-module",
"version": "2.2.0",
"version": "2.3.0",
"description": "Is this specifier a node.js core module?",

@@ -16,3 +16,4 @@ "main": "index.js",

"scripts": {
"prepublish": "safe-publish-latest",
"prepublish": "not-ib-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint .",

@@ -51,9 +52,10 @@ "pretest": "npm run lint",

"devDependencies": {
"@ljharb/eslint-config": "^17.3.0",
"aud": "^1.1.3",
"@ljharb/eslint-config": "^17.5.1",
"aud": "^1.1.4",
"auto-changelog": "^2.2.1",
"eslint": "^7.14.0",
"eslint": "^7.25.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
"semver": "^6.3.0",
"tape": "^5.2.2"
},

@@ -60,0 +62,0 @@ "auto-changelog": {

# is-core-module <sup>[![Version Badge][2]][1]</sup>
[![Build Status][3]][4]
[![dependency status][5]][6]

@@ -27,4 +26,2 @@ [![dev dependency status][7]][8]

[2]: https://versionbadg.es/inspect-js/is-core-module.svg
[3]: https://travis-ci.com/inspect-js/is-core-module.svg
[4]: https://travis-ci.com/inspect-js/is-core-module
[5]: https://david-dm.org/inspect-js/is-core-module.svg

@@ -31,0 +28,0 @@ [6]: https://david-dm.org/inspect-js/is-core-module

@@ -5,5 +5,8 @@ 'use strict';

var keys = require('object-keys');
var semver = require('semver');
var isCore = require('../');
var data = require('../core.json');
var supportsNodePrefix = semver.satisfies(process.versions.node, '>= 16');
test('core modules', function (t) {

@@ -52,2 +55,13 @@ t.test('isCore()', function (st) {

);
if (supportsNodePrefix) {
st.doesNotThrow(
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
'requiring node:' + mod + ' does not throw'
);
} else {
st['throws'](
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
'requiring node:' + mod + ' throws'
);
}
}

@@ -78,2 +92,13 @@ }

);
if (supportsNodePrefix) {
st.doesNotThrow(
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
'requiring node:' + mod + ' does not throw'
);
} else {
st['throws'](
function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
'requiring node:' + mod + ' throws'
);
}
}

@@ -80,0 +105,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc