@ai-sdk/gateway
Advanced tools
+6
-0
| # @ai-sdk/gateway | ||
| ## 3.0.55 | ||
| ### Patch Changes | ||
| - e8172b6: feat (provider/gateway): pass through project id when available for o11y | ||
| ## 3.0.54 | ||
@@ -4,0 +10,0 @@ |
+7
-2
@@ -1339,3 +1339,3 @@ "use strict"; | ||
| // src/version.ts | ||
| var VERSION = true ? "3.0.54" : "0.0.0-test"; | ||
| var VERSION = true ? "3.0.55" : "0.0.0-test"; | ||
@@ -1385,2 +1385,6 @@ // src/gateway-provider.ts | ||
| }); | ||
| const projectId = (0, import_provider_utils11.loadOptionalSetting)({ | ||
| settingValue: void 0, | ||
| environmentVariableName: "VERCEL_PROJECT_ID" | ||
| }); | ||
| return async () => { | ||
@@ -1392,3 +1396,4 @@ const requestId = await getVercelRequestId(); | ||
| ...region && { "ai-o11y-region": region }, | ||
| ...requestId && { "ai-o11y-request-id": requestId } | ||
| ...requestId && { "ai-o11y-request-id": requestId }, | ||
| ...projectId && { "ai-o11y-project-id": projectId } | ||
| }; | ||
@@ -1395,0 +1400,0 @@ }; |
+7
-2
@@ -1359,3 +1359,3 @@ // src/gateway-provider.ts | ||
| // src/version.ts | ||
| var VERSION = true ? "3.0.54" : "0.0.0-test"; | ||
| var VERSION = true ? "3.0.55" : "0.0.0-test"; | ||
@@ -1405,2 +1405,6 @@ // src/gateway-provider.ts | ||
| }); | ||
| const projectId = loadOptionalSetting({ | ||
| settingValue: void 0, | ||
| environmentVariableName: "VERCEL_PROJECT_ID" | ||
| }); | ||
| return async () => { | ||
@@ -1412,3 +1416,4 @@ const requestId = await getVercelRequestId(); | ||
| ...region && { "ai-o11y-region": region }, | ||
| ...requestId && { "ai-o11y-request-id": requestId } | ||
| ...requestId && { "ai-o11y-request-id": requestId }, | ||
| ...projectId && { "ai-o11y-project-id": projectId } | ||
| }; | ||
@@ -1415,0 +1420,0 @@ }; |
+1
-1
| { | ||
| "name": "@ai-sdk/gateway", | ||
| "private": false, | ||
| "version": "3.0.54", | ||
| "version": "3.0.55", | ||
| "license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -188,2 +188,6 @@ import { | ||
| }); | ||
| const projectId = loadOptionalSetting({ | ||
| settingValue: undefined, | ||
| environmentVariableName: 'VERCEL_PROJECT_ID', | ||
| }); | ||
@@ -197,2 +201,3 @@ return async () => { | ||
| ...(requestId && { 'ai-o11y-request-id': requestId }), | ||
| ...(projectId && { 'ai-o11y-project-id': projectId }), | ||
| }; | ||
@@ -199,0 +204,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
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
Network access
Supply chain riskThis module accesses the network.
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
496021
0.27%6186
0.24%