@ai-sdk/provider-utils
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -216,3 +216,3 @@ "use strict"; | ||
// src/validator.ts | ||
var validatorSymbol = Symbol("vercel.ai.validator"); | ||
var validatorSymbol = Symbol.for("vercel.ai.validator"); | ||
function validator(validate) { | ||
@@ -219,0 +219,0 @@ return { [validatorSymbol]: true, validate }; |
@@ -81,3 +81,3 @@ import { JSONParseError, TypeValidationError, APICallError } from '@ai-sdk/provider'; | ||
declare function isValidator(value: unknown): value is Validator; | ||
declare function zodValidator<OBJECT>(zodSchema: z.Schema<OBJECT>): Validator<OBJECT>; | ||
declare function zodValidator<OBJECT>(zodSchema: z.Schema<OBJECT, z.ZodTypeDef, any>): Validator<OBJECT>; | ||
@@ -198,3 +198,3 @@ /** | ||
value: unknown; | ||
schema: ZodSchema<T> | Validator<T>; | ||
schema: z.Schema<T, z.ZodTypeDef, any> | Validator<T>; | ||
}): T; | ||
@@ -212,3 +212,3 @@ /** | ||
value: unknown; | ||
schema: ZodSchema<T> | Validator<T>; | ||
schema: z.Schema<T, z.ZodTypeDef, any> | Validator<T>; | ||
}): { | ||
@@ -215,0 +215,0 @@ success: true; |
@@ -216,3 +216,3 @@ "use strict"; | ||
// src/validator.ts | ||
var validatorSymbol = Symbol("vercel.ai.validator"); | ||
var validatorSymbol = Symbol.for("vercel.ai.validator"); | ||
function validator(validate) { | ||
@@ -219,0 +219,0 @@ return { [validatorSymbol]: true, validate }; |
{ | ||
"name": "@ai-sdk/provider-utils", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1291285
13058