@calcit/procs 0.8.2 → 0.8.3

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.
@@ -402,6 +402,14 @@ export let to_js_data = (x, addColon = false) => {
402
402
  }
403
403
  return Symbol(x.value);
404
404
  }
405
+ if (x instanceof CalcitTuple) {
406
+ var result = [to_js_data(x.tag)];
407
+ for (let i = 0; i < x.extra.length; i++) {
408
+ let item = x.extra[i];
409
+ result.push(to_js_data(item));
410
+ }
411
+ return result;
412
+ }
405
413
  if (x instanceof CalcitList || x instanceof CalcitSliceList) {
406
414
  var result = [];
407
415
  for (let item of x.items()) {
@@ -1,6 +1,6 @@
1
1
  var _a;
2
2
  // CALCIT VERSION
3
- export const calcit_version = "0.8.2";
3
+ export const calcit_version = "0.8.3";
4
4
  import { parse } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
6
6
  import { CalcitSymbol, CalcitTag, CalcitRef, CalcitRecur, newTag, refsRegistry, toString, getStringName, _$n__$e_, hashFunction, } from "./calcit-data.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.6.2",
@@ -12,7 +12,7 @@
12
12
  "cp-mac": "cargo build --release && rm -rfv builds/* && node scripts/cp-version.js && scp builds/* rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/macos/",
13
13
  "eval": "cargo run --bin cr -- -e",
14
14
  "try-rs": "cargo run --bin cr -- calcit/test.cirru -1",
15
- "try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs",
15
+ "try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node --inspect-brk js-out/main.mjs",
16
16
  "try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs"
17
17
  },
18
18
  "repository": {
@@ -437,6 +437,14 @@ export let to_js_data = (x: CalcitValue, addColon: boolean = false): any => {
437
437
  }
438
438
  return Symbol(x.value);
439
439
  }
440
+ if (x instanceof CalcitTuple) {
441
+ var result: any[] = [to_js_data(x.tag)];
442
+ for (let i = 0; i < x.extra.length; i++) {
443
+ let item = x.extra[i];
444
+ result.push(to_js_data(item));
445
+ }
446
+ return result;
447
+ }
440
448
  if (x instanceof CalcitList || x instanceof CalcitSliceList) {
441
449
  var result: any[] = [];
442
450
  for (let item of x.items()) {
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.8.2";
2
+ export const calcit_version = "0.8.3";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";