@absolutejs/absolute 0.20.0-beta.1 → 0.20.0-beta.3

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
@@ -23436,6 +23436,7 @@ var init_configResolver = () => {};
23436
23436
  var createHMRState = (config) => ({
23437
23437
  activeFrameworks: new Set,
23438
23438
  assetStore: new Map,
23439
+ clientTargets: new Map,
23439
23440
  config,
23440
23441
  connectedClients: new Set,
23441
23442
  debounceTimeout: null,
@@ -24626,6 +24627,7 @@ var MAX_RETAINED_HMR_UPDATES = 100, normalizedHmrTarget = (value) => {
24626
24627
  });
24627
24628
  clientsToRemove.forEach((client2) => {
24628
24629
  state.connectedClients.delete(client2);
24630
+ state.clientTargets.delete(client2);
24629
24631
  });
24630
24632
  }, handleClientConnect = (state, client2, manifest) => {
24631
24633
  state.connectedClients.add(client2);
@@ -24666,6 +24668,7 @@ var MAX_RETAINED_HMR_UPDATES = 100, normalizedHmrTarget = (value) => {
24666
24668
  }
24667
24669
  }, handleClientDisconnect = (state, client2) => {
24668
24670
  state.connectedClients.delete(client2);
24671
+ state.clientTargets.delete(client2);
24669
24672
  }, parseJsonSafe = (raw) => JSON.parse(raw), parseMessage = (message) => {
24670
24673
  if (typeof message === "string") {
24671
24674
  return parseJsonSafe(message);
@@ -24695,11 +24698,13 @@ var MAX_RETAINED_HMR_UPDATES = 100, normalizedHmrTarget = (value) => {
24695
24698
  case "request-rebuild":
24696
24699
  break;
24697
24700
  case "ready":
24701
+ state.clientTargets.set(client2, normalizedHmrTarget(data.target));
24698
24702
  if (data.framework) {
24699
24703
  state.activeFrameworks.add(data.framework);
24700
24704
  }
24701
24705
  break;
24702
24706
  case "hmr-timing": {
24707
+ state.clientTargets.set(client2, normalizedHmrTarget(data.target));
24703
24708
  const update = typeof data.updateId === "number" ? state.hmrUpdates.get(data.updateId) : undefined;
24704
24709
  logHmrClientUpdate(update?.path ?? state.lastHmrPath ?? "", update?.framework ?? state.lastHmrFramework, data.duration, normalizedHmrTarget(data.target), data.serverMs, data.clientMs, data.outcome, data.kind);
24705
24710
  sendTelemetryEvent("hmr:client-applied", {
@@ -29575,6 +29580,15 @@ var STORE_KEY = "__elysiaStore", restoredStores, getGlobalValue = (key) => Refle
29575
29580
  open: (ws) => handleClientConnect(hmrState2, ws, manifest)
29576
29581
  }).get("/hmr-status", () => ({
29577
29582
  connectedClients: hmrState2.connectedClients.size,
29583
+ connectedTargets: Object.fromEntries([
29584
+ "web",
29585
+ "capacitor-android",
29586
+ "capacitor-ios",
29587
+ "capacitor-native"
29588
+ ].map((target) => [
29589
+ target,
29590
+ [...hmrState2.clientTargets.values()].filter((value) => value === target).length
29591
+ ])),
29578
29592
  entryWatcherReady: globalThis.__absoluteEntryWatcherReady === true,
29579
29593
  isRebuilding: hmrState2.isRebuilding,
29580
29594
  manifestKeys: Object.keys(manifest),
@@ -31713,6 +31727,15 @@ var normalizeAppleAppIdPrefix = (value) => {
31713
31727
  }
31714
31728
  return normalized;
31715
31729
  };
31730
+ var normalizeIosVersion = (value) => {
31731
+ if (value === undefined)
31732
+ return;
31733
+ const normalized = requireText(value, "mobile.ios.version");
31734
+ if (!/^\d+(?:\.\d+){0,2}$/u.test(normalized)) {
31735
+ throw new TypeError("mobile.ios.version must contain one to three dot-separated integer components, for example 1.4.0.");
31736
+ }
31737
+ return normalized;
31738
+ };
31716
31739
  var normalizeCertificateFingerprints = (values) => [
31717
31740
  ...new Set((values ?? []).map((value) => requireText(value, "mobile.deepLinks.android.sha256CertificateFingerprints").replaceAll(":", "").toUpperCase()).map((value) => {
31718
31741
  if (!CERTIFICATE_FINGERPRINT_PATTERN.test(value)) {
@@ -31741,6 +31764,7 @@ var normalizeAbsoluteMobileConfig = (config, projectRoot) => {
31741
31764
  deepLinkScheme,
31742
31765
  engine: "capacitor",
31743
31766
  entry: normalizeEntry(config.entry),
31767
+ iosVersion: normalizeIosVersion(config.ios?.version),
31744
31768
  nativeProjectDirectory: resolveProjectPath(projectRoot, config.nativeProject?.directory ?? "mobile", "mobile.nativeProject.directory"),
31745
31769
  platforms: normalizePlatforms(config.platforms),
31746
31770
  productionOrigin
@@ -39643,5 +39667,5 @@ export {
39643
39667
  ANGULAR_INIT_TIMEOUT_MS
39644
39668
  };
39645
39669
 
39646
- //# debugId=9019476FB119209B64756E2164756E21
39670
+ //# debugId=C32ABD2F8864CE7A64756E2164756E21
39647
39671
  //# sourceMappingURL=index.js.map