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

@ai-sdk/provider

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

19

./dist/index.js

@@ -431,3 +431,3 @@ "use strict";

var _a11;
var TypeValidationError = class extends AISDKError {
var _TypeValidationError = class _TypeValidationError extends AISDKError {
constructor({ value, cause }) {

@@ -447,2 +447,18 @@ super({

/**
* Wraps an error into a TypeValidationError.
* If the cause is already a TypeValidationError with the same value, it returns the cause.
* Otherwise, it creates a new TypeValidationError.
*
* @param {Object} params - The parameters for wrapping the error.
* @param {unknown} params.value - The value that failed validation.
* @param {unknown} params.cause - The original error or cause of the validation failure.
* @returns {TypeValidationError} A TypeValidationError instance.
*/
static wrap({
value,
cause
}) {
return _TypeValidationError.isInstance(cause) && cause.value === value ? cause : new _TypeValidationError({ value, cause });
}
/**
* @deprecated use `isInstance` instead

@@ -467,2 +483,3 @@ */

_a11 = symbol11;
var TypeValidationError = _TypeValidationError;

@@ -469,0 +486,0 @@ // src/errors/unsupported-functionality-error.ts

@@ -361,2 +361,16 @@ import { JSONSchema7 } from 'json-schema';

/**
* Wraps an error into a TypeValidationError.
* If the cause is already a TypeValidationError with the same value, it returns the cause.
* Otherwise, it creates a new TypeValidationError.
*
* @param {Object} params - The parameters for wrapping the error.
* @param {unknown} params.value - The value that failed validation.
* @param {unknown} params.cause - The original error or cause of the validation failure.
* @returns {TypeValidationError} A TypeValidationError instance.
*/
static wrap({ value, cause, }: {
value: unknown;
cause: unknown;
}): TypeValidationError;
/**
* @deprecated use `isInstance` instead

@@ -363,0 +377,0 @@ */

@@ -431,3 +431,3 @@ "use strict";

var _a11;
var TypeValidationError = class extends AISDKError {
var _TypeValidationError = class _TypeValidationError extends AISDKError {
constructor({ value, cause }) {

@@ -447,2 +447,18 @@ super({

/**
* Wraps an error into a TypeValidationError.
* If the cause is already a TypeValidationError with the same value, it returns the cause.
* Otherwise, it creates a new TypeValidationError.
*
* @param {Object} params - The parameters for wrapping the error.
* @param {unknown} params.value - The value that failed validation.
* @param {unknown} params.cause - The original error or cause of the validation failure.
* @returns {TypeValidationError} A TypeValidationError instance.
*/
static wrap({
value,
cause
}) {
return _TypeValidationError.isInstance(cause) && cause.value === value ? cause : new _TypeValidationError({ value, cause });
}
/**
* @deprecated use `isInstance` instead

@@ -467,2 +483,3 @@ */

_a11 = symbol11;
var TypeValidationError = _TypeValidationError;

@@ -469,0 +486,0 @@ // src/errors/unsupported-functionality-error.ts

2

package.json
{
"name": "@ai-sdk/provider",
"version": "0.0.17",
"version": "0.0.18",
"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

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