hot-updater 0.21.7 → 0.21.9
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/chunk-DWy1uDak.cjs +39 -0
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.js +1 -2
- package/dist/{fingerprint-CUyLNgcg.js → fingerprint-BBD702SI.js} +34 -9
- package/dist/{fingerprint-xeLO0LG3.cjs → fingerprint-DqX6r8Tm.cjs} +184 -187
- package/dist/index.cjs +923 -708
- package/dist/index.js +531 -320
- package/dist/plugins/babel.cjs +6 -5
- package/dist/plugins/babel.js +2 -3
- package/package.json +13 -12
- package/dist/picocolors-O3YZQBCJ.js +0 -99
- package/dist/picocolors-y8lGs7d-.cjs +0 -114
package/dist/plugins/babel.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_chunk = require('../chunk-DWy1uDak.cjs');
|
|
2
|
+
let __hot_updater_cli_tools = require("@hot-updater/cli-tools");
|
|
3
|
+
__hot_updater_cli_tools = require_chunk.__toESM(__hot_updater_cli_tools);
|
|
2
4
|
let path = require("path");
|
|
3
|
-
path =
|
|
5
|
+
path = require_chunk.__toESM(path);
|
|
4
6
|
let fs = require("fs");
|
|
5
|
-
fs =
|
|
7
|
+
fs = require_chunk.__toESM(fs);
|
|
6
8
|
|
|
7
9
|
//#region ../../node_modules/.pnpm/uuidv7@1.0.2/node_modules/uuidv7/dist/index.js
|
|
8
|
-
var import_picocolors = /* @__PURE__ */ require_picocolors$1.__toESM(require_picocolors$1.require_picocolors(), 1);
|
|
9
10
|
/**
|
|
10
11
|
* uuidv7: A JavaScript implementation of UUID version 7
|
|
11
12
|
*
|
|
@@ -344,7 +345,7 @@ const getBundleId = () => {
|
|
|
344
345
|
if (fs.default.existsSync(bundleIdPath)) bundleId = fs.default.readFileSync(bundleIdPath, "utf-8");
|
|
345
346
|
else {
|
|
346
347
|
fs.default.writeFileSync(bundleIdPath, bundleId);
|
|
347
|
-
console.log(
|
|
348
|
+
console.log(__hot_updater_cli_tools.colors.green(`[HotUpdater] Generated bundle ID: ${bundleId}`));
|
|
348
349
|
}
|
|
349
350
|
return bundleId;
|
|
350
351
|
};
|
package/dist/plugins/babel.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { colors } from "@hot-updater/cli-tools";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
|
|
5
5
|
//#region ../../node_modules/.pnpm/uuidv7@1.0.2/node_modules/uuidv7/dist/index.js
|
|
6
|
-
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
7
6
|
/**
|
|
8
7
|
* uuidv7: A JavaScript implementation of UUID version 7
|
|
9
8
|
*
|
|
@@ -342,7 +341,7 @@ const getBundleId = () => {
|
|
|
342
341
|
if (fs.existsSync(bundleIdPath)) bundleId = fs.readFileSync(bundleIdPath, "utf-8");
|
|
343
342
|
else {
|
|
344
343
|
fs.writeFileSync(bundleIdPath, bundleId);
|
|
345
|
-
console.log(
|
|
344
|
+
console.log(colors.green(`[HotUpdater] Generated bundle ID: ${bundleId}`));
|
|
346
345
|
}
|
|
347
346
|
return bundleId;
|
|
348
347
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.9",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -49,15 +49,17 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@clack/prompts": "0.10.0",
|
|
53
52
|
"@expo/fingerprint": "0.13.4",
|
|
54
53
|
"cosmiconfig": "9.0.0",
|
|
55
54
|
"jiti": "2.6.1",
|
|
55
|
+
"kysely": "0.28.8",
|
|
56
56
|
"sql-formatter": "15.6.10",
|
|
57
57
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
58
|
-
"@hot-updater/console": "0.21.
|
|
59
|
-
"@hot-updater/core": "0.21.
|
|
60
|
-
"@hot-updater/plugin-core": "0.21.
|
|
58
|
+
"@hot-updater/console": "0.21.9",
|
|
59
|
+
"@hot-updater/core": "0.21.9",
|
|
60
|
+
"@hot-updater/plugin-core": "0.21.9",
|
|
61
|
+
"@hot-updater/cli-tools": "0.21.9",
|
|
62
|
+
"@hot-updater/server": "0.21.9"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
63
65
|
"semver": "^7.6.3",
|
|
@@ -84,16 +86,15 @@
|
|
|
84
86
|
"execa": "9.5.2",
|
|
85
87
|
"is-port-reachable": "^4.0.0",
|
|
86
88
|
"open": "^10.1.0",
|
|
87
|
-
"picocolors": "1.1.1",
|
|
88
89
|
"plist": "^3.1.0",
|
|
89
90
|
"read-package-up": "^11.0.0",
|
|
90
91
|
"uuidv7": "^1.0.2",
|
|
91
|
-
"@hot-updater/
|
|
92
|
-
"@hot-updater/
|
|
93
|
-
"@hot-updater/
|
|
94
|
-
"@hot-updater/
|
|
95
|
-
"@hot-updater/
|
|
96
|
-
"@hot-updater/
|
|
92
|
+
"@hot-updater/aws": "0.21.9",
|
|
93
|
+
"@hot-updater/server": "0.21.9",
|
|
94
|
+
"@hot-updater/supabase": "0.21.9",
|
|
95
|
+
"@hot-updater/cloudflare": "0.21.9",
|
|
96
|
+
"@hot-updater/test-utils": "0.21.9",
|
|
97
|
+
"@hot-updater/firebase": "0.21.9"
|
|
97
98
|
},
|
|
98
99
|
"peerDependencies": {
|
|
99
100
|
"@hot-updater/aws": "*",
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __commonJS = (cb, mod) => function() {
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
|
-
key = keys[i];
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
-
get: ((k) => from[k]).bind(null, key),
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
-
value: mod,
|
|
25
|
-
enumerable: true
|
|
26
|
-
}) : target, mod));
|
|
27
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
31
|
-
var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
32
|
-
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
33
|
-
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
34
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
35
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
36
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
37
|
-
};
|
|
38
|
-
let replaceClose = (string, close, replace, index) => {
|
|
39
|
-
let result = "", cursor = 0;
|
|
40
|
-
do {
|
|
41
|
-
result += string.substring(cursor, index) + replace;
|
|
42
|
-
cursor = index + close.length;
|
|
43
|
-
index = string.indexOf(close, cursor);
|
|
44
|
-
} while (~index);
|
|
45
|
-
return result + string.substring(cursor);
|
|
46
|
-
};
|
|
47
|
-
let createColors = (enabled = isColorSupported) => {
|
|
48
|
-
let f = enabled ? formatter : () => String;
|
|
49
|
-
return {
|
|
50
|
-
isColorSupported: enabled,
|
|
51
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
52
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
53
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
54
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
55
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
56
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
57
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
58
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
59
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
60
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
61
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
62
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
63
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
64
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
65
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
66
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
67
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
68
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
69
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
70
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
71
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
72
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
73
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
74
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
75
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
76
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
77
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
78
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
79
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
80
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
81
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
82
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
83
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
84
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
85
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
86
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
87
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
88
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
89
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
90
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
91
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
module.exports = createColors();
|
|
95
|
-
module.exports.createColors = createColors;
|
|
96
|
-
}) });
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
export { __toESM as i, __commonJS as n, __require as r, require_picocolors as t };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
-
key = keys[i];
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
value: mod,
|
|
23
|
-
enumerable: true
|
|
24
|
-
}) : target, mod));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
|
|
28
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
29
|
-
var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
30
|
-
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
31
|
-
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
32
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
33
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
34
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
35
|
-
};
|
|
36
|
-
let replaceClose = (string, close, replace, index) => {
|
|
37
|
-
let result = "", cursor = 0;
|
|
38
|
-
do {
|
|
39
|
-
result += string.substring(cursor, index) + replace;
|
|
40
|
-
cursor = index + close.length;
|
|
41
|
-
index = string.indexOf(close, cursor);
|
|
42
|
-
} while (~index);
|
|
43
|
-
return result + string.substring(cursor);
|
|
44
|
-
};
|
|
45
|
-
let createColors = (enabled = isColorSupported) => {
|
|
46
|
-
let f = enabled ? formatter : () => String;
|
|
47
|
-
return {
|
|
48
|
-
isColorSupported: enabled,
|
|
49
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
50
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
51
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
52
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
53
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
54
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
55
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
56
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
57
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
58
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
59
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
60
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
61
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
62
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
63
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
64
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
65
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
66
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
67
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
68
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
69
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
70
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
71
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
72
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
73
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
74
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
75
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
76
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
77
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
78
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
79
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
80
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
81
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
82
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
83
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
84
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
85
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
86
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
87
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
88
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
89
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
module.exports = createColors();
|
|
93
|
-
module.exports.createColors = createColors;
|
|
94
|
-
}) });
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
Object.defineProperty(exports, '__commonJS', {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function () {
|
|
100
|
-
return __commonJS;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, '__toESM', {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () {
|
|
106
|
-
return __toESM;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, 'require_picocolors', {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return require_picocolors;
|
|
113
|
-
}
|
|
114
|
-
});
|