Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/provider-utils

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider-utils - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

./dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc