@calcit/procs 0.6.16 → 0.6.18

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.
@@ -1,6 +1,6 @@
1
1
  var _a;
2
2
  // CALCIT VERSION
3
- export const calcit_version = "0.6.16";
3
+ export const calcit_version = "0.6.18";
4
4
  import { parse } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
6
6
  import "./js-primes.mjs";
package/lib/js-cirru.mjs CHANGED
@@ -331,8 +331,8 @@ export let to_calcit_data = (x, noKeyword = false) => {
331
331
  });
332
332
  return new CalcitSliceMap(result);
333
333
  }
334
- console.error(x);
335
- throw new Error("Unexpected data for converting");
334
+ console.error("Unexpected data for converting", x);
335
+ return null;
336
336
  };
337
337
  let toWriterNode = (xs) => {
338
338
  if (typeof xs === "string") {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^18.11.9",
7
- "typescript": "^4.8.4"
6
+ "@types/node": "^18.11.18",
7
+ "typescript": "^4.9.4"
8
8
  },
9
9
  "scripts": {
10
10
  "compile": "rm -rfv lib/* && tsc",
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.6.16";
2
+ export const calcit_version = "0.6.18";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
@@ -327,8 +327,8 @@ export let to_calcit_data = (x: any, noKeyword: boolean = false): CalcitValue =>
327
327
  return new CalcitSliceMap(result);
328
328
  }
329
329
 
330
- console.error(x);
331
- throw new Error("Unexpected data for converting");
330
+ console.error("Unexpected data for converting", x);
331
+ return null;
332
332
  };
333
333
 
334
334
  let toWriterNode = (xs: CalcitList | CalcitSliceList | Array<any> | String): CirruWriterNode => {