@rebilly/instruments 16.108.0 → 16.108.1

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
- ## [16.108.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.107.0...instruments/core-v16.108.0) (2026-05-04)
1
+ ## [16.108.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.108.0...instruments/core-v16.108.1) (2026-05-04)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * **recomm:** add Sentry plugin to upload sourcemaps ([#20648](https://github.com/Rebilly/rebilly/issues/20648)) ([f93e27c](https://github.com/Rebilly/rebilly/commit/f93e27c93814a4409cf24f4b7319ae2deeda6d3d))
6
+ * **instruments:** Quantity issue ([#20578](https://github.com/Rebilly/rebilly/issues/20578)) ([dacfa44](https://github.com/Rebilly/rebilly/commit/dacfa44957c8f22cc489536f2119dcbce4a88563))
package/dist/index.js CHANGED
@@ -4849,16 +4849,16 @@ const {
4849
4849
  var ie$1 = Object.defineProperty;
4850
4850
  var ge = (t2, e2, s) => e2 in t2 ? ie$1(t2, e2, { enumerable: true, configurable: true, writable: true, value: s }) : t2[e2] = s;
4851
4851
  var E$1 = (t2, e2, s) => ge(t2, typeof e2 != "symbol" ? e2 + "" : e2, s);
4852
- function d(t2, { exclude: e2 = [] } = {}) {
4852
+ function q$1(t2, { exclude: e2 = [] } = {}) {
4853
4853
  Object.freeze(t2);
4854
4854
  const s = typeof t2 == "function";
4855
4855
  return Object.getOwnPropertyNames(t2).forEach((r2) => {
4856
- (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && t2[r2] !== null && !e2.includes(r2) && (typeof t2[r2] == "object" || typeof t2[r2] == "function") && !Object.isFrozen(t2[r2]) && d(t2[r2], { exclude: e2 });
4856
+ (!s || r2 !== "caller" && r2 !== "callee" && r2 !== "arguments") && t2[r2] !== null && !e2.includes(r2) && (typeof t2[r2] == "object" || typeof t2[r2] == "function") && !Object.isFrozen(t2[r2]) && q$1(t2[r2], { exclude: e2 });
4857
4857
  }), t2;
4858
4858
  }
4859
4859
  let G$1 = class G {
4860
4860
  constructor({ data: e2, status: s, statusText: r2, headers: n2 }, u = {}) {
4861
- this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...e2 }, this.config = u, d(this, { exclude: ["cancelToken"] });
4861
+ this.response = { status: s, statusText: r2, headers: n2 }, this.fields = { ...e2 }, this.config = u, q$1(this, { exclude: ["cancelToken"] });
4862
4862
  }
4863
4863
  /**
4864
4864
  * Returns a mutable JSON representation of the Member.
@@ -4889,7 +4889,7 @@ let ae$1 = class ae {
4889
4889
  this[o2] = l ? Number(l) : null;
4890
4890
  }), this.response = { status: s, statusText: r2, headers: n2 }, this.items = e2.map(
4891
4891
  (o2) => new G$1({ data: o2, status: s, statusText: r2, headers: n2 })
4892
- ), this.config = u, d(this, { exclude: ["cancelToken"] });
4892
+ ), this.config = u, q$1(this, { exclude: ["cancelToken"] });
4893
4893
  }
4894
4894
  /**
4895
4895
  * Returns a mutable JSON representation of the Collection.
@@ -4982,9 +4982,9 @@ var ke$1 = Object.prototype.toString, Y$1 = function(e2) {
4982
4982
  if (ve$1(e2)) return "array";
4983
4983
  if (xe$1(e2)) return "buffer";
4984
4984
  if (Ee$1(e2)) return "arguments";
4985
- if (qe$1(e2)) return "date";
4985
+ if (de$1(e2)) return "date";
4986
4986
  if (Te$1(e2)) return "error";
4987
- if (de$1(e2)) return "regexp";
4987
+ if (qe$1(e2)) return "regexp";
4988
4988
  switch (Q$1(e2)) {
4989
4989
  case "Symbol":
4990
4990
  return "symbol";
@@ -5042,10 +5042,10 @@ function ve$1(t2) {
5042
5042
  function Te$1(t2) {
5043
5043
  return t2 instanceof Error || typeof t2.message == "string" && t2.constructor && typeof t2.constructor.stackTraceLimit == "number";
5044
5044
  }
5045
- function qe$1(t2) {
5045
+ function de$1(t2) {
5046
5046
  return t2 instanceof Date ? true : typeof t2.toDateString == "function" && typeof t2.getDate == "function" && typeof t2.setDate == "function";
5047
5047
  }
5048
- function de$1(t2) {
5048
+ function qe$1(t2) {
5049
5049
  return t2 instanceof RegExp ? true : typeof t2.flags == "string" && typeof t2.ignoreCase == "boolean" && typeof t2.multiline == "boolean" && typeof t2.global == "boolean";
5050
5050
  }
5051
5051
  function Ie$1(t2, e2) {
@@ -5190,7 +5190,7 @@ let Qe$1 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", X
5190
5190
  };
5191
5191
  let Ze$1 = class Ze {
5192
5192
  constructor({ id: e2 = null, created: s = null } = {}) {
5193
- this.id = e2 || Xe$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, d(this, {
5193
+ this.id = e2 || Xe$1(), this.created = s || (/* @__PURE__ */ new Date()).getTime(), this.cancelSource = axios.CancelToken.source(), this.cancel = this.cancelSource.cancel, this.cancelToken = this.cancelSource.token, q$1(this, {
5194
5194
  exclude: ["cancelSource", "cancelToken", "cancel"]
5195
5195
  });
5196
5196
  }
@@ -5238,9 +5238,9 @@ class T {
5238
5238
  }
5239
5239
  }
5240
5240
  const k$1 = new T();
5241
- let q$1 = class q {
5242
- };
5243
- E$1(q$1, "cancelById", (e2, s) => {
5241
+ class d {
5242
+ }
5243
+ E$1(d, "cancelById", (e2, s) => {
5244
5244
  try {
5245
5245
  k$1.getById(e2).cancel(s), k$1.deleteById(e2);
5246
5246
  } catch {
@@ -5260,7 +5260,7 @@ E$1(q$1, "cancelById", (e2, s) => {
5260
5260
  * // cancel all active requests
5261
5261
  * await cancellation.cancelAll();
5262
5262
  */
5263
- E$1(q$1, "cancelAll", async (e2) => {
5263
+ E$1(d, "cancelAll", async (e2) => {
5264
5264
  for (const s of k$1.getAll())
5265
5265
  await s.cancel(e2), k$1.deleteById(s.id);
5266
5266
  });
@@ -5268,7 +5268,7 @@ const pr = {
5268
5268
  /**
5269
5269
  * @type Cancellation.cancelAll
5270
5270
  */
5271
- cancelAll: async (...t2) => await q$1.cancelAll(...t2)
5271
+ cancelAll: async (...t2) => await d.cancelAll(...t2)
5272
5272
  }, b = {
5273
5273
  request: "request",
5274
5274
  response: "response"
@@ -5298,7 +5298,7 @@ function C$1({ options: t2 }) {
5298
5298
  }
5299
5299
  function o2() {
5300
5300
  const i = {
5301
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@f93e27c`
5301
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@dacfa44`
5302
5302
  };
5303
5303
  return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
5304
5304
  }
@@ -5376,7 +5376,7 @@ function C$1({ options: t2 }) {
5376
5376
  k$1.deleteById(h2);
5377
5377
  }
5378
5378
  }();
5379
- return z2.cancel = (v) => q$1.cancelById(h2, v), z2;
5379
+ return z2.cancel = (v) => d.cancelById(h2, v), z2;
5380
5380
  }
5381
5381
  function ee2({ response: c, isCollection: i, config: g }) {
5382
5382
  return i ? new ae$1(c, g) : new G$1(c, g);
@@ -6543,7 +6543,7 @@ function Tt$1({ apiHandler: t2 }) {
6543
6543
  }
6544
6544
  };
6545
6545
  }
6546
- function qt$1({ apiHandler: t2 }) {
6546
+ function dt$1({ apiHandler: t2 }) {
6547
6547
  return {
6548
6548
  /**
6549
6549
  * @param { rebilly.GetEventCollectionRequest } request
@@ -6675,7 +6675,7 @@ function qt$1({ apiHandler: t2 }) {
6675
6675
  }
6676
6676
  };
6677
6677
  }
6678
- function dt$1({ apiHandler: t2 }) {
6678
+ function qt$1({ apiHandler: t2 }) {
6679
6679
  return {
6680
6680
  /**
6681
6681
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -8905,7 +8905,7 @@ function Ts({ apiHandler: t2 }) {
8905
8905
  }
8906
8906
  };
8907
8907
  }
8908
- function qs({ apiHandler: t2 }) {
8908
+ function ds({ apiHandler: t2 }) {
8909
8909
  return {
8910
8910
  /**
8911
8911
  * @param { rebilly.GetUserCollectionRequest } request
@@ -8948,7 +8948,7 @@ function qs({ apiHandler: t2 }) {
8948
8948
  }
8949
8949
  };
8950
8950
  }
8951
- function ds({ apiHandler: t2 }) {
8951
+ function qs({ apiHandler: t2 }) {
8952
8952
  return {
8953
8953
  /**
8954
8954
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -9026,7 +9026,7 @@ class Ss {
9026
9026
  constructor({ apiHandler: e2 }) {
9027
9027
  this.account = _e$1({ apiHandler: e2 }), this.allowlists = He$1({ apiHandler: e2 }), this.amlChecks = et$1({ apiHandler: e2 }), this.amlSettings = tt$1({ apiHandler: e2 }), this.apiKeys = st$1({ apiHandler: e2 }), this.applicationInstances = rt$1({ apiHandler: e2 }), this.applications = nt$1({ apiHandler: e2 }), this.balanceTransactions = ut$1({ apiHandler: e2 }), this.billingPortals = ot$1({ apiHandler: e2 }), this.blocklists = lt$1({ apiHandler: e2 }), this.broadcastMessages = ct$1({ apiHandler: e2 }), this.cashiers = it$1({ apiHandler: e2 }), this.checkoutForms = gt$1({ apiHandler: e2 }), this.coupons = at$1({ apiHandler: e2 }), this.creditMemos = mt$1({ apiHandler: e2 }), this.customDomains = $t$1({ apiHandler: e2 }), this.customFields = ft$1({ apiHandler: e2 }), this.customerAuthentication = pt$1({ apiHandler: e2 }), this.customers = ht$1({ apiHandler: e2 }), this.depositCustomPropertySets = yt$1({
9028
9028
  apiHandler: e2
9029
- }), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications = Tt$1({ apiHandler: e2 }), this.events = qt$1({ apiHandler: e2 }), this.externalIdentifiers = dt$1({ apiHandler: e2 }), this.externalServicesSettings = It$1({
9029
+ }), this.depositRequests = At$1({ apiHandler: e2 }), this.depositStrategies = Rt$1({ apiHandler: e2 }), this.digitalWallets = bt$1({ apiHandler: e2 }), this.disputes = wt$1({ apiHandler: e2 }), this.emailDeliverySettings = kt$1({ apiHandler: e2 }), this.emailMessages = vt$1({ apiHandler: e2 }), this.emailNotifications = Tt$1({ apiHandler: e2 }), this.events = dt$1({ apiHandler: e2 }), this.externalIdentifiers = qt$1({ apiHandler: e2 }), this.externalServicesSettings = It$1({
9030
9030
  apiHandler: e2
9031
9031
  }), this.fees = St$1({ apiHandler: e2 }), this.files = Et$1({ apiHandler: e2 }), this.gatewayAccounts = xt$1({ apiHandler: e2 }), this.integrations = Pt$1({ apiHandler: e2 }), this.invoices = Ct$1({ apiHandler: e2 }), this.journalAccounts = Dt$1({ apiHandler: e2 }), this.journalEntries = jt$1({ apiHandler: e2 }), this.journalRecords = Mt$1({ apiHandler: e2 }), this.kycDocuments = Ot$1({ apiHandler: e2 }), this.kycRequests = Ft$1({ apiHandler: e2 }), this.kycSettings = Bt$1({ apiHandler: e2 }), this.lists = Kt$1({ apiHandler: e2 }), this.memberships = Nt$1({ apiHandler: e2 }), this.orderCancellations = Lt$1({ apiHandler: e2 }), this.orderPauses = zt$1({ apiHandler: e2 }), this.orderReactivations = Ut$1({ apiHandler: e2 }), this.orders = Vt$1({ apiHandler: e2 }), this.organizationExports = Jt$1({ apiHandler: e2 }), this.organizations = Wt$1({ apiHandler: e2 }), this.paymentCardsBankNames = Gt$1({ apiHandler: e2 }), this.paymentInstruments = Yt$1({ apiHandler: e2 }), this.paymentMethods = Qt$1({ apiHandler: e2 }), this.paymentTokens = Xt$1({ apiHandler: e2 }), this.payoutRequestAllocations = Zt$1({
9032
9032
  apiHandler: e2
@@ -9034,7 +9034,7 @@ class Ss {
9034
9034
  apiHandler: e2
9035
9035
  }), this.subscriptionPauses = ys({ apiHandler: e2 }), this.subscriptionReactivations = As({
9036
9036
  apiHandler: e2
9037
- }), this.subscriptions = Rs({ apiHandler: e2 }), this.tags = bs({ apiHandler: e2 }), this.tagsRules = ws({ apiHandler: e2 }), this.tracking = ks({ apiHandler: e2 }), this.transactions = vs({ apiHandler: e2 }), this.usages = Ts({ apiHandler: e2 }), this.users = qs({ apiHandler: e2 }), this.webhooks = ds({ apiHandler: e2 }), this.websites = Is({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
9037
+ }), this.subscriptions = Rs({ apiHandler: e2 }), this.tags = bs({ apiHandler: e2 }), this.tagsRules = ws({ apiHandler: e2 }), this.tracking = ks({ apiHandler: e2 }), this.transactions = vs({ apiHandler: e2 }), this.usages = Ts({ apiHandler: e2 }), this.users = ds({ apiHandler: e2 }), this.webhooks = qs({ apiHandler: e2 }), this.websites = Is({ apiHandler: e2 }), this.addRequestInterceptor = e2.addRequestInterceptor, this.removeRequestInterceptor = e2.removeRequestInterceptor, this.addResponseInterceptor = e2.addResponseInterceptor, this.removeResponseInterceptor = e2.removeResponseInterceptor, this.setTimeout = e2.setTimeout, this.setProxyAgent = e2.setProxyAgent, this.setSessionToken = e2.setSessionToken, this.setPublishableKey = e2.setPublishableKey, this.setEndpoints = e2.setEndpoints, this.getCancellationToken = e2.getCancellationToken, this.generateSignature = e2.generateSignature;
9038
9038
  }
9039
9039
  }
9040
9040
  function Es({ apiHandler: t2 }) {
@@ -10706,7 +10706,7 @@ function L(e2, t2) {
10706
10706
  function h(e2, t2) {
10707
10707
  return [e2[0] ^ t2[0], e2[1] ^ t2[1]];
10708
10708
  }
10709
- function q2(e2) {
10709
+ function q(e2) {
10710
10710
  return e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [4283543511, 3981806797]), e2 = h(e2, [0, e2[0] >>> 1]), e2 = C(e2, [3301882366, 444984403]), e2 = h(e2, [0, e2[0] >>> 1]), e2;
10711
10711
  }
10712
10712
  function we(e2, t2) {
@@ -10752,7 +10752,7 @@ function we(e2, t2) {
10752
10752
  case 1:
10753
10753
  o2 = h(o2, [0, e2.charCodeAt(u)]), o2 = C(o2, l), o2 = A(o2, 31), o2 = C(o2, s), i = h(i, o2);
10754
10754
  }
10755
- return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q2(i), r2 = q2(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10755
+ return i = h(i, [0, e2.length]), r2 = h(r2, [0, e2.length]), i = Z(i, r2), r2 = Z(r2, i), i = q(i), r2 = q(r2), i = Z(i, r2), r2 = Z(r2, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (r2[1] >>> 0).toString(16)).slice(-8);
10756
10756
  }
10757
10757
  function Se(e2) {
10758
10758
  var t2;