@indra.ai/deva 1.5.48 → 1.5.49

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -59,9 +59,9 @@ class LIB {
59
59
  id = randomUUID()
60
60
  }
61
61
  else {
62
- const min = Math.floor(Date.now() - (Date.now() / Math.PI));
63
- const max = Math.floor(Date.now() + (Date.now() * Math.PI));
64
- id = Math.floor(Math.random() * (max - min)) + min;
62
+ const min = `${Math.floor(Date.now() - (Date.now() / Math.PI))}00000`;
63
+ const max = `${Math.ceil(Date.now() + (Date.now() * Math.PI))}99999`;
64
+ id = Math.floor(Math.random() * (Number(max) - Number(min))) + Number(min);
65
65
  }
66
66
  return id;
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.5.48",
3
+ "version": "1.5.49",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",