@mpen/progressbar 0.1.4 → 0.1.5

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/dist/index.mjs +2 -2
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import createColors from "@mpen/ansi-colors";
1
+ import { AnsiColors } from "@mpen/ansi-colors/class";
2
2
  import stringWidth from "string-width";
3
3
  //#region src/index.ts
4
4
  /**
@@ -123,7 +123,7 @@ var ProgressBar = class {
123
123
  width,
124
124
  start
125
125
  };
126
- this.colors = createColors(options.enableColors);
126
+ this.colors = new AnsiColors(options.enableColors);
127
127
  this.max = options.max ?? 1;
128
128
  this.width = options.width || Math.max((process.stdout.columns ?? 80) - 40, 16);
129
129
  this.msPerFrame = 1e3 / (options.fps ?? 30);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpen/progressbar",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Terminal progress bar utilities.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "types": "./dist/index.d.mts",
19
19
  "dependencies": {
20
- "@mpen/ansi-colors": "0.1.2",
20
+ "@mpen/ansi-colors": "0.1.3",
21
21
  "string-width": "^8.2.0"
22
22
  },
23
23
  "devDependencies": {
@@ -30,8 +30,8 @@
30
30
  "dev": "bun src/dev.ts"
31
31
  },
32
32
  "publishHash": {
33
- "buildDate": "2026-07-12T22:04:36.665-07:00",
34
- "hgChangesetId": "2eb739b74228+",
35
- "sha256": "765db0dc902ee4f38b7f38d405f0740395fa5c9f3f81bcb14b2df3f6b0c1d0eb"
33
+ "buildDate": "2026-07-19T13:11:32.803-07:00",
34
+ "hgChangesetId": "64fa6dfda1bd+",
35
+ "sha256": "78588a8644e866067a2a522ed80f4c692f25c2ae1ae88fb19184512a55c55aac"
36
36
  }
37
37
  }