@dooboostore/simple-boot-http-server 1.0.20 → 1.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dooboostore/simple-boot-http-server",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -63,11 +63,11 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "reflect-metadata": "^0.2.2",
66
- "@dooboostore/core": "1.0.21",
67
- "@dooboostore/simple-boot": "1.0.49",
68
- "@dooboostore/core-node": "1.0.7",
69
- "@dooboostore/dom-render": "1.0.108",
70
- "@dooboostore/core-web": "1.0.6"
66
+ "@dooboostore/core": "1.0.22",
67
+ "@dooboostore/core-node": "1.0.8",
68
+ "@dooboostore/core-web": "1.0.7",
69
+ "@dooboostore/dom-render": "1.0.109",
70
+ "@dooboostore/simple-boot": "1.0.51"
71
71
  },
72
72
  "dependencies": {
73
73
  "fast-json-patch": "^3.1.0",
@@ -101,13 +101,14 @@
101
101
  "clean": "rm -rf dist",
102
102
  "build:esm": "node build.mjs esm",
103
103
  "watch:esm": "pnpm run build:esm && node build.mjs esm --watch",
104
- "build:cjs": "node build.mjs cjs && cp package.cjs.json dist/cjs/package.json",
104
+ "build:cjs": "node build.mjs cjs",
105
105
  "watch:cjs": "pnpm run build:cjs && node build.mjs cjs --watch",
106
106
  "build": "pnpm run clean && node build.mjs all",
107
107
  "build:umd-bundle": "node build.mjs umd-bundle",
108
108
  "watch:umd-bundle": "pnpm run build:umd-bundle && node build.mjs umd-bundle --watch",
109
109
  "build:esm-bundle": "node build.mjs esm-bundle",
110
110
  "watch:esm-bundle": "pnpm run build:esm-bundle && node build.mjs esm-bundle --watch",
111
+ "watch": "node build.mjs all --watch",
111
112
  "publish:npm": "pnpm run build && cp package.json package.json.back && pnpm pack && TARBALL_NAME=$(ls dooboostore-simple-boot-http-server-*.tgz | head -n 1) && tar -xzf \"$TARBALL_NAME\" -C . --strip-components=1 package/package.json && rm \"$TARBALL_NAME\" && (pnpm publish --no-git-checks || true) && cp package.json.back package.json && rm -rf package.json.back ",
112
113
  "ts:clean": "find . -name '*.js' -o -name '*.map' -o -name '*.d.ts' | xargs rm -f",
113
114
  "typecheck": "tsc --noEmit",
@@ -9,7 +9,6 @@ import { HttpStatus } from './codes/HttpStatus';
9
9
  import { HttpHeaders } from './codes/HttpHeaders';
10
10
  import { Mimes } from './codes/Mimes';
11
11
  import { Filter } from './filters/Filter';
12
- import { SimstanceManager } from '@dooboostore/simple-boot/simstance/SimstanceManager';
13
12
  import { ExceptionHandlerSituationType, targetExceptionHandler } from '@dooboostore/simple-boot/decorators/exception/ExceptionDecorator';
14
13
  import { getInject, SituationTypeContainer, SituationTypeContainers } from '@dooboostore/simple-boot/decorators/inject/Inject';
15
14
  import { EndPoint } from './endpoints/EndPoint';
@@ -39,12 +38,12 @@ export class SimpleBootHttpServer extends SimpleApplication {
39
38
 
40
39
 
41
40
  public run(otherInstanceSim?: Map<ConstructorType<any>, any>) {
42
- const simstanceManager = super.run(otherInstanceSim);
41
+ super.run(otherInstanceSim);
43
42
  const targets = [...this.option.closeEndPoints ?? [], ...this.option.errorEndPoints ?? [], ...this.option.requestEndPoints ?? [], ...this.option.filters ?? []];
44
43
  Promise.all(targets.map(it => (typeof it === 'function' ? this.simstanceManager.getOrNewSim({target:it as ConstructorType<any>}) : it) as OnInit).map(it => it.onInit(this))).then(it => {
45
44
  this.startServer();
46
45
  });
47
- return simstanceManager;
46
+ return this;
48
47
  }
49
48
 
50
49
  private startServer() {