supertape 12.3.0 → 12.5.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 +11 -0
- package/lib/format.js +1 -1
- package/lib/maybe-regexp.js +12 -0
- package/lib/operators.js +1 -12
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
2026.02.11, v12.5.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 59a8331 supertape: operators: match: couple braces
|
|
5
|
+
- 8f3bf5a supertape: eslint v10.0.0
|
|
6
|
+
|
|
7
|
+
2026.02.03, v12.4.0
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- 84129f0 supertape: format: at on long stack traces
|
|
11
|
+
|
|
1
12
|
2026.02.02, v12.3.0
|
|
2
13
|
|
|
3
14
|
feature:
|
package/lib/format.js
CHANGED
|
@@ -10,7 +10,7 @@ export const parseAt = (stack, {reason}) => {
|
|
|
10
10
|
return stack;
|
|
11
11
|
|
|
12
12
|
if (lines.length > 10 && lines[0].startsWith('Error: '))
|
|
13
|
-
return lines[0];
|
|
13
|
+
return lines[REASON_USER] || lines[0];
|
|
14
14
|
|
|
15
15
|
const line = lines[reason === 'user' ? REASON_USER : REASON_EXCEPTION];
|
|
16
16
|
|
package/lib/operators.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import {isDeepStrictEqual} from 'node:util';
|
|
2
2
|
import diff from './diff.js';
|
|
3
3
|
import {formatOutput, parseAt} from './format.js';
|
|
4
|
+
import {maybeRegExp} from './maybe-regexp.js';
|
|
4
5
|
|
|
5
6
|
const {entries} = Object;
|
|
6
7
|
const isAsync = (a) => a[Symbol.toStringTag] === 'AsyncFunction';
|
|
7
8
|
|
|
8
|
-
const encode = (a) => a
|
|
9
|
-
.replace('^', '\\^')
|
|
10
|
-
.replace(')', '\\)')
|
|
11
|
-
.replace('(', '\\(');
|
|
12
|
-
|
|
13
|
-
const maybeRegExp = (a) => {
|
|
14
|
-
if (!isStr(a))
|
|
15
|
-
return a;
|
|
16
|
-
|
|
17
|
-
return RegExp(encode(a));
|
|
18
|
-
};
|
|
19
|
-
|
|
20
9
|
const isFn = (a) => typeof a === 'function';
|
|
21
10
|
const isStr = (a) => typeof a === 'string';
|
|
22
11
|
const isObj = (a) => typeof a === 'object';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.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",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"c8": "^10.1.2",
|
|
77
77
|
"check-dts": "^0.9.0",
|
|
78
78
|
"currify": "^4.0.0",
|
|
79
|
-
"eslint": "^
|
|
79
|
+
"eslint": "^10.0.0",
|
|
80
80
|
"eslint-plugin-putout": "^30.0.1",
|
|
81
81
|
"find-up": "^8.0.0",
|
|
82
82
|
"madrun": "^12.1.0",
|