blaizejs 0.2.3 → 0.3.1

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * blaizejs v0.3.1
3
+ * A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.
4
+ *
5
+ * Copyright (c) 2025 BlaizeJS Contributors
6
+ * @license MIT
7
+ */
8
+
9
+ import {
10
+ InternalServerError
11
+ } from "./chunk-ZZEQFU5V.js";
12
+ import "./chunk-SF7ZGOEK.js";
13
+ export {
14
+ InternalServerError
15
+ };
16
+ //# sourceMappingURL=internal-server-error-PKVC3ZEU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * blaizejs v0.3.1
3
+ * A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.
4
+ *
5
+ * Copyright (c) 2025 BlaizeJS Contributors
6
+ * @license MIT
7
+ */
8
+
9
+ import {
10
+ BlaizeError,
11
+ getCurrentCorrelationId
12
+ } from "./chunk-SF7ZGOEK.js";
13
+
14
+ // src/errors/payload-too-large-error.ts
15
+ var PayloadTooLargeError = class extends BlaizeError {
16
+ constructor(title, details, correlationId) {
17
+ super(
18
+ "PAYLOAD_TOO_LARGE" /* PAYLOAD_TOO_LARGE */,
19
+ title,
20
+ 413,
21
+ correlationId ?? getCurrentCorrelationId(),
22
+ details
23
+ );
24
+ }
25
+ };
26
+ export {
27
+ PayloadTooLargeError
28
+ };
29
+ //# sourceMappingURL=payload-too-large-error-WZMDORKR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/errors/payload-too-large-error.ts"],"sourcesContent":["import { getCurrentCorrelationId } from './correlation';\nimport { BlaizeError, ErrorType } from '../../../blaize-types/src/errors';\n\nimport type { PayloadTooLargeErrorDetails } from '@blaize-types/errors';\n\nexport class PayloadTooLargeError extends BlaizeError<PayloadTooLargeErrorDetails> {\n constructor(\n title: string,\n details?: PayloadTooLargeErrorDetails | undefined,\n correlationId?: string\n ) {\n super(\n ErrorType.PAYLOAD_TOO_LARGE,\n title,\n 413,\n correlationId ?? getCurrentCorrelationId(),\n details\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAKO,IAAM,uBAAN,cAAmC,YAAyC;AAAA,EACjF,YACE,OACA,SACA,eACA;AACA;AAAA;AAAA,MAEE;AAAA,MACA;AAAA,MACA,iBAAiB,wBAAwB;AAAA,MACzC;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * blaizejs v0.3.1
3
+ * A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.
4
+ *
5
+ * Copyright (c) 2025 BlaizeJS Contributors
6
+ * @license MIT
7
+ */
8
+
9
+ import {
10
+ BlaizeError,
11
+ getCurrentCorrelationId
12
+ } from "./chunk-SF7ZGOEK.js";
13
+
14
+ // src/errors/unsupported-media-type-error.ts
15
+ var UnsupportedMediaTypeError = class extends BlaizeError {
16
+ constructor(title, details, correlationId) {
17
+ super(
18
+ "UNSUPPORTED_MEDIA_TYPE" /* UNSUPPORTED_MEDIA_TYPE */,
19
+ title,
20
+ 415,
21
+ correlationId ?? getCurrentCorrelationId(),
22
+ details
23
+ );
24
+ }
25
+ };
26
+ export {
27
+ UnsupportedMediaTypeError
28
+ };
29
+ //# sourceMappingURL=unsupported-media-type-error-VUXOJ72O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/errors/unsupported-media-type-error.ts"],"sourcesContent":["import { getCurrentCorrelationId } from './correlation';\nimport { BlaizeError, ErrorType } from '../../../blaize-types/src/errors';\n\nexport class UnsupportedMediaTypeError extends BlaizeError {\n constructor(title: string, details?: unknown, correlationId?: string) {\n super(\n ErrorType.UNSUPPORTED_MEDIA_TYPE,\n title,\n 415,\n correlationId ?? getCurrentCorrelationId(),\n details\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAAN,cAAwC,YAAY;AAAA,EACzD,YAAY,OAAe,SAAmB,eAAwB;AACpE;AAAA;AAAA,MAEE;AAAA,MACA;AAAA,MACA,iBAAiB,wBAAwB;AAAA,MACzC;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * blaizejs v0.3.1
3
+ * A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.
4
+ *
5
+ * Copyright (c) 2025 BlaizeJS Contributors
6
+ * @license MIT
7
+ */
8
+
9
+ import {
10
+ ValidationError
11
+ } from "./chunk-3A5J5MKL.js";
12
+ import "./chunk-SF7ZGOEK.js";
13
+ export {
14
+ ValidationError
15
+ };
16
+ //# sourceMappingURL=validation-error-WZFF75S7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blaizejs",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "A blazing-fast, TypeScript-first Node.js framework with HTTP/2 support, file-based routing, powerful middleware system, and end-to-end type safety for building modern APIs.",
5
5
  "author": "J.Lea-Jones <jason@careymarcel.com>",
6
6
  "repository": {
@@ -38,12 +38,13 @@
38
38
  "@vitest/coverage-v8": "^3.1.3",
39
39
  "tsx": "^4.19.4",
40
40
  "typescript": "^5.8.3",
41
+ "vite-tsconfig-paths": "^5.1.4",
41
42
  "vitest": "^3.1.3",
43
+ "@blaizejs/testing-utils": "0.3.0",
42
44
  "@blaizejs/eslint-config": "0.1.0",
43
- "@blaizejs/testing-utils": "0.1.4",
44
- "@blaizejs/tsconfig": "0.1.0",
45
45
  "@blaizejs/tsup-config": "0.1.0",
46
- "@blaizejs/vitest-config": "0.1.0"
46
+ "@blaizejs/vitest-config": "0.1.0",
47
+ "@blaizejs/tsconfig": "0.1.0"
47
48
  },
48
49
  "keywords": [
49
50
  "nodejs",