@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.
package/lib/calcit.procs.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
// CALCIT VERSION
|
|
3
|
-
export const calcit_version = "0.8.
|
|
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";
|
package/lib/custom-formatter.mjs
CHANGED
|
@@ -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
package/ts-src/calcit.procs.mts
CHANGED
|
@@ -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([
|