@absolutejs/absolute 0.19.0-beta.841 → 0.19.0-beta.843

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-mdFF5G/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-6RMIzx/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-mdFF5G/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-6RMIzx/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-mdFF5G/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-6RMIzx/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/build.js CHANGED
@@ -13139,11 +13139,13 @@ var init_buildReactVendor = __esm(() => {
13139
13139
  var RESERVED_KEYS, VALID_IDENTIFIER, generateVendorEntrySource = async (specifier) => {
13140
13140
  const mod = await import(specifier);
13141
13141
  const exportKeys = Object.keys(mod).filter((key) => !RESERVED_KEYS.has(key) && VALID_IDENTIFIER.test(key));
13142
- const explicitNamedExports = exportKeys.length > 0 ? `export { ${exportKeys.join(", ")} } from '${specifier}';
13142
+ const localBindings = exportKeys.map((key, i) => `const __abs_${i} = __abs_ns[${JSON.stringify(key)}];`).join(`
13143
+ `);
13144
+ const reExportClause = exportKeys.length > 0 ? `export { ${exportKeys.map((key, i) => `__abs_${i} as ${key}`).join(", ")} };
13143
13145
  ` : "";
13144
13146
  return `import * as __abs_ns from '${specifier}';
13145
- export * from '${specifier}';
13146
- ` + explicitNamedExports + `export default __abs_ns.default;
13147
+ ` + (localBindings ? `${localBindings}
13148
+ ` : "") + reExportClause + `export default __abs_ns.default;
13147
13149
  export const __ABSOLUTE_VENDOR_NAMESPACE__ = __abs_ns;
13148
13150
  `;
13149
13151
  };
@@ -13153,7 +13155,7 @@ var init_vendorEntrySource = __esm(() => {
13153
13155
  "__esModule",
13154
13156
  "__ABSOLUTE_VENDOR_NAMESPACE__"
13155
13157
  ]);
13156
- VALID_IDENTIFIER = /^[$_a-zA-Z][$_a-zA-Z0-9]*$/;
13158
+ VALID_IDENTIFIER = /^[$_\p{L}][$_\p{L}\p{N}]*$/u;
13157
13159
  });
13158
13160
 
13159
13161
  // src/build/buildAngularVendor.ts
@@ -13583,7 +13585,7 @@ var escapeRegex2 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrit
13583
13585
  const namedImportRe = new RegExp(`\\bimport\\s*\\{[^}]*\\b${ident}\\b[^}]*\\}\\s*from\\b`);
13584
13586
  if (namedImportRe.test(content))
13585
13587
  continue;
13586
- const importPathRe = /from\s+["']([^"']+)["']/g;
13588
+ const importPathRe = /(?:from\s+|import\s*)["']([^"']+)["']/g;
13587
13589
  let pathMatch;
13588
13590
  let sourcePath;
13589
13591
  while ((pathMatch = importPathRe.exec(content)) !== null) {
@@ -13593,7 +13595,8 @@ var escapeRegex2 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrit
13593
13595
  const base = p2.split("/").pop()?.replace(/\.[mc]?js$/, "");
13594
13596
  if (!base)
13595
13597
  continue;
13596
- if (base === ident || base.endsWith(`_${ident}`)) {
13598
+ const normalized = base.startsWith("_") ? base.slice(1) : base;
13599
+ if (normalized === ident || normalized.endsWith(`_${ident}`)) {
13597
13600
  sourcePath = p2;
13598
13601
  break;
13599
13602
  }
@@ -18872,7 +18875,8 @@ var toSafeFileName6 = (specifier) => {
18872
18875
  await Bun.write(entryPath, await generateVendorEntrySource(specifier));
18873
18876
  return { entryPath, specifier };
18874
18877
  }));
18875
- const otherSpecsFor = (current) => specifiers.filter((spec) => spec !== current);
18878
+ const isPrefixOrEqual = (candidate, current) => current === candidate || current.startsWith(`${candidate}/`);
18879
+ const otherSpecsFor = (current) => specifiers.filter((spec) => !isPrefixOrEqual(spec, current));
18876
18880
  const results = await Promise.all(entries.map(({ entryPath, specifier }) => bunBuild9({
18877
18881
  entrypoints: [entryPath],
18878
18882
  external: [...FRAMEWORK_EXTERNALS, ...otherSpecsFor(specifier)],
@@ -19343,5 +19347,5 @@ export {
19343
19347
  build
19344
19348
  };
19345
19349
 
19346
- //# debugId=992CAE3480E7C45764756E2164756E21
19350
+ //# debugId=2874204DAC18A03064756E2164756E21
19347
19351
  //# sourceMappingURL=build.js.map