step-node-agent 3.18.5 → 3.20.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.
- package/node_modules/body-parser/HISTORY.md +6 -0
- package/node_modules/body-parser/README.md +1 -1
- package/node_modules/body-parser/index.js +8 -9
- package/node_modules/body-parser/package.json +8 -8
- package/node_modules/capture-stack-trace/license +2 -1
- package/node_modules/capture-stack-trace/package.json +28 -27
- package/node_modules/capture-stack-trace/readme.md +1 -5
- package/node_modules/duplexer3/license +10 -0
- package/node_modules/duplexer3/package.json +25 -26
- package/node_modules/duplexer3/{README.md → readme.md} +25 -41
- package/node_modules/express/History.md +9 -0
- package/node_modules/express/Readme.md +2 -2
- package/node_modules/express/lib/router/route.js +8 -8
- package/node_modules/express/package.json +7 -7
- package/node_modules/get-intrinsic/CHANGELOG.md +7 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +7 -4
- package/node_modules/is-callable/.editorconfig +5 -0
- package/node_modules/is-callable/.eslintrc +0 -11
- package/node_modules/is-callable/CHANGELOG.md +50 -0
- package/node_modules/is-callable/README.md +16 -0
- package/node_modules/is-callable/index.js +35 -8
- package/node_modules/is-callable/package.json +27 -13
- package/node_modules/is-callable/test/index.js +86 -12
- package/node_modules/is-core-module/CHANGELOG.md +7 -0
- package/node_modules/is-core-module/core.json +1 -1
- package/node_modules/is-core-module/package.json +1 -1
- package/node_modules/is-core-module/test/index.js +1 -1
- package/node_modules/minimist/.eslintrc +54 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +212 -0
- package/node_modules/minimist/{readme.markdown → README.md} +20 -1
- package/node_modules/minimist/package.json +39 -9
- package/node_modules/psl/.env +0 -0
- package/node_modules/psl/README.md +1 -5
- package/node_modules/psl/data/rules.json +718 -176
- package/node_modules/psl/dist/psl.js +720 -178
- package/node_modules/psl/dist/psl.min.js +1 -1
- package/node_modules/psl/package.json +16 -17
- package/node_modules/qs/.editorconfig +3 -0
- package/node_modules/qs/.eslintrc +5 -5
- package/node_modules/qs/CHANGELOG.md +158 -0
- package/node_modules/qs/README.md +3 -1
- package/node_modules/qs/dist/qs.js +19 -9
- package/node_modules/qs/lib/stringify.js +12 -3
- package/node_modules/qs/package.json +16 -12
- package/node_modules/qs/test/parse.js +14 -0
- package/node_modules/qs/test/stringify.js +54 -10
- package/node_modules/resolve/lib/async.js +1 -1
- package/node_modules/resolve/lib/core.json +1 -0
- package/node_modules/resolve/lib/sync.js +1 -1
- package/node_modules/resolve/package.json +14 -5
- package/node_modules/resolve/test/core.js +8 -1
- package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/node_modules/resolve/test/resolver.js +49 -0
- package/node_modules/resolve/test/resolver_sync.js +82 -1
- package/node_modules/underscore/amd/_set.js +21 -0
- package/node_modules/underscore/amd/_setup.js +1 -1
- package/node_modules/underscore/amd/set.js +15 -0
- package/node_modules/underscore/cjs/_set.js +21 -0
- package/node_modules/underscore/cjs/_setup.js +1 -1
- package/node_modules/underscore/cjs/set.js +15 -0
- package/node_modules/underscore/modules/_setup.js +1 -1
- package/node_modules/underscore/modules/index.js +1 -1
- package/node_modules/underscore/modules/package.json +1 -1
- package/node_modules/underscore/package.json +12 -10
- package/node_modules/underscore/underscore-esm-min.js +2 -2
- package/node_modules/underscore/underscore-esm.js +2 -2
- package/node_modules/underscore/underscore-min.js +2 -2
- package/node_modules/underscore/underscore-node-f.cjs +2 -2
- package/node_modules/underscore/underscore-node.cjs +1 -1
- package/node_modules/underscore/underscore-node.mjs +1 -1
- package/node_modules/underscore/underscore-umd-min.js +2 -2
- package/node_modules/underscore/underscore-umd.js +2 -2
- package/node_modules/underscore/underscore.js +2 -2
- package/package.json +1 -1
- package/node_modules/duplexer3/LICENSE.md +0 -26
- package/node_modules/is-callable/.eslintignore +0 -1
- package/node_modules/is-callable/.istanbul.yml +0 -47
- package/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/path-exists/index.js +0 -17
- package/node_modules/path-exists/license +0 -21
- package/node_modules/path-exists/package.json +0 -40
- package/node_modules/path-exists/readme.md +0 -50
- package/node_modules/resolve/appveyor.yml +0 -76
|
@@ -11,6 +11,22 @@
|
|
|
11
11
|
|
|
12
12
|
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
|
|
13
13
|
|
|
14
|
+
## Supported engines
|
|
15
|
+
Automatically tested in every minor version of node.
|
|
16
|
+
|
|
17
|
+
Manually tested in:
|
|
18
|
+
- Safari: v4 - v15 <sub>(4, 5, 5.1, 6.0.5, 6.2, 7.1, 8, 9.1.3, 10.1.2, 11.1.2, 12.1, 13.1.2, 14.1.2, 15.3, 15.6.1)</sub>
|
|
19
|
+
- Note: Safari 9 has `class`, but `Function.prototype.toString` hides that progeny and makes them look like functions, so `class` constructors will be reported by this package as callable, when they are not in fact callable.
|
|
20
|
+
- Chrome: v15 - v81, v83 - v106<sub>(every integer version)</sub>
|
|
21
|
+
- Note: This includes Edge v80+ and Opera v15+, which matches Chrome
|
|
22
|
+
- Firefox: v3, v3.6, v4 - v105 <sub>(every integer version)</sub>
|
|
23
|
+
- Note: v45 - v54 has `class`, but `Function.prototype.toString` hides that progeny and makes them look like functions, so `class` constructors will be reported by this package as callable, when they are not in fact callable.
|
|
24
|
+
- Note: in v42 - v63, `Function.prototype.toString` throws on HTML element constructors, or a Proxy to a function
|
|
25
|
+
- Note: in v20 - v35, HTML element constructors are not callable, despite having typeof `function`.
|
|
26
|
+
- Note: in v19, `document.all` is not callable.
|
|
27
|
+
- IE: v6 - v11<sub>(every integer version</sub>
|
|
28
|
+
- Opera: v11.1, v11.5, v11.6, v12.1, v12.14, v12.15, v12.16, v15+ <sub>v15+ matches Chrome</sub>
|
|
29
|
+
|
|
14
30
|
## Example
|
|
15
31
|
|
|
16
32
|
```js
|
|
@@ -43,32 +43,59 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
var toStr = Object.prototype.toString;
|
|
46
|
+
var objectClass = '[object Object]';
|
|
46
47
|
var fnClass = '[object Function]';
|
|
47
48
|
var genClass = '[object GeneratorFunction]';
|
|
49
|
+
var ddaClass = '[object HTMLAllCollection]'; // IE 11
|
|
50
|
+
var ddaClass2 = '[object HTML document.all class]';
|
|
51
|
+
var ddaClass3 = '[object HTMLCollection]'; // IE 9-10
|
|
48
52
|
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
|
|
49
|
-
|
|
50
|
-
var
|
|
53
|
+
|
|
54
|
+
var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing
|
|
55
|
+
|
|
56
|
+
var isDDA = function isDocumentDotAll() { return false; };
|
|
57
|
+
if (typeof document === 'object') {
|
|
58
|
+
// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly
|
|
59
|
+
var all = document.all;
|
|
60
|
+
if (toStr.call(all) === toStr.call(document.all)) {
|
|
61
|
+
isDDA = function isDocumentDotAll(value) {
|
|
62
|
+
/* globals document: false */
|
|
63
|
+
// in IE 6-8, typeof document.all is "object" and it's truthy
|
|
64
|
+
if ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {
|
|
65
|
+
try {
|
|
66
|
+
var str = toStr.call(value);
|
|
67
|
+
return (
|
|
68
|
+
str === ddaClass
|
|
69
|
+
|| str === ddaClass2
|
|
70
|
+
|| str === ddaClass3 // opera 12.16
|
|
71
|
+
|| str === objectClass // IE 6-8
|
|
72
|
+
) && value('') == null; // eslint-disable-line eqeqeq
|
|
73
|
+
} catch (e) { /**/ }
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
51
79
|
|
|
52
80
|
module.exports = reflectApply
|
|
53
81
|
? function isCallable(value) {
|
|
54
|
-
if (value
|
|
82
|
+
if (isDDA(value)) { return true; }
|
|
55
83
|
if (!value) { return false; }
|
|
56
84
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
57
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
58
85
|
try {
|
|
59
86
|
reflectApply(value, null, badArrayLike);
|
|
60
87
|
} catch (e) {
|
|
61
88
|
if (e !== isCallableMarker) { return false; }
|
|
62
89
|
}
|
|
63
|
-
return !isES6ClassFn(value);
|
|
90
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
64
91
|
}
|
|
65
92
|
: function isCallable(value) {
|
|
66
|
-
if (value
|
|
93
|
+
if (isDDA(value)) { return true; }
|
|
67
94
|
if (!value) { return false; }
|
|
68
95
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
69
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
70
96
|
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
71
97
|
if (isES6ClassFn(value)) { return false; }
|
|
72
98
|
var strClass = toStr.call(value);
|
|
73
|
-
|
|
99
|
+
if (strClass !== fnClass && strClass !== genClass && !(/^\[object HTML/).test(strClass)) { return false; }
|
|
100
|
+
return tryFunctionObject(value);
|
|
74
101
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-callable",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Jordan Harband",
|
|
6
6
|
"email": "ljharb@gmail.com",
|
|
@@ -20,14 +20,17 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"scripts": {
|
|
23
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
24
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
25
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
|
|
23
26
|
"prepublishOnly": "safe-publish-latest",
|
|
24
27
|
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
25
28
|
"pretest": "npm run --silent lint",
|
|
26
29
|
"test": "npm run tests-only --",
|
|
27
30
|
"posttest": "aud --production",
|
|
28
31
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
29
|
-
"prelint": "eclint check
|
|
30
|
-
"lint": "eslint ."
|
|
32
|
+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
|
|
33
|
+
"lint": "eslint --ext=js,mjs ."
|
|
31
34
|
},
|
|
32
35
|
"repository": {
|
|
33
36
|
"type": "git",
|
|
@@ -46,22 +49,24 @@
|
|
|
46
49
|
"@@toStringTag"
|
|
47
50
|
],
|
|
48
51
|
"devDependencies": {
|
|
49
|
-
"@ljharb/eslint-config": "^
|
|
50
|
-
"aud": "^
|
|
51
|
-
"
|
|
52
|
+
"@ljharb/eslint-config": "^21.0.0",
|
|
53
|
+
"aud": "^2.0.0",
|
|
54
|
+
"auto-changelog": "^2.4.0",
|
|
55
|
+
"available-typed-arrays": "^1.0.5",
|
|
52
56
|
"eclint": "^2.8.1",
|
|
53
|
-
"es-value-fixtures": "^1.2
|
|
54
|
-
"eslint": "
|
|
57
|
+
"es-value-fixtures": "^1.4.2",
|
|
58
|
+
"eslint": "=8.8.0",
|
|
55
59
|
"for-each": "^0.3.3",
|
|
56
60
|
"has-tostringtag": "^1.0.0",
|
|
57
61
|
"make-arrow-function": "^1.2.0",
|
|
58
62
|
"make-async-function": "^1.0.0",
|
|
59
63
|
"make-generator-function": "^2.0.0",
|
|
64
|
+
"npmignore": "^0.3.0",
|
|
60
65
|
"nyc": "^10.3.2",
|
|
61
|
-
"object-inspect": "^1.
|
|
66
|
+
"object-inspect": "^1.12.2",
|
|
62
67
|
"rimraf": "^2.7.1",
|
|
63
|
-
"safe-publish-latest": "^
|
|
64
|
-
"tape": "^5.
|
|
68
|
+
"safe-publish-latest": "^2.0.0",
|
|
69
|
+
"tape": "^5.6.0"
|
|
65
70
|
},
|
|
66
71
|
"testling": {
|
|
67
72
|
"files": "test/index.js",
|
|
@@ -84,9 +89,18 @@
|
|
|
84
89
|
"engines": {
|
|
85
90
|
"node": ">= 0.4"
|
|
86
91
|
},
|
|
87
|
-
"
|
|
92
|
+
"auto-changelog": {
|
|
93
|
+
"output": "CHANGELOG.md",
|
|
94
|
+
"template": "keepachangelog",
|
|
95
|
+
"unreleased": false,
|
|
96
|
+
"commitLimit": false,
|
|
97
|
+
"backfillLimit": false,
|
|
98
|
+
"hideCredit": true,
|
|
99
|
+
"startingVersion": "v1.2.5"
|
|
100
|
+
},
|
|
101
|
+
"publishConfig": {
|
|
88
102
|
"ignore": [
|
|
89
|
-
"
|
|
103
|
+
".github/workflows"
|
|
90
104
|
]
|
|
91
105
|
}
|
|
92
106
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
/* globals Proxy */
|
|
4
3
|
/* eslint no-magic-numbers: 1 */
|
|
5
4
|
|
|
6
5
|
var test = require('tape');
|
|
@@ -20,6 +19,16 @@ try {
|
|
|
20
19
|
/* eslint-enable no-new-func */
|
|
21
20
|
} catch (e) { /**/ }
|
|
22
21
|
|
|
22
|
+
var isIE68 = !(0 in [undefined]);
|
|
23
|
+
var isFirefox = typeof window !== 'undefined' && ('netscape' in window) && (/ rv:/).test(navigator.userAgent);
|
|
24
|
+
var fnToStringCoerces;
|
|
25
|
+
try {
|
|
26
|
+
Function.prototype.toString.call(v.uncoercibleFnObject);
|
|
27
|
+
fnToStringCoerces = true;
|
|
28
|
+
} catch (e) {
|
|
29
|
+
fnToStringCoerces = false;
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
var noop = function () {};
|
|
24
33
|
var classFake = function classFake() { }; // eslint-disable-line func-name-matching
|
|
25
34
|
var returnClass = function () { return ' class '; };
|
|
@@ -39,11 +48,8 @@ if (typeof Proxy === 'function') {
|
|
|
39
48
|
proxy();
|
|
40
49
|
String(proxy);
|
|
41
50
|
} catch (_) {
|
|
42
|
-
//
|
|
43
|
-
|
|
44
|
-
// Older engines throw a `TypeError` when `Function.prototype.toString` is called on a Proxy object.
|
|
45
|
-
proxy = null;
|
|
46
|
-
}
|
|
51
|
+
// Older engines throw a `TypeError` when `Function.prototype.toString` is called on a Proxy object.
|
|
52
|
+
proxy = null;
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
|
|
@@ -59,6 +65,7 @@ var invokeFunction = function invokeFunctionString(str) {
|
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
var classConstructor = invokeFunction('"use strict"; return class Foo {}');
|
|
68
|
+
var hasDetectableClasses = classConstructor && Function.prototype.toString.call(classConstructor) === 'class Foo {}';
|
|
62
69
|
|
|
63
70
|
var commentedClass = invokeFunction('"use strict"; return class/*kkk*/\n//blah\n Bar\n//blah\n {}');
|
|
64
71
|
var commentedClassOneLine = invokeFunction('"use strict"; return class/**/A{}');
|
|
@@ -77,6 +84,25 @@ test('not callables', function (t) {
|
|
|
77
84
|
new RegExp('a', 'g'),
|
|
78
85
|
new Date()
|
|
79
86
|
]), function (nonFunction) {
|
|
87
|
+
if (fnToStringCoerces && nonFunction === v.coercibleFnObject) {
|
|
88
|
+
t.comment('FF 3.6 has a Function toString that coerces its receiver, so this test is skipped');
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (nonFunction != null) { // eslint-disable-line eqeqeq
|
|
92
|
+
if (isFirefox) {
|
|
93
|
+
// Firefox 3 throws some kind of *object* here instead of a proper error
|
|
94
|
+
t['throws'](
|
|
95
|
+
function () { Function.prototype.toString.call(nonFunction); },
|
|
96
|
+
inspect(nonFunction) + ' can not be used with Function toString'
|
|
97
|
+
);
|
|
98
|
+
} else {
|
|
99
|
+
t['throws'](
|
|
100
|
+
function () { Function.prototype.toString.call(nonFunction); },
|
|
101
|
+
TypeError,
|
|
102
|
+
inspect(nonFunction) + ' can not be used with Function toString'
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
80
106
|
t.equal(isCallable(nonFunction), false, inspect(nonFunction) + ' is not callable');
|
|
81
107
|
});
|
|
82
108
|
|
|
@@ -133,7 +159,12 @@ test('Arrow functions', { skip: arrows.length === 0 }, function (t) {
|
|
|
133
159
|
t.end();
|
|
134
160
|
});
|
|
135
161
|
|
|
136
|
-
test('"Class" constructors', {
|
|
162
|
+
test('"Class" constructors', {
|
|
163
|
+
skip: !classConstructor || !commentedClass || !commentedClassOneLine || !classAnonymous, todo: !hasDetectableClasses
|
|
164
|
+
}, function (t) {
|
|
165
|
+
if (!hasDetectableClasses) {
|
|
166
|
+
t.comment('WARNING: This engine does not support detectable classes');
|
|
167
|
+
}
|
|
137
168
|
t.notOk(isCallable(classConstructor), 'class constructors are not callable');
|
|
138
169
|
t.notOk(isCallable(commentedClass), 'class constructors with comments in the signature are not callable');
|
|
139
170
|
t.notOk(isCallable(commentedClassOneLine), 'one-line class constructors with comments in the signature are not callable');
|
|
@@ -150,7 +181,7 @@ test('`async function`s', { skip: asyncs.length === 0 }, function (t) {
|
|
|
150
181
|
});
|
|
151
182
|
|
|
152
183
|
test('proxies of functions', { skip: !proxy }, function (t) {
|
|
153
|
-
t.
|
|
184
|
+
t.equal(isCallable(proxy), true, 'proxies of functions are callable');
|
|
154
185
|
t.end();
|
|
155
186
|
});
|
|
156
187
|
|
|
@@ -161,10 +192,53 @@ test('throwing functions', function (t) {
|
|
|
161
192
|
t.ok(isCallable(thrower), 'a function that throws is callable');
|
|
162
193
|
});
|
|
163
194
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
t.
|
|
195
|
+
test('DOM', function (t) {
|
|
196
|
+
/* eslint-env browser */
|
|
197
|
+
|
|
198
|
+
t.test('document.all', { skip: typeof document !== 'object' }, function (st) {
|
|
199
|
+
st.notOk(isCallable(document), 'document is not callable');
|
|
200
|
+
|
|
201
|
+
var all = document.all;
|
|
202
|
+
var isFF3 = !isIE68 && Object.prototype.toString(all) === Object.prototype.toString.call(document.all); // this test is true in IE 6-8 also
|
|
203
|
+
var expected = false;
|
|
204
|
+
if (!isFF3) {
|
|
205
|
+
try {
|
|
206
|
+
expected = document.all('') == null; // eslint-disable-line eqeqeq
|
|
207
|
+
} catch (e) { /**/ }
|
|
208
|
+
}
|
|
209
|
+
st.equal(isCallable(document.all), expected, 'document.all is ' + (isFF3 ? 'not ' : '') + 'callable');
|
|
210
|
+
|
|
211
|
+
st.end();
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
forEach([
|
|
215
|
+
'HTMLElement',
|
|
216
|
+
'HTMLAnchorElement'
|
|
217
|
+
], function (name) {
|
|
218
|
+
var constructor = global[name];
|
|
219
|
+
|
|
220
|
+
t.test(name, { skip: !constructor }, function (st) {
|
|
221
|
+
st.match(typeof constructor, /^(?:function|object)$/, name + ' is a function or object');
|
|
222
|
+
|
|
223
|
+
var callable = isCallable(constructor);
|
|
224
|
+
st.equal(typeof callable, 'boolean');
|
|
225
|
+
|
|
226
|
+
if (callable) {
|
|
227
|
+
st.doesNotThrow(
|
|
228
|
+
function () { Function.prototype.toString.call(constructor); },
|
|
229
|
+
'anything this library claims is callable should be accepted by Function toString'
|
|
230
|
+
);
|
|
231
|
+
} else {
|
|
232
|
+
st['throws'](
|
|
233
|
+
function () { Function.prototype.toString.call(constructor); },
|
|
234
|
+
TypeError,
|
|
235
|
+
'anything this library claims is not callable should not be accepted by Function toString'
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
st.end();
|
|
240
|
+
});
|
|
241
|
+
});
|
|
168
242
|
|
|
169
243
|
t.end();
|
|
170
244
|
});
|
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.10.0](https://github.com/inspect-js/is-core-module/compare/v2.9.0...v2.10.0) - 2022-08-03
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [New] `node:test` is now available in node ^16.17 [`e8fd36e`](https://github.com/inspect-js/is-core-module/commit/e8fd36e9b86c917775a07cc473b62a3294f459f2)
|
|
13
|
+
- [Tests] improve skip message [`c014a4c`](https://github.com/inspect-js/is-core-module/commit/c014a4c0cd6eb15fff573ae4709191775e70cab4)
|
|
14
|
+
|
|
8
15
|
## [v2.9.0](https://github.com/inspect-js/is-core-module/compare/v2.8.1...v2.9.0) - 2022-04-19
|
|
9
16
|
|
|
10
17
|
### Commits
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
113
113
|
"sys": [">= 0.4 && < 0.7", ">= 0.8"],
|
|
114
114
|
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
115
|
-
"node:test": ">= 18",
|
|
115
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
116
116
|
"timers": true,
|
|
117
117
|
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
118
118
|
"timers/promises": ">= 15",
|
|
@@ -44,7 +44,7 @@ test('core modules', function (t) {
|
|
|
44
44
|
t.test('core via repl module', { skip: !data.repl }, function (st) {
|
|
45
45
|
var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
|
|
46
46
|
if (!libs) {
|
|
47
|
-
st.skip('
|
|
47
|
+
st.skip('repl._builtinLibs does not exist');
|
|
48
48
|
} else {
|
|
49
49
|
for (var i = 0; i < libs.length; ++i) {
|
|
50
50
|
var mod = libs[i];
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb/eslint-config/node/0.4",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"array-bracket-spacing": 0,
|
|
8
|
+
"array-element-newline": 0,
|
|
9
|
+
"brace-style": 1,
|
|
10
|
+
"camelcase": 1,
|
|
11
|
+
"comma-dangle": 1,
|
|
12
|
+
"comma-spacing": 1,
|
|
13
|
+
"complexity": 0,
|
|
14
|
+
"curly": 1,
|
|
15
|
+
"dot-notation": 1,
|
|
16
|
+
"eol-last": 1,
|
|
17
|
+
"func-style": 1,
|
|
18
|
+
"function-paren-newline": 1,
|
|
19
|
+
"indent": [1, 4],
|
|
20
|
+
"key-spacing": 1,
|
|
21
|
+
"max-lines-per-function": 0,
|
|
22
|
+
"max-nested-callbacks": 1,
|
|
23
|
+
"max-statements": 0,
|
|
24
|
+
"multiline-comment-style": 1,
|
|
25
|
+
"no-array-constructor": 1,
|
|
26
|
+
"no-continue": 1,
|
|
27
|
+
"no-div-regex": 1,
|
|
28
|
+
"no-extra-parens": 1,
|
|
29
|
+
"no-mixed-operators": 1,
|
|
30
|
+
"no-multi-spaces": 1,
|
|
31
|
+
"no-multiple-empty-lines": 1,
|
|
32
|
+
"no-param-reassign": 1,
|
|
33
|
+
"no-plusplus": 1,
|
|
34
|
+
"no-proto": 1,
|
|
35
|
+
"no-redeclare": 1,
|
|
36
|
+
"no-restricted-syntax": 1,
|
|
37
|
+
"no-shadow": 1,
|
|
38
|
+
"no-trailing-spaces": 1,
|
|
39
|
+
"no-unused-vars": 1,
|
|
40
|
+
"no-use-before-define": 1,
|
|
41
|
+
"object-curly-newline": 1,
|
|
42
|
+
"object-curly-spacing": 1,
|
|
43
|
+
"operator-linebreak": 1,
|
|
44
|
+
"quote-props": 1,
|
|
45
|
+
"quotes": 1,
|
|
46
|
+
"semi-style": 1,
|
|
47
|
+
"semi": 1,
|
|
48
|
+
"space-before-blocks": 1,
|
|
49
|
+
"space-before-function-paren": 1,
|
|
50
|
+
"space-infix-ops": 1,
|
|
51
|
+
"strict": 1,
|
|
52
|
+
"wrap-regex": 1,
|
|
53
|
+
},
|
|
54
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/minimist
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|