@ai-sdk/provider-utils 5.0.0-beta.17 → 5.0.0-beta.18
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/CHANGELOG.md +6 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/response-handler.ts +1 -1
- package/src/secure-json-parse.ts +1 -1
- package/src/to-json-schema/zod3-to-json-schema/parsers/date.ts +1 -1
- package/src/to-json-schema/zod3-to-json-schema/parsers/intersection.ts +1 -1
- package/src/to-json-schema/zod3-to-json-schema/parsers/record.ts +2 -2
package/package.json
CHANGED
package/src/response-handler.ts
CHANGED
package/src/secure-json-parse.ts
CHANGED
|
@@ -83,7 +83,7 @@ export function secureJsonParse(text: string) {
|
|
|
83
83
|
try {
|
|
84
84
|
// Performance optimization, see https://github.com/fastify/secure-json-parse/pull/90
|
|
85
85
|
Error.stackTraceLimit = 0;
|
|
86
|
-
} catch
|
|
86
|
+
} catch {
|
|
87
87
|
// Fallback in case Error is immutable (v8 readonly)
|
|
88
88
|
return _parse(text);
|
|
89
89
|
}
|
|
@@ -42,7 +42,7 @@ export function parseIntersectionDef(
|
|
|
42
42
|
'additionalProperties' in schema &&
|
|
43
43
|
schema.additionalProperties === false
|
|
44
44
|
) {
|
|
45
|
-
const { additionalProperties, ...rest } = schema;
|
|
45
|
+
const { additionalProperties: _additionalProperties, ...rest } = schema;
|
|
46
46
|
nestedSchema = rest;
|
|
47
47
|
}
|
|
48
48
|
mergedAllOf.push(nestedSchema);
|
|
@@ -38,7 +38,7 @@ export function parseRecordDef(
|
|
|
38
38
|
def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString &&
|
|
39
39
|
def.keyType._def.checks?.length
|
|
40
40
|
) {
|
|
41
|
-
const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
41
|
+
const { type: _type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
42
42
|
|
|
43
43
|
return {
|
|
44
44
|
...schema,
|
|
@@ -56,7 +56,7 @@ export function parseRecordDef(
|
|
|
56
56
|
def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString &&
|
|
57
57
|
def.keyType._def.type._def.checks?.length
|
|
58
58
|
) {
|
|
59
|
-
const { type, ...keyType } = parseBrandedDef(
|
|
59
|
+
const { type: _type, ...keyType } = parseBrandedDef(
|
|
60
60
|
def.keyType._def,
|
|
61
61
|
refs,
|
|
62
62
|
) as JsonSchema7StringType;
|