@langchain/langgraph-sdk 0.0.64 → 0.0.65

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.
@@ -16,7 +16,10 @@ class Auth {
16
16
  }
17
17
  on(event, callback) {
18
18
  this["~handlerCache"].callbacks ??= {};
19
- this["~handlerCache"].callbacks[event] = callback;
19
+ const events = Array.isArray(event) ? event : [event];
20
+ for (const event of events) {
21
+ this["~handlerCache"].callbacks[event] = callback;
22
+ }
20
23
  return this;
21
24
  }
22
25
  }
@@ -13,7 +13,10 @@ export class Auth {
13
13
  }
14
14
  on(event, callback) {
15
15
  this["~handlerCache"].callbacks ??= {};
16
- this["~handlerCache"].callbacks[event] = callback;
16
+ const events = Array.isArray(event) ? event : [event];
17
+ for (const event of events) {
18
+ this["~handlerCache"].callbacks[event] = callback;
19
+ }
17
20
  return this;
18
21
  }
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",