supertape 11.1.0 → 11.1.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 CHANGED
@@ -1,3 +1,16 @@
1
+ 2025.05.28, v11.1.2
2
+
3
+ fix:
4
+ - 20f21ff supertape: run-tests: timeout
5
+
6
+ 2025.05.28, v11.1.1
7
+
8
+ feature:
9
+ - 0e700b7 supertape: yargs-parser v22.0.0
10
+ - 7e428a3 supertape: eslint-plugin-putout v27.0.0
11
+ - b287ed9 @supertape/operator-stub: check-dts v0.9.0
12
+ - 23c7718 supertape: putout v40.0.0
13
+
1
14
  2025.04.01, v11.1.0
2
15
 
3
16
  feature:
package/lib/run-tests.js CHANGED
@@ -6,11 +6,12 @@ const tryToCatch = require('try-to-catch');
6
6
  const isDebug = require('./is-debug');
7
7
 
8
8
  const {createValidator} = require('./validator');
9
-
9
+ const isString = (a) => typeof a === 'string';
10
10
  const inc = wraptile((store) => store(store() + 1));
11
11
  const isOnly = ({only}) => only;
12
12
  const isSkip = ({skip}) => skip;
13
13
  const notSkip = ({skip}) => !skip;
14
+ const parseTime = (a) => isString(a) ? 1 : a;
14
15
 
15
16
  const getInitOperators = async () => await import('./operators.mjs');
16
17
 
@@ -23,7 +24,7 @@ const doTimeout = (time, value) => {
23
24
  time = DEBUG_TIME;
24
25
 
25
26
  const promise = new Promise((resolve) => {
26
- const id = setTimeout(resolve, time, value);
27
+ const id = setTimeout(resolve, parseTime(time), value);
27
28
  stop = clearTimeout.bind(null, id);
28
29
  });
29
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "11.1.0",
3
+ "version": "11.1.2",
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",
@@ -61,7 +61,7 @@
61
61
  "strip-ansi": "^7.0.0",
62
62
  "try-to-catch": "^3.0.0",
63
63
  "wraptile": "^3.0.0",
64
- "yargs-parser": "^21.0.0"
64
+ "yargs-parser": "^22.0.0"
65
65
  },
66
66
  "keywords": [
67
67
  "function",
@@ -77,17 +77,17 @@
77
77
  "@iocmd/wait": "^2.1.0",
78
78
  "@putout/eslint-flat": "^3.0.0",
79
79
  "c8": "^10.1.2",
80
- "check-dts": "^0.8.0",
80
+ "check-dts": "^0.9.0",
81
81
  "currify": "^4.0.0",
82
82
  "eslint": "^9.1.1",
83
- "eslint-plugin-putout": "^26.1.0",
83
+ "eslint-plugin-putout": "^27.0.0",
84
84
  "find-up": "^7.0.0",
85
85
  "madrun": "^11.0.0",
86
86
  "mock-require": "^3.0.2",
87
87
  "montag": "^1.0.0",
88
88
  "nodemon": "^3.0.1",
89
89
  "pullout": "^5.0.1",
90
- "putout": "^39.0.11",
90
+ "putout": "^40.0.0",
91
91
  "runsome": "^1.0.0",
92
92
  "try-catch": "^3.0.1",
93
93
  "typescript": "^5.1.6"