@hot-updater/standalone 1.0.0-rc.17 → 1.0.0-rc.21
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 +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +10 -4
package/dist/index.cjs
CHANGED
|
@@ -280,7 +280,7 @@ const standaloneStorage = (config) => {
|
|
|
280
280
|
if (!response.ok && response.status !== 404) throw new Error(`Failed to ${routeName} storage object: ${response.statusText}`);
|
|
281
281
|
return response;
|
|
282
282
|
};
|
|
283
|
-
return (0, _hot_updater_plugin_core.
|
|
283
|
+
return (0, _hot_updater_plugin_core.createStorageAdapter)({
|
|
284
284
|
name: "standaloneStorage",
|
|
285
285
|
protocol: config.protocol,
|
|
286
286
|
async put({ key, body, contentType, contentLength }) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatabaseBundleNotFoundError, ReleaseCatalogMutationError, ReleaseManagementError,
|
|
1
|
+
import { DatabaseBundleNotFoundError, ReleaseCatalogMutationError, ReleaseManagementError, createStorageAdapter, parseStorageUri } from "@hot-updater/plugin-core";
|
|
2
2
|
//#region src/standaloneHttp.ts
|
|
3
3
|
var StandaloneDatabaseError = class extends Error {
|
|
4
4
|
code;
|
|
@@ -279,7 +279,7 @@ const standaloneStorage = (config) => {
|
|
|
279
279
|
if (!response.ok && response.status !== 404) throw new Error(`Failed to ${routeName} storage object: ${response.statusText}`);
|
|
280
280
|
return response;
|
|
281
281
|
};
|
|
282
|
-
return
|
|
282
|
+
return createStorageAdapter({
|
|
283
283
|
name: "standaloneStorage",
|
|
284
284
|
protocol: config.protocol,
|
|
285
285
|
async put({ key, body, contentType, contentLength }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/standalone",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@hot-updater/
|
|
46
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
45
|
+
"@hot-updater/protocol": "1.0.0-rc.21",
|
|
46
|
+
"@hot-updater/plugin-core": "1.0.0-rc.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"mime": "2.6.0",
|
|
@@ -51,7 +51,13 @@
|
|
|
51
51
|
"@types/node": "^20",
|
|
52
52
|
"msw": "^2.7.0",
|
|
53
53
|
"verkit": "0.4.0",
|
|
54
|
-
"vitest": "4.1.4"
|
|
54
|
+
"vitest": "4.1.4",
|
|
55
|
+
"@hot-updater/test-utils": "1.0.0-rc.21"
|
|
56
|
+
},
|
|
57
|
+
"nx": {
|
|
58
|
+
"implicitDependencies": [
|
|
59
|
+
"!@hot-updater/test-utils"
|
|
60
|
+
]
|
|
55
61
|
},
|
|
56
62
|
"scripts": {
|
|
57
63
|
"build": "tsdown",
|