@hot-updater/cloudflare 0.20.2 → 0.20.4
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/iac/index.cjs +5 -7
- package/dist/iac/index.js +5 -7
- package/dist/index.cjs +7 -11
- package/dist/index.js +7 -11
- package/package.json +4 -4
- package/worker/dist/README.md +1 -1
package/dist/iac/index.cjs
CHANGED
|
@@ -2112,7 +2112,6 @@ const fallbackSymbols = {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
const shouldUseMain = isUnicodeSupported();
|
|
2114
2114
|
const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
2115
|
-
var figures_default = figures;
|
|
2116
2115
|
const replacements = Object.entries(specialMainSymbols);
|
|
2117
2116
|
|
|
2118
2117
|
//#endregion
|
|
@@ -2194,8 +2193,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
|
|
|
2194
2193
|
const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
2195
2194
|
const padField = (field, padding) => String(field).padStart(padding, "0");
|
|
2196
2195
|
const getFinalIcon = ({ failed, reject }) => {
|
|
2197
|
-
if (!failed) return
|
|
2198
|
-
return reject ?
|
|
2196
|
+
if (!failed) return figures.tick;
|
|
2197
|
+
return reject ? figures.cross : figures.warning;
|
|
2199
2198
|
};
|
|
2200
2199
|
const ICONS = {
|
|
2201
2200
|
command: ({ piped }) => piped ? "|" : "$",
|
|
@@ -12266,10 +12265,9 @@ var require_mod_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg
|
|
|
12266
12265
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
|
|
12267
12266
|
var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
|
|
12268
12267
|
var mod_esm_exports = {};
|
|
12269
|
-
__export(mod_esm_exports, { default: () =>
|
|
12268
|
+
__export(mod_esm_exports, { default: () => import_mod_cjs.default });
|
|
12270
12269
|
var import_mod_cjs = /* @__PURE__ */ __toESM(require_mod_cjs(), 1);
|
|
12271
12270
|
__reExport(mod_esm_exports, /* @__PURE__ */ __toESM(require_mod_cjs(), 1));
|
|
12272
|
-
var mod_esm_default = import_mod_cjs.default;
|
|
12273
12271
|
|
|
12274
12272
|
//#endregion
|
|
12275
12273
|
//#region iac/getWranglerLoginAuthToken.ts
|
|
@@ -12281,7 +12279,7 @@ const isDirectory = (configPath) => {
|
|
|
12281
12279
|
}
|
|
12282
12280
|
};
|
|
12283
12281
|
const getGlobalWranglerConfigPath = () => {
|
|
12284
|
-
const configDir =
|
|
12282
|
+
const configDir = (0, import_mod_cjs.default)(".wrangler").config();
|
|
12285
12283
|
const legacyConfigDir = path.default.join(os.default.homedir(), ".wrangler");
|
|
12286
12284
|
if (isDirectory(legacyConfigDir)) return legacyConfigDir;
|
|
12287
12285
|
return configDir;
|
|
@@ -12332,7 +12330,7 @@ function App() {
|
|
|
12332
12330
|
|
|
12333
12331
|
export default HotUpdater.wrap({
|
|
12334
12332
|
source: getUpdateSource("%%source%%", {
|
|
12335
|
-
updateStrategy: "
|
|
12333
|
+
updateStrategy: "appVersion", // or "fingerprint"
|
|
12336
12334
|
}),
|
|
12337
12335
|
})(App);`;
|
|
12338
12336
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName, r2BucketName }) => {
|
package/dist/iac/index.js
CHANGED
|
@@ -2115,7 +2115,6 @@ const fallbackSymbols = {
|
|
|
2115
2115
|
};
|
|
2116
2116
|
const shouldUseMain = isUnicodeSupported();
|
|
2117
2117
|
const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
2118
|
-
var figures_default = figures;
|
|
2119
2118
|
const replacements = Object.entries(specialMainSymbols);
|
|
2120
2119
|
|
|
2121
2120
|
//#endregion
|
|
@@ -2197,8 +2196,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
|
|
|
2197
2196
|
const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
2198
2197
|
const padField = (field, padding) => String(field).padStart(padding, "0");
|
|
2199
2198
|
const getFinalIcon = ({ failed, reject }) => {
|
|
2200
|
-
if (!failed) return
|
|
2201
|
-
return reject ?
|
|
2199
|
+
if (!failed) return figures.tick;
|
|
2200
|
+
return reject ? figures.cross : figures.warning;
|
|
2202
2201
|
};
|
|
2203
2202
|
const ICONS = {
|
|
2204
2203
|
command: ({ piped }) => piped ? "|" : "$",
|
|
@@ -12269,10 +12268,9 @@ var require_mod_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg
|
|
|
12269
12268
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
|
|
12270
12269
|
var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
|
|
12271
12270
|
var mod_esm_exports = {};
|
|
12272
|
-
__export(mod_esm_exports, { default: () =>
|
|
12271
|
+
__export(mod_esm_exports, { default: () => import_mod_cjs.default });
|
|
12273
12272
|
var import_mod_cjs = /* @__PURE__ */ __toESM(require_mod_cjs(), 1);
|
|
12274
12273
|
__reExport(mod_esm_exports, /* @__PURE__ */ __toESM(require_mod_cjs(), 1));
|
|
12275
|
-
var mod_esm_default = import_mod_cjs.default;
|
|
12276
12274
|
|
|
12277
12275
|
//#endregion
|
|
12278
12276
|
//#region iac/getWranglerLoginAuthToken.ts
|
|
@@ -12284,7 +12282,7 @@ const isDirectory = (configPath) => {
|
|
|
12284
12282
|
}
|
|
12285
12283
|
};
|
|
12286
12284
|
const getGlobalWranglerConfigPath = () => {
|
|
12287
|
-
const configDir =
|
|
12285
|
+
const configDir = (0, import_mod_cjs.default)(".wrangler").config();
|
|
12288
12286
|
const legacyConfigDir = path.join(os.homedir(), ".wrangler");
|
|
12289
12287
|
if (isDirectory(legacyConfigDir)) return legacyConfigDir;
|
|
12290
12288
|
return configDir;
|
|
@@ -12335,7 +12333,7 @@ function App() {
|
|
|
12335
12333
|
|
|
12336
12334
|
export default HotUpdater.wrap({
|
|
12337
12335
|
source: getUpdateSource("%%source%%", {
|
|
12338
|
-
updateStrategy: "
|
|
12336
|
+
updateStrategy: "appVersion", // or "fingerprint"
|
|
12339
12337
|
}),
|
|
12340
12338
|
})(App);`;
|
|
12341
12339
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName, r2BucketName }) => {
|
package/dist/index.cjs
CHANGED
|
@@ -1042,7 +1042,6 @@ const fallbackSymbols = {
|
|
|
1042
1042
|
};
|
|
1043
1043
|
const shouldUseMain = isUnicodeSupported();
|
|
1044
1044
|
const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
1045
|
-
var figures_default = figures;
|
|
1046
1045
|
const replacements = Object.entries(specialMainSymbols);
|
|
1047
1046
|
|
|
1048
1047
|
//#endregion
|
|
@@ -1124,8 +1123,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
|
|
|
1124
1123
|
const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
1125
1124
|
const padField = (field, padding) => String(field).padStart(padding, "0");
|
|
1126
1125
|
const getFinalIcon = ({ failed, reject }) => {
|
|
1127
|
-
if (!failed) return
|
|
1128
|
-
return reject ?
|
|
1126
|
+
if (!failed) return figures.tick;
|
|
1127
|
+
return reject ? figures.cross : figures.warning;
|
|
1129
1128
|
};
|
|
1130
1129
|
const ICONS = {
|
|
1131
1130
|
command: ({ piped }) => piped ? "|" : "$",
|
|
@@ -6880,7 +6879,7 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
|
|
|
6880
6879
|
|
|
6881
6880
|
//#endregion
|
|
6882
6881
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
|
|
6883
|
-
const types
|
|
6882
|
+
const types = {
|
|
6884
6883
|
"application/prs.cww": ["cww"],
|
|
6885
6884
|
"application/prs.xsf+xml": ["xsf"],
|
|
6886
6885
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -7691,12 +7690,11 @@ const types$1 = {
|
|
|
7691
7690
|
"video/x-smv": ["smv"],
|
|
7692
7691
|
"x-conference/x-cooltalk": ["ice"]
|
|
7693
7692
|
};
|
|
7694
|
-
Object.freeze(types
|
|
7695
|
-
var other_default = types$1;
|
|
7693
|
+
Object.freeze(types);
|
|
7696
7694
|
|
|
7697
7695
|
//#endregion
|
|
7698
7696
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
|
|
7699
|
-
const types = {
|
|
7697
|
+
const types$1 = {
|
|
7700
7698
|
"application/andrew-inset": ["ez"],
|
|
7701
7699
|
"application/appinstaller": ["appinstaller"],
|
|
7702
7700
|
"application/applixware": ["aw"],
|
|
@@ -8138,8 +8136,7 @@ const types = {
|
|
|
8138
8136
|
"video/quicktime": ["qt", "mov"],
|
|
8139
8137
|
"video/webm": ["webm"]
|
|
8140
8138
|
};
|
|
8141
|
-
Object.freeze(types);
|
|
8142
|
-
var standard_default = types;
|
|
8139
|
+
Object.freeze(types$1);
|
|
8143
8140
|
|
|
8144
8141
|
//#endregion
|
|
8145
8142
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
|
|
@@ -8211,11 +8208,10 @@ var Mime = class {
|
|
|
8211
8208
|
}
|
|
8212
8209
|
};
|
|
8213
8210
|
_Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
|
|
8214
|
-
var Mime_default = Mime;
|
|
8215
8211
|
|
|
8216
8212
|
//#endregion
|
|
8217
8213
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
|
|
8218
|
-
var src_default = new
|
|
8214
|
+
var src_default = new Mime(types$1, types)._freeze();
|
|
8219
8215
|
|
|
8220
8216
|
//#endregion
|
|
8221
8217
|
//#region src/r2Storage.ts
|
package/dist/index.js
CHANGED
|
@@ -1044,7 +1044,6 @@ const fallbackSymbols = {
|
|
|
1044
1044
|
};
|
|
1045
1045
|
const shouldUseMain = isUnicodeSupported();
|
|
1046
1046
|
const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
1047
|
-
var figures_default = figures;
|
|
1048
1047
|
const replacements = Object.entries(specialMainSymbols);
|
|
1049
1048
|
|
|
1050
1049
|
//#endregion
|
|
@@ -1126,8 +1125,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
|
|
|
1126
1125
|
const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
1127
1126
|
const padField = (field, padding) => String(field).padStart(padding, "0");
|
|
1128
1127
|
const getFinalIcon = ({ failed, reject }) => {
|
|
1129
|
-
if (!failed) return
|
|
1130
|
-
return reject ?
|
|
1128
|
+
if (!failed) return figures.tick;
|
|
1129
|
+
return reject ? figures.cross : figures.warning;
|
|
1131
1130
|
};
|
|
1132
1131
|
const ICONS = {
|
|
1133
1132
|
command: ({ piped }) => piped ? "|" : "$",
|
|
@@ -6882,7 +6881,7 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
|
|
|
6882
6881
|
|
|
6883
6882
|
//#endregion
|
|
6884
6883
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
|
|
6885
|
-
const types
|
|
6884
|
+
const types = {
|
|
6886
6885
|
"application/prs.cww": ["cww"],
|
|
6887
6886
|
"application/prs.xsf+xml": ["xsf"],
|
|
6888
6887
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -7693,12 +7692,11 @@ const types$1 = {
|
|
|
7693
7692
|
"video/x-smv": ["smv"],
|
|
7694
7693
|
"x-conference/x-cooltalk": ["ice"]
|
|
7695
7694
|
};
|
|
7696
|
-
Object.freeze(types
|
|
7697
|
-
var other_default = types$1;
|
|
7695
|
+
Object.freeze(types);
|
|
7698
7696
|
|
|
7699
7697
|
//#endregion
|
|
7700
7698
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
|
|
7701
|
-
const types = {
|
|
7699
|
+
const types$1 = {
|
|
7702
7700
|
"application/andrew-inset": ["ez"],
|
|
7703
7701
|
"application/appinstaller": ["appinstaller"],
|
|
7704
7702
|
"application/applixware": ["aw"],
|
|
@@ -8140,8 +8138,7 @@ const types = {
|
|
|
8140
8138
|
"video/quicktime": ["qt", "mov"],
|
|
8141
8139
|
"video/webm": ["webm"]
|
|
8142
8140
|
};
|
|
8143
|
-
Object.freeze(types);
|
|
8144
|
-
var standard_default = types;
|
|
8141
|
+
Object.freeze(types$1);
|
|
8145
8142
|
|
|
8146
8143
|
//#endregion
|
|
8147
8144
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
|
|
@@ -8213,11 +8210,10 @@ var Mime = class {
|
|
|
8213
8210
|
}
|
|
8214
8211
|
};
|
|
8215
8212
|
_Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
|
|
8216
|
-
var Mime_default = Mime;
|
|
8217
8213
|
|
|
8218
8214
|
//#endregion
|
|
8219
8215
|
//#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
|
|
8220
|
-
var src_default = new
|
|
8216
|
+
var src_default = new Mime(types$1, types)._freeze();
|
|
8221
8217
|
|
|
8222
8218
|
//#endregion
|
|
8223
8219
|
//#region src/r2Storage.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/cloudflare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.4",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"cloudflare": "4.2.0",
|
|
43
|
-
"@hot-updater/core": "0.20.
|
|
44
|
-
"@hot-updater/
|
|
45
|
-
"@hot-updater/
|
|
43
|
+
"@hot-updater/core": "0.20.4",
|
|
44
|
+
"@hot-updater/js": "0.20.4",
|
|
45
|
+
"@hot-updater/plugin-core": "0.20.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@clack/prompts": "0.10.0",
|
package/worker/dist/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "hot-updater" generated at 2025-08-
|
|
1
|
+
This folder contains the built output assets for the worker "hot-updater" generated at 2025-08-19T10:58:23.431Z.
|