@calcit/procs 0.7.0-a3 → 0.7.0-a4

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.7.0-a3";
3
+ export const calcit_version = "0.7.0-a4";
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/lib/js-cirru.mjs CHANGED
@@ -245,8 +245,8 @@ export let extract_cirru_edn = (x) => {
245
245
  return new CalcitCirruQuote(x[1]);
246
246
  }
247
247
  if (x[0] === "::") {
248
- if (x.length < 3) {
249
- throw new Error("tuple expects at least 2 values");
248
+ if (x.length < 2) {
249
+ throw new Error("tuple expects at least 1 value1");
250
250
  }
251
251
  let baseClass = new CalcitRecord(newTag("base-class"), [], []);
252
252
  return new CalcitTuple(extract_cirru_edn(x[1]), x.slice(2).map(extract_cirru_edn), baseClass);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.7.0-a3",
3
+ "version": "0.7.0-a4",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.2.5",
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.7.0-a3";
2
+ export const calcit_version = "0.7.0-a4";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
@@ -246,8 +246,8 @@ export let extract_cirru_edn = (x: CirruEdnFormat): CalcitValue => {
246
246
  return new CalcitCirruQuote(x[1]);
247
247
  }
248
248
  if (x[0] === "::") {
249
- if (x.length < 3) {
250
- throw new Error("tuple expects at least 2 values");
249
+ if (x.length < 2) {
250
+ throw new Error("tuple expects at least 1 value1");
251
251
  }
252
252
  let baseClass = new CalcitRecord(newTag("base-class"), [], []);
253
253
  return new CalcitTuple(extract_cirru_edn(x[1]), x.slice(2).map(extract_cirru_edn), baseClass);