@bouko/ts 0.2.7 → 0.2.9
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/dist/definitions/math.d.ts +5 -0
- package/dist/definitions/math.js +5 -0
- package/dist/index.d.ts +14 -13
- package/dist/index.js +40 -39
- package/dist/types/generic.d.ts +15 -15
- package/dist/types/generic.js +12 -12
- package/dist/types/math.d.ts +12 -12
- package/dist/types/math.js +10 -10
- package/dist/types/work.d.ts +3 -3
- package/dist/types/work.js +1 -1
- package/dist/utils/checkers.d.ts +2 -2
- package/dist/utils/checkers.js +5 -5
- package/dist/utils/converters.d.ts +14 -2
- package/dist/utils/converters.js +24 -17
- package/dist/utils/env.d.ts +5 -5
- package/dist/utils/env.js +23 -23
- package/dist/utils/formatters.d.ts +2 -2
- package/dist/utils/formatters.js +12 -12
- package/dist/utils/parsers.d.ts +11 -11
- package/dist/utils/parsers.js +23 -23
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { JsonMap, JsonValue } from "./types/generic";
|
|
2
|
-
export * from "./types/generic";
|
|
3
|
-
export * from "./types/work";
|
|
4
|
-
export * from "./types/math";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./utils/
|
|
7
|
-
export * from "./utils/
|
|
8
|
-
export * from "./utils/
|
|
9
|
-
export * from "./utils/
|
|
10
|
-
export
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
1
|
+
import type { JsonMap, JsonValue } from "./types/generic";
|
|
2
|
+
export * from "./types/generic";
|
|
3
|
+
export * from "./types/work";
|
|
4
|
+
export * from "./types/math";
|
|
5
|
+
export * from "./definitions/math";
|
|
6
|
+
export * from "./utils/checkers";
|
|
7
|
+
export * from "./utils/env";
|
|
8
|
+
export * from "./utils/formatters";
|
|
9
|
+
export * from "./utils/parsers";
|
|
10
|
+
export * from "./utils/converters";
|
|
11
|
+
export declare const safely: <T>(action: () => T) => T | undefined;
|
|
12
|
+
export declare const safelyThru: <T>(arr: T[], action: (item: T) => void) => void;
|
|
13
|
+
export declare const isJsonMap: (value: unknown) => value is JsonMap;
|
|
14
|
+
export declare const isJsonValue: (value: unknown) => value is JsonValue;
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
export * from "./types/generic";
|
|
2
|
-
export * from "./types/work";
|
|
3
|
-
export * from "./types/math";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./utils/
|
|
6
|
-
export * from "./utils/
|
|
7
|
-
export * from "./utils/
|
|
8
|
-
export * from "./utils/
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
typeof value === "
|
|
37
|
-
value ===
|
|
38
|
-
value ===
|
|
39
|
-
|
|
1
|
+
export * from "./types/generic";
|
|
2
|
+
export * from "./types/work";
|
|
3
|
+
export * from "./types/math";
|
|
4
|
+
export * from "./definitions/math";
|
|
5
|
+
export * from "./utils/checkers";
|
|
6
|
+
export * from "./utils/env";
|
|
7
|
+
export * from "./utils/formatters";
|
|
8
|
+
export * from "./utils/parsers";
|
|
9
|
+
export * from "./utils/converters";
|
|
10
|
+
export const safely = (action) => {
|
|
11
|
+
try {
|
|
12
|
+
return action();
|
|
13
|
+
}
|
|
14
|
+
catch (err) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export const safelyThru = (arr, action) => {
|
|
19
|
+
try {
|
|
20
|
+
arr.forEach(action);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export const isJsonMap = (value) => {
|
|
26
|
+
if (typeof value !== "object" ||
|
|
27
|
+
value === null ||
|
|
28
|
+
Array.isArray(value))
|
|
29
|
+
return false;
|
|
30
|
+
return Object.entries(value)
|
|
31
|
+
.every(([_, v]) => isJsonValue(v) ||
|
|
32
|
+
(Array.isArray(v) &&
|
|
33
|
+
v.every(isJsonValue)));
|
|
34
|
+
};
|
|
35
|
+
export const isJsonValue = (value) => (typeof value === "string" ||
|
|
36
|
+
typeof value === "number" ||
|
|
37
|
+
typeof value === "boolean" ||
|
|
38
|
+
value === null ||
|
|
39
|
+
value === undefined ||
|
|
40
|
+
isJsonMap(value));
|
package/dist/types/generic.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for common data structures.
|
|
3
|
-
*
|
|
4
|
-
* - `StringMap`: Map of string keys to string values.
|
|
5
|
-
* - `JsonMap`: Object of primitives, arrays, or nested maps.
|
|
6
|
-
* - `JsonValue`: Union type representing a valid JSON value.
|
|
7
|
-
*
|
|
8
|
-
* They are intended to facilitate type-safe handling
|
|
9
|
-
* of generic objects (ex. forms).
|
|
10
|
-
**/
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
[key: string]: JsonValue | JsonValue[];
|
|
14
|
-
};
|
|
15
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for common data structures.
|
|
3
|
+
*
|
|
4
|
+
* - `StringMap`: Map of string keys to string values.
|
|
5
|
+
* - `JsonMap`: Object of primitives, arrays, or nested maps.
|
|
6
|
+
* - `JsonValue`: Union type representing a valid JSON value.
|
|
7
|
+
*
|
|
8
|
+
* They are intended to facilitate type-safe handling
|
|
9
|
+
* of generic objects (ex. forms).
|
|
10
|
+
**/
|
|
11
|
+
export type StringMap = Record<string, string>;
|
|
12
|
+
export type JsonMap = {
|
|
13
|
+
[key: string]: JsonValue | JsonValue[];
|
|
14
|
+
};
|
|
15
|
+
export type JsonValue = string | number | boolean | null | undefined | JsonMap | JsonValue[];
|
package/dist/types/generic.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for common data structures.
|
|
3
|
-
*
|
|
4
|
-
* - `StringMap`: Map of string keys to string values.
|
|
5
|
-
* - `JsonMap`: Object of primitives, arrays, or nested maps.
|
|
6
|
-
* - `JsonValue`: Union type representing a valid JSON value.
|
|
7
|
-
*
|
|
8
|
-
* They are intended to facilitate type-safe handling
|
|
9
|
-
* of generic objects (ex. forms).
|
|
10
|
-
**/
|
|
11
|
-
export {};
|
|
12
|
-
// clean
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for common data structures.
|
|
3
|
+
*
|
|
4
|
+
* - `StringMap`: Map of string keys to string values.
|
|
5
|
+
* - `JsonMap`: Object of primitives, arrays, or nested maps.
|
|
6
|
+
* - `JsonValue`: Union type representing a valid JSON value.
|
|
7
|
+
*
|
|
8
|
+
* They are intended to facilitate type-safe handling
|
|
9
|
+
* of generic objects (ex. forms).
|
|
10
|
+
**/
|
|
11
|
+
export {};
|
|
12
|
+
// clean
|
package/dist/types/math.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for math/numbers.
|
|
3
|
-
*
|
|
4
|
-
* - `Range`: Object with `min` and `max` properties.
|
|
5
|
-
*
|
|
6
|
-
* They are intended to facilitate math utilities
|
|
7
|
-
* such as clamping, normalization, etc.
|
|
8
|
-
**/
|
|
9
|
-
export
|
|
10
|
-
min: number;
|
|
11
|
-
max: number;
|
|
12
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for math/numbers.
|
|
3
|
+
*
|
|
4
|
+
* - `Range`: Object with `min` and `max` properties.
|
|
5
|
+
*
|
|
6
|
+
* They are intended to facilitate math utilities
|
|
7
|
+
* such as clamping, normalization, etc.
|
|
8
|
+
**/
|
|
9
|
+
export type Range = {
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
};
|
package/dist/types/math.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for math/numbers.
|
|
3
|
-
*
|
|
4
|
-
* - `Range`: Object with `min` and `max` properties.
|
|
5
|
-
*
|
|
6
|
-
* They are intended to facilitate math utilities
|
|
7
|
-
* such as clamping, normalization, etc.
|
|
8
|
-
**/
|
|
9
|
-
export {};
|
|
10
|
-
// clean
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for math/numbers.
|
|
3
|
+
*
|
|
4
|
+
* - `Range`: Object with `min` and `max` properties.
|
|
5
|
+
*
|
|
6
|
+
* They are intended to facilitate math utilities
|
|
7
|
+
* such as clamping, normalization, etc.
|
|
8
|
+
**/
|
|
9
|
+
export {};
|
|
10
|
+
// clean
|
package/dist/types/work.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
job_id: string;
|
|
3
|
-
};
|
|
1
|
+
export type Job = {
|
|
2
|
+
job_id: string;
|
|
3
|
+
};
|
package/dist/types/work.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/utils/checkers.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isNum: (x: string) => boolean;
|
|
2
|
-
export declare const isBool: (x: string) => boolean;
|
|
1
|
+
export declare const isNum: (x: string) => boolean;
|
|
2
|
+
export declare const isBool: (x: string) => boolean;
|
package/dist/utils/checkers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const isNum = (x) => !isNaN(Number(x));
|
|
2
|
-
export const isBool = (x) => {
|
|
3
|
-
const lower = x.trim().toLowerCase();
|
|
4
|
-
return lower === "true" || lower === "false";
|
|
5
|
-
};
|
|
1
|
+
export const isNum = (x) => !isNaN(Number(x));
|
|
2
|
+
export const isBool = (x) => {
|
|
3
|
+
const lower = x.trim().toLowerCase();
|
|
4
|
+
return lower === "true" || lower === "false";
|
|
5
|
+
};
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
export declare function bufferToBase64(uint8: Uint8Array): string;
|
|
2
|
-
export declare function base64ToBuffer(base64: string): Uint8Array;
|
|
1
|
+
export declare function bufferToBase64(uint8: Uint8Array): string;
|
|
2
|
+
export declare function base64ToBuffer(base64: string): Uint8Array;
|
|
3
|
+
export declare function base64ToFile(data: string, opts?: {
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}): File;
|
|
7
|
+
export declare function base64ToFile(data: undefined, opts?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
}): undefined;
|
|
11
|
+
export declare function base64ToFile(data: string | undefined, opts?: {
|
|
12
|
+
name?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
}): File | undefined;
|
package/dist/utils/converters.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
export function bufferToBase64(uint8) {
|
|
2
|
-
let binary = "";
|
|
3
|
-
const len = uint8.byteLength;
|
|
4
|
-
for (let i = 0; i < len; i++) {
|
|
5
|
-
binary += String.fromCharCode(uint8[i]);
|
|
6
|
-
}
|
|
7
|
-
return btoa(binary);
|
|
8
|
-
}
|
|
9
|
-
export function base64ToBuffer(base64) {
|
|
10
|
-
const binaryString = atob(base64); // decode base64 into binary string
|
|
11
|
-
const len = binaryString.length;
|
|
12
|
-
const bytes = new Uint8Array(len);
|
|
13
|
-
for (let i = 0; i < len; i++) {
|
|
14
|
-
bytes[i] = binaryString.charCodeAt(i);
|
|
15
|
-
}
|
|
16
|
-
return bytes;
|
|
17
|
-
}
|
|
1
|
+
export function bufferToBase64(uint8) {
|
|
2
|
+
let binary = "";
|
|
3
|
+
const len = uint8.byteLength;
|
|
4
|
+
for (let i = 0; i < len; i++) {
|
|
5
|
+
binary += String.fromCharCode(uint8[i]);
|
|
6
|
+
}
|
|
7
|
+
return btoa(binary);
|
|
8
|
+
}
|
|
9
|
+
export function base64ToBuffer(base64) {
|
|
10
|
+
const binaryString = atob(base64); // decode base64 into binary string
|
|
11
|
+
const len = binaryString.length;
|
|
12
|
+
const bytes = new Uint8Array(len);
|
|
13
|
+
for (let i = 0; i < len; i++) {
|
|
14
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
15
|
+
}
|
|
16
|
+
return bytes;
|
|
17
|
+
}
|
|
18
|
+
export function base64ToFile(data, opts = {}) {
|
|
19
|
+
if (!data)
|
|
20
|
+
return;
|
|
21
|
+
const { name, type } = opts;
|
|
22
|
+
const byteArray = Uint8Array.from(atob(data), c => c.charCodeAt(0));
|
|
23
|
+
return new File([byteArray], name || "file", { type });
|
|
24
|
+
}
|
package/dist/utils/env.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function getEnv(key: string): string;
|
|
2
|
-
export declare function getEnv(key: string, fallback: string): string;
|
|
3
|
-
export declare function getEnv(key: string, fallback: number): number;
|
|
4
|
-
export declare function getEnv(key: string, fallback: boolean): boolean;
|
|
5
|
-
export declare function getEnv<T>(key: string): T;
|
|
1
|
+
export declare function getEnv(key: string): string;
|
|
2
|
+
export declare function getEnv(key: string, fallback: string): string;
|
|
3
|
+
export declare function getEnv(key: string, fallback: number): number;
|
|
4
|
+
export declare function getEnv(key: string, fallback: boolean): boolean;
|
|
5
|
+
export declare function getEnv<T>(key: string): T;
|
package/dist/utils/env.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { parseStr } from "./parsers";
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves and parses an environment variable.
|
|
4
|
-
*
|
|
5
|
-
* @param key - The variable name
|
|
6
|
-
* @param fallback - Backup if no value is found (optional)
|
|
7
|
-
*
|
|
8
|
-
* @returns {JsonValue} The value parsed based on whichever
|
|
9
|
-
* primitive type the string matches.
|
|
10
|
-
*
|
|
11
|
-
* @throws {Error} If the variable is not found in the
|
|
12
|
-
* environment and there is no fallback set.
|
|
13
|
-
**/
|
|
14
|
-
export function getEnv(key, fallback) {
|
|
15
|
-
const raw = process.env[key];
|
|
16
|
-
if (!raw || raw === "") {
|
|
17
|
-
if (fallback !== undefined)
|
|
18
|
-
return fallback;
|
|
19
|
-
throw new Error(`ENV Missing: '${key}'`);
|
|
20
|
-
}
|
|
21
|
-
return parseStr(raw);
|
|
22
|
-
}
|
|
23
|
-
// clean
|
|
1
|
+
import { parseStr } from "./parsers";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves and parses an environment variable.
|
|
4
|
+
*
|
|
5
|
+
* @param key - The variable name
|
|
6
|
+
* @param fallback - Backup if no value is found (optional)
|
|
7
|
+
*
|
|
8
|
+
* @returns {JsonValue} The value parsed based on whichever
|
|
9
|
+
* primitive type the string matches.
|
|
10
|
+
*
|
|
11
|
+
* @throws {Error} If the variable is not found in the
|
|
12
|
+
* environment and there is no fallback set.
|
|
13
|
+
**/
|
|
14
|
+
export function getEnv(key, fallback) {
|
|
15
|
+
const raw = process.env[key];
|
|
16
|
+
if (!raw || raw === "") {
|
|
17
|
+
if (fallback !== undefined)
|
|
18
|
+
return fallback;
|
|
19
|
+
throw new Error(`ENV Missing: '${key}'`);
|
|
20
|
+
}
|
|
21
|
+
return parseStr(raw);
|
|
22
|
+
}
|
|
23
|
+
// clean
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const shortenStr: (str: string) => string;
|
|
2
|
-
export declare const shortenNum: (x: number) => string;
|
|
1
|
+
export declare const shortenStr: (str: string) => string;
|
|
2
|
+
export declare const shortenNum: (x: number) => string;
|
package/dist/utils/formatters.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export const shortenStr = (str) => {
|
|
2
|
-
if (str.length <= 6)
|
|
3
|
-
return str;
|
|
4
|
-
return `${str.slice(0, 3)}...${str.slice(-3)}`;
|
|
5
|
-
};
|
|
6
|
-
export const shortenNum = (x) => {
|
|
7
|
-
if (x < 1000)
|
|
8
|
-
return x.toString();
|
|
9
|
-
if (x < 1_000_000)
|
|
10
|
-
return `${Math.floor(x / 1000)}k`;
|
|
11
|
-
return `${Math.floor(x / 1_000_000)}m`;
|
|
12
|
-
};
|
|
1
|
+
export const shortenStr = (str) => {
|
|
2
|
+
if (str.length <= 6)
|
|
3
|
+
return str;
|
|
4
|
+
return `${str.slice(0, 3)}...${str.slice(-3)}`;
|
|
5
|
+
};
|
|
6
|
+
export const shortenNum = (x) => {
|
|
7
|
+
if (x < 1000)
|
|
8
|
+
return x.toString();
|
|
9
|
+
if (x < 1_000_000)
|
|
10
|
+
return `${Math.floor(x / 1000)}k`;
|
|
11
|
+
return `${Math.floor(x / 1_000_000)}m`;
|
|
12
|
+
};
|
package/dist/utils/parsers.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { JsonValue } from "../types/generic";
|
|
2
|
-
/**
|
|
3
|
-
* Parses a string value into it's appropriate
|
|
4
|
-
* type, or at least cleans up the string.
|
|
5
|
-
*
|
|
6
|
-
* @param {string} input - The text to parse.
|
|
7
|
-
*
|
|
8
|
-
* @returns {JsonValue} The value parsed based on whichever
|
|
9
|
-
* primitive type the string matches.
|
|
10
|
-
**/
|
|
11
|
-
export declare const parseStr: (input: string) => JsonValue;
|
|
1
|
+
import { JsonValue } from "../types/generic";
|
|
2
|
+
/**
|
|
3
|
+
* Parses a string value into it's appropriate
|
|
4
|
+
* type, or at least cleans up the string.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} input - The text to parse.
|
|
7
|
+
*
|
|
8
|
+
* @returns {JsonValue} The value parsed based on whichever
|
|
9
|
+
* primitive type the string matches.
|
|
10
|
+
**/
|
|
11
|
+
export declare const parseStr: (input: string) => JsonValue;
|
package/dist/utils/parsers.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parses a string value into it's appropriate
|
|
3
|
-
* type, or at least cleans up the string.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} input - The text to parse.
|
|
6
|
-
*
|
|
7
|
-
* @returns {JsonValue} The value parsed based on whichever
|
|
8
|
-
* primitive type the string matches.
|
|
9
|
-
**/
|
|
10
|
-
export const parseStr = (input) => {
|
|
11
|
-
const trimmed = input.trim();
|
|
12
|
-
if (/^-?\d+(\.\d+)?$/.test(trimmed) && !isNaN(Number(trimmed)))
|
|
13
|
-
return Number(trimmed);
|
|
14
|
-
if (/^(true|false)$/i.test(trimmed))
|
|
15
|
-
return trimmed.toLowerCase() === "true";
|
|
16
|
-
try {
|
|
17
|
-
return JSON.parse(trimmed);
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
return trimmed;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
// clean
|
|
1
|
+
/**
|
|
2
|
+
* Parses a string value into it's appropriate
|
|
3
|
+
* type, or at least cleans up the string.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} input - The text to parse.
|
|
6
|
+
*
|
|
7
|
+
* @returns {JsonValue} The value parsed based on whichever
|
|
8
|
+
* primitive type the string matches.
|
|
9
|
+
**/
|
|
10
|
+
export const parseStr = (input) => {
|
|
11
|
+
const trimmed = input.trim();
|
|
12
|
+
if (/^-?\d+(\.\d+)?$/.test(trimmed) && !isNaN(Number(trimmed)))
|
|
13
|
+
return Number(trimmed);
|
|
14
|
+
if (/^(true|false)$/i.test(trimmed))
|
|
15
|
+
return trimmed.toLowerCase() === "true";
|
|
16
|
+
try {
|
|
17
|
+
return JSON.parse(trimmed);
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return trimmed;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
// clean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "@bouko/ts",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,8 +19,12 @@
|
|
|
19
19
|
"build": "tsc"
|
|
20
20
|
},
|
|
21
21
|
|
|
22
|
-
"dependencies": {
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"zod": "^4.1.5"
|
|
24
|
+
},
|
|
23
25
|
|
|
24
|
-
"devDependencies": {
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"typescript": "^5.9.2"
|
|
28
|
+
}
|
|
25
29
|
|
|
26
30
|
}
|