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 CHANGED
@@ -1,3 +1,8 @@
1
+ 3.3.2 / 2025-07-19
2
+ ==================
3
+ Note: this is a republish of v3.3.0.
4
+ v3.3.1 (and v5.0.0) were published with malware in them by a hijacked account, and summarily deprecated.
5
+
1
6
  3.3.0 / 2018-12-14
2
7
  ==================
3
8
  * [New] add `is.bigint` (#36)
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.0",
3
+ "version": "3.3.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
- "prepublish": "safe-publish-latest",
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": "node test/index.js",
10
- "coverage": "covert test/index.js",
11
- "coverage-quiet": "covert test/index.js --quiet",
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": "^13.0.0",
41
- "covert": "^1.1.0",
42
- "eslint": "^5.10.0",
43
- "foreach": "^2.0.5",
44
- "jscs": "^3.0.7",
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
- "safe-publish-latest": "^1.1.2",
47
- "tape": "^4.9.1"
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
- t.ok(is.fn(genFn), 'generator function is function');
342
+ st.ok(is.fn(genFn), 'generator function is function');
343
343
  st.end();
344
344
  });
345
345