@calcit/procs 0.7.6 → 0.7.8

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.6";
3
+ export const calcit_version = "0.7.8";
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";
@@ -256,6 +256,11 @@ export let _$n_tuple_$o_class = function (x) {
256
256
  throw new Error("&tuple:class takes 1 argument");
257
257
  return x.klass;
258
258
  };
259
+ export let _$n_tuple_$o_params = function (x) {
260
+ if (arguments.length !== 1)
261
+ throw new Error("&tuple:params takes 1 argument");
262
+ return new CalcitSliceList(x.extra);
263
+ };
259
264
  export let _$n_tuple_$o_with_class = function (x, y) {
260
265
  if (arguments.length !== 2)
261
266
  throw new Error("&tuple:with-class takes 2 arguments");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.4.4",
@@ -18,7 +18,7 @@
18
18
  "url": "https://github.com/calcit-lang/calcit"
19
19
  },
20
20
  "dependencies": {
21
- "@calcit/ternary-tree": "0.0.21",
21
+ "@calcit/ternary-tree": "0.0.22",
22
22
  "@cirru/parser.ts": "^0.0.6",
23
23
  "@cirru/writer.ts": "^0.1.3"
24
24
  }
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.7.6";
2
+ export const calcit_version = "0.7.8";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
@@ -303,6 +303,11 @@ export let _$n_tuple_$o_class = function (x: CalcitTuple) {
303
303
  return x.klass;
304
304
  };
305
305
 
306
+ export let _$n_tuple_$o_params = function (x: CalcitTuple) {
307
+ if (arguments.length !== 1) throw new Error("&tuple:params takes 1 argument");
308
+ return new CalcitSliceList(x.extra);
309
+ };
310
+
306
311
  export let _$n_tuple_$o_with_class = function (x: CalcitTuple, y: CalcitRecord) {
307
312
  if (arguments.length !== 2) throw new Error("&tuple:with-class takes 2 arguments");
308
313
  if (!(x instanceof CalcitTuple)) throw new Error("&tuple:with-class expects a tuple");