@bool-ts/core 2.0.1 → 2.0.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
@@ -1,50 +1,47 @@
1
1
  {
2
2
  "name": "@bool-ts/core",
3
- "version": "2.0.1",
4
- "description": "Core package for BoolTS framework",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "files": [
8
- "./dist",
9
- "./src"
10
- ],
11
- "keywords": [
12
- "bool",
13
- "typescript",
14
- "ts",
15
- "bun",
16
- "framework"
17
- ],
18
- "scripts": {
19
- "test": "bun --hot run __test/index.ts",
20
- "build": "tsc --emitDeclarationOnly && bun run app.build.ts"
21
- },
3
+ "version": "2.0.2",
4
+ "author": "Trần Đức Tâm (Neo)",
22
5
  "repository": {
23
6
  "type": "git",
24
7
  "url": "git+https://github.com/BoolTS/core.git"
25
8
  },
26
- "author": "Trần Đức Tâm (Neo)",
27
- "license": "MIT",
28
- "bugs": {
29
- "url": "https://github.com/BoolTS/core/issues"
30
- },
31
- "homepage": "https://github.com/BoolTS/core#readme",
9
+ "main": "./dist/index.js",
32
10
  "dependencies": {
33
11
  "@bool-ts/date-time": "^1.0.0",
34
12
  "qs": "^6.14.0",
35
13
  "reflect-metadata": "^0.2.2",
36
- "zod": "^3.25.67"
14
+ "zod": "^4.0.17"
37
15
  },
38
16
  "devDependencies": {
39
17
  "@types/bun": "latest",
40
18
  "@types/qs": "^6.14.0",
41
- "typescript": "^5.8.3"
19
+ "typescript": "^5.9.2"
42
20
  },
43
- "peerDependencies": {
44
- "zod": "^3.25.61"
21
+ "bugs": {
22
+ "url": "https://github.com/BoolTS/core/issues"
45
23
  },
24
+ "description": "Core package for BoolTS framework",
25
+ "files": [
26
+ "./dist",
27
+ "./src"
28
+ ],
29
+ "homepage": "https://github.com/BoolTS/core#readme",
30
+ "keywords": [
31
+ "bool",
32
+ "typescript",
33
+ "ts",
34
+ "bun",
35
+ "framework"
36
+ ],
37
+ "license": "MIT",
46
38
  "private": false,
47
39
  "publishConfig": {
48
40
  "access": "public"
49
- }
41
+ },
42
+ "scripts": {
43
+ "build": "tsc --emitDeclarationOnly && bun run app.build.ts",
44
+ "test": "bun --hot run __test/index.ts"
45
+ },
46
+ "types": "./dist/index.d.ts"
50
47
  }
@@ -511,14 +511,11 @@ 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(
515
- responseBodyArgsKey,
516
- JSON.stringify({
517
- httpCode: 404,
518
- message: "Route not found",
519
- data: undefined
520
- })
521
- );
514
+ .set(responseBodyArgsKey, {
515
+ httpCode: 404,
516
+ message: "Route not found",
517
+ data: undefined
518
+ });
522
519
  } else {
523
520
  const { context: newContext } = await this.httpFetcher({
524
521
  context: context,
@@ -1474,7 +1471,12 @@ export class Application<TRootClass extends Object = Object> {
1474
1471
  data instanceof ReadableStream
1475
1472
  ) {
1476
1473
  return this.finalizeResponse(
1477
- new Response(data, { status: status, statusText: statusText, headers: headers })
1474
+ new Response(
1475
+ data instanceof Uint8Array
1476
+ ? String.fromCharCode(...new Uint8Array(data))
1477
+ : data,
1478
+ { status: status, statusText: statusText, headers: headers }
1479
+ )
1478
1480
  );
1479
1481
  }
1480
1482