@calcit/procs 0.6.19 → 0.6.20

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.6.19";
3
+ export const calcit_version = "0.6.20";
4
4
  import { parse } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
6
6
  import "./js-primes.mjs";
@@ -544,7 +544,8 @@ let idCounter = 0;
544
544
  export let generate_id_$x_ = () => {
545
545
  // TODO use nanoid.. this code is wrong
546
546
  idCounter = idCounter + 1;
547
- return `gen_id_${idCounter}`;
547
+ let time = Date.now();
548
+ return `gen_id_${idCounter}_${time}`;
548
549
  };
549
550
  export let _$n_display_stack = () => {
550
551
  console.trace();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.6.19",
3
+ "version": "0.6.20",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^18.11.18",
@@ -1,5 +1,5 @@
1
1
  // CALCIT VERSION
2
- export const calcit_version = "0.6.19";
2
+ export const calcit_version = "0.6.20";
3
3
 
4
4
  import { parse, ICirruNode } from "@cirru/parser.ts";
5
5
  import { writeCirruCode } from "@cirru/writer.ts";
@@ -614,7 +614,8 @@ let idCounter = 0;
614
614
  export let generate_id_$x_ = (): string => {
615
615
  // TODO use nanoid.. this code is wrong
616
616
  idCounter = idCounter + 1;
617
- return `gen_id_${idCounter}`;
617
+ let time = Date.now();
618
+ return `gen_id_${idCounter}_${time}`;
618
619
  };
619
620
 
620
621
  export let _$n_display_stack = (): null => {