@hot-updater/protocol 1.2.0-rc.21 → 1.2.0-rc.23

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.
@@ -578,7 +578,8 @@ const SANDBOX_CHANNEL_PREFIX = "sandbox-";
578
578
  const SANDBOX_URL_SCHEME_PREFIX = "hu-sandbox-";
579
579
  /**
580
580
  * The channel a scheme's sandbox build registers on. `sandbox-*` is reserved:
581
- * it is how the registry tells a sandbox build, with no column of its own.
581
+ * only a sandbox build registers there, and the registry records `sandbox` on
582
+ * it.
582
583
  */
583
584
  const sandboxChannelOf = (scheme) => `${SANDBOX_CHANNEL_PREFIX}${scheme}`;
584
585
  /** Whether a channel is reserved for sandbox builds. */
@@ -1263,7 +1264,8 @@ const checkNativeArtifact = (info, { updateStrategy, appIds = [], channel: chann
1263
1264
  channel,
1264
1265
  fingerprintHash,
1265
1266
  appVersion,
1266
- builtInBundlePath: info.builtInBundle.path
1267
+ builtInBundlePath: info.builtInBundle.path,
1268
+ sandbox: info.sandbox.code
1267
1269
  }
1268
1270
  };
1269
1271
  };
@@ -119,6 +119,8 @@ interface ImportableNativeBuild {
119
119
  readonly appVersion: string | null;
120
120
  /** The built-in bundle's entry in the archive. */
121
121
  readonly builtInBundlePath: string;
122
+ /** Whether the artifact holds the sandbox layer: a sandbox build. */
123
+ readonly sandbox: boolean;
122
124
  }
123
125
  type NativeArtifactCheck = ({
124
126
  readonly ok: true;
@@ -263,7 +265,8 @@ declare const SANDBOX_ACTIVITY = "com.hotupdater.HotUpdaterSandboxActivity";
263
265
  declare const SANDBOX_APPLICATION_ID_SUFFIX = ".sandbox";
264
266
  /**
265
267
  * The channel a scheme's sandbox build registers on. `sandbox-*` is reserved:
266
- * it is how the registry tells a sandbox build, with no column of its own.
268
+ * only a sandbox build registers there, and the registry records `sandbox` on
269
+ * it.
267
270
  */
268
271
  declare const sandboxChannelOf: (scheme: string) => string;
269
272
  /** Whether a channel is reserved for sandbox builds. */
@@ -119,6 +119,8 @@ interface ImportableNativeBuild {
119
119
  readonly appVersion: string | null;
120
120
  /** The built-in bundle's entry in the archive. */
121
121
  readonly builtInBundlePath: string;
122
+ /** Whether the artifact holds the sandbox layer: a sandbox build. */
123
+ readonly sandbox: boolean;
122
124
  }
123
125
  type NativeArtifactCheck = ({
124
126
  readonly ok: true;
@@ -263,7 +265,8 @@ declare const SANDBOX_ACTIVITY = "com.hotupdater.HotUpdaterSandboxActivity";
263
265
  declare const SANDBOX_APPLICATION_ID_SUFFIX = ".sandbox";
264
266
  /**
265
267
  * The channel a scheme's sandbox build registers on. `sandbox-*` is reserved:
266
- * it is how the registry tells a sandbox build, with no column of its own.
268
+ * only a sandbox build registers there, and the registry records `sandbox` on
269
+ * it.
267
270
  */
268
271
  declare const sandboxChannelOf: (scheme: string) => string;
269
272
  /** Whether a channel is reserved for sandbox builds. */
@@ -577,7 +577,8 @@ const SANDBOX_CHANNEL_PREFIX = "sandbox-";
577
577
  const SANDBOX_URL_SCHEME_PREFIX = "hu-sandbox-";
578
578
  /**
579
579
  * The channel a scheme's sandbox build registers on. `sandbox-*` is reserved:
580
- * it is how the registry tells a sandbox build, with no column of its own.
580
+ * only a sandbox build registers there, and the registry records `sandbox` on
581
+ * it.
581
582
  */
582
583
  const sandboxChannelOf = (scheme) => `${SANDBOX_CHANNEL_PREFIX}${scheme}`;
583
584
  /** Whether a channel is reserved for sandbox builds. */
@@ -1262,7 +1263,8 @@ const checkNativeArtifact = (info, { updateStrategy, appIds = [], channel: chann
1262
1263
  channel,
1263
1264
  fingerprintHash,
1264
1265
  appVersion,
1265
- builtInBundlePath: info.builtInBundle.path
1266
+ builtInBundlePath: info.builtInBundle.path,
1267
+ sandbox: info.sandbox.code
1266
1268
  }
1267
1269
  };
1268
1270
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/protocol",
3
- "version": "1.2.0-rc.21",
3
+ "version": "1.2.0-rc.23",
4
4
  "type": "module",
5
5
  "description": "The data formats and pure computations that Hot Updater's app and server share",
6
6
  "sideEffects": false,