is 3.3.0 → 3.3.2
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/CHANGELOG.md +5 -0
- package/index.js +0 -1
- package/package.json +15 -17
- package/test/index.js +1 -1
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -811,7 +811,6 @@ is.symbol = function (value) {
|
|
|
811
811
|
*/
|
|
812
812
|
|
|
813
813
|
is.bigint = function (value) {
|
|
814
|
-
// eslint-disable-next-line valid-typeof
|
|
815
814
|
return typeof BigInt === 'function' && toStr.call(value) === '[object BigInt]' && typeof bigIntValueOf.call(value) === 'bigint';
|
|
816
815
|
};
|
|
817
816
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
6
|
+
"prepublishOnly": "safe-publish-latest",
|
|
7
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
7
8
|
"pretest": "npm run lint",
|
|
8
9
|
"test": "npm run --silent tests-only",
|
|
9
|
-
"tests-only": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"lint": "npm run jscs && npm run eslint",
|
|
13
|
-
"jscs": "jscs *.js */*.js",
|
|
14
|
-
"eslint": "eslint ."
|
|
10
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
11
|
+
"posttest": "aud --production",
|
|
12
|
+
"lint": "eslint ."
|
|
15
13
|
},
|
|
16
14
|
"author": {
|
|
17
15
|
"name": "Enrico Marino",
|
|
@@ -35,16 +33,16 @@
|
|
|
35
33
|
"url": "https://github.com/ljharb"
|
|
36
34
|
}
|
|
37
35
|
],
|
|
38
|
-
"dependencies": {},
|
|
39
36
|
"devDependencies": {
|
|
40
|
-
"@ljharb/eslint-config": "^
|
|
41
|
-
"
|
|
42
|
-
"eslint": "
|
|
43
|
-
"foreach": "^2.0.
|
|
44
|
-
"
|
|
37
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
38
|
+
"aud": "^2.0.4",
|
|
39
|
+
"eslint": "=8.8.0",
|
|
40
|
+
"foreach": "^2.0.6",
|
|
41
|
+
"in-publish": "^2.0.1",
|
|
45
42
|
"make-generator-function": "^1.1.0",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
43
|
+
"nyc": "^10.3.2",
|
|
44
|
+
"safe-publish-latest": "^2.0.0",
|
|
45
|
+
"tape": "^5.7.5"
|
|
48
46
|
},
|
|
49
47
|
"testling": {
|
|
50
48
|
"files": "test/index.js",
|
|
@@ -64,6 +62,6 @@
|
|
|
64
62
|
]
|
|
65
63
|
},
|
|
66
64
|
"engines": {
|
|
67
|
-
"node": "
|
|
65
|
+
"node": ">= 0.4"
|
|
68
66
|
}
|
|
69
67
|
}
|
package/test/index.js
CHANGED
|
@@ -339,7 +339,7 @@ test('is.fn', function (t) {
|
|
|
339
339
|
t.notOk(is.fn(null), 'null is not function');
|
|
340
340
|
|
|
341
341
|
t.test('generator functions', { skip: !genFn }, function (st) {
|
|
342
|
-
|
|
342
|
+
st.ok(is.fn(genFn), 'generator function is function');
|
|
343
343
|
st.end();
|
|
344
344
|
});
|
|
345
345
|
|