@rebilly/instruments 12.55.1 → 12.56.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 @@
1
- ## [12.55.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.55.0...instruments/core-v12.55.1) (2025-04-23)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **framepay:** Fixed typo in expiration card extra data property name ([#11434](https://github.com/Rebilly/rebilly/issues/11434)) ([e674612](https://github.com/Rebilly/rebilly/commit/e674612c67a700f6ded912934eb0ae3a15813028))
1
+ ## [12.56.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.56.0...instruments/core-v12.56.1) (2025-04-28)
package/dist/index.js CHANGED
@@ -3462,6 +3462,7 @@ function bind(fn, thisArg) {
3462
3462
  }
3463
3463
  const { toString } = Object.prototype;
3464
3464
  const { getPrototypeOf } = Object;
3465
+ const { iterator, toStringTag } = Symbol;
3465
3466
  const kindOf = /* @__PURE__ */ ((cache) => (thing) => {
3466
3467
  const str = toString.call(thing);
3467
3468
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -3496,7 +3497,7 @@ const isPlainObject = (val) => {
3496
3497
  return false;
3497
3498
  }
3498
3499
  const prototype2 = getPrototypeOf(val);
3499
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
3500
+ return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
3500
3501
  };
3501
3502
  const isDate = kindOfTest("Date");
3502
3503
  const isFile = kindOfTest("File");
@@ -3643,10 +3644,10 @@ const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
3643
3644
  };
3644
3645
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
3645
3646
  const forEachEntry = (obj, fn) => {
3646
- const generator = obj && obj[Symbol.iterator];
3647
- const iterator = generator.call(obj);
3647
+ const generator = obj && obj[iterator];
3648
+ const _iterator = generator.call(obj);
3648
3649
  let result;
3649
- while ((result = iterator.next()) && !result.done) {
3650
+ while ((result = _iterator.next()) && !result.done) {
3650
3651
  const pair = result.value;
3651
3652
  fn.call(obj, pair[0], pair[1]);
3652
3653
  }
@@ -3716,7 +3717,7 @@ const toFiniteNumber = (value, defaultValue) => {
3716
3717
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
3717
3718
  };
3718
3719
  function isSpecCompliantForm(thing) {
3719
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
3720
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
3720
3721
  }
3721
3722
  const toJSONObject = (obj) => {
3722
3723
  const stack = new Array(10);
@@ -3762,6 +3763,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
3762
3763
  isFunction(_global.postMessage)
3763
3764
  );
3764
3765
  const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
3766
+ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
3765
3767
  const utils$1 = {
3766
3768
  isArray,
3767
3769
  isArrayBuffer,
@@ -3818,7 +3820,8 @@ const utils$1 = {
3818
3820
  isAsyncFn,
3819
3821
  isThenable,
3820
3822
  setImmediate: _setImmediate,
3821
- asap
3823
+ asap,
3824
+ isIterable
3822
3825
  };
3823
3826
  function AxiosError$1(message, code, config, request, response) {
3824
3827
  Error.call(this);
@@ -4441,10 +4444,15 @@ let AxiosHeaders$1 = class AxiosHeaders {
4441
4444
  setHeaders(header, valueOrRewrite);
4442
4445
  } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
4443
4446
  setHeaders(parseHeaders(header), valueOrRewrite);
4444
- } else if (utils$1.isHeaders(header)) {
4445
- for (const [key, value] of header.entries()) {
4446
- setHeader(value, key, rewrite);
4447
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
4448
+ let obj = {}, dest, key;
4449
+ for (const entry of header) {
4450
+ if (!utils$1.isArray(entry)) {
4451
+ throw TypeError("Object iterator must return a key-value pair");
4452
+ }
4453
+ obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
4447
4454
  }
4455
+ setHeaders(obj, valueOrRewrite);
4448
4456
  } else {
4449
4457
  header != null && setHeader(valueOrRewrite, header, rewrite);
4450
4458
  }
@@ -4548,6 +4556,9 @@ let AxiosHeaders$1 = class AxiosHeaders {
4548
4556
  toString() {
4549
4557
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
4550
4558
  }
4559
+ getSetCookie() {
4560
+ return this.get("set-cookie") || [];
4561
+ }
4551
4562
  get [Symbol.toStringTag]() {
4552
4563
  return "AxiosHeaders";
4553
4564
  }
@@ -5080,7 +5091,7 @@ const readStream = async function* (stream) {
5080
5091
  }
5081
5092
  };
5082
5093
  const trackStream = (stream, chunkSize, onProgress, onFinish) => {
5083
- const iterator = readBytes(stream, chunkSize);
5094
+ const iterator2 = readBytes(stream, chunkSize);
5084
5095
  let bytes = 0;
5085
5096
  let done;
5086
5097
  let _onFinish = (e2) => {
@@ -5092,7 +5103,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
5092
5103
  return new ReadableStream({
5093
5104
  async pull(controller) {
5094
5105
  try {
5095
- const { done: done2, value } = await iterator.next();
5106
+ const { done: done2, value } = await iterator2.next();
5096
5107
  if (done2) {
5097
5108
  _onFinish();
5098
5109
  controller.close();
@@ -5111,7 +5122,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
5111
5122
  },
5112
5123
  cancel(reason) {
5113
5124
  _onFinish(reason);
5114
- return iterator.return();
5125
+ return iterator2.return();
5115
5126
  }
5116
5127
  }, {
5117
5128
  highWaterMark: 2
@@ -5268,7 +5279,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
5268
5279
  });
5269
5280
  } catch (err) {
5270
5281
  unsubscribe && unsubscribe();
5271
- if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
5282
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
5272
5283
  throw Object.assign(
5273
5284
  new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
5274
5285
  {
@@ -5374,7 +5385,7 @@ function dispatchRequest(config) {
5374
5385
  return Promise.reject(reason);
5375
5386
  });
5376
5387
  }
5377
- const VERSION$1 = "1.8.4";
5388
+ const VERSION$1 = "1.9.0";
5378
5389
  const validators$1 = {};
5379
5390
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
5380
5391
  validators$1[type] = function validator2(thing) {
@@ -5440,7 +5451,7 @@ const validator = {
5440
5451
  const validators = validator.validators;
5441
5452
  let Axios$1 = class Axios {
5442
5453
  constructor(instanceConfig) {
5443
- this.defaults = instanceConfig;
5454
+ this.defaults = instanceConfig || {};
5444
5455
  this.interceptors = {
5445
5456
  request: new InterceptorManager(),
5446
5457
  response: new InterceptorManager()
@@ -6278,7 +6289,7 @@ function C$1({ options: e2 }) {
6278
6289
  }
6279
6290
  function o2() {
6280
6291
  const i = {
6281
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@e674612`
6292
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@9a267d5`
6282
6293
  };
6283
6294
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6284
6295
  }