@lark-apaas/fullstack-nestjs-core 1.1.23-alpha.6 → 1.1.23-alpha.8

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/dist/index.cjs CHANGED
@@ -576,17 +576,7 @@ var FrameworkDebugMiddleware = class {
576
576
  constructor(httpAdapterHost) {
577
577
  this.httpAdapterHost = httpAdapterHost;
578
578
  }
579
- use(req, res) {
580
- const origin = req.headers.origin;
581
- if (origin) {
582
- res.setHeader("Access-Control-Allow-Origin", origin);
583
- res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");
584
- res.setHeader("Access-Control-Allow-Headers", "Content-Type, Accept");
585
- }
586
- if (req.method === "OPTIONS") {
587
- res.status(204).end();
588
- return;
589
- }
579
+ use(_req, res) {
590
580
  res.json(this.getDebugInfo());
591
581
  }
592
582
  getDebugInfo() {
package/dist/index.js CHANGED
@@ -531,17 +531,7 @@ var FrameworkDebugMiddleware = class {
531
531
  constructor(httpAdapterHost) {
532
532
  this.httpAdapterHost = httpAdapterHost;
533
533
  }
534
- use(req, res) {
535
- const origin = req.headers.origin;
536
- if (origin) {
537
- res.setHeader("Access-Control-Allow-Origin", origin);
538
- res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");
539
- res.setHeader("Access-Control-Allow-Headers", "Content-Type, Accept");
540
- }
541
- if (req.method === "OPTIONS") {
542
- res.status(204).end();
543
- return;
544
- }
534
+ use(_req, res) {
545
535
  res.json(this.getDebugInfo());
546
536
  }
547
537
  getDebugInfo() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-nestjs-core",
3
- "version": "1.1.23-alpha.6",
3
+ "version": "1.1.23-alpha.8",
4
4
  "description": "FullStack Nestjs Core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@lark-apaas/nestjs-capability": "^0.1.3",
47
47
  "@lark-apaas/nestjs-common": "^0.1.3",
48
48
  "@lark-apaas/nestjs-datapaas": "^1.0.9",
49
- "@lark-apaas/nestjs-logger": "1.0.10-alpha.5",
49
+ "@lark-apaas/nestjs-logger": "1.0.10-alpha.7",
50
50
  "@lark-apaas/nestjs-observable": "^0.0.4",
51
51
  "@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
52
52
  "@lark-apaas/nestjs-trigger": "^0.0.2",