@indra.ai/deva 1.6.27 → 1.6.28

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 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -126,7 +126,9 @@ class LIB {
126
126
 
127
127
  const transport = id.uid; // set the transport id from the packet id.
128
128
  const created = this.formatDate(time, 'long', true); // Formatted created date.
129
- const expires = time + (client.expires || agent.expires || false); // signature expires in milliseconds
129
+
130
+ const expr = client.expires || agent.expires || false;
131
+ const expires = expr ? time + expr : expr; // signature expires in milliseconds
130
132
  const command = opts.shift(); // extract the command first array item out of opts.
131
133
  const container = `O:${key.toUpperCase()}:${transport}`; // set container string.
132
134
  const {write} = client.profile; // set write string.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 55286864875635310000,
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.27",
4
+ "version": "1.6.28",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "license": "VLA:65806832807751943525 LICENSE.md",