@gearbox-protocol/sdk 9.1.4 → 9.1.5

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.
@@ -171,7 +171,7 @@ class RevolverTransport {
171
171
  );
172
172
  }
173
173
  }
174
- await this.#config.onRotateFailed?.(reason);
174
+ await this.#config.onRotateFailed?.(oldTransportName, reason);
175
175
  return false;
176
176
  }
177
177
  get currentTransportName() {
@@ -154,7 +154,7 @@ class RevolverTransport {
154
154
  );
155
155
  }
156
156
  }
157
- await this.#config.onRotateFailed?.(reason);
157
+ await this.#config.onRotateFailed?.(oldTransportName, reason);
158
158
  return false;
159
159
  }
160
160
  get currentTransportName() {
@@ -33,7 +33,7 @@ export interface RevolverTransportConfig {
33
33
  /**
34
34
  * Callback that is called when the transport cannot be rotated
35
35
  */
36
- onRotateFailed?: (reason?: BaseError) => void | Promise<void>;
36
+ onRotateFailed?: (oldTransportName: string, reason?: BaseError) => void | Promise<void>;
37
37
  /**
38
38
  * How long, in milliseconds, to wait before try this transport again
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "9.1.4",
3
+ "version": "9.1.5",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",