@nemigo/server 1.6.0 → 2.0.0
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 +12 -12
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.0",
|
|
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
12
|
"check": "tsc --noemit",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
13
|
+
"eslint": "eslint ./",
|
|
14
|
+
"eslint:fix": "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,8 +28,8 @@
|
|
|
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
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@redis/client": "5.9.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"jsonwebtoken": "9.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@nemigo/configs": "
|
|
41
|
-
"@nemigo/helpers": "
|
|
42
|
-
"@nemigo/storage": "
|
|
40
|
+
"@nemigo/configs": "2.0.0",
|
|
41
|
+
"@nemigo/helpers": "2.0.0",
|
|
42
|
+
"@nemigo/storage": "2.0.0"
|
|
43
43
|
}
|
|
44
44
|
}
|