@absolutejs/absolute 0.19.0-beta.864 → 0.19.0-beta.866

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-AKY4B5/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-hEWGDp/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-AKY4B5/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-hEWGDp/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-AKY4B5/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-hEWGDp/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
@@ -9587,14 +9587,20 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
9587
9587
  ]);
9588
9588
  if (!u || typeof u.default !== 'function') return;
9589
9589
  if (${className}.\u0275cmp && typeof core.\u0275\u0275replaceMetadata === 'function') {
9590
- core.\u0275\u0275replaceMetadata(
9591
- ${className},
9592
- u.default,
9593
- [core],
9594
- [],
9595
- import.meta,
9596
- __ng_hmr_id
9597
- );
9590
+ console.log('[abs-hmr] \u0275\u0275replaceMetadata for ${className}, def before:', !!${className}.\u0275cmp);
9591
+ try {
9592
+ core.\u0275\u0275replaceMetadata(
9593
+ ${className},
9594
+ u.default,
9595
+ [core],
9596
+ [],
9597
+ import.meta,
9598
+ __ng_hmr_id
9599
+ );
9600
+ console.log('[abs-hmr] \u0275\u0275replaceMetadata returned for ${className}');
9601
+ } catch (err) {
9602
+ console.error('[abs-hmr] \u0275\u0275replaceMetadata threw for ${className}:', err);
9603
+ }
9598
9604
  } else {
9599
9605
  // Non-component entity (pipe / directive / service) \u2014 no
9600
9606
  // LView tree to walk, just apply the prototype patch.
@@ -17791,14 +17797,26 @@ class ExpressionTranslatorVisitor {
17791
17797
  }
17792
17798
  visitLiteralMapExpr(ast, context) {
17793
17799
  const properties = ast.entries.map((entry) => {
17794
- return entry instanceof o.LiteralMapPropertyAssignment ? {
17795
- kind: "property",
17796
- propertyName: entry.key,
17797
- quoted: entry.quoted,
17798
- value: entry.value.visitExpression(this, context)
17799
- } : {
17800
+ const looksLikeProperty = typeof entry.key === "string" && entry.value !== undefined;
17801
+ const isPropertyAssignment = entry instanceof o.LiteralMapPropertyAssignment || looksLikeProperty;
17802
+ if (isPropertyAssignment) {
17803
+ const e = entry;
17804
+ return {
17805
+ kind: "property",
17806
+ propertyName: e.key,
17807
+ quoted: e.quoted,
17808
+ value: e.value.visitExpression(this, context)
17809
+ };
17810
+ }
17811
+ const spreadEntry = entry;
17812
+ if (!spreadEntry.expression) {
17813
+ const ctorName = entry?.constructor?.name;
17814
+ const keys = entry ? Object.keys(entry).join(",") : "";
17815
+ throw new Error(`[abs translator] LiteralMapExpr entry has neither key+value nor expression; ` + `ctor=${ctorName}, keys=${keys}. Likely a duplicate @angular/compiler ` + `module instance \u2014 investigate import resolution.`);
17816
+ }
17817
+ return {
17800
17818
  kind: "spread",
17801
- expression: entry.expression.visitExpression(this, context)
17819
+ expression: spreadEntry.expression.visitExpression(this, context)
17802
17820
  };
17803
17821
  });
17804
17822
  return this.setSourceMapRange(this.factory.createObjectLiteral(properties), ast.sourceSpan);
@@ -21605,5 +21623,5 @@ export {
21605
21623
  build
21606
21624
  };
21607
21625
 
21608
- //# debugId=2B77934E6DE30AB864756E2164756E21
21626
+ //# debugId=8553496840CE9FD764756E2164756E21
21609
21627
  //# sourceMappingURL=build.js.map