@absolutejs/absolute 0.20.0-beta.60 → 0.20.0-beta.61

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.js CHANGED
@@ -9050,7 +9050,7 @@ var init_loadConfig = __esm(() => {
9050
9050
  // src/mobile/config.ts
9051
9051
  import { resolve as resolve11 } from "path";
9052
9052
  import { createPublicKey } from "crypto";
9053
- var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FINGERPRINT_PATTERN, UPDATE_NAME_PATTERN, UPDATE_PUBLIC_KEY_PATTERN, HOSTNAME_PATTERN, EXPO_RESERVED_ROUTE_PREFIXES, resolveProjectPath = (projectRoot, value, field) => {
9053
+ var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FINGERPRINT_PATTERN, UPDATE_NAME_PATTERN, UPDATE_PUBLIC_KEY_PATTERN, DEFAULT_UPDATE_BOOT_TIMEOUT_MS = 20000, MINIMUM_UPDATE_BOOT_TIMEOUT_MS = 5000, MAXIMUM_UPDATE_BOOT_TIMEOUT_MS = 120000, HOSTNAME_PATTERN, EXPO_RESERVED_ROUTE_PREFIXES, resolveProjectPath = (projectRoot, value, field) => {
9054
9054
  const root = resolve11(projectRoot);
9055
9055
  const path = resolve11(root, value);
9056
9056
  if (path !== root && !path.startsWith(`${root}/`)) {
@@ -9126,6 +9126,9 @@ var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FIN
9126
9126
  ].sort(), normalizeUpdates = (config, productionOrigin) => {
9127
9127
  if (!config.updates)
9128
9128
  return;
9129
+ const bootTimeoutMs = config.updates.bootTimeoutMs ?? DEFAULT_UPDATE_BOOT_TIMEOUT_MS;
9130
+ if (!Number.isSafeInteger(bootTimeoutMs) || bootTimeoutMs < MINIMUM_UPDATE_BOOT_TIMEOUT_MS || bootTimeoutMs > MAXIMUM_UPDATE_BOOT_TIMEOUT_MS)
9131
+ throw new TypeError("mobile.updates.bootTimeoutMs must be an integer from 5000 through 120000.");
9129
9132
  const channel = requireText(config.updates.channel ?? "production", "mobile.updates.channel");
9130
9133
  if (!UPDATE_NAME_PATTERN.test(channel))
9131
9134
  throw new TypeError("mobile.updates.channel contains unsupported characters.");
@@ -9167,7 +9170,12 @@ var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FIN
9167
9170
  throw new TypeError(`mobile.updates.publicKeys.${keyId} is not an ECDSA P-256 SPKI public key.`);
9168
9171
  return [keyId, normalized];
9169
9172
  }));
9170
- return { channel, manifestUrl: manifestUrl.href, publicKeys };
9173
+ return {
9174
+ bootTimeoutMs,
9175
+ channel,
9176
+ manifestUrl: manifestUrl.href,
9177
+ publicKeys
9178
+ };
9171
9179
  }, validateExpoNativeRouteSegment = (path, segment, index, count, parameters) => {
9172
9180
  if (segment === "*" && (index !== count - 1 || count === 1)) {
9173
9181
  throw new TypeError(`mobile.routes.native route ${path} must use * once, as the final segment after a static or parameterized prefix.`);
@@ -41227,5 +41235,5 @@ export {
41227
41235
  wrapPageHandlerWithStreamingSlots
41228
41236
  };
41229
41237
 
41230
- //# debugId=AE2A866A06CFA8B064756E2164756E21
41238
+ //# debugId=8C555D70466789BD64756E2164756E21
41231
41239
  //# sourceMappingURL=index.js.map