@shware/security 1.5.12 → 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/README.md +15 -4
- package/dist/auth/index.cjs +25 -24
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +1 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.mjs +20 -9
- package/dist/auth/index.mjs.map +1 -1
- package/dist/oauth2/client.cjs +16 -25
- package/dist/oauth2/client.cjs.map +1 -1
- package/dist/oauth2/client.d.cts +3 -6
- package/dist/oauth2/client.d.ts +3 -6
- package/dist/oauth2/client.mjs +11 -10
- package/dist/oauth2/client.mjs.map +1 -1
- package/dist/oauth2/provider/apple.cjs +4 -14
- package/dist/oauth2/provider/apple.cjs.map +1 -1
- package/dist/oauth2/provider/apple.mjs +1 -1
- package/dist/oauth2/provider/apple.mjs.map +1 -1
- package/dist/oauth2/provider/facebook.cjs +4 -14
- package/dist/oauth2/provider/facebook.cjs.map +1 -1
- package/dist/oauth2/provider/facebook.mjs +1 -1
- package/dist/oauth2/provider/facebook.mjs.map +1 -1
- package/dist/oauth2/provider/github.cjs +3 -13
- package/dist/oauth2/provider/github.cjs.map +1 -1
- package/dist/oauth2/provider/github.mjs +1 -1
- package/dist/oauth2/provider/github.mjs.map +1 -1
- package/dist/oauth2/provider/google.cjs +6 -16
- package/dist/oauth2/provider/google.cjs.map +1 -1
- package/dist/oauth2/provider/google.mjs +1 -1
- package/dist/oauth2/provider/google.mjs.map +1 -1
- package/dist/oauth2/provider/wechat.cjs +4 -14
- package/dist/oauth2/provider/wechat.cjs.map +1 -1
- package/dist/oauth2/provider/wechat.mjs +1 -1
- package/dist/oauth2/provider/wechat.mjs.map +1 -1
- package/dist/oauth2/provider/x.cjs +5 -15
- package/dist/oauth2/provider/x.cjs.map +1 -1
- package/dist/oauth2/provider/x.mjs +1 -1
- package/dist/oauth2/provider/x.mjs.map +1 -1
- package/dist/oauth2/types.cjs.map +1 -1
- package/dist/oauth2/types.d.cts +3 -1
- package/dist/oauth2/types.d.ts +3 -1
- package/dist/oauth2/types.mjs.map +1 -1
- package/dist/session/__tests__/redis.test.cjs +3119 -17
- package/dist/session/__tests__/redis.test.cjs.map +1 -1
- package/dist/session/__tests__/redis.test.mjs +3148 -17
- package/dist/session/__tests__/redis.test.mjs.map +1 -1
- package/package.json +8 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/security",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -23,28 +23,26 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/
|
|
27
|
-
"@types/node": "^24.10.2",
|
|
28
|
-
"jest": "^30.2.0",
|
|
29
|
-
"ts-jest": "^29.4.6",
|
|
26
|
+
"@types/node": "^24",
|
|
30
27
|
"ts-node": "^10.9.2",
|
|
31
28
|
"typescript": "5.9.3",
|
|
32
|
-
"
|
|
33
|
-
"@repo/typescript-config": "0.0.0"
|
|
29
|
+
"vitest": "^4.0.16",
|
|
30
|
+
"@repo/typescript-config": "0.0.0",
|
|
31
|
+
"@repo/eslint-config": "0.0.12"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|
|
36
34
|
"cookie": "^1.1.1",
|
|
37
35
|
"ioredis": "^5.8.2",
|
|
38
36
|
"jose": "^6.1.3",
|
|
39
37
|
"path-to-regexp": "^8.3.0",
|
|
40
|
-
"tiny-invariant": "^1.3.3",
|
|
41
38
|
"uuid": "^13.0.0",
|
|
42
|
-
"zod": "^4.
|
|
39
|
+
"zod": "^4.3.5",
|
|
40
|
+
"@shware/utils": "^1.1.3"
|
|
43
41
|
},
|
|
44
42
|
"scripts": {
|
|
45
43
|
"dev": "tsc --watch",
|
|
46
44
|
"build": "tsup",
|
|
47
|
-
"test": "
|
|
45
|
+
"test": "vitest run",
|
|
48
46
|
"check-types": "tsc --noEmit",
|
|
49
47
|
"lint": "npx eslint . --fix --ext .js,.jsx,.ts,.tsx"
|
|
50
48
|
}
|