@eaccess/auth 0.1.20 → 1.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/README.md +90 -41
- package/dist/index.cjs +108 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js +106 -52
- package/dist/index.js.map +1 -1
- package/package.json +17 -9
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eaccess/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Database-agnostic Express authentication middleware for PostgreSQL",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
7
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
8
21
|
"files": [
|
|
9
22
|
"dist/**/*"
|
|
10
23
|
],
|
|
@@ -12,11 +25,7 @@
|
|
|
12
25
|
"build": "tsup",
|
|
13
26
|
"dev": "tsup --watch",
|
|
14
27
|
"test": "vitest",
|
|
15
|
-
"test:run": "vitest run"
|
|
16
|
-
"test:db": "docker compose up -d && sleep 3 && npm run test:run; docker compose down",
|
|
17
|
-
"db:up": "docker compose up -d",
|
|
18
|
-
"db:down": "docker compose down",
|
|
19
|
-
"db:logs": "docker compose logs -f postgres"
|
|
28
|
+
"test:run": "vitest run"
|
|
20
29
|
},
|
|
21
30
|
"keywords": [
|
|
22
31
|
"express",
|
|
@@ -29,8 +38,7 @@
|
|
|
29
38
|
"license": "MIT",
|
|
30
39
|
"dependencies": {
|
|
31
40
|
"@eaccess/totp": "^1.0.2",
|
|
32
|
-
"@prsm/hash": "^
|
|
33
|
-
"@prsm/ids": "^1.1.1",
|
|
41
|
+
"@prsm/hash": "^2.0.1",
|
|
34
42
|
"@prsm/ms": "^1.0.1",
|
|
35
43
|
"bowser": "^2.11.0",
|
|
36
44
|
"express": "^5.1.0"
|