@absolutejs/absolute 0.19.0-beta.865 → 0.19.0-beta.867

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-SZ98Gx/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-yAuLPh/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-SZ98Gx/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-yAuLPh/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-SZ98Gx/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-yAuLPh/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,7 +9587,6 @@ 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
- console.log('[abs-hmr] \u0275\u0275replaceMetadata for ${className}, def before:', !!${className}.\u0275cmp);
9591
9590
  try {
9592
9591
  core.\u0275\u0275replaceMetadata(
9593
9592
  ${className},
@@ -9597,7 +9596,6 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
9597
9596
  import.meta,
9598
9597
  __ng_hmr_id
9599
9598
  );
9600
- console.log('[abs-hmr] \u0275\u0275replaceMetadata returned for ${className}');
9601
9599
  } catch (err) {
9602
9600
  console.error('[abs-hmr] \u0275\u0275replaceMetadata threw for ${className}:', err);
9603
9601
  }
@@ -17797,14 +17795,26 @@ class ExpressionTranslatorVisitor {
17797
17795
  }
17798
17796
  visitLiteralMapExpr(ast, context) {
17799
17797
  const properties = ast.entries.map((entry) => {
17800
- return entry instanceof o.LiteralMapPropertyAssignment ? {
17801
- kind: "property",
17802
- propertyName: entry.key,
17803
- quoted: entry.quoted,
17804
- value: entry.value.visitExpression(this, context)
17805
- } : {
17798
+ const looksLikeProperty = typeof entry.key === "string" && entry.value !== undefined;
17799
+ const isPropertyAssignment = entry instanceof o.LiteralMapPropertyAssignment || looksLikeProperty;
17800
+ if (isPropertyAssignment) {
17801
+ const e = entry;
17802
+ return {
17803
+ kind: "property",
17804
+ propertyName: e.key,
17805
+ quoted: e.quoted,
17806
+ value: e.value.visitExpression(this, context)
17807
+ };
17808
+ }
17809
+ const spreadEntry = entry;
17810
+ if (!spreadEntry.expression) {
17811
+ const ctorName = entry?.constructor?.name;
17812
+ const keys = entry ? Object.keys(entry).join(",") : "";
17813
+ 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.`);
17814
+ }
17815
+ return {
17806
17816
  kind: "spread",
17807
- expression: entry.expression.visitExpression(this, context)
17817
+ expression: spreadEntry.expression.visitExpression(this, context)
17808
17818
  };
17809
17819
  });
17810
17820
  return this.setSourceMapRange(this.factory.createObjectLiteral(properties), ast.sourceSpan);
@@ -21611,5 +21621,5 @@ export {
21611
21621
  build
21612
21622
  };
21613
21623
 
21614
- //# debugId=DA6D9EBDC288D26464756E2164756E21
21624
+ //# debugId=E0A2905363130C5764756E2164756E21
21615
21625
  //# sourceMappingURL=build.js.map