Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/gateway

Package Overview
Dependencies
Maintainers
3
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/gateway - npm Package Compare versions

Comparing version
2.0.44
to
2.0.45
+6
-0
CHANGELOG.md
# @ai-sdk/gateway
## 2.0.45
### Patch Changes
- 9212b2d: feat (provider/gateway): pass through project id when available for o11y
## 2.0.44

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

+7
-2

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

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

@@ -1116,2 +1116,6 @@ // src/gateway-provider.ts

});
const projectId = (0, import_provider_utils10.loadOptionalSetting)({
settingValue: void 0,
environmentVariableName: "VERCEL_PROJECT_ID"
});
return async () => {

@@ -1123,3 +1127,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 }
};

@@ -1126,0 +1131,0 @@ };

@@ -1084,3 +1084,3 @@ // src/gateway-provider.ts

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

@@ -1128,2 +1128,6 @@ // src/gateway-provider.ts

});
const projectId = loadOptionalSetting({
settingValue: void 0,
environmentVariableName: "VERCEL_PROJECT_ID"
});
return async () => {

@@ -1135,3 +1139,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 }
};

@@ -1138,0 +1143,0 @@ };

{
"name": "@ai-sdk/gateway",
"private": false,
"version": "2.0.44",
"version": "2.0.45",
"license": "Apache-2.0",

@@ -31,2 +31,3 @@ "sideEffects": false,

"typescript": "5.8.3",
"tsx": "^4.19.2",
"zod": "3.25.76",

@@ -67,4 +68,5 @@ "@ai-sdk/test-server": "0.0.2",

"test:edge": "vitest --config vitest.edge.config.js --run",
"test:node": "vitest --config vitest.node.config.js --run"
"test:node": "vitest --config vitest.node.config.js --run",
"generate-model-settings": "tsx scripts/generate-model-settings.ts"
}
}

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

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