oak-backend-base 4.1.21 → 4.1.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/lib/AppLoader.d.ts +1 -1
- package/lib/AppLoader.js +2 -2
- package/package.json +4 -4
package/lib/AppLoader.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt exten
|
|
|
35
35
|
result: any;
|
|
36
36
|
message?: string;
|
|
37
37
|
}>;
|
|
38
|
-
initialize(): Promise<void>;
|
|
38
|
+
initialize(ifExists?: 'drop' | 'omit' | 'dropIfNotStatic'): Promise<void>;
|
|
39
39
|
getStore(): DbStore<ED, Cxt>;
|
|
40
40
|
getEndpoints(prefix: string): [string, "post" | "get" | "put" | "delete", string, (params: Record<string, string>, headers: IncomingHttpHeaders, req: IncomingMessage, body?: any) => Promise<{
|
|
41
41
|
headers?: Record<string, string | string[]> | undefined;
|
package/lib/AppLoader.js
CHANGED
|
@@ -185,8 +185,8 @@ class AppLoader extends types_1.AppLoader {
|
|
|
185
185
|
throw err;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
async initialize() {
|
|
189
|
-
await this.dbStore.initialize({ ifExists
|
|
188
|
+
async initialize(ifExists) {
|
|
189
|
+
await this.dbStore.initialize({ ifExists });
|
|
190
190
|
const data = this.requireSth('lib/data/index');
|
|
191
191
|
// oak-domain中只有i18n
|
|
192
192
|
(0, assert_1.default)(data.i18n);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oak-backend-base",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.22",
|
|
4
4
|
"description": "oak-backend-base",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"author": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"mysql2": "^2.3.3",
|
|
23
23
|
"node-schedule": "^2.1.0",
|
|
24
24
|
"oak-common-aspect": "^3.0.5",
|
|
25
|
-
"oak-db": "^3.3.
|
|
26
|
-
"oak-domain": "^5.1.
|
|
27
|
-
"oak-frontend-base": "^5.3.
|
|
25
|
+
"oak-db": "^3.3.11",
|
|
26
|
+
"oak-domain": "^5.1.28",
|
|
27
|
+
"oak-frontend-base": "^5.3.38",
|
|
28
28
|
"socket.io": "^4.8.1",
|
|
29
29
|
"socket.io-client": "^4.7.2",
|
|
30
30
|
"uuid": "^8.3.2"
|