@mrxsys/mrx-core 2.10.0-and-262-20250924 → 2.10.1-1-and-263-20250924

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.
@@ -18,7 +18,7 @@ import {
18
18
  jwtVerify
19
19
  } from "jose";
20
20
  var signJWT = (secret, payload, expiration = Math.floor(Date.now() / 1000) + 60 * 15) => {
21
- const exp = expiration instanceof Date ? Math.floor(expiration.getTime() / 1000) : typeof expiration === "number" ? expiration : parseHumanTimeToSeconds(expiration);
21
+ const exp = expiration instanceof Date ? Math.floor(expiration.getTime() / 1000) : typeof expiration === "number" ? expiration : Math.floor(Date.now() / 1000) + parseHumanTimeToSeconds(expiration);
22
22
  if (exp <= Math.floor(Date.now() / 1000))
23
23
  throw new HttpError(JWT_ERROR_KEYS.JWT_EXPIRATION_PASSED, "BAD_REQUEST");
24
24
  const finalPayload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrxsys/mrx-core",
3
- "version": "2.10.0-and-262-20250924",
3
+ "version": "2.10.1-1-and-263-20250924",
4
4
  "author": "Ruby",
5
5
  "devDependencies": {
6
6
  "@eslint/js": "^9.36.0",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@sinclair/typebox": "0.34.41",
23
- "elysia": "^1.3.21",
24
- "ioredis": "^5.7.0",
23
+ "elysia": "^1.4.7",
24
+ "ioredis": "^5.8.0",
25
25
  "jose": "^6.1.0",
26
26
  "knex": "^3.1.0",
27
27
  "mssql": "^11.0.1",