@supertape/formatter-time 2.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/lib/time.js +3 -3
  2. package/package.json +7 -7
package/lib/time.js CHANGED
@@ -2,12 +2,12 @@ import {Writable} from 'node:stream';
2
2
  import process from 'node:process';
3
3
  import cliProgress from 'cli-progress';
4
4
  import chalk from 'chalk';
5
- import fullstore from 'fullstore';
5
+ import {fullstore} from 'fullstore';
6
6
  import {isCI} from 'ci-info';
7
7
  import {Timer} from 'timer-node';
8
8
  import once from 'once';
9
9
 
10
- global._isCI = isCI;
10
+ globalThis._isCI = isCI;
11
11
 
12
12
  const OK = '👌';
13
13
  const YELLOW = '#218bff';
@@ -185,7 +185,7 @@ const defaultStreamOptions = {
185
185
  const getStream = ({total} = defaultStreamOptions) => {
186
186
  const is = total >= SUPERTAPE_TIME_MIN;
187
187
 
188
- if (is && !global._isCI || SUPERTAPE_TIME === '1')
188
+ if (is && !globalThis._isCI || SUPERTAPE_TIME === '1')
189
189
  return stderr;
190
190
 
191
191
  return new Writable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-time",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape formatter progress bar",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -26,7 +26,7 @@
26
26
  "chalk": "^5.3.0",
27
27
  "ci-info": "^4.0.0",
28
28
  "cli-progress": "^3.8.2",
29
- "fullstore": "^3.0.0",
29
+ "fullstore": "^4.0.0",
30
30
  "once": "^1.4.0",
31
31
  "timer-node": "^5.0.7"
32
32
  },
@@ -38,17 +38,17 @@
38
38
  "devDependencies": {
39
39
  "c8": "^10.1.2",
40
40
  "eslint": "^9.1.1",
41
- "eslint-plugin-putout": "^26.1.0",
42
- "madrun": "^11.0.0",
41
+ "eslint-plugin-putout": "^29.0.2",
42
+ "madrun": "^12.1.0",
43
43
  "montag": "^1.0.0",
44
44
  "nodemon": "^3.0.1",
45
45
  "pullout": "^5.0.1",
46
- "putout": "^39.0.11",
47
- "supertape": "^11.0.0"
46
+ "putout": "^41.0.2",
47
+ "supertape": "^12.0.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "engines": {
51
- "node": ">=20"
51
+ "node": ">=22"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"