@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
@@ -9,4 +9,4 @@ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
12
- [MIT]((http://github.com/midwayjs/midway/blob/master/LICENSE))
12
+ [MIT]((https://github.com/midwayjs/midway/blob/master/LICENSE))
@@ -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()).map(framework => {
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 {
@@ -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>>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { IMidwayContext } from '../interface';
3
4
  export declare class ServerResponse<CTX extends IMidwayContext = IMidwayContext> {
4
5
  protected readonly ctx: any;
@@ -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';
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
+ /// <reference types="node" />
4
5
  import http = require('http');
5
6
  import https = require('https');
6
7
  export type HttpClientMimeType = 'text' | 'json' | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/core",
3
- "version": "3.19.0",
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": "437e92d9375b0e375f83aa363f3e6a60187c7109"
46
+ "gitHead": "a0918e46838e220fd000997796dbc8d669d28746"
47
47
  }