@bool-ts/core 1.5.8 → 1.5.10

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/bun.lockb CHANGED
Binary file
@@ -378,6 +378,8 @@ export const BoolFactory = (target, options) => {
378
378
  }
379
379
  await afterDispatcherCollection.func(...afterDispatcherArguments);
380
380
  }
381
+ // Set default header(s)
382
+ resHeaders.set("X-Powered-By", "Bool Typescript");
381
383
  return responseBody instanceof Response
382
384
  ? responseBody
383
385
  : new Response(!responseBody
@@ -393,6 +395,8 @@ export const BoolFactory = (target, options) => {
393
395
  });
394
396
  }
395
397
  catch (error) {
398
+ // Set default header(s)
399
+ resHeaders.set("X-Powered-By", "Bool Typescript");
396
400
  return jsonErrorInfer(error, resHeaders);
397
401
  }
398
402
  finally {
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@bool-ts/core",
3
- "version": "1.5.8",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "test": "bun --hot run __test/index.ts",
8
- "build": "tsc"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/BoolTS/core.git"
13
- },
14
- "author": "Trần Đức Tâm (Neo)",
15
- "license": "MIT",
16
- "bugs": {
17
- "url": "https://github.com/BoolTS/core/issues"
18
- },
19
- "homepage": "https://github.com/BoolTS/core#readme",
20
- "dependencies": {
21
- "colors": "^1.4.0",
22
- "qs": "^6.13.0",
23
- "reflect-metadata": "^0.2.2",
24
- "zod": "^3.23.8"
25
- },
26
- "devDependencies": {
27
- "@types/bun": "latest",
28
- "@types/qs": "^6.9.15",
29
- "typescript": "^5.5.4"
30
- }
31
- }
1
+ {
2
+ "name": "@bool-ts/core",
3
+ "version": "1.5.10",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "bun --hot run __test/index.ts",
8
+ "build": "tsc"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/BoolTS/core.git"
13
+ },
14
+ "author": "Trần Đức Tâm (Neo)",
15
+ "license": "MIT",
16
+ "bugs": {
17
+ "url": "https://github.com/BoolTS/core/issues"
18
+ },
19
+ "homepage": "https://github.com/BoolTS/core#readme",
20
+ "dependencies": {
21
+ "colors": "^1.4.0",
22
+ "qs": "^6.13.0",
23
+ "reflect-metadata": "^0.2.2",
24
+ "zod": "^3.23.8"
25
+ },
26
+ "devDependencies": {
27
+ "@types/bun": "latest",
28
+ "@types/qs": "^6.9.15",
29
+ "typescript": "^5.5.4"
30
+ }
31
+ }
@@ -575,6 +575,9 @@ export const BoolFactory = (target: new (...args: any[]) => unknown, options: TB
575
575
  await afterDispatcherCollection.func(...afterDispatcherArguments);
576
576
  }
577
577
 
578
+ // Set default header(s)
579
+ resHeaders.set("X-Powered-By", "Bool Typescript");
580
+
578
581
  return responseBody instanceof Response
579
582
  ? responseBody
580
583
  : new Response(
@@ -592,6 +595,9 @@ export const BoolFactory = (target: new (...args: any[]) => unknown, options: TB
592
595
  }
593
596
  );
594
597
  } catch (error) {
598
+ // Set default header(s)
599
+ resHeaders.set("X-Powered-By", "Bool Typescript");
600
+
595
601
  return jsonErrorInfer(error, resHeaders);
596
602
  } finally {
597
603
  if (allowLogsMethods) {