@hot-updater/react-native 0.1.5 → 0.1.6-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.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1960 -9
- package/dist/index.mjs +1960 -9
- package/package.json +4 -3
- package/src/ensureBundles.ts +1 -1
- package/src/index.ts +3 -3
- package/src/init.tsx +4 -4
- package/src/native.ts +1 -1
- package/src/const.ts +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { BundleArg } from '@hot-updater/
|
|
1
|
+
import * as _hot_updater_core from '@hot-updater/core';
|
|
2
|
+
import { BundleArg } from '@hot-updater/core';
|
|
3
3
|
|
|
4
4
|
type HotUpdaterEvent = {
|
|
5
5
|
onProgress: {
|
|
@@ -59,9 +59,9 @@ declare const HotUpdater: {
|
|
|
59
59
|
getAppVersion: () => Promise<string | null>;
|
|
60
60
|
getBundleId: () => string;
|
|
61
61
|
addListener: <T extends keyof HotUpdaterEvent>(eventName: T, listener: (event: HotUpdaterEvent[T]) => void) => void;
|
|
62
|
-
ensureBundles: (bundle:
|
|
62
|
+
ensureBundles: (bundle: _hot_updater_core.BundleArg) => Promise<_hot_updater_core.Bundle[]>;
|
|
63
63
|
updateBundle: (bundleId: string, zipUrl: string | null) => Promise<boolean>;
|
|
64
|
-
|
|
64
|
+
getUpdateInfo: (bundles: _hot_updater_core.Bundle[], { platform, bundleId, appVersion }: _hot_updater_core.GetBundlesArgs) => Promise<_hot_updater_core.UpdateInfo | null>;
|
|
65
65
|
/**
|
|
66
66
|
* In production environment, this value will be replaced with a uuidv7.
|
|
67
67
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { BundleArg } from '@hot-updater/
|
|
1
|
+
import * as _hot_updater_core from '@hot-updater/core';
|
|
2
|
+
import { BundleArg } from '@hot-updater/core';
|
|
3
3
|
|
|
4
4
|
type HotUpdaterEvent = {
|
|
5
5
|
onProgress: {
|
|
@@ -59,9 +59,9 @@ declare const HotUpdater: {
|
|
|
59
59
|
getAppVersion: () => Promise<string | null>;
|
|
60
60
|
getBundleId: () => string;
|
|
61
61
|
addListener: <T extends keyof HotUpdaterEvent>(eventName: T, listener: (event: HotUpdaterEvent[T]) => void) => void;
|
|
62
|
-
ensureBundles: (bundle:
|
|
62
|
+
ensureBundles: (bundle: _hot_updater_core.BundleArg) => Promise<_hot_updater_core.Bundle[]>;
|
|
63
63
|
updateBundle: (bundleId: string, zipUrl: string | null) => Promise<boolean>;
|
|
64
|
-
|
|
64
|
+
getUpdateInfo: (bundles: _hot_updater_core.Bundle[], { platform, bundleId, appVersion }: _hot_updater_core.GetBundlesArgs) => Promise<_hot_updater_core.UpdateInfo | null>;
|
|
65
65
|
/**
|
|
66
66
|
* In production environment, this value will be replaced with a uuidv7.
|
|
67
67
|
*/
|