supertape 12.10.4 → 12.11.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/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2026.04.08, v12.11.0
2
+
3
+ feature:
4
+ - 73acac3 supertape: operator: match: isObject -> isRegExp
5
+ - b92a950 supertape: check-dts v1.0.0
6
+ - a1befb1 supertape: typescript v6.0.2
7
+
8
+ 2026.03.14, v12.10.5
9
+
10
+ fix:
11
+ - 4acfaa1 supertape: diff: cut: Array -> Array [
12
+
1
13
  2026.03.13, v12.10.4
2
14
 
3
15
  fix:
package/lib/diff.js CHANGED
@@ -4,8 +4,8 @@ import {formatOutput, addSpaces} from './format.js';
4
4
 
5
5
  export default (a, b) => {
6
6
  const diffed = diff(a, b)
7
- .replaceAll('Object ', '')
8
- .replaceAll('Array ', '');
7
+ .replaceAll('Object {', '{')
8
+ .replaceAll('Array [', '[');
9
9
 
10
10
  let striped = diffed;
11
11
 
package/lib/operators.js CHANGED
@@ -3,12 +3,13 @@ import diff from './diff.js';
3
3
  import {formatOutput, parseAt} from './format.js';
4
4
  import {maybeRegExp} from './maybe-regexp.js';
5
5
 
6
+ const isRegExp = (a) => a instanceof RegExp;
7
+
6
8
  const {entries} = Object;
7
9
  const isAsync = (a) => a[Symbol.toStringTag] === 'AsyncFunction';
8
10
 
9
11
  const isFn = (a) => typeof a === 'function';
10
12
  const isStr = (a) => typeof a === 'string';
11
- const isObj = (a) => typeof a === 'object';
12
13
 
13
14
  const end = () => {};
14
15
 
@@ -27,7 +28,7 @@ const notOk = (result, message = 'should be falsy') => ({
27
28
  });
28
29
 
29
30
  const validateRegExp = (regexp) => {
30
- if (!isObj(regexp) && !isStr(regexp))
31
+ if (!isRegExp(regexp) && !isStr(regexp))
31
32
  return Error('regexp should be RegExp or String');
32
33
 
33
34
  if (!regexp)
package/lib/validator.js CHANGED
@@ -163,6 +163,7 @@ function checkDuplicates(msg, filtered) {
163
163
  return [];
164
164
 
165
165
  processedList.add(first);
166
+
166
167
  return [
167
168
  `Duplicate ${first}`,
168
169
  second,
@@ -10,6 +10,7 @@ export const overrideConsoleLog = (parentPort, {console = globalThis.console} =
10
10
  const {log} = console;
11
11
 
12
12
  console.log = createConsoleMethod(CONSOLE_LOG, parentPort);
13
+
13
14
  return {
14
15
  getBackConsoleLog: () => {
15
16
  console.log = log;
@@ -21,6 +22,7 @@ export const overrideConsoleError = (parentPort, {console = globalThis.console}
21
22
  const {error} = console;
22
23
 
23
24
  console.error = createConsoleMethod(CONSOLE_ERROR, parentPort);
25
+
24
26
  return {
25
27
  getBackConsoleError: () => {
26
28
  console.error = error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.10.4",
3
+ "version": "12.11.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape simplest high speed test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -79,7 +79,7 @@
79
79
  "devDependencies": {
80
80
  "@iocmd/wait": "^2.1.0",
81
81
  "@putout/eslint-flat": "^4.0.0",
82
- "check-dts": "^0.9.0",
82
+ "check-dts": "^1.0.0",
83
83
  "currify": "^4.0.0",
84
84
  "eslint": "^10.0.2",
85
85
  "eslint-plugin-putout": "^31.0.1",
@@ -92,7 +92,7 @@
92
92
  "runsome": "^1.0.0",
93
93
  "superc8": "^12.0.0",
94
94
  "try-catch": "^4.0.2",
95
- "typescript": "^5.1.6"
95
+ "typescript": "^6.0.2"
96
96
  },
97
97
  "license": "MIT",
98
98
  "engines": {