@rebilly/instruments 12.72.1 → 12.72.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [12.72.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.72.0...instruments/core-v12.72.1) (2025-06-11)
1
+ ## [12.72.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.72.1...instruments/core-v12.72.2) (2025-06-11)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * upgrade pdfjs to fix a vulnerability alert ([#12778](https://github.com/Rebilly/rebilly/issues/12778)) ([b5c9e09](https://github.com/Rebilly/rebilly/commit/b5c9e09d65e78321b6890f35bd3ec43dc6a74749))
6
+ * **rebilly-js-sdk:** add a default value to error to destructure from ([#12644](https://github.com/Rebilly/rebilly/issues/12644)) ([24f6fa8](https://github.com/Rebilly/rebilly/commit/24f6fa86bda24dfca1ff001a9f95d465debfddcc))
package/dist/index.js CHANGED
@@ -5941,7 +5941,7 @@ class p extends Error {
5941
5941
  response: n2 = null,
5942
5942
  request: u = null,
5943
5943
  message: o2 = null
5944
- } = t2, l = o2 || "Request Error";
5944
+ } = t2 || {}, l = o2 || "Request Error";
5945
5945
  n2 && n2.data && n2.data.error && (l = n2.data.error), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
5946
5946
  }
5947
5947
  }
@@ -6328,7 +6328,7 @@ function C$1({ options: e2 }) {
6328
6328
  }
6329
6329
  function o2() {
6330
6330
  const i = {
6331
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@b5c9e09`
6331
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@24f6fa8`
6332
6332
  };
6333
6333
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6334
6334
  }