@hot-updater/standalone 0.17.0 → 0.18.0
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 +1485 -3407
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -2
- package/dist/index.js +1482 -3374
- package/package.json +4 -4
- package/dist/standaloneRepository.d.ts +0 -16
- package/dist/standaloneRepository.spec.d.ts +0 -1
- package/dist/standaloneStorage.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/standalone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hot-updater/
|
|
42
|
-
"@hot-updater/core": "0.
|
|
41
|
+
"@hot-updater/core": "0.18.0",
|
|
42
|
+
"@hot-updater/plugin-core": "0.18.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"mime": "2.6.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vitest": "^3.0.6"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "
|
|
54
|
+
"build": "tsdown",
|
|
55
55
|
"test:type": "tsc --noEmit"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { DatabasePluginHooks } from "@hot-updater/plugin-core";
|
|
2
|
-
export interface RouteConfig {
|
|
3
|
-
path: string;
|
|
4
|
-
headers?: Record<string, string>;
|
|
5
|
-
}
|
|
6
|
-
export interface Routes {
|
|
7
|
-
upsert: () => RouteConfig;
|
|
8
|
-
list: () => RouteConfig;
|
|
9
|
-
retrieve: (bundleId: string) => RouteConfig;
|
|
10
|
-
}
|
|
11
|
-
export interface StandaloneRepositoryConfig {
|
|
12
|
-
baseUrl: string;
|
|
13
|
-
commonHeaders?: Record<string, string>;
|
|
14
|
-
routes?: Routes;
|
|
15
|
-
}
|
|
16
|
-
export declare const standaloneRepository: (config: StandaloneRepositoryConfig, hooks?: DatabasePluginHooks) => (options: import("@hot-updater/plugin-core").BasePluginArgs) => import("@hot-updater/plugin-core").DatabasePlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { BasePluginArgs, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
|
|
2
|
-
import type { RouteConfig } from "./standaloneRepository";
|
|
3
|
-
export interface StorageRoutes {
|
|
4
|
-
uploadBundle: (bundleId: string, bundlePath: string) => RouteConfig;
|
|
5
|
-
deleteBundle: (bundleId: string) => RouteConfig;
|
|
6
|
-
}
|
|
7
|
-
export interface StandaloneStorageConfig {
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
commonHeaders?: Record<string, string>;
|
|
10
|
-
routes?: StorageRoutes;
|
|
11
|
-
}
|
|
12
|
-
export declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
|