@orkestrel/template 0.0.18 → 0.0.19

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.
@@ -1318,8 +1318,8 @@ function renderTemplateType(value) {
1318
1318
  */
1319
1319
  function renderTemplateNumber(value) {
1320
1320
  if (Number.isNaN(value)) return "nan";
1321
- if (value === Infinity) return "inf";
1322
- if (value === -Infinity) return "-inf";
1321
+ if (value === 1e400) return "inf";
1322
+ if (value === -1e400) return "-inf";
1323
1323
  if (Number.isInteger(value)) return Object.is(value, -0) ? "0" : String(value);
1324
1324
  const [digits = "", power = "0"] = value.toExponential().split("e");
1325
1325
  const exponent = Number(power);