@calcit/procs 0.8.45 → 0.8.46

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.
@@ -149,8 +149,14 @@ export let load_console_formatter_$x_ = () => {
149
149
  }, `${obj.len()}`), preview);
150
150
  }
151
151
  if (obj instanceof CalcitRecord) {
152
- let ret = div({ color: hsl(280, 80, 60, 0.4), maxWidth: "100%" }, `%{} ${obj.name} ...`);
153
- return ret;
152
+ if (obj.klass) {
153
+ let ret = div({ color: hsl(280, 80, 60, 0.4), maxWidth: "100%" }, span({}, "%{}"), span({ marginLeft: "6px" }, embedObject(obj.klass)), span({ marginLeft: "6px" }, embedObject(obj.name)), span({ marginLeft: "6px" }, `...`));
154
+ return ret;
155
+ }
156
+ else {
157
+ let ret = div({ color: hsl(280, 80, 60, 0.4), maxWidth: "100%" }, `%{} ${obj.name} ...`);
158
+ return ret;
159
+ }
154
160
  }
155
161
  if (obj instanceof CalcitTuple) {
156
162
  if (obj.klass) {
package/lib/js-cirru.mjs CHANGED
@@ -322,11 +322,10 @@ export let extract_cirru_edn = (x, options) => {
322
322
  if (x.length < 2) {
323
323
  throw new Error("tuple expects at least 1 value1");
324
324
  }
325
- let baseClass = new CalcitRecord(newTag("base-class"), [], []);
326
325
  return new CalcitTuple(extract_cirru_edn(x[1], options), x
327
326
  .slice(2)
328
327
  .filter(notComment)
329
- .map((x) => extract_cirru_edn(x, options)), baseClass);
328
+ .map((x) => extract_cirru_edn(x, options)), undefined);
330
329
  }
331
330
  }
332
331
  console.error(x);
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.45",
3
+ "version": "0.8.46",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.11.28",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.45",
3
+ "version": "0.8.46",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.11.28",
@@ -180,8 +180,19 @@ export let load_console_formatter_$x_ = () => {
180
180
  );
181
181
  }
182
182
  if (obj instanceof CalcitRecord) {
183
- let ret: any[] = div({ color: hsl(280, 80, 60, 0.4), maxWidth: "100%" }, `%{} ${obj.name} ...`);
184
- return ret;
183
+ if (obj.klass) {
184
+ let ret: any[] = div(
185
+ { color: hsl(280, 80, 60, 0.4), maxWidth: "100%" },
186
+ span({}, "%{}"),
187
+ span({ marginLeft: "6px" }, embedObject(obj.klass)),
188
+ span({ marginLeft: "6px" }, embedObject(obj.name)),
189
+ span({ marginLeft: "6px" }, `...`)
190
+ );
191
+ return ret;
192
+ } else {
193
+ let ret: any[] = div({ color: hsl(280, 80, 60, 0.4), maxWidth: "100%" }, `%{} ${obj.name} ...`);
194
+ return ret;
195
+ }
185
196
  }
186
197
  if (obj instanceof CalcitTuple) {
187
198
  if (obj.klass) {
@@ -318,14 +318,13 @@ export let extract_cirru_edn = (x: CirruEdnFormat, options: CalcitValue): Calcit
318
318
  if (x.length < 2) {
319
319
  throw new Error("tuple expects at least 1 value1");
320
320
  }
321
- let baseClass = new CalcitRecord(newTag("base-class"), [], []);
322
321
  return new CalcitTuple(
323
322
  extract_cirru_edn(x[1], options),
324
323
  x
325
324
  .slice(2)
326
325
  .filter(notComment)
327
326
  .map((x) => extract_cirru_edn(x, options)),
328
- baseClass
327
+ undefined
329
328
  );
330
329
  }
331
330
  }