@bool-ts/core 2.1.1 → 2.1.2

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
@@ -43,5 +43,5 @@
43
43
  "test": "bun --hot run __test/index.ts"
44
44
  },
45
45
  "types": "./dist/index.d.ts",
46
- "version": "2.1.1"
46
+ "version": "2.1.2"
47
47
  }
@@ -332,7 +332,7 @@ export class Application<TRootClass extends Object = Object> {
332
332
  new Response(
333
333
  JSON.stringify({
334
334
  httpCode: 404,
335
- message: "Route not found",
335
+ message: "Route not found.",
336
336
  data: undefined
337
337
  }),
338
338
  {
@@ -511,11 +511,14 @@ export class Application<TRootClass extends Object = Object> {
511
511
  .setOptions({ isStatic: false })
512
512
  .set(responseStatusArgsKey, 404)
513
513
  .set(responseStatusTextArgsKey, "Not found.")
514
- .set(responseBodyArgsKey, {
515
- httpCode: 404,
516
- message: "Route not found",
517
- data: undefined
518
- });
514
+ .set(
515
+ responseBodyArgsKey,
516
+ JSON.stringify({
517
+ httpCode: 404,
518
+ message: "Route not found.",
519
+ data: undefined
520
+ })
521
+ );
519
522
  } else {
520
523
  const { context: newContext } = await this.httpFetcher({
521
524
  context: context,