@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.
- package/lib/calcit.procs.mjs +1 -1
- package/lib/js-cirru.mjs +2 -2
- package/package.json +1 -1
- package/ts-src/calcit.procs.mts +1 -1
- package/ts-src/js-cirru.mts +2 -2
package/lib/calcit.procs.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
// CALCIT VERSION
|
|
3
|
-
export const calcit_version = "0.7.0-
|
|
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 <
|
|
249
|
-
throw new Error("tuple expects at least
|
|
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
package/ts-src/calcit.procs.mts
CHANGED
package/ts-src/js-cirru.mts
CHANGED
|
@@ -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 <
|
|
250
|
-
throw new Error("tuple expects at least
|
|
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);
|