@hot-updater/protocol 1.0.0-rc.30 → 1.0.0-rc.36
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 +3 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -253,6 +253,9 @@ const createPluginHost = (environment) => {
|
|
|
253
253
|
get sdkVersion() {
|
|
254
254
|
return environment.sdkVersion;
|
|
255
255
|
},
|
|
256
|
+
get minBundleId() {
|
|
257
|
+
return environment.getMinBundleId();
|
|
258
|
+
},
|
|
256
259
|
isDebugBuild: environment.isDebugBuild,
|
|
257
260
|
getBundleId: () => environment.getBundleId(),
|
|
258
261
|
getChannel: () => environment.getChannel(),
|
package/dist/index.d.cts
CHANGED
|
@@ -287,6 +287,11 @@ interface HotUpdaterClientContext {
|
|
|
287
287
|
/** The native app version, or null when the native build has none. */
|
|
288
288
|
readonly appVersion: string | null;
|
|
289
289
|
readonly sdkVersion: string;
|
|
290
|
+
/**
|
|
291
|
+
* The bundle ID of the bundle the native build ships (`MIN_BUNDLE_ID`).
|
|
292
|
+
* `getBundleId()` returns it while the app runs that built-in bundle.
|
|
293
|
+
*/
|
|
294
|
+
readonly minBundleId: string;
|
|
290
295
|
/** Whether this is a debug build (`__DEV__`). */
|
|
291
296
|
readonly isDebugBuild: boolean;
|
|
292
297
|
/** The bundle native reports as current. */
|
|
@@ -332,6 +337,7 @@ interface PluginHostEnvironment {
|
|
|
332
337
|
readonly sdkVersion: string;
|
|
333
338
|
getInstallId(): string;
|
|
334
339
|
getAppVersion(): string | null;
|
|
340
|
+
getMinBundleId(): string;
|
|
335
341
|
getBundleId(): string;
|
|
336
342
|
getChannel(): string;
|
|
337
343
|
getCohort(): string;
|
package/dist/index.d.mts
CHANGED
|
@@ -287,6 +287,11 @@ interface HotUpdaterClientContext {
|
|
|
287
287
|
/** The native app version, or null when the native build has none. */
|
|
288
288
|
readonly appVersion: string | null;
|
|
289
289
|
readonly sdkVersion: string;
|
|
290
|
+
/**
|
|
291
|
+
* The bundle ID of the bundle the native build ships (`MIN_BUNDLE_ID`).
|
|
292
|
+
* `getBundleId()` returns it while the app runs that built-in bundle.
|
|
293
|
+
*/
|
|
294
|
+
readonly minBundleId: string;
|
|
290
295
|
/** Whether this is a debug build (`__DEV__`). */
|
|
291
296
|
readonly isDebugBuild: boolean;
|
|
292
297
|
/** The bundle native reports as current. */
|
|
@@ -332,6 +337,7 @@ interface PluginHostEnvironment {
|
|
|
332
337
|
readonly sdkVersion: string;
|
|
333
338
|
getInstallId(): string;
|
|
334
339
|
getAppVersion(): string | null;
|
|
340
|
+
getMinBundleId(): string;
|
|
335
341
|
getBundleId(): string;
|
|
336
342
|
getChannel(): string;
|
|
337
343
|
getCohort(): string;
|
package/dist/index.mjs
CHANGED
|
@@ -252,6 +252,9 @@ const createPluginHost = (environment) => {
|
|
|
252
252
|
get sdkVersion() {
|
|
253
253
|
return environment.sdkVersion;
|
|
254
254
|
},
|
|
255
|
+
get minBundleId() {
|
|
256
|
+
return environment.getMinBundleId();
|
|
257
|
+
},
|
|
255
258
|
isDebugBuild: environment.isDebugBuild,
|
|
256
259
|
getBundleId: () => environment.getBundleId(),
|
|
257
260
|
getChannel: () => environment.getChannel(),
|