@calcit/procs 0.8.9 → 0.8.10

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.8.9";
3
+ export const calcit_version = "0.8.10";
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";
@@ -126,6 +126,19 @@ export let load_console_formatter_$x_ = () => {
126
126
  if (obj instanceof CalcitMap || obj instanceof CalcitSliceMap) {
127
127
  let ret = ["div", { style: "color: hsl(280, 80%, 60%)" }];
128
128
  let pairs = obj.pairs();
129
+ pairs.sort((pa, pb) => {
130
+ let ka = pa[0].toString();
131
+ let kb = pb[0].toString();
132
+ if (ka < kb) {
133
+ return -1;
134
+ }
135
+ else if (ka > kb) {
136
+ return 1;
137
+ }
138
+ else {
139
+ return 0;
140
+ }
141
+ });
129
142
  for (let idx = 0; idx < pairs.length; idx++) {
130
143
  let [k, v] = pairs[idx];
131
144
  ret.push([
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
- "@types/node": "^20.8.6",
6
+ "@types/node": "^20.9.0",
7
7
  "typescript": "^5.2.2"
8
8
  },
9
9
  "scripts": {
@@ -0,0 +1,3 @@
1
+
2
+ [toolchain]
3
+ channel = "nightly"
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.8.9";
2
+ export const calcit_version = "0.8.10";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
@@ -143,6 +143,17 @@ export let load_console_formatter_$x_ = () => {
143
143
  if (obj instanceof CalcitMap || obj instanceof CalcitSliceMap) {
144
144
  let ret: any[] = ["div", { style: "color: hsl(280, 80%, 60%)" }];
145
145
  let pairs = obj.pairs();
146
+ pairs.sort((pa, pb) => {
147
+ let ka = pa[0].toString();
148
+ let kb = pb[0].toString();
149
+ if (ka < kb) {
150
+ return -1;
151
+ } else if (ka > kb) {
152
+ return 1;
153
+ } else {
154
+ return 0;
155
+ }
156
+ });
146
157
  for (let idx = 0; idx < pairs.length; idx++) {
147
158
  let [k, v] = pairs[idx];
148
159
  ret.push([