@bithomp/xrpl-api 3.7.17 → 3.7.18

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/lib/connection.js CHANGED
@@ -373,6 +373,15 @@ class Connection extends events_1.EventEmitter {
373
373
  });
374
374
  this.client.on("error", (source, message, error) => {
375
375
  try {
376
+ if (source === "noPermission") {
377
+ if (!error.status) {
378
+ error.status = "error";
379
+ }
380
+ if (this.client) {
381
+ this.client.requestManager.handleResponse(error);
382
+ return;
383
+ }
384
+ }
376
385
  this.logger?.error({
377
386
  service: "Bithomp::XRPL::Connection",
378
387
  emit: "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "3.7.17",
3
+ "version": "3.7.18",
4
4
  "description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",