🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

ai

Package Overview
Dependencies
Maintainers
5
Versions
1283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai - npm Package Compare versions

Comparing version
6.0.207
to
6.0.208
+1
-1
dist/internal/index.js

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

// src/version.ts
var VERSION = true ? "6.0.207" : "0.0.0-test";
var VERSION = true ? "6.0.208" : "0.0.0-test";

@@ -158,0 +158,0 @@ // src/util/download/download.ts

@@ -135,3 +135,3 @@ // internal/index.ts

// src/version.ts
var VERSION = true ? "6.0.207" : "0.0.0-test";
var VERSION = true ? "6.0.208" : "0.0.0-test";

@@ -138,0 +138,0 @@ // src/util/download/download.ts

{
"name": "ai",
"version": "6.0.207",
"version": "6.0.208",
"description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -6,2 +6,3 @@ type State =

| 'INSIDE_STRING_ESCAPE'
| 'INSIDE_STRING_UNICODE_ESCAPE'
| 'INSIDE_LITERAL'

@@ -32,3 +33,12 @@ | 'INSIDE_NUMBER'

let literalStart: number | null = null;
let unicodeEscapeDigits = 0;
function isHexDigit(char: string) {
return (
(char >= '0' && char <= '9') ||
(char >= 'A' && char <= 'F') ||
(char >= 'a' && char <= 'f')
);
}
function processValueStart(char: string, i: number, swapState: State) {

@@ -265,7 +275,26 @@ {

stack.pop();
lastValidIndex = i;
if (char === 'u') {
unicodeEscapeDigits = 0;
stack.push('INSIDE_STRING_UNICODE_ESCAPE');
} else {
lastValidIndex = i;
}
break;
}
case 'INSIDE_STRING_UNICODE_ESCAPE': {
if (isHexDigit(char)) {
unicodeEscapeDigits++;
if (unicodeEscapeDigits === 4) {
stack.pop();
lastValidIndex = i;
}
}
break;
}
case 'INSIDE_NUMBER': {

@@ -272,0 +301,0 @@ switch (char) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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 too big to display