@@ -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 |
+1
-1
| { | ||
| "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", |
+30
-1
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
6678184
0.08%63285
0.11%