@milaboratories/pl-client 2.9.2 → 2.9.3

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/dist/index.mjs CHANGED
@@ -12247,34 +12247,40 @@ function Bi(l, e = !1) {
12247
12247
  }
12248
12248
  const Un = 5;
12249
12249
  class $i extends Error {
12250
- constructor(e) {
12251
- super(`code=${e.code} ${e.message}`), this.status = e;
12250
+ constructor(t) {
12251
+ super(`code=${t.code} ${t.message}`);
12252
+ y(this, "name", "PlError");
12253
+ this.status = t;
12252
12254
  }
12253
12255
  }
12254
12256
  function Jc(l) {
12255
12257
  throw new Fn({ code: Un, message: l, details: [] });
12256
12258
  }
12257
12259
  class Fn extends $i {
12258
- constructor(e) {
12259
- super(e);
12260
+ constructor(t) {
12261
+ super(t);
12262
+ y(this, "name", "RecoverablePlError");
12260
12263
  }
12261
12264
  }
12262
12265
  class zc extends $i {
12263
- constructor(e) {
12264
- super(e);
12266
+ constructor(t) {
12267
+ super(t);
12268
+ y(this, "name", "UnrecoverablePlError");
12265
12269
  }
12266
12270
  }
12267
12271
  function Ui(l, e = !1) {
12268
12272
  return l.name == "RpcError" && l.code == "NOT_FOUND" ? !0 : l.cause !== void 0 && !e ? Ui(l.cause, !0) : l instanceof Fn && l.status.code === Un;
12269
12273
  }
12270
12274
  class En extends Error {
12271
- constructor(e) {
12272
- super("LoginFailed: " + e);
12275
+ constructor(t) {
12276
+ super("LoginFailed: " + t);
12277
+ y(this, "name", "UnauthenticatedError");
12273
12278
  }
12274
12279
  }
12275
12280
  class Fi extends Error {
12276
- constructor(e) {
12277
- super("Disconnected: " + e);
12281
+ constructor(t) {
12282
+ super("Disconnected: " + t);
12283
+ y(this, "name", "DisconnectedError");
12278
12284
  }
12279
12285
  }
12280
12286
  function Hc(l, e = !1) {