@hot-updater/expo 0.32.0 → 0.33.1
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 +10 -7
package/dist/index.cjs
CHANGED
|
@@ -620,7 +620,7 @@ const fallbackSymbols = {
|
|
|
620
620
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
621
621
|
Object.entries(specialMainSymbols);
|
|
622
622
|
//#endregion
|
|
623
|
-
//#region ../../node_modules/.pnpm/yoctocolors@2.1.
|
|
623
|
+
//#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
624
624
|
const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
625
625
|
const format = (open, close) => {
|
|
626
626
|
if (!hasColors) return (input) => input;
|
|
@@ -632,8 +632,9 @@ const format = (open, close) => {
|
|
|
632
632
|
if (index === -1) return openCode + string + closeCode;
|
|
633
633
|
let result = openCode;
|
|
634
634
|
let lastIndex = 0;
|
|
635
|
+
const replaceCode = (close === 22 ? closeCode : "") + openCode;
|
|
635
636
|
while (index !== -1) {
|
|
636
|
-
result += string.slice(lastIndex, index) +
|
|
637
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
637
638
|
lastIndex = index + closeCode.length;
|
|
638
639
|
index = string.indexOf(closeCode, lastIndex);
|
|
639
640
|
}
|
|
@@ -3033,7 +3034,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
3033
3034
|
throw new TypeError("Expected a finite number or bigint");
|
|
3034
3035
|
}
|
|
3035
3036
|
//#endregion
|
|
3036
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.
|
|
3037
|
+
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
3037
3038
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3038
3039
|
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
3039
3040
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
@@ -3082,7 +3083,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3082
3083
|
add(Number(parsed.hours), "hour", "h");
|
|
3083
3084
|
}
|
|
3084
3085
|
add(Number(parsed.minutes), "minute", "m");
|
|
3085
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3086
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
3086
3087
|
const seconds = Number(parsed.seconds);
|
|
3087
3088
|
const milliseconds = Number(parsed.milliseconds);
|
|
3088
3089
|
const microseconds = Number(parsed.microseconds);
|
package/dist/index.mjs
CHANGED
|
@@ -618,7 +618,7 @@ const fallbackSymbols = {
|
|
|
618
618
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
619
619
|
Object.entries(specialMainSymbols);
|
|
620
620
|
//#endregion
|
|
621
|
-
//#region ../../node_modules/.pnpm/yoctocolors@2.1.
|
|
621
|
+
//#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
622
622
|
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
623
623
|
const format = (open, close) => {
|
|
624
624
|
if (!hasColors) return (input) => input;
|
|
@@ -630,8 +630,9 @@ const format = (open, close) => {
|
|
|
630
630
|
if (index === -1) return openCode + string + closeCode;
|
|
631
631
|
let result = openCode;
|
|
632
632
|
let lastIndex = 0;
|
|
633
|
+
const replaceCode = (close === 22 ? closeCode : "") + openCode;
|
|
633
634
|
while (index !== -1) {
|
|
634
|
-
result += string.slice(lastIndex, index) +
|
|
635
|
+
result += string.slice(lastIndex, index) + replaceCode;
|
|
635
636
|
lastIndex = index + closeCode.length;
|
|
636
637
|
index = string.indexOf(closeCode, lastIndex);
|
|
637
638
|
}
|
|
@@ -3031,7 +3032,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
3031
3032
|
throw new TypeError("Expected a finite number or bigint");
|
|
3032
3033
|
}
|
|
3033
3034
|
//#endregion
|
|
3034
|
-
//#region ../../node_modules/.pnpm/pretty-ms@9.
|
|
3035
|
+
//#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
|
|
3035
3036
|
const isZero = (value) => value === 0 || value === 0n;
|
|
3036
3037
|
const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
|
|
3037
3038
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
@@ -3080,7 +3081,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3080
3081
|
add(Number(parsed.hours), "hour", "h");
|
|
3081
3082
|
}
|
|
3082
3083
|
add(Number(parsed.minutes), "minute", "m");
|
|
3083
|
-
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
3084
|
+
if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
|
|
3084
3085
|
const seconds = Number(parsed.seconds);
|
|
3085
3086
|
const milliseconds = Number(parsed.milliseconds);
|
|
3086
3087
|
const microseconds = Number(parsed.microseconds);
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/expo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.33.1",
|
|
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"
|
|
@@ -24,9 +27,9 @@
|
|
|
24
27
|
"@babel/core": "7.26.0",
|
|
25
28
|
"@babel/types": "7.26.0",
|
|
26
29
|
"uuidv7": "^1.0.2",
|
|
27
|
-
"@hot-updater/
|
|
28
|
-
"@hot-updater/
|
|
29
|
-
"@hot-updater/
|
|
30
|
+
"@hot-updater/bare": "0.33.1",
|
|
31
|
+
"@hot-updater/cli-tools": "0.33.1",
|
|
32
|
+
"@hot-updater/plugin-core": "0.33.1"
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|
|
32
35
|
"@types/node": "^20",
|
|
@@ -62,14 +65,14 @@
|
|
|
62
65
|
"3.1.1",
|
|
63
66
|
"4.0.0"
|
|
64
67
|
],
|
|
65
|
-
"pretty-ms": "9.
|
|
68
|
+
"pretty-ms": "9.3.0",
|
|
66
69
|
"shebang-command": "2.0.0",
|
|
67
70
|
"shebang-regex": "3.0.0",
|
|
68
71
|
"signal-exit": "4.1.0",
|
|
69
72
|
"strip-final-newline": "4.0.0",
|
|
70
73
|
"unicorn-magic": "0.3.0",
|
|
71
74
|
"which": "2.0.2",
|
|
72
|
-
"yoctocolors": "2.1.
|
|
75
|
+
"yoctocolors": "2.1.2"
|
|
73
76
|
},
|
|
74
77
|
"scripts": {
|
|
75
78
|
"build": "tsdown",
|