@hot-updater/cloudflare 0.12.4 → 0.12.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.
- package/dist/index.cjs +8 -3
- package/dist/index.js +8 -3
- package/package.json +5 -5
- package/worker/dist/README.md +1 -1
- package/worker/dist/index.js +884 -1512
- package/worker/dist/index.js.map +4 -4
- package/worker/wrangler.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7888,7 +7888,8 @@ var r2Storage = (config, hooks) => (_) => {
|
|
|
7888
7888
|
"r2",
|
|
7889
7889
|
"object",
|
|
7890
7890
|
"delete",
|
|
7891
|
-
[bucketName, bundleId].join("/")
|
|
7891
|
+
[bucketName, bundleId].join("/"),
|
|
7892
|
+
"--remote"
|
|
7892
7893
|
);
|
|
7893
7894
|
throw new Error("Bundle Not Found");
|
|
7894
7895
|
},
|
|
@@ -7897,15 +7898,19 @@ var r2Storage = (config, hooks) => (_) => {
|
|
|
7897
7898
|
const filename = import_path.default.basename(bundlePath);
|
|
7898
7899
|
const Key = [bundleId, filename].join("/");
|
|
7899
7900
|
try {
|
|
7900
|
-
await wrangler(
|
|
7901
|
+
const { stderr } = await wrangler(
|
|
7901
7902
|
"r2",
|
|
7902
7903
|
"object",
|
|
7903
7904
|
"put",
|
|
7904
7905
|
[bucketName, Key].join("/"),
|
|
7905
7906
|
"--file",
|
|
7906
7907
|
bundlePath,
|
|
7907
|
-
...contentType ? ["--content-type", contentType] : []
|
|
7908
|
+
...contentType ? ["--content-type", contentType] : [],
|
|
7909
|
+
"--remote"
|
|
7908
7910
|
);
|
|
7911
|
+
if (stderr) {
|
|
7912
|
+
throw new Error(stderr);
|
|
7913
|
+
}
|
|
7909
7914
|
} catch (error) {
|
|
7910
7915
|
if (error instanceof ExecaError) {
|
|
7911
7916
|
throw new Error(error.stderr || error.stdout);
|
package/dist/index.js
CHANGED
|
@@ -566,7 +566,8 @@ var r2Storage = (config, hooks) => (_) => {
|
|
|
566
566
|
"r2",
|
|
567
567
|
"object",
|
|
568
568
|
"delete",
|
|
569
|
-
[bucketName, bundleId].join("/")
|
|
569
|
+
[bucketName, bundleId].join("/"),
|
|
570
|
+
"--remote"
|
|
570
571
|
);
|
|
571
572
|
throw new Error("Bundle Not Found");
|
|
572
573
|
},
|
|
@@ -575,15 +576,19 @@ var r2Storage = (config, hooks) => (_) => {
|
|
|
575
576
|
const filename = path.basename(bundlePath);
|
|
576
577
|
const Key = [bundleId, filename].join("/");
|
|
577
578
|
try {
|
|
578
|
-
await wrangler(
|
|
579
|
+
const { stderr } = await wrangler(
|
|
579
580
|
"r2",
|
|
580
581
|
"object",
|
|
581
582
|
"put",
|
|
582
583
|
[bucketName, Key].join("/"),
|
|
583
584
|
"--file",
|
|
584
585
|
bundlePath,
|
|
585
|
-
...contentType ? ["--content-type", contentType] : []
|
|
586
|
+
...contentType ? ["--content-type", contentType] : [],
|
|
587
|
+
"--remote"
|
|
586
588
|
);
|
|
589
|
+
if (stderr) {
|
|
590
|
+
throw new Error(stderr);
|
|
591
|
+
}
|
|
587
592
|
} catch (error) {
|
|
588
593
|
if (error instanceof ExecaError) {
|
|
589
594
|
throw new Error(error.stderr || error.stdout);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/cloudflare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.5",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hot-updater/core": "0.12.
|
|
43
|
-
"@hot-updater/js": "0.12.
|
|
44
|
-
"@hot-updater/plugin-core": "0.12.
|
|
42
|
+
"@hot-updater/core": "0.12.5",
|
|
43
|
+
"@hot-updater/js": "0.12.5",
|
|
44
|
+
"@hot-updater/plugin-core": "0.12.5",
|
|
45
45
|
"cloudflare": "4.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"toml": "^3.0.0",
|
|
59
59
|
"typescript": "^5.5.2",
|
|
60
60
|
"vitest": "2.1.8",
|
|
61
|
-
"wrangler": "^
|
|
61
|
+
"wrangler": "^4.0.0",
|
|
62
62
|
"xdg-app-paths": "^8.3.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
package/worker/dist/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-
|
|
1
|
+
This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-17T11:44:27.388Z.
|