contiguity 0.0.4 → 0.0.5
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/.DS_Store +0 -0
- package/dist/client/fetch.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/.DS_Store
ADDED
|
Binary file
|
package/dist/client/fetch.js
CHANGED
|
@@ -69,8 +69,8 @@ export class ContiguityClient {
|
|
|
69
69
|
* and normalizes them to a consistent flattened format.
|
|
70
70
|
*/
|
|
71
71
|
parse({ response, schema }) {
|
|
72
|
-
// Parse the response data
|
|
73
|
-
const responseData = schema.parse(response);
|
|
72
|
+
// Parse the response data (schema validates response.data, not the full response)
|
|
73
|
+
const responseData = schema.parse(response.data || response);
|
|
74
74
|
// Return flattened response with metadata
|
|
75
75
|
return {
|
|
76
76
|
...(typeof responseData === 'object' && responseData !== null ? responseData : {}),
|
package/dist/index.js
CHANGED
|
@@ -11625,7 +11625,7 @@ class ContiguityClient {
|
|
|
11625
11625
|
response,
|
|
11626
11626
|
schema
|
|
11627
11627
|
}) {
|
|
11628
|
-
const responseData = schema.parse(response);
|
|
11628
|
+
const responseData = schema.parse(response.data || response);
|
|
11629
11629
|
return {
|
|
11630
11630
|
...typeof responseData === "object" && responseData !== null ? responseData : {},
|
|
11631
11631
|
metadata: {
|