@lakeql/response-transformer 0.1.5 → 0.1.7
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/index.d.mts +4 -23
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -131,25 +131,9 @@ interface TransformArrayInput {
|
|
|
131
131
|
transformFields?: Record<string, string>;
|
|
132
132
|
dateFields?: string[];
|
|
133
133
|
}
|
|
134
|
-
declare const transform: ({
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
transformFields,
|
|
138
|
-
dateFields,
|
|
139
|
-
utcDates
|
|
140
|
-
}: TransformInput) => Record<string, unknown>;
|
|
141
|
-
declare const transformArray: ({
|
|
142
|
-
data,
|
|
143
|
-
definition,
|
|
144
|
-
transformFields,
|
|
145
|
-
dateFields
|
|
146
|
-
}: TransformArrayInput) => Record<string, unknown>[];
|
|
147
|
-
declare const transformObject: ({
|
|
148
|
-
data,
|
|
149
|
-
definition,
|
|
150
|
-
transformFields,
|
|
151
|
-
dateFields
|
|
152
|
-
}: TransformInput) => Record<string, unknown>;
|
|
134
|
+
declare const transform: ({ data, definition, transformFields, dateFields, utcDates }: TransformInput) => Record<string, unknown>;
|
|
135
|
+
declare const transformArray: ({ data, definition, transformFields, dateFields }: TransformArrayInput) => Record<string, unknown>[];
|
|
136
|
+
declare const transformObject: ({ data, definition, transformFields, dateFields }: TransformInput) => Record<string, unknown>;
|
|
153
137
|
/**
|
|
154
138
|
* Parameters for convertTrinoResponse.
|
|
155
139
|
*/
|
|
@@ -174,9 +158,6 @@ interface ConvertTrinoResponseProps {
|
|
|
174
158
|
* @param values unknown[]
|
|
175
159
|
* @returns Record<string, unknown>
|
|
176
160
|
*/
|
|
177
|
-
declare function convertTrinoResponse<T = Record<string, unknown>>({
|
|
178
|
-
keys,
|
|
179
|
-
values
|
|
180
|
-
}: ConvertTrinoResponseProps): T;
|
|
161
|
+
declare function convertTrinoResponse<T = Record<string, unknown>>({ keys, values }: ConvertTrinoResponseProps): T;
|
|
181
162
|
//#endregion
|
|
182
163
|
export { ConvertTrinoResponseProps, TransformArrayInput, TransformInput, convertTrinoResponse, transform, transformArray, transformObject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakeql/response-transformer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Transforms Trino array responses into typed JavaScript objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lakeql",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@faker-js/faker": "10.5.0",
|
|
46
|
-
"@types/node": "24.13.
|
|
46
|
+
"@types/node": "24.13.3",
|
|
47
47
|
"@valibot/to-json-schema": "1.7.1",
|
|
48
|
-
"tsdown": "0.22.
|
|
49
|
-
"tsx": "4.
|
|
48
|
+
"tsdown": "0.22.13",
|
|
49
|
+
"tsx": "4.23.1",
|
|
50
50
|
"typescript": "6.0.3",
|
|
51
|
-
"valibot": "1.4.
|
|
52
|
-
"vitest": "4.1.
|
|
51
|
+
"valibot": "1.4.2",
|
|
52
|
+
"vitest": "4.1.10",
|
|
53
53
|
"@lakeql/tsconfig": "0.1.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|