@wooksjs/event-wf 0.7.23 → 0.7.24
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -296,7 +296,7 @@ async function handleWfOutletRequest(config, deps) {
|
|
|
296
296
|
meta: { outlet: outletReq.outlet }
|
|
297
297
|
};
|
|
298
298
|
const reuseHandle = incomingName !== void 0 && incomingName === finalName && incomingRaw !== void 0 ? { handle: incomingRaw } : void 0;
|
|
299
|
-
const newToken = wrapToken(finalName, await finalStrategy.persist(stateWithMeta, output.expires ? { ttl: output.expires - Date.now() } : void 0, reuseHandle));
|
|
299
|
+
const newToken = wrapToken(finalName, await finalStrategy.persist(stateWithMeta, output.expires ? { ttl: Math.max(1, output.expires - Date.now()) } : void 0, reuseHandle));
|
|
300
300
|
const outOfBand = outletHandler.tokenDelivery === "out-of-band";
|
|
301
301
|
if (tokenWrite === "cookie" && !outOfBand) response.setCookie(tokenName, newToken, {
|
|
302
302
|
httpOnly: true,
|
package/dist/index.mjs
CHANGED
|
@@ -295,7 +295,7 @@ async function handleWfOutletRequest(config, deps) {
|
|
|
295
295
|
meta: { outlet: outletReq.outlet }
|
|
296
296
|
};
|
|
297
297
|
const reuseHandle = incomingName !== void 0 && incomingName === finalName && incomingRaw !== void 0 ? { handle: incomingRaw } : void 0;
|
|
298
|
-
const newToken = wrapToken(finalName, await finalStrategy.persist(stateWithMeta, output.expires ? { ttl: output.expires - Date.now() } : void 0, reuseHandle));
|
|
298
|
+
const newToken = wrapToken(finalName, await finalStrategy.persist(stateWithMeta, output.expires ? { ttl: Math.max(1, output.expires - Date.now()) } : void 0, reuseHandle));
|
|
299
299
|
const outOfBand = outletHandler.tokenDelivery === "out-of-band";
|
|
300
300
|
if (tokenWrite === "cookie" && !outOfBand) response.setCookie(tokenName, newToken, {
|
|
301
301
|
httpOnly: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/event-wf",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.24",
|
|
4
4
|
"description": "@wooksjs/event-wf",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"vitest": "^3.2.7",
|
|
45
|
-
"@wooksjs/event-core": "^0.7.
|
|
46
|
-
"@wooksjs/event-http": "^0.7.
|
|
47
|
-
"@wooksjs/http-body": "^0.7.
|
|
48
|
-
"wooks": "^0.7.
|
|
45
|
+
"@wooksjs/event-core": "^0.7.24",
|
|
46
|
+
"@wooksjs/event-http": "^0.7.24",
|
|
47
|
+
"@wooksjs/http-body": "^0.7.24",
|
|
48
|
+
"wooks": "^0.7.24"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@prostojs/logger": "^0.4.3",
|
|
52
|
-
"@wooksjs/event-core": "^0.7.
|
|
53
|
-
"@wooksjs/event-http": "^0.7.
|
|
54
|
-
"
|
|
55
|
-
"
|
|
52
|
+
"@wooksjs/event-core": "^0.7.24",
|
|
53
|
+
"@wooksjs/event-http": "^0.7.24",
|
|
54
|
+
"@wooksjs/http-body": "^0.7.24",
|
|
55
|
+
"wooks": "^0.7.24"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@wooksjs/event-http": {
|