@xnoxs/flux-lang 3.3.3 → 3.4.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": "@xnoxs/flux-lang",
3
- "version": "3.3.3",
3
+ "version": "3.4.0",
4
4
  "description": "Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.",
5
5
  "main": "dist/flux.cjs.js",
6
6
  "module": "dist/flux.esm.js",
@@ -5,9 +5,15 @@ function findIndex(arr, fn) { return arr.findIndex(fn); }
5
5
  function join(arr, sep) { return arr.join(sep != null ? sep : ','); }
6
6
 
7
7
  function includes(arr, val) { return arr.includes(val); }
8
+
9
+ function trim(s) { return String(s).trim(); }
10
+
11
+ function endsWith(s, suffix) { return String(s).endsWith(suffix); }
12
+
13
+ function repeat(s, n) { return String(s).repeat(n); }
8
14
  // ── end stdlib ──
9
15
 
10
- // Generated by Flux Transpiler v3.1.0
16
+ // Generated by Flux Transpiler v3.2.0
11
17
  "use strict";
12
18
 
13
19
  const Fs = require("fs");
@@ -1,4 +1,4 @@
1
- // Generated by Flux Transpiler v3.1.0
1
+ // Generated by Flux Transpiler v3.2.0
2
2
  "use strict";
3
3
 
4
4
  class CheckError {