@authup/server-core 1.0.0-beta.1 → 1.0.0-beta.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger.d.ts","sourceRoot":"","sources":["../../../../src/http/middleware/built-in/swagger.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,wBAAwB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;CACtB,CAAC;AACF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"swagger.d.ts","sourceRoot":"","sources":["../../../../src/http/middleware/built-in/swagger.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,wBAAwB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;CACtB,CAAC;AACF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,OAAO,CAAC,wBAAwB,CAAM,QAuBtG"}
|
|
@@ -16,8 +16,7 @@ const node_process_1 = __importDefault(require("node:process"));
|
|
|
16
16
|
const server_kit_1 = require("@authup/server-kit");
|
|
17
17
|
const swagger_1 = require("@routup/swagger");
|
|
18
18
|
const locter_1 = require("locter");
|
|
19
|
-
function registerSwaggerMiddleware(router, input) {
|
|
20
|
-
input = input || {};
|
|
19
|
+
function registerSwaggerMiddleware(router, input = {}) {
|
|
21
20
|
const mountPath = input.mountPath || '/docs';
|
|
22
21
|
let documentPath;
|
|
23
22
|
if (input.documentPath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../../../src/http/middleware/built-in/swagger.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,sDAAyB;AACzB,0DAA6B;AAC7B,gEAAmC;AACnC,mDAA+C;AAE/C,6CAA4C;AAC5C,mCAA6D;AAQ7D,SAAgB,yBAAyB,CAAC,MAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../../../src/http/middleware/built-in/swagger.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,sDAAyB;AACzB,0DAA6B;AAC7B,gEAAmC;AACnC,mDAA+C;AAE/C,6CAA4C;AAC5C,mCAA6D;AAQ7D,SAAgB,yBAAyB,CAAC,MAAc,EAAE,QAA2C,EAAE;IACnG,MAAM,SAAS,GAAY,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC;IACtD,IAAI,YAAqB,CAAC;IAC1B,IAAI,KAAK,CAAC,YAAY,EAAE,CAAC;QACrB,YAAY,GAAG,mBAAI,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;YAChD,KAAK,CAAC,YAAY,CAAC,CAAC;YACpB,mBAAI,CAAC,IAAI,CAAC,sBAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACrD,CAAC;SAAM,CAAC;QACJ,MAAM,WAAW,GAAG,IAAA,mBAAU,EAAC,iBAAiB,CAAC,CAAC;QAClD,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,OAAO;QACX,CAAC;QAED,YAAY,GAAG,IAAA,sBAAa,EAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,IAAA,sBAAS,GAAE,CAAC,IAAI,CAAC,kBAAkB,YAAY,oBAAoB,CAAC,CAAC;QACrE,OAAO;IACX,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,iBAAQ,EAAC,YAAY,CAAC,CAAC;IACxC,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,IAAA,mBAAS,EAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9D,CAAC;AAvBD,8DAuBC"}
|
|
@@ -35,7 +35,7 @@ function registerMiddlewares(router) {
|
|
|
35
35
|
(0, built_in_1.registerSwaggerMiddleware)(router, {
|
|
36
36
|
documentPath: node_path_1.default.join(config.writableDirectoryPath, 'swagger.json'),
|
|
37
37
|
options: {
|
|
38
|
-
|
|
38
|
+
baseURL: config.publicUrl,
|
|
39
39
|
...(0, utils_1.transformBoolToEmptyObject)(swagger),
|
|
40
40
|
},
|
|
41
41
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authup/server-core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "This is a standalone application.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,24 +45,24 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/authup/authup#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@authup/config": "^1.0.0-beta.
|
|
49
|
-
"@authup/core": "^1.0.0-beta.
|
|
50
|
-
"@authup/server-kit": "^1.0.0-beta.
|
|
48
|
+
"@authup/config": "^1.0.0-beta.3",
|
|
49
|
+
"@authup/core": "^1.0.0-beta.3",
|
|
50
|
+
"@authup/server-kit": "^1.0.0-beta.3",
|
|
51
51
|
"@ebec/http": "^2.3.0",
|
|
52
52
|
"@hapic/oauth2": "^2.4.1",
|
|
53
53
|
"@hapic/vault": "^2.3.2",
|
|
54
|
-
"@routup/basic": "^1.3.
|
|
55
|
-
"@routup/decorators": "^3.3.
|
|
54
|
+
"@routup/basic": "^1.3.1",
|
|
55
|
+
"@routup/decorators": "^3.3.1",
|
|
56
56
|
"@routup/prometheus": "^2.3.0",
|
|
57
57
|
"@routup/rate-limit": "^2.3.0",
|
|
58
|
-
"@routup/swagger": "^2.3.
|
|
59
|
-
"better-sqlite3": "^9.
|
|
58
|
+
"@routup/swagger": "^2.3.4",
|
|
59
|
+
"better-sqlite3": "^9.3.0",
|
|
60
60
|
"cors": "^2.8.5",
|
|
61
|
-
"dotenv": "^16.
|
|
61
|
+
"dotenv": "^16.4.1",
|
|
62
62
|
"dycraft": "^1.1.0",
|
|
63
63
|
"express-validator": "^7.0.1",
|
|
64
64
|
"hapic": "^2.5.0",
|
|
65
|
-
"locter": "^
|
|
65
|
+
"locter": "^2.0.2",
|
|
66
66
|
"morgan": "^1.10.0",
|
|
67
67
|
"mysql": "^2.18.1",
|
|
68
68
|
"node-cron": "^3.0.3",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"reflect-metadata": "^0.2.1",
|
|
72
72
|
"routup": "^3.2.0",
|
|
73
73
|
"smob": "^1.4.1",
|
|
74
|
-
"typeorm": "^0.3.
|
|
75
|
-
"typeorm-extension": "^3.
|
|
74
|
+
"typeorm": "^0.3.20",
|
|
75
|
+
"typeorm-extension": "^3.4.0",
|
|
76
76
|
"winston": "^3.11.0",
|
|
77
77
|
"yargs": "^17.7.2",
|
|
78
78
|
"zod": "^3.22.4"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@types/supertest": "^6.0.2",
|
|
85
85
|
"@types/yargs": "^17.0.32",
|
|
86
86
|
"jest-serial-runner": "^1.2.1",
|
|
87
|
-
"supertest": "^6.3.
|
|
87
|
+
"supertest": "^6.3.4",
|
|
88
88
|
"ts-node": "^10.8.2"
|
|
89
89
|
},
|
|
90
90
|
"publishConfig": {
|