@indra.ai/deva 1.5.47 → 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 (3) hide show
  1. package/index.js +10 -0
  2. package/lib/index.js +3 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1515,6 +1515,16 @@ class Deva {
1515
1515
  return this._getFeature('wall', this._wall);
1516
1516
  }
1517
1517
 
1518
+ /**************
1519
+ func: shield
1520
+ params: none
1521
+ describe: basic shield features available in a Deva.
1522
+ usage: this.shield()
1523
+ ***************/
1524
+ shield() {
1525
+ return this._getFeature('shield', this._shield);
1526
+ }
1527
+
1518
1528
  /**************
1519
1529
  func: proxy
1520
1530
  params: none
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.47",
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.",