Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
7
node_modules/is-bigint/test/.eslintrc
generated
vendored
7
node_modules/is-bigint/test/.eslintrc
generated
vendored
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"rules": {
|
||||
"max-statements-per-line": [2, { "max": 2 }],
|
||||
"no-restricted-properties": 0,
|
||||
"symbol-description": 0,
|
||||
}
|
||||
}
|
||||
11
node_modules/is-bigint/test/index.js
generated
vendored
11
node_modules/is-bigint/test/index.js
generated
vendored
|
|
@ -2,7 +2,11 @@
|
|||
|
||||
var test = require('tape');
|
||||
var inspect = require('object-inspect');
|
||||
var isBigInt = require('..');
|
||||
var hasBigInts = require('has-bigints')();
|
||||
var hasSymbols = require('has-symbols')();
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
|
||||
var isBigInt = require('../');
|
||||
|
||||
var debug = function (v, m) { return inspect(v) + ' ' + m; };
|
||||
|
||||
|
|
@ -13,9 +17,6 @@ var forEach = function (arr, func) {
|
|||
}
|
||||
};
|
||||
|
||||
var hasSymbols = require('has-symbols')();
|
||||
var hasBigInts = typeof BigInt === 'function';
|
||||
|
||||
test('non-BigInt values', function (t) {
|
||||
var nonBigInts = [
|
||||
true,
|
||||
|
|
@ -50,7 +51,7 @@ test('faked BigInt values', function (t) {
|
|||
st.end();
|
||||
});
|
||||
|
||||
t.test('faked @@toStringTag', { skip: !hasBigInts || !hasSymbols || !Symbol.toStringTag }, function (st) {
|
||||
t.test('faked @@toStringTag', { skip: !hasBigInts || !hasToStringTag }, function (st) {
|
||||
var fakeBigInt = { valueOf: function () { return BigInt(42); } };
|
||||
fakeBigInt[Symbol.toStringTag] = 'BigInt';
|
||||
st.equal(false, isBigInt(fakeBigInt), 'object with fake BigInt @@toStringTag and valueOf returning a BigInt is not a BigInt');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue