@ai-sdk/langchain 2.0.320 → 2.0.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/utils.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-sdk/langchain
|
|
2
2
|
|
|
3
|
+
## 2.0.322
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6572f26]
|
|
8
|
+
- ai@6.0.314
|
|
9
|
+
|
|
10
|
+
## 2.0.321
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 842eea4: Harden LangChain tool argument JSON parsing against prototype pollution while preserving the fallback for invalid arguments.
|
|
15
|
+
- Updated dependencies [52803fb]
|
|
16
|
+
- Updated dependencies [a0f7494]
|
|
17
|
+
- Updated dependencies [a48e8a9]
|
|
18
|
+
- ai@6.0.313
|
|
19
|
+
|
|
3
20
|
## 2.0.320
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1015,7 +1015,7 @@ function processLangGraphEvent(event, state, controller) {
|
|
|
1015
1015
|
const functionData = tc.function;
|
|
1016
1016
|
let args;
|
|
1017
1017
|
try {
|
|
1018
|
-
args = (functionData == null ? void 0 : functionData.arguments) ?
|
|
1018
|
+
args = (functionData == null ? void 0 : functionData.arguments) ? (0, import_provider_utils.secureJsonParse)(functionData.arguments) : {};
|
|
1019
1019
|
} catch (e) {
|
|
1020
1020
|
args = {};
|
|
1021
1021
|
}
|