@absolutejs/absolute 0.20.0-beta.35 → 0.20.0-beta.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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-kztPfQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ISzk2S/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-kztPfQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ISzk2S/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-kztPfQ/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-ISzk2S/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/cli/index.js CHANGED
@@ -2635,22 +2635,22 @@ var isRecord2 = (value) => typeof value === "object" && value !== null && !Array
2635
2635
  stdout: ""
2636
2636
  };
2637
2637
  }
2638
- }, ignoredFingerprintDirectories, fingerprintFiles = async (root, current = root) => {
2638
+ }, ignoredFingerprintDirectories, fingerprintFiles = async (root, current = root, options = {}) => {
2639
2639
  const entries = await readdir2(current, { withFileTypes: true });
2640
2640
  const nested = await Promise.all(entries.sort((left, right) => left.name.localeCompare(right.name)).map(async (entry) => {
2641
2641
  const path = join9(current, entry.name);
2642
2642
  const projectRelative = relative3(root, path).replaceAll("\\", "/");
2643
- const ignored = entry.isDirectory() && (ignoredFingerprintDirectories.has(entry.name) || projectRelative === "App/App/public");
2643
+ const ignored = entry.isDirectory() && (ignoredFingerprintDirectories.has(entry.name) || projectRelative === "App/App/public" && options.includePublicBundle !== true);
2644
2644
  if (ignored)
2645
2645
  return [];
2646
2646
  if (entry.isDirectory())
2647
- return fingerprintFiles(root, path);
2647
+ return fingerprintFiles(root, path, options);
2648
2648
  return entry.isFile() ? [path] : [];
2649
2649
  }));
2650
2650
  return nested.flat();
2651
- }, fingerprintAbsoluteIosNativeProject = async (nativeDirectory) => {
2651
+ }, fingerprintAbsoluteIosNativeProject = async (nativeDirectory, options = {}) => {
2652
2652
  const hasher = createHash3("sha256");
2653
- const files = await fingerprintFiles(nativeDirectory);
2653
+ const files = await fingerprintFiles(nativeDirectory, nativeDirectory, options);
2654
2654
  const contents = await Promise.all(files.map((file) => readFile4(file)));
2655
2655
  files.forEach((file, index) => {
2656
2656
  hasher.update(relative3(nativeDirectory, file).replaceAll("\\", "/"));
@@ -3299,7 +3299,7 @@ var ABSOLUTE_IOS_SIMULATOR_NAME = "AbsoluteJS iPhone", BOOT_TIMEOUT_MS = 180000,
3299
3299
  return;
3300
3300
  });
3301
3301
  }
3302
- }, fingerprintAbsoluteIosDevProject = async (project) => fingerprintAbsoluteIosNativeProject(project.nativeDirectory), simulatorInventory = (xcrun, capture) => {
3302
+ }, fingerprintAbsoluteIosDevProject = async (project, options = {}) => fingerprintAbsoluteIosNativeProject(project.nativeDirectory, options), simulatorInventory = (xcrun, capture) => {
3303
3303
  const result = capture([
3304
3304
  xcrun,
3305
3305
  "simctl",
@@ -3671,10 +3671,13 @@ var ABSOLUTE_IOS_SIMULATOR_NAME = "AbsoluteJS iPhone", BOOT_TIMEOUT_MS = 180000,
3671
3671
  transition("syncing");
3672
3672
  await requireSuccess2([project.cap, "sync", "ios"], "Capacitor iOS synchronization", run, { cwd: project.projectRoot, signal: options.signal });
3673
3673
  transition("configuring");
3674
- await writeDevProjection(project, options.port, options.https === true, serverHost);
3674
+ if (options.embeddedBundle !== true)
3675
+ await writeDevProjection(project, options.port, options.https === true, serverHost);
3675
3676
  throwIfAborted2(options.signal);
3676
3677
  const fingerprintStartedAt = performance.now();
3677
- const fingerprintPromise = fingerprintAbsoluteIosDevProject(project).then((fingerprint2) => {
3678
+ const fingerprintPromise = fingerprintAbsoluteIosDevProject(project, {
3679
+ includePublicBundle: options.embeddedBundle === true
3680
+ }).then((fingerprint2) => {
3678
3681
  timings.fingerprinting = performance.now() - fingerprintStartedAt;
3679
3682
  return fingerprint2;
3680
3683
  });
@@ -3735,7 +3738,7 @@ var ABSOLUTE_IOS_SIMULATOR_NAME = "AbsoluteJS iPhone", BOOT_TIMEOUT_MS = 180000,
3735
3738
  await requireSuccess2(iosLaunchCommand(project, udid, deviceIdentifier !== undefined), "iOS app launch", run, { signal: options.signal });
3736
3739
  transition("ready");
3737
3740
  timings.total = performance.now() - startedAt;
3738
- log(`iOS ${targetKind} connected with HMR on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).`);
3741
+ log(options.embeddedBundle === true ? `iOS ${targetKind} connected with the embedded bundle and backend on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).` : `iOS ${targetKind} connected with HMR on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).`);
3739
3742
  log(`iOS startup: ${timingSummary(timings)}.`);
3740
3743
  let closed = false;
3741
3744
  const close = async () => {
@@ -2313,23 +2313,23 @@ var ignoredFingerprintDirectories = new Set([
2313
2313
  "build",
2314
2314
  "xcuserdata"
2315
2315
  ]);
2316
- var fingerprintFiles = async (root, current = root) => {
2316
+ var fingerprintFiles = async (root, current = root, options = {}) => {
2317
2317
  const entries = await readdir3(current, { withFileTypes: true });
2318
2318
  const nested = await Promise.all(entries.sort((left, right) => left.name.localeCompare(right.name)).map(async (entry) => {
2319
2319
  const path = join5(current, entry.name);
2320
2320
  const projectRelative = relative4(root, path).replaceAll("\\", "/");
2321
- const ignored = entry.isDirectory() && (ignoredFingerprintDirectories.has(entry.name) || projectRelative === "App/App/public");
2321
+ const ignored = entry.isDirectory() && (ignoredFingerprintDirectories.has(entry.name) || projectRelative === "App/App/public" && options.includePublicBundle !== true);
2322
2322
  if (ignored)
2323
2323
  return [];
2324
2324
  if (entry.isDirectory())
2325
- return fingerprintFiles(root, path);
2325
+ return fingerprintFiles(root, path, options);
2326
2326
  return entry.isFile() ? [path] : [];
2327
2327
  }));
2328
2328
  return nested.flat();
2329
2329
  };
2330
- var fingerprintAbsoluteIosNativeProject = async (nativeDirectory) => {
2330
+ var fingerprintAbsoluteIosNativeProject = async (nativeDirectory, options = {}) => {
2331
2331
  const hasher = createHash5("sha256");
2332
- const files = await fingerprintFiles(nativeDirectory);
2332
+ const files = await fingerprintFiles(nativeDirectory, nativeDirectory, options);
2333
2333
  const contents = await Promise.all(files.map((file) => readFile5(file)));
2334
2334
  files.forEach((file, index) => {
2335
2335
  hasher.update(relative4(nativeDirectory, file).replaceAll("\\", "/"));
@@ -3095,7 +3095,7 @@ var writeNativeCache = async (projectRoot, cache) => {
3095
3095
  });
3096
3096
  }
3097
3097
  };
3098
- var fingerprintAbsoluteIosDevProject = async (project) => fingerprintAbsoluteIosNativeProject(project.nativeDirectory);
3098
+ var fingerprintAbsoluteIosDevProject = async (project, options = {}) => fingerprintAbsoluteIosNativeProject(project.nativeDirectory, options);
3099
3099
  var simulatorInventory = (xcrun, capture) => {
3100
3100
  const result = capture([
3101
3101
  xcrun,
@@ -3503,10 +3503,13 @@ var startAbsoluteIosDevSession = async (options) => {
3503
3503
  transition("syncing");
3504
3504
  await requireSuccess2([project.cap, "sync", "ios"], "Capacitor iOS synchronization", run, { cwd: project.projectRoot, signal: options.signal });
3505
3505
  transition("configuring");
3506
- await writeDevProjection(project, options.port, options.https === true, serverHost);
3506
+ if (options.embeddedBundle !== true)
3507
+ await writeDevProjection(project, options.port, options.https === true, serverHost);
3507
3508
  throwIfAborted2(options.signal);
3508
3509
  const fingerprintStartedAt = performance.now();
3509
- const fingerprintPromise = fingerprintAbsoluteIosDevProject(project).then((fingerprint2) => {
3510
+ const fingerprintPromise = fingerprintAbsoluteIosDevProject(project, {
3511
+ includePublicBundle: options.embeddedBundle === true
3512
+ }).then((fingerprint2) => {
3510
3513
  timings.fingerprinting = performance.now() - fingerprintStartedAt;
3511
3514
  return fingerprint2;
3512
3515
  });
@@ -3567,7 +3570,7 @@ var startAbsoluteIosDevSession = async (options) => {
3567
3570
  await requireSuccess2(iosLaunchCommand(project, udid, deviceIdentifier !== undefined), "iOS app launch", run, { signal: options.signal });
3568
3571
  transition("ready");
3569
3572
  timings.total = performance.now() - startedAt;
3570
- log(`iOS ${targetKind} connected with HMR on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).`);
3573
+ log(options.embeddedBundle === true ? `iOS ${targetKind} connected with the embedded bundle and backend on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).` : `iOS ${targetKind} connected with HMR on port ${options.port} in ${getDurationString(timings.total)} (${nativeCacheHit ? "native cache hit" : "native build installed"}).`);
3571
3574
  log(`iOS startup: ${timingSummary(timings)}.`);
3572
3575
  let closed = false;
3573
3576
  const close = async () => {
@@ -7820,5 +7823,5 @@ export {
7820
7823
  ABSOLUTE_ANDROID_RELEASE_FORMAT
7821
7824
  };
7822
7825
 
7823
- //# debugId=D998DAA8591F90D464756E2164756E21
7826
+ //# debugId=4CA02552B071DAEC64756E2164756E21
7824
7827
  //# sourceMappingURL=index.js.map