@hot-updater/react-native 1.0.0-rc.15 → 1.0.0-rc.17
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/android/src/main/java/com/hotupdater/BundleFileStorageService.kt +491 -388
- package/android/src/main/java/com/hotupdater/BundleMetadata.kt +5 -11
- package/android/src/main/java/com/hotupdater/FileManagerService.kt +45 -0
- package/android/src/main/java/com/hotupdater/HotUpdaterException.kt +290 -12
- package/android/src/main/java/com/hotupdater/HotUpdaterImpl.kt +35 -19
- package/android/src/main/java/com/hotupdater/InstallIdentityService.kt +37 -0
- package/android/src/main/java/com/hotupdater/KeyValueStorageService.kt +86 -0
- package/android/src/main/java/com/hotupdater/NetworkState.kt +31 -0
- package/android/src/main/java/com/hotupdater/NoBackupStorage.kt +17 -0
- package/android/src/main/java/com/hotupdater/OkHttpDownloadService.kt +110 -52
- package/android/src/main/java/com/hotupdater/PreviousProcessExit.kt +89 -0
- package/android/src/main/java/com/hotupdater/ReactNativeValueConverters.kt +34 -0
- package/android/src/newarch/HotUpdaterModule.kt +74 -69
- package/android/src/oldarch/HotUpdaterModule.kt +63 -59
- package/android/src/oldarch/HotUpdaterSpec.kt +4 -6
- package/android/src/test/java/com/hotupdater/BsdiffPatchTest.kt +1 -1
- package/android/src/test/java/com/hotupdater/BundleFileStorageServiceTest.kt +446 -61
- package/android/src/test/java/com/hotupdater/HotUpdaterExceptionTest.kt +220 -0
- package/android/src/test/java/com/hotupdater/HotUpdaterImplTest.kt +19 -27
- package/android/src/test/java/com/hotupdater/InstallIdentityServiceTest.kt +71 -0
- package/android/src/test/java/com/hotupdater/KeyValueStorageServiceTest.kt +106 -0
- package/android/src/test/java/com/hotupdater/NoBackupContext.kt +11 -0
- package/android/src/test/java/com/hotupdater/OkHttpDownloadServiceTest.kt +309 -23
- package/android/src/test/java/com/hotupdater/PreviousProcessExitTest.kt +57 -0
- package/ios/HotUpdater/Internal/BundleFileStorageService.swift +238 -157
- package/ios/HotUpdater/Internal/BundleMetadata.swift +3 -53
- package/ios/HotUpdater/Internal/FileManagerService.swift +48 -0
- package/ios/HotUpdater/Internal/HotUpdater.mm +8 -18
- package/ios/HotUpdater/Internal/HotUpdaterImpl.swift +48 -29
- package/ios/HotUpdater/Internal/KeyValueStorageService.swift +71 -0
- package/ios/HotUpdater/Internal/URLSessionDownloadService.swift +108 -1
- package/ios/HotUpdater/Internal/UpdateFailure.swift +390 -0
- package/lib/commonjs/appReady.js +111 -0
- package/lib/commonjs/appReady.js.map +1 -0
- package/lib/commonjs/appReady.spec.js +360 -0
- package/lib/commonjs/appReady.spec.js.map +1 -0
- package/lib/commonjs/{notifyAppReadyInsights.test-utils.js → appReady.test-utils.js} +4 -3
- package/lib/commonjs/appReady.test-utils.js.map +1 -0
- package/lib/commonjs/baseURL.js +16 -0
- package/lib/commonjs/baseURL.js.map +1 -0
- package/lib/commonjs/checkForUpdate.js +104 -56
- package/lib/commonjs/checkForUpdate.js.map +1 -1
- package/lib/commonjs/checkForUpdate.releaseCatalog.spec.js +337 -74
- package/lib/commonjs/checkForUpdate.releaseCatalog.spec.js.map +1 -1
- package/lib/commonjs/clientPlugin.js +49 -0
- package/lib/commonjs/clientPlugin.js.map +1 -0
- package/lib/commonjs/entryImportGraph.spec.js +50 -0
- package/lib/commonjs/entryImportGraph.spec.js.map +1 -0
- package/lib/commonjs/fetchJSON.js +2 -6
- package/lib/commonjs/fetchJSON.js.map +1 -1
- package/lib/commonjs/httpClient.js +15 -67
- package/lib/commonjs/httpClient.js.map +1 -1
- package/lib/commonjs/httpClient.spec.js +26 -9
- package/lib/commonjs/httpClient.spec.js.map +1 -1
- package/lib/commonjs/index.js +49 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.spec.js +126 -40
- package/lib/commonjs/index.spec.js.map +1 -1
- package/lib/commonjs/native.js +67 -48
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/native.spec.js +80 -58
- package/lib/commonjs/native.spec.js.map +1 -1
- package/lib/commonjs/pluginHost.js +208 -0
- package/lib/commonjs/pluginHost.js.map +1 -0
- package/lib/commonjs/pluginHost.spec.js +292 -0
- package/lib/commonjs/pluginHost.spec.js.map +1 -0
- package/lib/commonjs/plugins/insights/eventId.js +129 -0
- package/lib/commonjs/plugins/insights/eventId.js.map +1 -0
- package/lib/commonjs/plugins/insights/eventId.spec.js +47 -0
- package/lib/commonjs/plugins/insights/eventId.spec.js.map +1 -0
- package/lib/commonjs/plugins/insights/index.js +272 -0
- package/lib/commonjs/plugins/insights/index.js.map +1 -0
- package/lib/commonjs/plugins/insights/insights.spec.js +640 -0
- package/lib/commonjs/plugins/insights/insights.spec.js.map +1 -0
- package/lib/commonjs/plugins/insights/sender.js +128 -0
- package/lib/commonjs/plugins/insights/sender.js.map +1 -0
- package/lib/commonjs/plugins/insights/sender.spec.js +265 -0
- package/lib/commonjs/plugins/insights/sender.spec.js.map +1 -0
- package/lib/commonjs/plugins/insights/state.js +145 -0
- package/lib/commonjs/plugins/insights/state.js.map +1 -0
- package/lib/commonjs/releaseCatalogCache.js +13 -2
- package/lib/commonjs/releaseCatalogCache.js.map +1 -1
- package/lib/commonjs/releaseCatalogCache.spec.js +18 -0
- package/lib/commonjs/releaseCatalogCache.spec.js.map +1 -1
- package/lib/commonjs/sdkVersion.js +1 -1
- package/lib/commonjs/specs/NativeHotUpdater.js.map +1 -1
- package/lib/commonjs/updateError.js +132 -0
- package/lib/commonjs/updateError.js.map +1 -0
- package/lib/commonjs/updateError.spec.js +149 -0
- package/lib/commonjs/updateError.spec.js.map +1 -0
- package/lib/commonjs/wrap.js +43 -25
- package/lib/commonjs/wrap.js.map +1 -1
- package/lib/commonjs/wrap.progress.spec.js +195 -0
- package/lib/commonjs/wrap.progress.spec.js.map +1 -0
- package/lib/commonjs/wrap.spec.js +94 -230
- package/lib/commonjs/wrap.spec.js.map +1 -1
- package/lib/module/appReady.js +103 -0
- package/lib/module/appReady.js.map +1 -0
- package/lib/module/appReady.spec.js +359 -0
- package/lib/module/appReady.spec.js.map +1 -0
- package/lib/module/{notifyAppReadyInsights.test-utils.js → appReady.test-utils.js} +4 -3
- package/lib/module/appReady.test-utils.js.map +1 -0
- package/lib/module/baseURL.js +11 -0
- package/lib/module/baseURL.js.map +1 -0
- package/lib/module/checkForUpdate.js +103 -57
- package/lib/module/checkForUpdate.js.map +1 -1
- package/lib/module/checkForUpdate.releaseCatalog.spec.js +337 -74
- package/lib/module/checkForUpdate.releaseCatalog.spec.js.map +1 -1
- package/lib/module/clientPlugin.js +44 -0
- package/lib/module/clientPlugin.js.map +1 -0
- package/lib/module/entryImportGraph.spec.js +50 -0
- package/lib/module/entryImportGraph.spec.js.map +1 -0
- package/lib/module/fetchJSON.js +2 -6
- package/lib/module/fetchJSON.js.map +1 -1
- package/lib/module/httpClient.js +14 -66
- package/lib/module/httpClient.js.map +1 -1
- package/lib/module/httpClient.spec.js +26 -9
- package/lib/module/httpClient.spec.js.map +1 -1
- package/lib/module/index.js +44 -27
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.spec.js +127 -41
- package/lib/module/index.spec.js.map +1 -1
- package/lib/module/native.js +63 -44
- package/lib/module/native.js.map +1 -1
- package/lib/module/native.spec.js +80 -58
- package/lib/module/native.spec.js.map +1 -1
- package/lib/module/pluginHost.js +200 -0
- package/lib/module/pluginHost.js.map +1 -0
- package/lib/module/pluginHost.spec.js +291 -0
- package/lib/module/pluginHost.spec.js.map +1 -0
- package/lib/module/plugins/insights/eventId.js +122 -0
- package/lib/module/plugins/insights/eventId.js.map +1 -0
- package/lib/module/plugins/insights/eventId.spec.js +47 -0
- package/lib/module/plugins/insights/eventId.spec.js.map +1 -0
- package/lib/module/plugins/insights/index.js +268 -0
- package/lib/module/plugins/insights/index.js.map +1 -0
- package/lib/module/plugins/insights/insights.spec.js +639 -0
- package/lib/module/plugins/insights/insights.spec.js.map +1 -0
- package/lib/module/plugins/insights/sender.js +123 -0
- package/lib/module/plugins/insights/sender.js.map +1 -0
- package/lib/module/plugins/insights/sender.spec.js +265 -0
- package/lib/module/plugins/insights/sender.spec.js.map +1 -0
- package/lib/module/plugins/insights/state.js +139 -0
- package/lib/module/plugins/insights/state.js.map +1 -0
- package/lib/module/releaseCatalogCache.js +13 -2
- package/lib/module/releaseCatalogCache.js.map +1 -1
- package/lib/module/releaseCatalogCache.spec.js +18 -0
- package/lib/module/releaseCatalogCache.spec.js.map +1 -1
- package/lib/module/sdkVersion.js +1 -1
- package/lib/module/specs/NativeHotUpdater.js.map +1 -1
- package/lib/module/updateError.js +126 -0
- package/lib/module/updateError.js.map +1 -0
- package/lib/module/updateError.spec.js +149 -0
- package/lib/module/updateError.spec.js.map +1 -0
- package/lib/module/wrap.js +43 -25
- package/lib/module/wrap.js.map +1 -1
- package/lib/module/wrap.progress.spec.js +196 -0
- package/lib/module/wrap.progress.spec.js.map +1 -0
- package/lib/module/wrap.spec.js +93 -229
- package/lib/module/wrap.spec.js.map +1 -1
- package/lib/typescript/commonjs/appReady.d.ts +23 -0
- package/lib/typescript/commonjs/appReady.d.ts.map +1 -0
- package/lib/typescript/commonjs/appReady.test-utils.d.ts +9 -0
- package/lib/typescript/commonjs/appReady.test-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/baseURL.d.ts +4 -0
- package/lib/typescript/commonjs/baseURL.d.ts.map +1 -0
- package/lib/typescript/commonjs/checkForUpdate.d.ts +15 -2
- package/lib/typescript/commonjs/checkForUpdate.d.ts.map +1 -1
- package/lib/typescript/commonjs/clientPlugin.d.ts +185 -0
- package/lib/typescript/commonjs/clientPlugin.d.ts.map +1 -0
- package/lib/typescript/commonjs/fetchJSON.d.ts +2 -3
- package/lib/typescript/commonjs/fetchJSON.d.ts.map +1 -1
- package/lib/typescript/commonjs/httpClient.d.ts +2 -30
- package/lib/typescript/commonjs/httpClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -6
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/native.d.ts +29 -15
- package/lib/typescript/commonjs/native.d.ts.map +1 -1
- package/lib/typescript/commonjs/pluginHost.d.ts +29 -0
- package/lib/typescript/commonjs/pluginHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugins/insights/eventId.d.ts +18 -0
- package/lib/typescript/commonjs/plugins/insights/eventId.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugins/insights/index.d.ts +40 -0
- package/lib/typescript/commonjs/plugins/insights/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugins/insights/sender.d.ts +74 -0
- package/lib/typescript/commonjs/plugins/insights/sender.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugins/insights/state.d.ts +46 -0
- package/lib/typescript/commonjs/plugins/insights/state.d.ts.map +1 -0
- package/lib/typescript/commonjs/releaseCatalogCache.d.ts +5 -1
- package/lib/typescript/commonjs/releaseCatalogCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/sdkVersion.d.ts +1 -1
- package/lib/typescript/commonjs/specs/NativeHotUpdater.d.ts +34 -12
- package/lib/typescript/commonjs/specs/NativeHotUpdater.d.ts.map +1 -1
- package/lib/typescript/commonjs/updateError.d.ts +26 -0
- package/lib/typescript/commonjs/updateError.d.ts.map +1 -0
- package/lib/typescript/commonjs/wrap.d.ts.map +1 -1
- package/lib/typescript/commonjs/wrap.types.d.ts +6 -5
- package/lib/typescript/commonjs/wrap.types.d.ts.map +1 -1
- package/lib/typescript/module/appReady.d.ts +23 -0
- package/lib/typescript/module/appReady.d.ts.map +1 -0
- package/lib/typescript/module/appReady.test-utils.d.ts +9 -0
- package/lib/typescript/module/appReady.test-utils.d.ts.map +1 -0
- package/lib/typescript/module/baseURL.d.ts +4 -0
- package/lib/typescript/module/baseURL.d.ts.map +1 -0
- package/lib/typescript/module/checkForUpdate.d.ts +15 -2
- package/lib/typescript/module/checkForUpdate.d.ts.map +1 -1
- package/lib/typescript/module/clientPlugin.d.ts +185 -0
- package/lib/typescript/module/clientPlugin.d.ts.map +1 -0
- package/lib/typescript/module/fetchJSON.d.ts +2 -3
- package/lib/typescript/module/fetchJSON.d.ts.map +1 -1
- package/lib/typescript/module/httpClient.d.ts +2 -30
- package/lib/typescript/module/httpClient.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -6
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/native.d.ts +29 -15
- package/lib/typescript/module/native.d.ts.map +1 -1
- package/lib/typescript/module/pluginHost.d.ts +29 -0
- package/lib/typescript/module/pluginHost.d.ts.map +1 -0
- package/lib/typescript/module/plugins/insights/eventId.d.ts +18 -0
- package/lib/typescript/module/plugins/insights/eventId.d.ts.map +1 -0
- package/lib/typescript/module/plugins/insights/index.d.ts +40 -0
- package/lib/typescript/module/plugins/insights/index.d.ts.map +1 -0
- package/lib/typescript/module/plugins/insights/sender.d.ts +74 -0
- package/lib/typescript/module/plugins/insights/sender.d.ts.map +1 -0
- package/lib/typescript/module/plugins/insights/state.d.ts +46 -0
- package/lib/typescript/module/plugins/insights/state.d.ts.map +1 -0
- package/lib/typescript/module/releaseCatalogCache.d.ts +5 -1
- package/lib/typescript/module/releaseCatalogCache.d.ts.map +1 -1
- package/lib/typescript/module/sdkVersion.d.ts +1 -1
- package/lib/typescript/module/specs/NativeHotUpdater.d.ts +34 -12
- package/lib/typescript/module/specs/NativeHotUpdater.d.ts.map +1 -1
- package/lib/typescript/module/updateError.d.ts +26 -0
- package/lib/typescript/module/updateError.d.ts.map +1 -0
- package/lib/typescript/module/wrap.d.ts.map +1 -1
- package/lib/typescript/module/wrap.types.d.ts +6 -5
- package/lib/typescript/module/wrap.types.d.ts.map +1 -1
- package/package.json +14 -2
- package/plugins/insights/package.json +8 -0
- package/src/appReady.spec.ts +393 -0
- package/src/{notifyAppReadyInsights.test-utils.ts → appReady.test-utils.ts} +7 -7
- package/src/appReady.ts +149 -0
- package/src/baseURL.ts +15 -0
- package/src/checkForUpdate.releaseCatalog.spec.ts +370 -76
- package/src/checkForUpdate.ts +135 -80
- package/src/clientPlugin.ts +231 -0
- package/src/entryImportGraph.spec.ts +65 -0
- package/src/fetchJSON.ts +3 -10
- package/src/httpClient.spec.ts +28 -9
- package/src/httpClient.ts +16 -109
- package/src/index.spec.ts +129 -36
- package/src/index.ts +67 -37
- package/src/native.spec.ts +98 -72
- package/src/native.ts +93 -77
- package/src/pluginHost.spec.ts +297 -0
- package/src/pluginHost.ts +262 -0
- package/src/plugins/insights/eventId.spec.ts +60 -0
- package/src/plugins/insights/eventId.ts +171 -0
- package/src/plugins/insights/index.ts +367 -0
- package/src/plugins/insights/insights.spec.ts +732 -0
- package/src/plugins/insights/sender.spec.ts +287 -0
- package/src/plugins/insights/sender.ts +221 -0
- package/src/plugins/insights/state.ts +184 -0
- package/src/releaseCatalogCache.spec.ts +22 -0
- package/src/releaseCatalogCache.ts +19 -4
- package/src/sdkVersion.ts +1 -1
- package/src/specs/NativeHotUpdater.ts +34 -13
- package/src/updateError.spec.ts +144 -0
- package/src/updateError.ts +153 -0
- package/src/wrap.progress.spec.ts +232 -0
- package/src/wrap.spec.ts +100 -283
- package/src/wrap.tsx +57 -26
- package/src/wrap.types.ts +6 -5
- package/lib/commonjs/notifyAppReadyInsights.boundary.spec.js +0 -225
- package/lib/commonjs/notifyAppReadyInsights.boundary.spec.js.map +0 -1
- package/lib/commonjs/notifyAppReadyInsights.js +0 -188
- package/lib/commonjs/notifyAppReadyInsights.js.map +0 -1
- package/lib/commonjs/notifyAppReadyInsights.spec.js +0 -378
- package/lib/commonjs/notifyAppReadyInsights.spec.js.map +0 -1
- package/lib/commonjs/notifyAppReadyInsights.test-utils.js.map +0 -1
- package/lib/commonjs/notifyAppReadyInsights.transport.spec.js +0 -124
- package/lib/commonjs/notifyAppReadyInsights.transport.spec.js.map +0 -1
- package/lib/module/notifyAppReadyInsights.boundary.spec.js +0 -224
- package/lib/module/notifyAppReadyInsights.boundary.spec.js.map +0 -1
- package/lib/module/notifyAppReadyInsights.js +0 -181
- package/lib/module/notifyAppReadyInsights.js.map +0 -1
- package/lib/module/notifyAppReadyInsights.spec.js +0 -377
- package/lib/module/notifyAppReadyInsights.spec.js.map +0 -1
- package/lib/module/notifyAppReadyInsights.test-utils.js.map +0 -1
- package/lib/module/notifyAppReadyInsights.transport.spec.js +0 -123
- package/lib/module/notifyAppReadyInsights.transport.spec.js.map +0 -1
- package/lib/typescript/commonjs/notifyAppReadyInsights.d.ts +0 -25
- package/lib/typescript/commonjs/notifyAppReadyInsights.d.ts.map +0 -1
- package/lib/typescript/commonjs/notifyAppReadyInsights.test-utils.d.ts +0 -8
- package/lib/typescript/commonjs/notifyAppReadyInsights.test-utils.d.ts.map +0 -1
- package/lib/typescript/module/notifyAppReadyInsights.d.ts +0 -25
- package/lib/typescript/module/notifyAppReadyInsights.d.ts.map +0 -1
- package/lib/typescript/module/notifyAppReadyInsights.test-utils.d.ts +0 -8
- package/lib/typescript/module/notifyAppReadyInsights.test-utils.d.ts.map +0 -1
- package/src/notifyAppReadyInsights.boundary.spec.ts +0 -242
- package/src/notifyAppReadyInsights.spec.ts +0 -362
- package/src/notifyAppReadyInsights.transport.spec.ts +0 -138
- package/src/notifyAppReadyInsights.ts +0 -293
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
constructor(status: number, statusText: string);
|
|
1
|
+
import { UpdateHttpError } from "./updateError";
|
|
2
|
+
export declare class FetchJSONResponseError extends UpdateHttpError {
|
|
4
3
|
}
|
|
5
4
|
export declare const fetchJSON: <T>({ url, requestHeaders, requestTimeout, }: {
|
|
6
5
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchJSON.d.ts","sourceRoot":"","sources":["../../../src/fetchJSON.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"fetchJSON.d.ts","sourceRoot":"","sources":["../../../src/fetchJSON.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBAAa,sBAAuB,SAAQ,eAAe;CAAG;AAE9D,eAAO,MAAM,SAAS,GAAU,CAAC,4CAI9B;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,KAAG,OAAO,CAAC,CAAC,CAwBZ,CAAC"}
|
|
@@ -15,42 +15,14 @@ export interface ArtifactRequest {
|
|
|
15
15
|
readonly requestHeaders?: Record<string, string>;
|
|
16
16
|
readonly requestTimeout?: number;
|
|
17
17
|
}
|
|
18
|
-
interface InsightsEventCommonParams {
|
|
19
|
-
readonly installId: string;
|
|
20
|
-
readonly userId?: string;
|
|
21
|
-
readonly username?: string;
|
|
22
|
-
readonly platform: "ios" | "android";
|
|
23
|
-
readonly appVersion: string;
|
|
24
|
-
readonly channel: string;
|
|
25
|
-
readonly cohort: string;
|
|
26
|
-
readonly fingerprintHash: string | null;
|
|
27
|
-
readonly fromReleaseId?: string | null;
|
|
28
|
-
readonly toReleaseId?: string | null;
|
|
29
|
-
readonly requestHeaders?: Record<string, string>;
|
|
30
|
-
readonly requestTimeout?: number;
|
|
31
|
-
}
|
|
32
|
-
type InsightsTransitionEventParams = InsightsEventCommonParams & {
|
|
33
|
-
readonly type: "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "RECOVERED";
|
|
34
|
-
readonly fromBundleId: string;
|
|
35
|
-
readonly toBundleId: string;
|
|
36
|
-
readonly updateStrategy: "fingerprint" | "appVersion";
|
|
37
|
-
};
|
|
38
|
-
type InsightsUnchangedEventParams = InsightsEventCommonParams & {
|
|
39
|
-
readonly type: "UNCHANGED";
|
|
40
|
-
readonly fromBundleId: null;
|
|
41
|
-
readonly toBundleId: string;
|
|
42
|
-
readonly updateStrategy: null;
|
|
43
|
-
};
|
|
44
|
-
export type InsightsEventParams = InsightsTransitionEventParams | InsightsUnchangedEventParams;
|
|
45
18
|
export interface HotUpdaterHttpSession {
|
|
46
|
-
|
|
19
|
+
/** Resolves to null when the server says the scope has no catalog, so no update. */
|
|
20
|
+
fetchReleaseCatalog: (params: ReleaseCatalogRequest) => Promise<ReleaseCatalog | null>;
|
|
47
21
|
resolveArtifact: (params: ArtifactRequest) => Promise<ArtifactInfo>;
|
|
48
|
-
sendInsightsEvent: (params: InsightsEventParams) => Promise<void>;
|
|
49
22
|
}
|
|
50
23
|
export interface HotUpdaterHttpClient {
|
|
51
24
|
createSession: () => Promise<HotUpdaterHttpSession>;
|
|
52
25
|
}
|
|
53
26
|
/** Creates the private HTTP client used by HotUpdater.init and HotUpdater.wrap. */
|
|
54
27
|
export declare const createHttpClient: (baseURL: HotUpdaterBaseURL) => HotUpdaterHttpClient;
|
|
55
|
-
export {};
|
|
56
28
|
//# sourceMappingURL=httpClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../src/httpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../src/httpClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,aAAa,GAAG,YAAY,CAAC;IACtD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,oFAAoF;IACpF,mBAAmB,EAAE,CACnB,MAAM,EAAE,qBAAqB,KAC1B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACpC,eAAe,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrD;AAuID,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,YAClB,iBAAiB,KACzB,oBAED,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type CheckForUpdateOptions } from "./checkForUpdate";
|
|
2
|
-
import { addListener, clearCrashHistory, getAppVersion, getUpdateId, getChannel, getCohort, getCrashHistory, getDefaultChannel, getFingerprintHash, getInstallId, getManifest, getMinBundleId, isChannelSwitched, notifyAppReady, reload, setCohort, setReloadBehavior,
|
|
2
|
+
import { addListener, clearCrashHistory, getAppVersion, getUpdateId, getChannel, getCohort, getCrashHistory, getDefaultChannel, getFingerprintHash, getInstallId, getManifest, getMinBundleId, isChannelSwitched, notifyAppReady, reload, setCohort, setReloadBehavior, type UpdateParams } from "./native";
|
|
3
3
|
import { type AutoUpdateOptions, type HotUpdaterInitOptions, type HotUpdaterOptions, wrap } from "./wrap";
|
|
4
|
-
export type
|
|
4
|
+
export { defineClientPlugin, type AppReadyResult, type BundleDownloadedInfo, type HotUpdaterClientContext, type HotUpdaterClientHooks, type HotUpdaterClientPlugin, type HotUpdaterClientStorage, type ReleaseTransitionKind, type UpdateCheckResult, type UpdateError, type UpdateErrorReason, type UpdateErrorStage, type UpdateStrategy, } from "./clientPlugin";
|
|
5
|
+
export type { CustomReloadHandler, HotUpdaterEvent, HotUpdaterProgressArtifactType, HotUpdaterProgressEvent, Manifest, ManifestAsset, NotifyAppReadyResult, ActiveUpdateState, ReloadBehavior, ReloadBehaviorSetting, } from "./native";
|
|
5
6
|
export * from "./store";
|
|
6
7
|
export { extractSignatureFailure, type HotUpdaterBaseURL, isSignatureVerificationError, type SignatureVerificationFailure, } from "./types";
|
|
7
8
|
export type { HotUpdaterFallbackComponentProps, HotUpdaterInitOptions, HotUpdaterOptions, RunUpdateProcessResponse, } from "./wrap";
|
|
@@ -245,10 +246,6 @@ declare function createHotUpdaterClient(): {
|
|
|
245
246
|
* Fetches the persisted install id for this app installation.
|
|
246
247
|
*/
|
|
247
248
|
getInstallId: typeof getInstallId;
|
|
248
|
-
/**
|
|
249
|
-
* Persists nullable user identity fields associated with this installation.
|
|
250
|
-
*/
|
|
251
|
-
setUser: typeof setUser;
|
|
252
249
|
/**
|
|
253
250
|
* Reads the native launch report for the current process.
|
|
254
251
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,qBAAqB,EAI3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,WAAW,EAIX,iBAAiB,EACjB,aAAa,EAEb,WAAW,EACX,UAAU,EACV,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,kBAAkB,E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;;;;;OAcG;oBACa,qBAAqB,KAAG,IAAI;IAS5C;;OAEG;;IAGH;;;;;;;;;OASG;;IAGH;;;;;;;;;;;;;;;;OAgBG;;IAGH;;OAEG;;IAGH,wDAAwD;;IAGxD;;;OAGG;;IAGH,wEAAwE;;IAGxE;;OAEG;;IAGH;;;;;;;;;;;;OAYG;;IAGH;;;;;;;;;;;OAWG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;;;;;;;;;;;;;;;OAgBG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;6BACsB,qBAAqB;IAiB9C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;2BAC0B,YAAY;IAiDzC;;;;OAIG;;IAcH;;;;;;;;;;OAUG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;;;;;;;;;OAWG;;IAGH;;;;;;;;;;;OAWG;;EAGN;AAED,KAAK,gBAAgB,GAAG,IAAI,CAC1B,UAAU,CAAC,OAAO,sBAAsB,CAAC,EACzC,MAAM,CACP,GAAG;IACF,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAA2C,CAAC"}
|
|
@@ -125,6 +125,24 @@ export declare const commitReleaseSelection: (input: {
|
|
|
125
125
|
readonly selection: PersistedSelectionReceipt;
|
|
126
126
|
readonly guard: ReleaseSelectionGuard;
|
|
127
127
|
}) => Promise<boolean>;
|
|
128
|
+
/** How native delivered a staged bundle. */
|
|
129
|
+
export type BundleDelivery = {
|
|
130
|
+
/**
|
|
131
|
+
* "patch" when a bsdiff patch produced a file, "manifest" when only the
|
|
132
|
+
* changed files were downloaded, "archive" for the full archive.
|
|
133
|
+
*/
|
|
134
|
+
readonly delivery: "patch" | "manifest" | "archive";
|
|
135
|
+
/** A patch was tried, but the file or the archive was downloaded instead. */
|
|
136
|
+
readonly patchFallback: boolean;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Stages a bundle for the next launch. Resolves with how native delivered
|
|
140
|
+
* it, or with null when this runtime had already staged it and nothing was
|
|
141
|
+
* downloaded; rejects when the download or install fails.
|
|
142
|
+
*
|
|
143
|
+
* @throws {Error} Rejects with error.code from HotUpdaterErrorCode enum and error.message
|
|
144
|
+
*/
|
|
145
|
+
export declare function stageBundle(params: UpdateParams): Promise<BundleDelivery | null>;
|
|
128
146
|
/**
|
|
129
147
|
* Downloads files and applies them to the app.
|
|
130
148
|
*
|
|
@@ -215,17 +233,10 @@ export declare const isChannelSwitched: () => boolean;
|
|
|
215
233
|
*/
|
|
216
234
|
export declare const getFingerprintHash: () => string | null;
|
|
217
235
|
export declare const getInstallId: () => string;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
export declare const getPersistedUserIdentity: () => PersistedUserIdentity;
|
|
223
|
-
export type SetUserParams = {
|
|
224
|
-
userId?: string | number | null;
|
|
225
|
-
username?: string | null;
|
|
226
|
-
};
|
|
227
|
-
export declare function setUser(params: SetUserParams): void;
|
|
228
|
-
export declare function setUser(params: null): void;
|
|
236
|
+
/** Reads a value from the SDK's native key-value store. */
|
|
237
|
+
export declare const getStorageItem: (key: string) => string | null;
|
|
238
|
+
/** Writes a value to the SDK's native key-value store; null removes it. */
|
|
239
|
+
export declare const setStorageItem: (key: string, value: string | null) => void;
|
|
229
240
|
/**
|
|
230
241
|
* Result returned by notifyAppReady()
|
|
231
242
|
*/
|
|
@@ -244,17 +255,20 @@ export type NotifyAppReadyResult = {
|
|
|
244
255
|
fromReleaseId?: string;
|
|
245
256
|
toReleaseId?: string;
|
|
246
257
|
};
|
|
247
|
-
|
|
258
|
+
/** An update applied or recovered at this launch, as native persisted it. */
|
|
259
|
+
export type LaunchTransition = {
|
|
248
260
|
type: "UPDATE_APPLIED" | "RECOVERED";
|
|
249
261
|
fromBundleId: string;
|
|
250
262
|
toBundleId: string;
|
|
251
|
-
fromReleaseId
|
|
252
|
-
toReleaseId
|
|
263
|
+
fromReleaseId: string | null;
|
|
264
|
+
toReleaseId: string | null;
|
|
253
265
|
updateStrategy: PersistedUpdateStrategy;
|
|
254
266
|
};
|
|
255
267
|
export declare const readNotifyAppReady: () => {
|
|
256
268
|
result: NotifyAppReadyResult;
|
|
257
|
-
|
|
269
|
+
transition: LaunchTransition | null;
|
|
270
|
+
/** Android 11+: why the previous main process exited, when native knows. */
|
|
271
|
+
previousProcessExit: string | null;
|
|
258
272
|
pending: boolean;
|
|
259
273
|
};
|
|
260
274
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC/B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjE,OAAyB,EACvB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;AAGlD,KAAK,uBAAuB,GAAG,aAAa,GAAG,YAAY,CAAC;AAU5D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACvC;AAUD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,QAAQ,CAAC;
|
|
1
|
+
{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AACH,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,OAAO,CAMpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,KAAG,IAI1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,QAAO,MAS5B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HotUpdaterClientHooks, HotUpdaterClientPlugin } from "./clientPlugin";
|
|
2
|
+
import type { HotUpdaterBaseURL } from "./types";
|
|
3
|
+
type HookName = keyof HotUpdaterClientHooks;
|
|
4
|
+
type HookPayload<K extends HookName> = Parameters<NonNullable<HotUpdaterClientHooks[K]>>[0];
|
|
5
|
+
/** The init or wrap settings plugins see through their context. */
|
|
6
|
+
export interface PluginHostConfig {
|
|
7
|
+
readonly baseURL: HotUpdaterBaseURL;
|
|
8
|
+
readonly requestHeaders?: Record<string, string>;
|
|
9
|
+
readonly requestTimeout?: number;
|
|
10
|
+
readonly onError?: (error: unknown) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Sets up the plugins of an init or wrap call. A plugin passed to an earlier
|
|
14
|
+
* call keeps its hooks, and a plugin left out stops receiving events.
|
|
15
|
+
*/
|
|
16
|
+
export declare const configurePlugins: (plugins: readonly HotUpdaterClientPlugin[] | undefined, nextConfig: PluginHostConfig) => void;
|
|
17
|
+
/** Whether any plugin listens to this hook, so callers build events only when one does. */
|
|
18
|
+
export declare const hasPluginHook: (name: HookName) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Builds a hook's event when a plugin listens. A failure to build it is
|
|
21
|
+
* reported, not thrown, since reporting never changes an update.
|
|
22
|
+
*/
|
|
23
|
+
export declare const buildPluginEvent: <K extends HookName>(name: K, createPayload: () => HookPayload<K> | null) => HookPayload<K> | null;
|
|
24
|
+
/** Calls a hook on every plugin that listens, without waiting for any. */
|
|
25
|
+
export declare const dispatchPluginHook: <K extends HookName>(name: K, payload: HookPayload<K>) => void;
|
|
26
|
+
/** Builds a hook's event when a plugin listens and calls the hook right away. */
|
|
27
|
+
export declare const emitPluginHook: <K extends HookName>(name: K, createPayload: () => HookPayload<K> | null) => void;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=pluginHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginHost.d.ts","sourceRoot":"","sources":["../../../src/pluginHost.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,gBAAgB,CAAC;AAYxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,KAAK,QAAQ,GAAG,MAAM,qBAAqB,CAAC;AAC5C,KAAK,WAAW,CAAC,CAAC,SAAS,QAAQ,IAAI,UAAU,CAC/C,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CACtC,CAAC,CAAC,CAAC,CAAC;AAEL,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAwID;;;GAGG;AACH,eAAO,MAAM,gBAAgB,YAClB,SAAS,sBAAsB,EAAE,GAAG,SAAS,cAC1C,gBAAgB,KAC3B,IA4BF,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,aAAa,SAAU,QAAQ,KAAG,OACuB,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,QAAQ,QAC3C,CAAC,iBACQ,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,KACzC,WAAW,CAAC,CAAC,CAAC,GAAG,IAQnB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,QAAQ,QAC7C,CAAC,WACE,WAAW,CAAC,CAAC,CAAC,KACtB,IAqBF,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,QAAQ,QACzC,CAAC,iBACQ,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,KACzC,IAGF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an RFC 9562 UUIDv7: a 48-bit millisecond timestamp, then random bits.
|
|
3
|
+
*
|
|
4
|
+
* `createUUIDv7` from `@hot-updater/plugin-core` calls `crypto.getRandomValues`
|
|
5
|
+
* unconditionally, but React Native has no Web Crypto unless the app installs a
|
|
6
|
+
* polyfill. An Insights event ID only has to tell one event from another so a
|
|
7
|
+
* retried POST is counted once, so `Math.random` is enough without one.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createUUIDv7: () => string;
|
|
10
|
+
/** SHA-256 of a string's UTF-8 bytes, since React Native has no Web Crypto. */
|
|
11
|
+
export declare const sha256: (value: string) => Uint8Array;
|
|
12
|
+
/**
|
|
13
|
+
* A UUIDv7 derived from a key: its time field is `timestamp` and its random
|
|
14
|
+
* bits are the key's SHA-256, so the same key and time always give the same
|
|
15
|
+
* id, and a server that stores reports by id counts it once.
|
|
16
|
+
*/
|
|
17
|
+
export declare const createKeyedUUIDv7: (key: string, timestamp: number) => string;
|
|
18
|
+
//# sourceMappingURL=eventId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventId.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/insights/eventId.ts"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,QAAO,MAW/B,CAAC;AA0CF,+EAA+E;AAC/E,eAAO,MAAM,MAAM,UAAW,MAAM,KAAG,UA+EtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAS,MAAM,aAAa,MAAM,KAAG,MAChB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type HotUpdaterClientPlugin } from "../../clientPlugin";
|
|
2
|
+
export interface InsightsOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Also report from debug builds (`__DEV__`). Defaults to `false`, so
|
|
5
|
+
* development sessions stay out of production Insights.
|
|
6
|
+
*/
|
|
7
|
+
readonly debug?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** The app's own id for the signed-in user, attached to later reports. */
|
|
10
|
+
export interface InsightsUser {
|
|
11
|
+
readonly userId: string | number;
|
|
12
|
+
}
|
|
13
|
+
export interface InsightsPlugin extends HotUpdaterClientPlugin {
|
|
14
|
+
readonly id: "insights";
|
|
15
|
+
/**
|
|
16
|
+
* Attaches the signed-in user's id to later reports, or clears it with
|
|
17
|
+
* `null`. It persists on the device, sends nothing by itself, and can be
|
|
18
|
+
* called before `HotUpdater.init`.
|
|
19
|
+
*/
|
|
20
|
+
setUser(user: InsightsUser | null): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Reports update adoption to a server that runs the `insights()` server
|
|
24
|
+
* plugin: launches (at most once a UTC day while nothing changes), downloads,
|
|
25
|
+
* applies, recoveries, and update failures. After the server answers that
|
|
26
|
+
* Insights is off, the plugin sends nothing for 24 hours, and for the rest
|
|
27
|
+
* of that runtime.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { HotUpdater } from "@hot-updater/react-native";
|
|
32
|
+
* import { insights } from "@hot-updater/react-native/plugins/insights";
|
|
33
|
+
*
|
|
34
|
+
* const analytics = insights();
|
|
35
|
+
* HotUpdater.init({ baseURL, plugins: [analytics] });
|
|
36
|
+
* analytics.setUser({ userId: "user-123" });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const insights: (options?: InsightsOptions) => InsightsPlugin;
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/insights/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAG5B,MAAM,oBAAoB,CAAC;AAgB5B,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,sBAAsB;IAC5D,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1C;AAgCD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,aAAa,eAAe,KAAQ,cAgRxD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { HotUpdaterClientContext } from "../../clientPlugin";
|
|
2
|
+
export type InsightsEventType = "UNCHANGED" | "UPDATE_DOWNLOADED" | "UPDATE_APPLIED" | "RECOVERED" | "UPDATE_FAILED";
|
|
3
|
+
/** A `POST /events` body. */
|
|
4
|
+
export interface InsightsEventBody {
|
|
5
|
+
readonly eventId: string;
|
|
6
|
+
readonly type: InsightsEventType;
|
|
7
|
+
readonly installId: string;
|
|
8
|
+
readonly userId?: string;
|
|
9
|
+
readonly platform: "ios" | "android";
|
|
10
|
+
readonly appVersion: string;
|
|
11
|
+
readonly channel: string;
|
|
12
|
+
readonly cohort: string;
|
|
13
|
+
readonly fingerprintHash: string | null;
|
|
14
|
+
readonly sdkVersion: string;
|
|
15
|
+
readonly fromBundleId: string | null;
|
|
16
|
+
readonly fromReleaseId: string | null;
|
|
17
|
+
readonly toBundleId: string;
|
|
18
|
+
readonly toReleaseId: string | null;
|
|
19
|
+
readonly updateStrategy: "fingerprint" | "appVersion" | null;
|
|
20
|
+
readonly metadata?: InsightsEventMetadata;
|
|
21
|
+
}
|
|
22
|
+
/** Details beside an event's fields, by event type. */
|
|
23
|
+
export interface InsightsEventMetadata {
|
|
24
|
+
/** UPDATE_FAILED: where and why the update failed. */
|
|
25
|
+
readonly failure?: {
|
|
26
|
+
readonly stage: "check" | "download" | "install";
|
|
27
|
+
readonly reason: string;
|
|
28
|
+
readonly resource?: string;
|
|
29
|
+
readonly httpStatus?: number;
|
|
30
|
+
readonly transport?: string;
|
|
31
|
+
readonly originCode?: string;
|
|
32
|
+
readonly previousProcessExit?: string;
|
|
33
|
+
};
|
|
34
|
+
/** UPDATE_DOWNLOADED: how the bundle arrived. */
|
|
35
|
+
readonly delivery?: "patch" | "manifest" | "archive";
|
|
36
|
+
/** UPDATE_DOWNLOADED: a patch was tried, but a file or the archive came instead. */
|
|
37
|
+
readonly patchFallback?: true;
|
|
38
|
+
/** RECOVERED: why the previous main process exited, on Android 11+. */
|
|
39
|
+
readonly previousProcessExit?: string;
|
|
40
|
+
}
|
|
41
|
+
/** How the server answered one event. */
|
|
42
|
+
export type InsightsDelivery =
|
|
43
|
+
/** The server stored the event, or already had it under its id. */
|
|
44
|
+
"delivered"
|
|
45
|
+
/** The server runs without Insights: a 404, since it mounts no `/events`. */
|
|
46
|
+
| "disabled"
|
|
47
|
+
/** A 400 for an `UPDATE_FAILED` event, from a server that does not know it. */
|
|
48
|
+
| "refused"
|
|
49
|
+
/** No attempt got an answer the SDK accepts. */
|
|
50
|
+
| "failed";
|
|
51
|
+
export interface InsightsEventGate {
|
|
52
|
+
/**
|
|
53
|
+
* Whether to send the event now. It is asked before every attempt, so an
|
|
54
|
+
* event superseded while it waits out a backoff is dropped.
|
|
55
|
+
*/
|
|
56
|
+
admit(event: InsightsEventBody): boolean;
|
|
57
|
+
/** Records how an admitted event ended, once per event. */
|
|
58
|
+
settle(event: InsightsEventBody, delivery: InsightsDelivery): void;
|
|
59
|
+
}
|
|
60
|
+
export type InsightsEventSender = (event: InsightsEventBody) => Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Sends Insights events one at a time and retries each in the background.
|
|
63
|
+
*
|
|
64
|
+
* The server keeps an installation's latest report by arrival, so a later
|
|
65
|
+
* event waits behind an earlier one's retries; otherwise a retried
|
|
66
|
+
* UPDATE_APPLIED could land after the UPDATE_DOWNLOADED that followed it.
|
|
67
|
+
* Callers wait only for first attempts, so a report never waits out a
|
|
68
|
+
* backoff: once an event backs off, every waiting caller is released, and a
|
|
69
|
+
* failure after that only warns. The gate sees each event before each
|
|
70
|
+
* attempt, after every earlier event settled, so it decides with what the
|
|
71
|
+
* server already answered.
|
|
72
|
+
*/
|
|
73
|
+
export declare const createInsightsEventSender: (fetch: HotUpdaterClientContext["fetch"], gate: InsightsEventGate) => InsightsEventSender;
|
|
74
|
+
//# sourceMappingURL=sender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sender.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/insights/sender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,mBAAmB,GACnB,gBAAgB,GAChB,WAAW,GACX,eAAe,CAAC;AAEpB,6BAA6B;AAC7B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,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yCAAyC;AACzC,MAAM,MAAM,gBAAgB;AAC1B,mEAAmE;AACjE,WAAW;AACb,6EAA6E;GAC3E,UAAU;AACZ,+EAA+E;GAC7E,SAAS;AACX,gDAAgD;GAC9C,QAAQ,CAAC;AAEb,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACzC,2DAA2D;IAC3D,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpE;AA8ED,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE9E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,UAC7B,uBAAuB,CAAC,OAAO,CAAC,QACjC,iBAAiB,KACtB,mBAyDF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { HotUpdaterClientStorage } from "../../clientPlugin";
|
|
2
|
+
/** The UTC day of a time, as `YYYY-MM-DD`. */
|
|
3
|
+
export declare const utcDay: (time: number) => string;
|
|
4
|
+
/** The start of a time's UTC day, in milliseconds. */
|
|
5
|
+
export declare const utcDayStart: (time: number) => number;
|
|
6
|
+
/** What a report says runs: the fields the server compares to skip a same-day launch. */
|
|
7
|
+
export interface RunningReport {
|
|
8
|
+
readonly day: string;
|
|
9
|
+
readonly channel: string;
|
|
10
|
+
readonly appVersion: string;
|
|
11
|
+
readonly bundleId: string;
|
|
12
|
+
readonly releaseId: string | null;
|
|
13
|
+
readonly userId: string | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The Insights plugin's memory across launches, in its plugin storage. Every
|
|
17
|
+
* read tolerates a missing or unreadable value, and a storage failure only
|
|
18
|
+
* costs a report that would otherwise have been skipped.
|
|
19
|
+
*/
|
|
20
|
+
export declare const createInsightsState: (storage: HotUpdaterClientStorage) => {
|
|
21
|
+
/**
|
|
22
|
+
* Whether reporting pauses: the server answered that Insights is off
|
|
23
|
+
* during this runtime or in the 24 hours before `now`. A pause that
|
|
24
|
+
* starts after `now`, from a clock that went back, has ended.
|
|
25
|
+
*/
|
|
26
|
+
isPaused(now: number): boolean;
|
|
27
|
+
pause(now: number): void;
|
|
28
|
+
/** The server stored a report, so Insights is on. */
|
|
29
|
+
resume(): void;
|
|
30
|
+
/** Whether a launch report repeats what the installation reported that day. */
|
|
31
|
+
repeatsReport(report: RunningReport): boolean;
|
|
32
|
+
/** Records a delivered report that says what runs. */
|
|
33
|
+
recordReport(report: RunningReport): void;
|
|
34
|
+
/**
|
|
35
|
+
* Forgets the last report after a delivered download or failure, so the
|
|
36
|
+
* next launch reports again, as the server records it after one.
|
|
37
|
+
*/
|
|
38
|
+
forgetReport(): void;
|
|
39
|
+
/** Whether a failure was already reported, or refused, that day. */
|
|
40
|
+
hasFailure(day: string, key: string): boolean;
|
|
41
|
+
recordFailure(day: string, key: string): void;
|
|
42
|
+
readUserId(): string | null;
|
|
43
|
+
writeUserId(userId: string | null): void;
|
|
44
|
+
};
|
|
45
|
+
export type InsightsState = ReturnType<typeof createInsightsState>;
|
|
46
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/insights/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAMlE,8CAA8C;AAC9C,eAAO,MAAM,MAAM,SAAU,MAAM,KAAG,MACK,CAAC;AAE5C,sDAAsD;AACtD,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MACP,CAAC;AAErC,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAgED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAAa,uBAAuB;IAoBhE;;;;OAIG;IACH,QAAQ,MAAM,MAAM,GAAG,OAAO;IAU9B,KAAK,MAAM,MAAM;IAIjB,qDAAqD;IACrD,MAAM;IAIN,+EAA+E;IAC/E,aAAa,SAAS,aAAa,GAAG,OAAO;IAI7C,sDAAsD;IACtD,YAAY,SAAS,aAAa;IAGlC;;;OAGG;IACH,YAAY;IAIZ,oEAAoE;IACpE,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,OAAO;IAI7C,aAAa,MAAM,MAAM,OAAO,MAAM;IAUtC,UAAU,IAAI,MAAM,GAAG,IAAI;IAU3B,WAAW,SAAS,MAAM,GAAG,IAAI;CAIpC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -20,6 +20,10 @@ type FetchReleaseCatalogInput = {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const hasExpectedReleaseCatalogScope: (catalog: ReleaseCatalog, expected: ExpectedReleaseCatalogScope) => boolean;
|
|
22
22
|
export declare const createReleaseCatalogCachePartition: (input: Pick<FetchReleaseCatalogInput, "baseURL" | "requestHeaders" | "url">) => string;
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Fetches a scope's catalog, or null when the server answers that the scope
|
|
25
|
+
* has none (a 404 with `x-hot-updater-catalog: none`).
|
|
26
|
+
*/
|
|
27
|
+
export declare const fetchReleaseCatalogWithCache: (input: FetchReleaseCatalogInput) => Promise<ReleaseCatalog | null>;
|
|
24
28
|
export {};
|
|
25
29
|
//# sourceMappingURL=releaseCatalogCache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releaseCatalogCache.d.ts","sourceRoot":"","sources":["../../../src/releaseCatalogCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"releaseCatalogCache.d.ts","sourceRoot":"","sources":["../../../src/releaseCatalogCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAM3B,eAAO,MAAM,8BAA8B,QACA,CAAC;AAC5C,eAAO,MAAM,qCAAqC,QACG,CAAC;AAiCtD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;CACtC,GAAG,CACA;IACE,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC;CAClC,GACD;IACE,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC,CACJ,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,2BAA2B,CAAC;IACpD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,CAAC;AAiDF,eAAO,MAAM,8BAA8B,YAChC,cAAc,YACb,2BAA2B,KACpC,OAcF,CAAC;AAkGF,eAAO,MAAM,kCAAkC,UACtC,IAAI,CAAC,wBAAwB,EAAE,SAAS,GAAG,gBAAgB,GAAG,KAAK,CAAC,KAC1E,MAMC,CAAC;AA8FL;;;GAGG;AACH,eAAO,MAAM,4BAA4B,UAChC,wBAAwB,KAC9B,OAAO,CAAC,cAAc,GAAG,IAAI,CAa/B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HOT_UPDATER_SDK_VERSION = "1.0.0-rc.
|
|
1
|
+
export declare const HOT_UPDATER_SDK_VERSION = "1.0.0-rc.17";
|
|
2
2
|
//# sourceMappingURL=sdkVersion.d.ts.map
|
|
@@ -30,7 +30,11 @@ export interface Spec extends TurboModule {
|
|
|
30
30
|
* Downloads and applies a bundle update.
|
|
31
31
|
*
|
|
32
32
|
* @param params - Update bundle parameters
|
|
33
|
-
* @returns Promise that resolves to
|
|
33
|
+
* @returns Promise that resolves, once the bundle is staged, to how it
|
|
34
|
+
* arrived: `{ delivery, patchFallback }`. `delivery` is "patch" when a
|
|
35
|
+
* bsdiff patch produced a file, "manifest" when only changed files were
|
|
36
|
+
* downloaded, or "archive" for the full archive; `patchFallback` is true
|
|
37
|
+
* when a patch was tried but the file or archive was downloaded instead.
|
|
34
38
|
* @throws {HotUpdaterErrorCode} Rejects with one of the following error codes:
|
|
35
39
|
*
|
|
36
40
|
* Parameter validation:
|
|
@@ -55,8 +59,20 @@ export interface Spec extends TurboModule {
|
|
|
55
59
|
*
|
|
56
60
|
* Note: iOS normalizes rare signature/storage errors to SIGNATURE_VERIFICATION_FAILED
|
|
57
61
|
* or UNKNOWN_ERROR to keep the JS error surface small.
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
*
|
|
63
|
+
* A rejection from the download or install also carries `userInfo`
|
|
64
|
+
* `{ stage, reason, resource?, httpStatus?, transport?, originCode? }`:
|
|
65
|
+
* `stage` is "download" (transfer and verification) or "install" (patch,
|
|
66
|
+
* extract, move into place); `reason` is one of "network", "http",
|
|
67
|
+
* "invalid_response", "hash_mismatch", "signature", "patch", "extract",
|
|
68
|
+
* "storage", or "unknown"; `resource` is what was being fetched or
|
|
69
|
+
* applied: "manifest", "file", "patch", or "archive". `httpStatus` is
|
|
70
|
+
* present when `reason` is "http", with `originCode`, the storage
|
|
71
|
+
* origin's XML error `<Code>` when the body names one. `transport` is
|
|
72
|
+
* present when no response arrived: "timeout", "dns", "tls",
|
|
73
|
+
* "connection", "offline", or "cancelled".
|
|
74
|
+
*/
|
|
75
|
+
updateBundle(params: UpdateBundleParams): Promise<UnsafeObject>;
|
|
60
76
|
/** Accepts and durably advances the catalog high-water for a scope. */
|
|
61
77
|
acceptReleaseCatalog(params: UnsafeObject): boolean;
|
|
62
78
|
/** Reads active/stable selection receipts and catalog high-water state. */
|
|
@@ -86,6 +102,13 @@ export interface Spec extends TurboModule {
|
|
|
86
102
|
toBundleId?: string;
|
|
87
103
|
updateStrategy?: "fingerprint" | "appVersion";
|
|
88
104
|
crashedBundleId?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Android 11+: why the app's previous main process exited, the
|
|
107
|
+
* `ApplicationExitInfo` reason without its `REASON_` prefix (for
|
|
108
|
+
* example "CRASH", "ANR", "LOW_MEMORY", "USER_REQUESTED"), read once
|
|
109
|
+
* when the process starts. Absent on iOS and older Android.
|
|
110
|
+
*/
|
|
111
|
+
previousProcessExit?: string;
|
|
89
112
|
};
|
|
90
113
|
/**
|
|
91
114
|
* Gets the list of bundle IDs that have been marked as crashed.
|
|
@@ -143,21 +166,20 @@ export interface Spec extends TurboModule {
|
|
|
143
166
|
*/
|
|
144
167
|
getCohort: () => string;
|
|
145
168
|
/**
|
|
146
|
-
* Gets the
|
|
169
|
+
* Gets the install id: a random id native creates once per app
|
|
170
|
+
* installation and keeps out of device backups.
|
|
147
171
|
*/
|
|
148
172
|
getInstallId: () => string;
|
|
149
173
|
/**
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
getUserId: () => string | null;
|
|
153
|
-
/**
|
|
154
|
-
* Gets the persisted nullable username associated with this installation.
|
|
174
|
+
* Reads a value from the SDK's persistent key-value store, which native
|
|
175
|
+
* keeps out of device backups. Returns null when the key has no value.
|
|
155
176
|
*/
|
|
156
|
-
|
|
177
|
+
getStorageItem: (key: string) => string | null;
|
|
157
178
|
/**
|
|
158
|
-
*
|
|
179
|
+
* Writes a value to the SDK's persistent key-value store; null removes the
|
|
180
|
+
* key.
|
|
159
181
|
*/
|
|
160
|
-
|
|
182
|
+
setStorageItem: (key: string, value: string | null) => void;
|
|
161
183
|
addListener(eventName: string): void;
|
|
162
184
|
removeListeners(count: number): void;
|
|
163
185
|
readonly getConstants: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeHotUpdater.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeHotUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mDAAmD;IACnD,MAAM,EAAE,YAAY,CAAC;IACrB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,IAAK,SAAQ,WAAW;IAEvC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB;;;;OAIG;IACH,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B
|
|
1
|
+
{"version":3,"file":"NativeHotUpdater.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeHotUpdater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,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AAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC,CAAC;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { UpdateError, UpdateErrorResource, UpdateErrorStage } from "./clientPlugin";
|
|
2
|
+
import { HotUpdaterError } from "./error";
|
|
3
|
+
/**
|
|
4
|
+
* A response the SDK cannot use: a malformed or stale catalog, an artifact
|
|
5
|
+
* in another protocol, or an invalid URL.
|
|
6
|
+
*/
|
|
7
|
+
export declare class InvalidUpdateResponseError extends HotUpdaterError {
|
|
8
|
+
constructor(message: string, options?: {
|
|
9
|
+
cause?: unknown;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/** A request the server answered with a status the SDK does not accept. */
|
|
13
|
+
export declare class UpdateHttpError extends HotUpdaterError {
|
|
14
|
+
readonly status: number;
|
|
15
|
+
constructor(status: number, statusText: string);
|
|
16
|
+
}
|
|
17
|
+
type Classification = Pick<UpdateError, "stage" | "reason" | "resource" | "httpStatus" | "originCode" | "transport">;
|
|
18
|
+
/**
|
|
19
|
+
* Where and why an update failed, or null when the error is not an update
|
|
20
|
+
* failure. Native rejections carry their own classification; an error the
|
|
21
|
+
* SDK's JavaScript raised happened in `stage`, fetching `resource` when one
|
|
22
|
+
* is given.
|
|
23
|
+
*/
|
|
24
|
+
export declare const classifyUpdateError: (error: unknown, stage: UpdateErrorStage, resource?: UpdateErrorResource) => Classification | null;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=updateError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateError.d.ts","sourceRoot":"","sources":["../../../src/updateError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAEX,mBAAmB,EACnB,gBAAgB,EAEjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,eAAe;IAC7D,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAIzD;CACF;AAED,2EAA2E;AAC3E,qBAAa,eAAgB,SAAQ,eAAe;IAEhD,QAAQ,CAAC,MAAM,EAAE,MAAM;IADzB,YACW,MAAM,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM,EAMnB;CACF;AAiCD,KAAK,cAAc,GAAG,IAAI,CACxB,WAAW,EACX,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAC5E,CAAC;AAsCF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,UACvB,OAAO,SACP,gBAAgB,aACZ,mBAAmB,KAC7B,cAAc,GAAG,IAoCnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../../src/wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../../src/wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAEV,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,iBAAiB,EACjB,gCAAgC,EAChC,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,wBAAgB,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAEvD;AAED,wBAAgB,IAAI,CAClB,OAAO,EAAE,mBAAmB,GAC3B,CAAC,CAAC,SAAS,MAAM,EAClB,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KACrC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAqJ1B"}
|