@atomiqlabs/lp-lib 14.0.0-dev.34 → 14.0.0-dev.35

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.
@@ -44,6 +44,8 @@ class AmountAssertions {
44
44
  * @throws {DefinedRuntimeError} will throw an error if the response is an error
45
45
  */
46
46
  static handlePluginErrorResponses(res) {
47
+ if (res == null)
48
+ return;
47
49
  if ((0, IPlugin_1.isQuoteThrow)(res))
48
50
  throw {
49
51
  code: 29999,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/lp-lib",
3
- "version": "14.0.0-dev.34",
3
+ "version": "14.0.0-dev.35",
4
4
  "description": "Main functionality implementation for atomiq LP node",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -52,6 +52,7 @@ export abstract class AmountAssertions {
52
52
  * @throws {DefinedRuntimeError} will throw an error if the response is an error
53
53
  */
54
54
  static handlePluginErrorResponses(res: any): void {
55
+ if(res==null) return;
55
56
  if(isQuoteThrow(res)) throw {
56
57
  code: 29999,
57
58
  msg: res.message