bytekit 2.4.3 → 2.4.4

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.
@@ -37,7 +37,7 @@ export interface ValidationSchema {
37
37
  }
38
38
  /** Describes a single validation failure produced by {@link ResponseValidator.validate}. */
39
39
  export interface ValidationError {
40
- /** Dot-notation path to the invalid field (e.g., `"root.user.email"`). */
40
+ /** Dot-notation path to the invalid field (e.g., `"order.item.quantity"`). */
41
41
  path: string;
42
42
  /** Human-readable description of why the value failed validation. */
43
43
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseValidator.d.ts","sourceRoot":"","sources":["../../../src/utils/core/ResponseValidator.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC7B,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC5D,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9C;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,sEAAsE;IACtE,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC;CACjD;AAED,4FAA4F;AAC5F,MAAM,WA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O,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,sEAAsE;IACtE,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC;CACjD;AAED,4FAA4F;AAC5F,MAAM,WAAW,eAAe;IAC5B,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,iBAAiB;IAC1B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAgC7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAwB7B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,QAAQ,CACX,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,gBAAgB,EACxB,IAAI,SAAS,GACd,eAAe,EAAE;IAuCpB,OAAO,CAAC,MAAM,CAAC,cAAc;IAkB7B,OAAO,CAAC,MAAM,CAAC,aAAa;IAiB5B,OAAO,CAAC,MAAM,CAAC,cAAc;IAgD7B,OAAO,CAAC,MAAM,CAAC,cAAc;IAkC7B,OAAO,CAAC,MAAM,CAAC,eAAe;CAiBjC"}
@@ -71,7 +71,7 @@ export declare class StreamingHelper {
71
71
  * Each line in the response must be a valid JSON object.
72
72
  *
73
73
  * @example
74
- * await StreamingHelper.streamJsonLines("https://api.example.com/large-data", {
74
+ * await StreamingHelper.streamJsonLines("http://localhost:3000/large-data", {
75
75
  * onChunk: (item) => console.log("Processed item:", item),
76
76
  * onComplete: () => console.log("Done!")
77
77
  * });
@@ -87,7 +87,7 @@ export declare class StreamingHelper {
87
87
  * Automatically parses incoming data as JSON.
88
88
  *
89
89
  * @example
90
- * const stream = StreamingHelper.streamSSE("https://api.example.com/events");
90
+ * const stream = StreamingHelper.streamSSE("http://localhost:3000/events");
91
91
  * const unsubscribe = stream.subscribe((data) => {
92
92
  * console.log("New real-time data:", data);
93
93
  * });
@@ -40,7 +40,7 @@ export class StreamingHelper {
40
40
  * Each line in the response must be a valid JSON object.
41
41
  *
42
42
  * @example
43
- * await StreamingHelper.streamJsonLines("https://api.example.com/large-data", {
43
+ * await StreamingHelper.streamJsonLines("http://localhost:3000/large-data", {
44
44
  * onChunk: (item) => console.log("Processed item:", item),
45
45
  * onComplete: () => console.log("Done!")
46
46
  * });
@@ -105,7 +105,7 @@ export class StreamingHelper {
105
105
  * Automatically parses incoming data as JSON.
106
106
  *
107
107
  * @example
108
- * const stream = StreamingHelper.streamSSE("https://api.example.com/events");
108
+ * const stream = StreamingHelper.streamSSE("http://localhost:3000/events");
109
109
  * const unsubscribe = stream.subscribe((data) => {
110
110
  * console.log("New real-time data:", data);
111
111
  * });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bytekit",
3
3
  "description": "Lightning-fast TypeScript utilities: Isomorphic API client, Async toolkit (retry, debounce, parallel), QueryClient for state management, and CLI for Swagger/OpenAPI type generation.",
4
- "version": "2.4.3",
4
+ "version": "2.4.4",
5
5
  "type": "module",
6
6
  "imports": {
7
7
  "#core/*": "./dist/utils/core/*",