@midwayjs/core 3.19.0 → 3.20.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.
package/README.md
CHANGED
|
@@ -50,8 +50,12 @@ let MidwayApplicationManager = class MidwayApplicationManager {
|
|
|
50
50
|
}
|
|
51
51
|
getApplications(namespaces) {
|
|
52
52
|
if (!namespaces) {
|
|
53
|
-
return Array.from(this.globalFrameworkMap.values())
|
|
53
|
+
return Array.from(this.globalFrameworkMap.values())
|
|
54
|
+
.map(framework => {
|
|
54
55
|
return framework.getApplication();
|
|
56
|
+
})
|
|
57
|
+
.filter(app => {
|
|
58
|
+
return !!app;
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
else {
|
package/dist/interface.d.ts
CHANGED
|
@@ -426,7 +426,9 @@ export type DataSourceManagerConfigOption<OPTIONS, ENTITY_CONFIG_KEY extends str
|
|
|
426
426
|
dataSource?: {
|
|
427
427
|
[key: string]: PowerPartial<{
|
|
428
428
|
[keyName in ENTITY_CONFIG_KEY]: any[];
|
|
429
|
-
}> & OPTIONS
|
|
429
|
+
}> & OPTIONS & {
|
|
430
|
+
customDataSourceClass?: any;
|
|
431
|
+
};
|
|
430
432
|
};
|
|
431
433
|
} & CreateDataSourceInstanceOptions;
|
|
432
434
|
type ConfigType<T> = T extends (...args: any[]) => any ? Writable<PowerPartial<ReturnType<T>>> : Writable<PowerPartial<T>>;
|
package/dist/response/base.d.ts
CHANGED
package/dist/response/http.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
3
4
|
import { IMidwayContext, ServerSendEventMessage, ServerSendEventStreamOptions, ServerStreamOptions } from '../interface';
|
|
4
5
|
import { ServerResponse } from './base';
|
|
5
6
|
import { ServerSendEventStream } from './sse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.3",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=12"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a0918e46838e220fd000997796dbc8d669d28746"
|
|
47
47
|
}
|