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 2.0.0-canary.2 to 2.0.0-canary.3

2

./dist/index.js

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

prefix,
size: defaultSize = 7,
size: defaultSize = 16,
alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",

@@ -122,0 +122,0 @@ separator = "-"

# @ai-sdk/provider-utils
## 2.0.0-canary.3
### Major Changes
- 8426f55: chore (ai):increase id generator default size from 7 to 16.
## 2.0.0-canary.2

@@ -4,0 +10,0 @@

@@ -34,3 +34,3 @@ import { JSONValue, JSONParseError, TypeValidationError, APICallError } from '@ai-sdk/provider';

* @param separator - The separator between the prefix and the random part of the ID. Default: '-'.
* @param size - The size of the random part of the ID to generate. Default: 7.
* @param size - The size of the random part of the ID to generate. Default: 16.
*/

@@ -44,5 +44,5 @@ declare const createIdGenerator: ({ prefix, size: defaultSize, alphabet, separator, }?: {

/**
* Generates a 7-character random string to use for IDs. Not secure.
* Generates a 16-character random string to use for IDs. Not secure.
*
* @param size - The size of the ID to generate. Default: 7.
* @param size - The size of the ID to generate. Default: 16.
*/

@@ -49,0 +49,0 @@ declare const generateId: (size?: number) => string;

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

prefix,
size: defaultSize = 7,
size: defaultSize = 16,
alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",

@@ -122,0 +122,0 @@ separator = "-"

{
"name": "@ai-sdk/provider-utils",
"version": "2.0.0-canary.2",
"version": "2.0.0-canary.3",
"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