@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.
package/dist/index.js CHANGED
@@ -9858,7 +9858,6 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
9858
9858
  ]);
9859
9859
  if (!u || typeof u.default !== 'function') return;
9860
9860
  if (${className}.\u0275cmp && typeof core.\u0275\u0275replaceMetadata === 'function') {
9861
- console.log('[abs-hmr] \u0275\u0275replaceMetadata for ${className}, def before:', !!${className}.\u0275cmp);
9862
9861
  try {
9863
9862
  core.\u0275\u0275replaceMetadata(
9864
9863
  ${className},
@@ -9868,7 +9867,6 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
9868
9867
  import.meta,
9869
9868
  __ng_hmr_id
9870
9869
  );
9871
- console.log('[abs-hmr] \u0275\u0275replaceMetadata returned for ${className}');
9872
9870
  } catch (err) {
9873
9871
  console.error('[abs-hmr] \u0275\u0275replaceMetadata threw for ${className}:', err);
9874
9872
  }
@@ -17894,14 +17892,26 @@ class ExpressionTranslatorVisitor {
17894
17892
  }
17895
17893
  visitLiteralMapExpr(ast, context) {
17896
17894
  const properties = ast.entries.map((entry) => {
17897
- return entry instanceof o.LiteralMapPropertyAssignment ? {
17898
- kind: "property",
17899
- propertyName: entry.key,
17900
- quoted: entry.quoted,
17901
- value: entry.value.visitExpression(this, context)
17902
- } : {
17895
+ const looksLikeProperty = typeof entry.key === "string" && entry.value !== undefined;
17896
+ const isPropertyAssignment = entry instanceof o.LiteralMapPropertyAssignment || looksLikeProperty;
17897
+ if (isPropertyAssignment) {
17898
+ const e = entry;
17899
+ return {
17900
+ kind: "property",
17901
+ propertyName: e.key,
17902
+ quoted: e.quoted,
17903
+ value: e.value.visitExpression(this, context)
17904
+ };
17905
+ }
17906
+ const spreadEntry = entry;
17907
+ if (!spreadEntry.expression) {
17908
+ const ctorName = entry?.constructor?.name;
17909
+ const keys = entry ? Object.keys(entry).join(",") : "";
17910
+ 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.`);
17911
+ }
17912
+ return {
17903
17913
  kind: "spread",
17904
- expression: entry.expression.visitExpression(this, context)
17914
+ expression: spreadEntry.expression.visitExpression(this, context)
17905
17915
  };
17906
17916
  });
17907
17917
  return this.setSourceMapRange(this.factory.createObjectLiteral(properties), ast.sourceSpan);
@@ -30279,5 +30289,5 @@ export {
30279
30289
  ANGULAR_INIT_TIMEOUT_MS
30280
30290
  };
30281
30291
 
30282
- //# debugId=CF3BF3C28045CFCC64756E2164756E21
30292
+ //# debugId=FEFC595D5DEBE05064756E2164756E21
30283
30293
  //# sourceMappingURL=index.js.map