@langchain/google-genai 0.0.22 → 0.0.23

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.
@@ -8,8 +8,7 @@ function removeAdditionalProperties(
8
8
  obj) {
9
9
  if (typeof obj === "object" && obj !== null) {
10
10
  const newObj = { ...obj };
11
- if ("additionalProperties" in newObj &&
12
- typeof newObj.additionalProperties === "boolean") {
11
+ if ("additionalProperties" in newObj) {
13
12
  delete newObj.additionalProperties;
14
13
  }
15
14
  for (const key in newObj) {
@@ -5,8 +5,7 @@ export function removeAdditionalProperties(
5
5
  obj) {
6
6
  if (typeof obj === "object" && obj !== null) {
7
7
  const newObj = { ...obj };
8
- if ("additionalProperties" in newObj &&
9
- typeof newObj.additionalProperties === "boolean") {
8
+ if ("additionalProperties" in newObj) {
10
9
  delete newObj.additionalProperties;
11
10
  }
12
11
  for (const key in newObj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-genai",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Sample integration for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {