@absolutejs/absolute 0.19.0-beta.865 → 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.
package/dist/index.js CHANGED
@@ -17894,14 +17894,26 @@ class ExpressionTranslatorVisitor {
17894
17894
  }
17895
17895
  visitLiteralMapExpr(ast, context) {
17896
17896
  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
- } : {
17897
+ const looksLikeProperty = typeof entry.key === "string" && entry.value !== undefined;
17898
+ const isPropertyAssignment = entry instanceof o.LiteralMapPropertyAssignment || looksLikeProperty;
17899
+ if (isPropertyAssignment) {
17900
+ const e = entry;
17901
+ return {
17902
+ kind: "property",
17903
+ propertyName: e.key,
17904
+ quoted: e.quoted,
17905
+ value: e.value.visitExpression(this, context)
17906
+ };
17907
+ }
17908
+ const spreadEntry = entry;
17909
+ if (!spreadEntry.expression) {
17910
+ const ctorName = entry?.constructor?.name;
17911
+ const keys = entry ? Object.keys(entry).join(",") : "";
17912
+ 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.`);
17913
+ }
17914
+ return {
17903
17915
  kind: "spread",
17904
- expression: entry.expression.visitExpression(this, context)
17916
+ expression: spreadEntry.expression.visitExpression(this, context)
17905
17917
  };
17906
17918
  });
17907
17919
  return this.setSourceMapRange(this.factory.createObjectLiteral(properties), ast.sourceSpan);
@@ -30279,5 +30291,5 @@ export {
30279
30291
  ANGULAR_INIT_TIMEOUT_MS
30280
30292
  };
30281
30293
 
30282
- //# debugId=CF3BF3C28045CFCC64756E2164756E21
30294
+ //# debugId=912EE2204CFF6C6C64756E2164756E21
30283
30295
  //# sourceMappingURL=index.js.map