@technomoron/api-server-base 2.0.0-beta.20 → 2.0.0-beta.22
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.txt +4 -1
- package/dist/cjs/api-module.d.ts +3 -0
- package/dist/cjs/api-server-base.cjs +102 -18
- package/dist/cjs/api-server-base.d.ts +17 -0
- package/dist/esm/api-module.d.ts +3 -0
- package/dist/esm/api-server-base.d.ts +17 -0
- package/dist/esm/api-server-base.js +102 -18
- package/docs/swagger/openapi.json +411 -125
- package/package.json +128 -133
package/package.json
CHANGED
|
@@ -1,134 +1,129 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"docs/swagger/openapi.json",
|
|
131
|
-
"package.json"
|
|
132
|
-
],
|
|
133
|
-
"packageManager": "pnpm@10.28.2"
|
|
134
|
-
}
|
|
2
|
+
"name": "@technomoron/api-server-base",
|
|
3
|
+
"version": "2.0.0-beta.22",
|
|
4
|
+
"description": "Api Server Skeleton / Base Class",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.cjs",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"types": "./dist/esm/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/esm/index.d.ts",
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
|
+
"require": "./dist/cjs/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./auth-api/sql-auth-store": {
|
|
16
|
+
"types": "./dist/esm/auth-api/sql-auth-store.d.ts",
|
|
17
|
+
"import": "./dist/esm/auth-api/sql-auth-store.js",
|
|
18
|
+
"require": "./dist/cjs/auth-api/sql-auth-store.js"
|
|
19
|
+
},
|
|
20
|
+
"./oauth/sequelize": {
|
|
21
|
+
"types": "./dist/esm/oauth/sequelize.d.ts",
|
|
22
|
+
"import": "./dist/esm/oauth/sequelize.js",
|
|
23
|
+
"require": "./dist/cjs/oauth/sequelize.js"
|
|
24
|
+
},
|
|
25
|
+
"./passkey/sequelize": {
|
|
26
|
+
"types": "./dist/esm/passkey/sequelize.d.ts",
|
|
27
|
+
"import": "./dist/esm/passkey/sequelize.js",
|
|
28
|
+
"require": "./dist/cjs/passkey/sequelize.js"
|
|
29
|
+
},
|
|
30
|
+
"./token/sequelize": {
|
|
31
|
+
"types": "./dist/esm/token/sequelize.d.ts",
|
|
32
|
+
"import": "./dist/esm/token/sequelize.js",
|
|
33
|
+
"require": "./dist/cjs/token/sequelize.js"
|
|
34
|
+
},
|
|
35
|
+
"./user/sequelize": {
|
|
36
|
+
"types": "./dist/esm/user/sequelize.d.ts",
|
|
37
|
+
"import": "./dist/esm/user/sequelize.js",
|
|
38
|
+
"require": "./dist/cjs/user/sequelize.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/technomoron/api-server-base.git"
|
|
44
|
+
},
|
|
45
|
+
"author": "Bjørn Erik Jacobsen",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"copyright": "Copyright (c) 2025 Bjørn Erik Jacobsen",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/technomoron/api-server-base/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/technomoron/api-server-base#readme",
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@simplewebauthn/server": "^13.2.2",
|
|
54
|
+
"@types/express": "^5.0.6",
|
|
55
|
+
"bcryptjs": "^3.0.3",
|
|
56
|
+
"cookie-parser": "^1.4.7",
|
|
57
|
+
"cors": "^2.8.6",
|
|
58
|
+
"express": "^5.2.1",
|
|
59
|
+
"jsonwebtoken": "^9.0.3",
|
|
60
|
+
"multer": "^2.0.2"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@types/cookie-parser": "^1.4.10",
|
|
64
|
+
"@types/cors": "^2.8.19",
|
|
65
|
+
"@types/express-serve-static-core": "^5.1.1",
|
|
66
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
67
|
+
"@types/multer": "^2.0.0",
|
|
68
|
+
"@types/supertest": "^6.0.3",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
70
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
71
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
72
|
+
"eslint": "^9.39.2",
|
|
73
|
+
"eslint-config-prettier": "^10.1.8",
|
|
74
|
+
"eslint-plugin-import": "^2.32.0",
|
|
75
|
+
"jsonc-eslint-parser": "^2.4.2",
|
|
76
|
+
"mysql2": "^3.16.3",
|
|
77
|
+
"pg": "^8.18.0",
|
|
78
|
+
"prettier": "^3.8.1",
|
|
79
|
+
"sequelize": "^6.37.7",
|
|
80
|
+
"sqlite3": "^5.1.7",
|
|
81
|
+
"supertest": "^7.2.2",
|
|
82
|
+
"typescript": "^5.9.3",
|
|
83
|
+
"vitest": "^4.0.18",
|
|
84
|
+
"npm-run-all": "^4.1.5"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"mysql2": "^3.16.0",
|
|
88
|
+
"pg": "^8.16.3",
|
|
89
|
+
"sequelize": "^6.37.7",
|
|
90
|
+
"sqlite3": "^5.1.7"
|
|
91
|
+
},
|
|
92
|
+
"peerDependenciesMeta": {
|
|
93
|
+
"mysql2": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"pg": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"sequelize": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
"sqlite3": {
|
|
103
|
+
"optional": true
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"files": [
|
|
107
|
+
"dist/",
|
|
108
|
+
"docs/swagger/openapi.json",
|
|
109
|
+
"package.json"
|
|
110
|
+
],
|
|
111
|
+
"scripts": {
|
|
112
|
+
"scrub": "rm -rf ./node_modules/ pnpm-lock.yaml ./dist/",
|
|
113
|
+
"build:cjs": "tsc --project tsconfig/tsconfig.cjs.json && node scripts/prepare-cjs.cjs",
|
|
114
|
+
"build:esm": "tsc --project tsconfig/tsconfig.esm.json",
|
|
115
|
+
"build": "run-s build:cjs build:esm",
|
|
116
|
+
"test": "vitest run",
|
|
117
|
+
"test:unit": "vitest run tests/unit",
|
|
118
|
+
"test:functional": "vitest run tests/functional",
|
|
119
|
+
"test:watch": "vitest --watch",
|
|
120
|
+
"lint": "eslint --no-error-on-unmatched-pattern --ext .js,.cjs,.mjs,.ts,.mts,.tsx,.vue,.json ./",
|
|
121
|
+
"lintfix": "eslint --fix --no-error-on-unmatched-pattern --ext .js,.cjs,.mjs,.ts,.mts,.tsx,.vue,.json ./",
|
|
122
|
+
"format": "run-s lintfix pretty",
|
|
123
|
+
"cleanbuild": "rm -rf ./dist/ && run-s format build",
|
|
124
|
+
"pretty": "prettier --write \"**/*.{js,jsx,cjs,mjs,ts,tsx,mts,vue,json,md}\"",
|
|
125
|
+
"lintconfig": "node lintconfig.cjs",
|
|
126
|
+
"release:check": "bash ./scripts/release-check.sh",
|
|
127
|
+
"release": "bash ./scripts/release.sh"
|
|
128
|
+
}
|
|
129
|
+
}
|