@nemigo/server 1.6.0 → 2.0.1
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/jwt.js +1 -1
- package/package.json +15 -14
package/dist/jwt.js
CHANGED
|
@@ -36,7 +36,7 @@ export class JWT {
|
|
|
36
36
|
if (invalidated)
|
|
37
37
|
return;
|
|
38
38
|
const decoded = await this.decode(token);
|
|
39
|
-
if (decoded
|
|
39
|
+
if (decoded?.exp) {
|
|
40
40
|
const now = Math.floor(Date.now() / 1000);
|
|
41
41
|
const remaining = decoded.exp - now;
|
|
42
42
|
if (remaining > 0) {
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemigo/server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vlad Logvin",
|
|
7
7
|
"email": "vlad.logvin84@gmail.com"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=22",
|
|
12
|
-
"pnpm": ">=10.9.0"
|
|
13
|
-
},
|
|
14
10
|
"scripts": {
|
|
15
11
|
"build": "svelte-package && rimraf .svelte-kit",
|
|
16
|
-
"check": "tsc --noemit",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
12
|
+
"check": "bunx --bun tsc --noemit",
|
|
13
|
+
"eslint": "bunx --bun eslint ./",
|
|
14
|
+
"eslint:fix": "bunx --bun eslint --fix ./",
|
|
15
|
+
"lint": "biome lint",
|
|
16
|
+
"lint:fix": "biome lint --fix --unsafe",
|
|
17
|
+
"lint:fix:unsafe": "biome lint --fix --unsafe",
|
|
18
|
+
"format": "biome check --write --linter-enabled=false"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
"./jwt": {
|
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nemigo/helpers": ">=
|
|
32
|
-
"@nemigo/storage": ">=
|
|
31
|
+
"@nemigo/helpers": ">=2.0.0",
|
|
32
|
+
"@nemigo/storage": ">=2.0.0",
|
|
33
|
+
"@redis/client": ">=5.9.0"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@redis/client": "5.9.0",
|
|
36
36
|
"@types/jsonwebtoken": "9.0.10",
|
|
37
37
|
"jsonwebtoken": "9.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@nemigo/
|
|
42
|
-
"@nemigo/
|
|
40
|
+
"@redis/client": "5.10.0",
|
|
41
|
+
"@nemigo/configs": "2.1.2",
|
|
42
|
+
"@nemigo/helpers": "2.0.2",
|
|
43
|
+
"@nemigo/storage": "2.0.1"
|
|
43
44
|
}
|
|
44
45
|
}
|