@hot-updater/bare 0.33.0 → 0.33.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/dist/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +9 -6
package/dist/index.cjs
CHANGED
|
@@ -622,7 +622,7 @@ const fallbackSymbols = {
|
|
|
622
622
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
623
623
|
Object.entries(specialMainSymbols);
|
|
624
624
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/yoctocolors@2.1.
|
|
625
|
+
//#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
626
626
|
const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
627
627
|
const format = (open, close) => {
|
|
628
628
|
if (!hasColors) return (input) => input;
|
|
@@ -634,8 +634,9 @@ const format = (open, close) => {
|
|
|
634
634
|
if (index === -1) return openCode + string + closeCode;
|
|
635
635
|
let result = openCode;
|
|
636
636
|
let lastIndex = 0;
|
|
637
|
+
const replaceCode = (close === 22 ? closeCode : "") + openCode;
|
|
637
638
|
while (index !== -1) {
|
|
638
|
-
result += string.slice(lastIndex, index) +
|
|
639
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
639
640
|
lastIndex = index + closeCode.length;
|
|
640
641
|
index = string.indexOf(closeCode, lastIndex);
|
|
641
642
|
}
|
|
@@ -3035,7 +3036,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
3035
3036
|
throw new TypeError("Expected a finite number or bigint");
|
|
3036
3037
|
}
|
|
3037
3038
|
//#endregion
|
|
3038
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.
|
|
3039
|
+
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
3039
3040
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3040
3041
|
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
3041
3042
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
@@ -3084,7 +3085,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3084
3085
|
add(Number(parsed.hours), "hour", "h");
|
|
3085
3086
|
}
|
|
3086
3087
|
add(Number(parsed.minutes), "minute", "m");
|
|
3087
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3088
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
3088
3089
|
const seconds = Number(parsed.seconds);
|
|
3089
3090
|
const milliseconds = Number(parsed.milliseconds);
|
|
3090
3091
|
const microseconds = Number(parsed.microseconds);
|
package/dist/index.mjs
CHANGED
|
@@ -617,7 +617,7 @@ const fallbackSymbols = {
|
|
|
617
617
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
618
618
|
Object.entries(specialMainSymbols);
|
|
619
619
|
//#endregion
|
|
620
|
-
//#region ../../node_modules/.pnpm/yoctocolors@2.1.
|
|
620
|
+
//#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
621
621
|
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
622
622
|
const format = (open, close) => {
|
|
623
623
|
if (!hasColors) return (input) => input;
|
|
@@ -629,8 +629,9 @@ const format = (open, close) => {
|
|
|
629
629
|
if (index === -1) return openCode + string + closeCode;
|
|
630
630
|
let result = openCode;
|
|
631
631
|
let lastIndex = 0;
|
|
632
|
+
const replaceCode = (close === 22 ? closeCode : "") + openCode;
|
|
632
633
|
while (index !== -1) {
|
|
633
|
-
result += string.slice(lastIndex, index) +
|
|
634
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
634
635
|
lastIndex = index + closeCode.length;
|
|
635
636
|
index = string.indexOf(closeCode, lastIndex);
|
|
636
637
|
}
|
|
@@ -3030,7 +3031,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
3030
3031
|
throw new TypeError("Expected a finite number or bigint");
|
|
3031
3032
|
}
|
|
3032
3033
|
//#endregion
|
|
3033
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.
|
|
3034
|
+
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
3034
3035
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3035
3036
|
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
3036
3037
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
@@ -3079,7 +3080,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3079
3080
|
add(Number(parsed.hours), "hour", "h");
|
|
3080
3081
|
}
|
|
3081
3082
|
add(Number(parsed.minutes), "minute", "m");
|
|
3082
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3083
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
3083
3084
|
const seconds = Number(parsed.seconds);
|
|
3084
3085
|
const milliseconds = Number(parsed.milliseconds);
|
|
3085
3086
|
const microseconds = Number(parsed.microseconds);
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/bare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.33.
|
|
4
|
+
"version": "0.33.2",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.cts",
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"repository":
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/gronxb/hot-updater"
|
|
13
|
+
},
|
|
11
14
|
"author": "gronxb <gron1gh1@gmail.com> (https://github.com/gronxb)",
|
|
12
15
|
"bugs": {
|
|
13
16
|
"url": "https://github.com/gronxb/hot-updater/issues"
|
|
@@ -22,8 +25,8 @@
|
|
|
22
25
|
],
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"uuidv7": "^1.0.2",
|
|
25
|
-
"@hot-updater/cli-tools": "0.33.
|
|
26
|
-
"@hot-updater/plugin-core": "0.33.
|
|
28
|
+
"@hot-updater/cli-tools": "0.33.2",
|
|
29
|
+
"@hot-updater/plugin-core": "0.33.2"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"@types/node": "^20",
|
|
@@ -54,14 +57,14 @@
|
|
|
54
57
|
"3.1.1",
|
|
55
58
|
"4.0.0"
|
|
56
59
|
],
|
|
57
|
-
"pretty-ms": "9.
|
|
60
|
+
"pretty-ms": "9.3.0",
|
|
58
61
|
"shebang-command": "2.0.0",
|
|
59
62
|
"shebang-regex": "3.0.0",
|
|
60
63
|
"signal-exit": "4.1.0",
|
|
61
64
|
"strip-final-newline": "4.0.0",
|
|
62
65
|
"unicorn-magic": "0.3.0",
|
|
63
66
|
"which": "2.0.2",
|
|
64
|
-
"yoctocolors": "2.1.
|
|
67
|
+
"yoctocolors": "2.1.2"
|
|
65
68
|
},
|
|
66
69
|
"scripts": {
|
|
67
70
|
"build": "tsdown",
|