@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.
- package/lib/index.js +3 -1
- 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
|
-
|
|
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.
|