@dooboostore/simple-boot-http-server 1.0.29 → 1.0.30
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/cjs/SimpleBootHttpServer.js +3 -1
- package/dist/cjs/SimpleBootHttpServer.js.map +2 -2
- package/dist/esm/SimpleBootHttpServer.js +3 -1
- package/dist/esm/SimpleBootHttpServer.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +3 -1
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.map +2 -2
- package/dist/types/SimpleBootHttpServer.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +3 -1
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.map +2 -2
- package/package.json +3 -3
- package/src/SimpleBootHttpServer.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dooboostore/simple-boot-http-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"ws": "^8.18.3",
|
|
101
101
|
"@dooboostore/core": "1.0.33",
|
|
102
102
|
"@dooboostore/core-web": "1.0.14",
|
|
103
|
+
"@dooboostore/simple-boot": "1.0.59",
|
|
103
104
|
"@dooboostore/core-node": "1.0.14",
|
|
104
|
-
"@dooboostore/dom-render": "1.0.115"
|
|
105
|
-
"@dooboostore/simple-boot": "1.0.59"
|
|
105
|
+
"@dooboostore/dom-render": "1.0.115"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"clean": "rm -rf dist",
|
|
@@ -191,7 +191,11 @@ export class SimpleBootHttpServer extends SimpleApplication {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
// body.. something..
|
|
194
|
-
|
|
194
|
+
// 라우터 없이 필터만으로 도는 서버(예: SSR 전용)면, 어느 필터도 처리하지 않은 요청은 404 로 끝낸다
|
|
195
|
+
// (브라우저가 알아서 보내는 /favicon.ico, /.well-known/... 같은 것 — 예전엔 'no router' 에러로 500 + 로그)
|
|
196
|
+
if (!rr.resIsDone() && !this.option.rootRouter) {
|
|
197
|
+
rr.resStatusCode(HttpStatus.NotFound);
|
|
198
|
+
} else if (!rr.resIsDone()) {
|
|
195
199
|
const routerModule = await super.routing(rr.reqIntent);
|
|
196
200
|
otherStorage.set(RouterModule, routerModule);
|
|
197
201
|
const moduleInstance = routerModule?.getModuleInstance?.();
|