@mintplayer/polyglot-target-typescript 0.5.2 → 0.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/polyglot-target-typescript",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "MintPlayer Polyglot TypeScript / JavaScript target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
5
5
  "keywords": [
6
6
  "polyglot",
@@ -3507,12 +3507,17 @@
3507
3507
  "Math.sinh": "Math.sinh($0)",
3508
3508
  "Math.cosh": "Math.cosh($0)",
3509
3509
  "Math.tanh": "Math.tanh($0)",
3510
+ "Math.asinh": "Math.asinh($0)",
3511
+ "Math.acosh": "Math.acosh($0)",
3512
+ "Math.atanh": "Math.atanh($0)",
3510
3513
  "Math.trunc": "Math.trunc($0)",
3511
3514
  "Math.floor": "Math.floor($0)",
3512
3515
  "Math.ceil": "Math.ceil($0)",
3513
3516
  "Math.min": "((a, b) => (a <= b ? a : b))($0, $1)",
3514
3517
  "Math.max": "((a, b) => (a >= b ? a : b))($0, $1)",
3515
3518
  "Math.abs": "((a) => (a < (a - a) ? -a : a))($0)",
3519
+ "Math.sign": "((a) => { const o = typeof a === 'bigint' ? 1n : 1; return a > (a - a) ? o : (a < (a - a) ? -o : a - a); })($0)",
3520
+ "Math.clamp": "((x, lo, hi) => x < lo ? lo : (x > hi ? hi : x))($0, $1, $2)",
3516
3521
  "Math.round": "Math.round($0)"
3517
3522
  },
3518
3523
  "std.strings": {