@midwayjs/cross-domain 3.9.0 → 3.9.6

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.
@@ -4,5 +4,6 @@ export declare class CorsMiddleware implements IMiddleware<any, any> {
4
4
  cors: CORSOptions;
5
5
  resolve(app: any): (req: any, res: any, next: any) => Promise<any>;
6
6
  compatibleMiddleware(request: any, response: any, next: any): Promise<any>;
7
+ static getName(): string;
7
8
  }
8
9
  //# sourceMappingURL=cors.d.ts.map
@@ -108,6 +108,9 @@ let CorsMiddleware = class CorsMiddleware {
108
108
  throw err;
109
109
  }
110
110
  }
111
+ static getName() {
112
+ return 'cors';
113
+ }
111
114
  };
112
115
  __decorate([
113
116
  (0, core_1.Config)('cors'),
@@ -7,5 +7,6 @@ export declare class JSONPMiddleware implements IMiddleware<any, any> {
7
7
  jsonp: JSONPOptions;
8
8
  resolve(app: any): (req: any, res: any, next: any) => Promise<any>;
9
9
  compatibleMiddleware(context: any, next: any): Promise<any>;
10
+ static getName(): string;
10
11
  }
11
12
  //# sourceMappingURL=jsonp.d.ts.map
@@ -52,6 +52,9 @@ let JSONPMiddleware = class JSONPMiddleware {
52
52
  }
53
53
  return await next();
54
54
  }
55
+ static getName() {
56
+ return 'jsonp';
57
+ }
55
58
  };
56
59
  __decorate([
57
60
  (0, core_1.Config)('jsonp'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/cross-domain",
3
- "version": "3.9.0",
3
+ "version": "3.9.6",
4
4
  "description": "Midway Component for Cross Domain",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "@midwayjs/faas": "^3.9.0",
31
31
  "@midwayjs/koa": "^3.9.0",
32
32
  "@midwayjs/mock": "^3.9.0",
33
- "@midwayjs/serverless-app": "^3.9.0",
33
+ "@midwayjs/serverless-app": "^3.9.1",
34
34
  "@midwayjs/web": "^3.9.0"
35
35
  },
36
- "gitHead": "5f6603d2c9606fc6fc7ece71f956e89e394efeee"
36
+ "gitHead": "0702c088ad34d182d916bb33d11c7f80bf4b24bd"
37
37
  }