@membranehq/sdk 0.16.0 → 0.17.0

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/bundle.js CHANGED
@@ -23446,6 +23446,9 @@
23446
23446
  async resubscribe() {
23447
23447
  await this.client.post(this.getPath('resubscribe'));
23448
23448
  }
23449
+ async refreshWebhook() {
23450
+ await this.client.post(this.getPath('refresh-webhook'));
23451
+ }
23449
23452
  async pullEvents() {
23450
23453
  await this.client.post(this.getPath('pull-events'));
23451
23454
  }
@@ -24656,7 +24659,7 @@
24656
24659
  }
24657
24660
  }
24658
24661
 
24659
- /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
24662
+ /*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
24660
24663
  /**
24661
24664
  * Create a bound version of a function with a specified `this` context
24662
24665
  *
@@ -24672,30 +24675,30 @@
24672
24675
 
24673
24676
  // utils is a library of generic helper functions non-specific to axios
24674
24677
 
24675
- const {toString} = Object.prototype;
24676
- const {getPrototypeOf} = Object;
24677
- const {iterator, toStringTag} = Symbol;
24678
+ const { toString } = Object.prototype;
24679
+ const { getPrototypeOf } = Object;
24680
+ const { iterator, toStringTag } = Symbol;
24678
24681
 
24679
- const kindOf = (cache => thing => {
24680
- const str = toString.call(thing);
24681
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
24682
+ const kindOf = ((cache) => (thing) => {
24683
+ const str = toString.call(thing);
24684
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
24682
24685
  })(Object.create(null));
24683
24686
 
24684
24687
  const kindOfTest = (type) => {
24685
24688
  type = type.toLowerCase();
24686
- return (thing) => kindOf(thing) === type
24689
+ return (thing) => kindOf(thing) === type;
24687
24690
  };
24688
24691
 
24689
- const typeOfTest = type => thing => typeof thing === type;
24692
+ const typeOfTest = (type) => (thing) => typeof thing === type;
24690
24693
 
24691
24694
  /**
24692
- * Determine if a value is an Array
24695
+ * Determine if a value is a non-null object
24693
24696
  *
24694
24697
  * @param {Object} val The value to test
24695
24698
  *
24696
24699
  * @returns {boolean} True if value is an Array, otherwise false
24697
24700
  */
24698
- const {isArray} = Array;
24701
+ const { isArray } = Array;
24699
24702
 
24700
24703
  /**
24701
24704
  * Determine if a value is undefined
@@ -24704,7 +24707,7 @@
24704
24707
  *
24705
24708
  * @returns {boolean} True if the value is undefined, otherwise false
24706
24709
  */
24707
- const isUndefined = typeOfTest('undefined');
24710
+ const isUndefined = typeOfTest("undefined");
24708
24711
 
24709
24712
  /**
24710
24713
  * Determine if a value is a Buffer
@@ -24714,8 +24717,14 @@
24714
24717
  * @returns {boolean} True if value is a Buffer, otherwise false
24715
24718
  */
24716
24719
  function isBuffer(val) {
24717
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
24718
- && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
24720
+ return (
24721
+ val !== null &&
24722
+ !isUndefined(val) &&
24723
+ val.constructor !== null &&
24724
+ !isUndefined(val.constructor) &&
24725
+ isFunction$1(val.constructor.isBuffer) &&
24726
+ val.constructor.isBuffer(val)
24727
+ );
24719
24728
  }
24720
24729
 
24721
24730
  /**
@@ -24725,8 +24734,7 @@
24725
24734
  *
24726
24735
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
24727
24736
  */
24728
- const isArrayBuffer = kindOfTest('ArrayBuffer');
24729
-
24737
+ const isArrayBuffer = kindOfTest("ArrayBuffer");
24730
24738
 
24731
24739
  /**
24732
24740
  * Determine if a value is a view on an ArrayBuffer
@@ -24737,10 +24745,10 @@
24737
24745
  */
24738
24746
  function isArrayBufferView(val) {
24739
24747
  let result;
24740
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
24748
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
24741
24749
  result = ArrayBuffer.isView(val);
24742
24750
  } else {
24743
- result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
24751
+ result = val && val.buffer && isArrayBuffer(val.buffer);
24744
24752
  }
24745
24753
  return result;
24746
24754
  }
@@ -24752,7 +24760,7 @@
24752
24760
  *
24753
24761
  * @returns {boolean} True if value is a String, otherwise false
24754
24762
  */
24755
- const isString = typeOfTest('string');
24763
+ const isString = typeOfTest("string");
24756
24764
 
24757
24765
  /**
24758
24766
  * Determine if a value is a Function
@@ -24760,7 +24768,7 @@
24760
24768
  * @param {*} val The value to test
24761
24769
  * @returns {boolean} True if value is a Function, otherwise false
24762
24770
  */
24763
- const isFunction$1 = typeOfTest('function');
24771
+ const isFunction$1 = typeOfTest("function");
24764
24772
 
24765
24773
  /**
24766
24774
  * Determine if a value is a Number
@@ -24769,7 +24777,7 @@
24769
24777
  *
24770
24778
  * @returns {boolean} True if value is a Number, otherwise false
24771
24779
  */
24772
- const isNumber = typeOfTest('number');
24780
+ const isNumber = typeOfTest("number");
24773
24781
 
24774
24782
  /**
24775
24783
  * Determine if a value is an Object
@@ -24778,7 +24786,7 @@
24778
24786
  *
24779
24787
  * @returns {boolean} True if value is an Object, otherwise false
24780
24788
  */
24781
- const isObject = (thing) => thing !== null && typeof thing === 'object';
24789
+ const isObject = (thing) => thing !== null && typeof thing === "object";
24782
24790
 
24783
24791
  /**
24784
24792
  * Determine if a value is a Boolean
@@ -24786,7 +24794,7 @@
24786
24794
  * @param {*} thing The value to test
24787
24795
  * @returns {boolean} True if value is a Boolean, otherwise false
24788
24796
  */
24789
- const isBoolean = thing => thing === true || thing === false;
24797
+ const isBoolean = (thing) => thing === true || thing === false;
24790
24798
 
24791
24799
  /**
24792
24800
  * Determine if a value is a plain Object
@@ -24796,12 +24804,18 @@
24796
24804
  * @returns {boolean} True if value is a plain Object, otherwise false
24797
24805
  */
24798
24806
  const isPlainObject = (val) => {
24799
- if (kindOf(val) !== 'object') {
24807
+ if (kindOf(val) !== "object") {
24800
24808
  return false;
24801
24809
  }
24802
24810
 
24803
24811
  const prototype = getPrototypeOf(val);
24804
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
24812
+ return (
24813
+ (prototype === null ||
24814
+ prototype === Object.prototype ||
24815
+ Object.getPrototypeOf(prototype) === null) &&
24816
+ !(toStringTag in val) &&
24817
+ !(iterator in val)
24818
+ );
24805
24819
  };
24806
24820
 
24807
24821
  /**
@@ -24818,7 +24832,10 @@
24818
24832
  }
24819
24833
 
24820
24834
  try {
24821
- return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
24835
+ return (
24836
+ Object.keys(val).length === 0 &&
24837
+ Object.getPrototypeOf(val) === Object.prototype
24838
+ );
24822
24839
  } catch (e) {
24823
24840
  // Fallback for any other objects that might cause RangeError with Object.keys()
24824
24841
  return false;
@@ -24832,7 +24849,7 @@
24832
24849
  *
24833
24850
  * @returns {boolean} True if value is a Date, otherwise false
24834
24851
  */
24835
- const isDate = kindOfTest('Date');
24852
+ const isDate = kindOfTest("Date");
24836
24853
 
24837
24854
  /**
24838
24855
  * Determine if a value is a File
@@ -24841,7 +24858,7 @@
24841
24858
  *
24842
24859
  * @returns {boolean} True if value is a File, otherwise false
24843
24860
  */
24844
- const isFile = kindOfTest('File');
24861
+ const isFile = kindOfTest("File");
24845
24862
 
24846
24863
  /**
24847
24864
  * Determine if a value is a Blob
@@ -24850,7 +24867,7 @@
24850
24867
  *
24851
24868
  * @returns {boolean} True if value is a Blob, otherwise false
24852
24869
  */
24853
- const isBlob$1 = kindOfTest('Blob');
24870
+ const isBlob$1 = kindOfTest("Blob");
24854
24871
 
24855
24872
  /**
24856
24873
  * Determine if a value is a FileList
@@ -24859,7 +24876,7 @@
24859
24876
  *
24860
24877
  * @returns {boolean} True if value is a File, otherwise false
24861
24878
  */
24862
- const isFileList = kindOfTest('FileList');
24879
+ const isFileList = kindOfTest("FileList");
24863
24880
 
24864
24881
  /**
24865
24882
  * Determine if a value is a Stream
@@ -24879,15 +24896,16 @@
24879
24896
  */
24880
24897
  const isFormData = (thing) => {
24881
24898
  let kind;
24882
- return thing && (
24883
- (typeof FormData === 'function' && thing instanceof FormData) || (
24884
- isFunction$1(thing.append) && (
24885
- (kind = kindOf(thing)) === 'formdata' ||
24886
- // detect form-data instance
24887
- (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
24888
- )
24889
- )
24890
- )
24899
+ return (
24900
+ thing &&
24901
+ ((typeof FormData === "function" && thing instanceof FormData) ||
24902
+ (isFunction$1(thing.append) &&
24903
+ ((kind = kindOf(thing)) === "formdata" ||
24904
+ // detect form-data instance
24905
+ (kind === "object" &&
24906
+ isFunction$1(thing.toString) &&
24907
+ thing.toString() === "[object FormData]"))))
24908
+ );
24891
24909
  };
24892
24910
 
24893
24911
  /**
@@ -24897,9 +24915,14 @@
24897
24915
  *
24898
24916
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
24899
24917
  */
24900
- const isURLSearchParams = kindOfTest('URLSearchParams');
24918
+ const isURLSearchParams = kindOfTest("URLSearchParams");
24901
24919
 
24902
- const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
24920
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
24921
+ "ReadableStream",
24922
+ "Request",
24923
+ "Response",
24924
+ "Headers",
24925
+ ].map(kindOfTest);
24903
24926
 
24904
24927
  /**
24905
24928
  * Trim excess whitespace off the beginning and end of a string
@@ -24908,8 +24931,8 @@
24908
24931
  *
24909
24932
  * @returns {String} The String freed of excess whitespace
24910
24933
  */
24911
- const trim = (str) => str.trim ?
24912
- str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
24934
+ const trim = (str) =>
24935
+ str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
24913
24936
 
24914
24937
  /**
24915
24938
  * Iterate over an Array or an Object invoking a function for each item.
@@ -24920,15 +24943,16 @@
24920
24943
  * If 'obj' is an Object callback will be called passing
24921
24944
  * the value, key, and complete object for each property.
24922
24945
  *
24923
- * @param {Object|Array} obj The object to iterate
24946
+ * @param {Object|Array<unknown>} obj The object to iterate
24924
24947
  * @param {Function} fn The callback to invoke for each item
24925
24948
  *
24926
- * @param {Boolean} [allOwnKeys = false]
24949
+ * @param {Object} [options]
24950
+ * @param {Boolean} [options.allOwnKeys = false]
24927
24951
  * @returns {any}
24928
24952
  */
24929
- function forEach(obj, fn, {allOwnKeys = false} = {}) {
24953
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
24930
24954
  // Don't bother if no value provided
24931
- if (obj === null || typeof obj === 'undefined') {
24955
+ if (obj === null || typeof obj === "undefined") {
24932
24956
  return;
24933
24957
  }
24934
24958
 
@@ -24936,7 +24960,7 @@
24936
24960
  let l;
24937
24961
 
24938
24962
  // Force an array if not already something iterable
24939
- if (typeof obj !== 'object') {
24963
+ if (typeof obj !== "object") {
24940
24964
  /*eslint no-param-reassign:0*/
24941
24965
  obj = [obj];
24942
24966
  }
@@ -24953,7 +24977,9 @@
24953
24977
  }
24954
24978
 
24955
24979
  // Iterate over object keys
24956
- const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
24980
+ const keys = allOwnKeys
24981
+ ? Object.getOwnPropertyNames(obj)
24982
+ : Object.keys(obj);
24957
24983
  const len = keys.length;
24958
24984
  let key;
24959
24985
 
@@ -24965,7 +24991,7 @@
24965
24991
  }
24966
24992
 
24967
24993
  function findKey(obj, key) {
24968
- if (isBuffer(obj)){
24994
+ if (isBuffer(obj)) {
24969
24995
  return null;
24970
24996
  }
24971
24997
 
@@ -24985,10 +25011,15 @@
24985
25011
  const _global = (() => {
24986
25012
  /*eslint no-undef:0*/
24987
25013
  if (typeof globalThis !== "undefined") return globalThis;
24988
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
25014
+ return typeof self !== "undefined"
25015
+ ? self
25016
+ : typeof window !== "undefined"
25017
+ ? window
25018
+ : global;
24989
25019
  })();
24990
25020
 
24991
- const isContextDefined = (context) => !isUndefined(context) && context !== _global;
25021
+ const isContextDefined = (context) =>
25022
+ !isUndefined(context) && context !== _global;
24992
25023
 
24993
25024
  /**
24994
25025
  * Accepts varargs expecting each argument to be an object, then
@@ -25000,7 +25031,7 @@
25000
25031
  * Example:
25001
25032
  *
25002
25033
  * ```js
25003
- * var result = merge({foo: 123}, {foo: 456});
25034
+ * const result = merge({foo: 123}, {foo: 456});
25004
25035
  * console.log(result.foo); // outputs 456
25005
25036
  * ```
25006
25037
  *
@@ -25009,10 +25040,15 @@
25009
25040
  * @returns {Object} Result of all merge properties
25010
25041
  */
25011
25042
  function merge(/* obj1, obj2, obj3, ... */) {
25012
- const {caseless, skipUndefined} = isContextDefined(this) && this || {};
25043
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
25013
25044
  const result = {};
25014
25045
  const assignValue = (val, key) => {
25015
- const targetKey = caseless && findKey(result, key) || key;
25046
+ // Skip dangerous property names to prevent prototype pollution
25047
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
25048
+ return;
25049
+ }
25050
+
25051
+ const targetKey = (caseless && findKey(result, key)) || key;
25016
25052
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
25017
25053
  result[targetKey] = merge(result[targetKey], val);
25018
25054
  } else if (isPlainObject(val)) {
@@ -25037,17 +25073,32 @@
25037
25073
  * @param {Object} b The object to copy properties from
25038
25074
  * @param {Object} thisArg The object to bind function to
25039
25075
  *
25040
- * @param {Boolean} [allOwnKeys]
25076
+ * @param {Object} [options]
25077
+ * @param {Boolean} [options.allOwnKeys]
25041
25078
  * @returns {Object} The resulting value of object a
25042
25079
  */
25043
- const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
25044
- forEach(b, (val, key) => {
25045
- if (thisArg && isFunction$1(val)) {
25046
- a[key] = bind(val, thisArg);
25047
- } else {
25048
- a[key] = val;
25049
- }
25050
- }, {allOwnKeys});
25080
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
25081
+ forEach(
25082
+ b,
25083
+ (val, key) => {
25084
+ if (thisArg && isFunction$1(val)) {
25085
+ Object.defineProperty(a, key, {
25086
+ value: bind(val, thisArg),
25087
+ writable: true,
25088
+ enumerable: true,
25089
+ configurable: true,
25090
+ });
25091
+ } else {
25092
+ Object.defineProperty(a, key, {
25093
+ value: val,
25094
+ writable: true,
25095
+ enumerable: true,
25096
+ configurable: true,
25097
+ });
25098
+ }
25099
+ },
25100
+ { allOwnKeys },
25101
+ );
25051
25102
  return a;
25052
25103
  };
25053
25104
 
@@ -25059,7 +25110,7 @@
25059
25110
  * @returns {string} content value without BOM
25060
25111
  */
25061
25112
  const stripBOM = (content) => {
25062
- if (content.charCodeAt(0) === 0xFEFF) {
25113
+ if (content.charCodeAt(0) === 0xfeff) {
25063
25114
  content = content.slice(1);
25064
25115
  }
25065
25116
  return content;
@@ -25075,10 +25126,18 @@
25075
25126
  * @returns {void}
25076
25127
  */
25077
25128
  const inherits = (constructor, superConstructor, props, descriptors) => {
25078
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
25079
- constructor.prototype.constructor = constructor;
25080
- Object.defineProperty(constructor, 'super', {
25081
- value: superConstructor.prototype
25129
+ constructor.prototype = Object.create(
25130
+ superConstructor.prototype,
25131
+ descriptors,
25132
+ );
25133
+ Object.defineProperty(constructor.prototype, "constructor", {
25134
+ value: constructor,
25135
+ writable: true,
25136
+ enumerable: false,
25137
+ configurable: true,
25138
+ });
25139
+ Object.defineProperty(constructor, "super", {
25140
+ value: superConstructor.prototype,
25082
25141
  });
25083
25142
  props && Object.assign(constructor.prototype, props);
25084
25143
  };
@@ -25107,13 +25166,20 @@
25107
25166
  i = props.length;
25108
25167
  while (i-- > 0) {
25109
25168
  prop = props[i];
25110
- if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
25169
+ if (
25170
+ (!propFilter || propFilter(prop, sourceObj, destObj)) &&
25171
+ !merged[prop]
25172
+ ) {
25111
25173
  destObj[prop] = sourceObj[prop];
25112
25174
  merged[prop] = true;
25113
25175
  }
25114
25176
  }
25115
25177
  sourceObj = filter !== false && getPrototypeOf(sourceObj);
25116
- } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
25178
+ } while (
25179
+ sourceObj &&
25180
+ (!filter || filter(sourceObj, destObj)) &&
25181
+ sourceObj !== Object.prototype
25182
+ );
25117
25183
 
25118
25184
  return destObj;
25119
25185
  };
@@ -25137,7 +25203,6 @@
25137
25203
  return lastIndex !== -1 && lastIndex === position;
25138
25204
  };
25139
25205
 
25140
-
25141
25206
  /**
25142
25207
  * Returns new array from array like object or null if failed
25143
25208
  *
@@ -25166,12 +25231,12 @@
25166
25231
  * @returns {Array}
25167
25232
  */
25168
25233
  // eslint-disable-next-line func-names
25169
- const isTypedArray = (TypedArray => {
25234
+ const isTypedArray = ((TypedArray) => {
25170
25235
  // eslint-disable-next-line func-names
25171
- return thing => {
25236
+ return (thing) => {
25172
25237
  return TypedArray && thing instanceof TypedArray;
25173
25238
  };
25174
- })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
25239
+ })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
25175
25240
 
25176
25241
  /**
25177
25242
  * For each entry in the object, call the function with the key and value.
@@ -25214,18 +25279,22 @@
25214
25279
  };
25215
25280
 
25216
25281
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
25217
- const isHTMLForm = kindOfTest('HTMLFormElement');
25282
+ const isHTMLForm = kindOfTest("HTMLFormElement");
25218
25283
 
25219
- const toCamelCase = str => {
25220
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
25221
- function replacer(m, p1, p2) {
25284
+ const toCamelCase = (str) => {
25285
+ return str
25286
+ .toLowerCase()
25287
+ .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
25222
25288
  return p1.toUpperCase() + p2;
25223
- }
25224
- );
25289
+ });
25225
25290
  };
25226
25291
 
25227
25292
  /* Creating a function that will check if an object has a property. */
25228
- const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
25293
+ const hasOwnProperty = (
25294
+ ({ hasOwnProperty }) =>
25295
+ (obj, prop) =>
25296
+ hasOwnProperty.call(obj, prop)
25297
+ )(Object.prototype);
25229
25298
 
25230
25299
  /**
25231
25300
  * Determine if a value is a RegExp object
@@ -25234,7 +25303,7 @@
25234
25303
  *
25235
25304
  * @returns {boolean} True if value is a RegExp object, otherwise false
25236
25305
  */
25237
- const isRegExp = kindOfTest('RegExp');
25306
+ const isRegExp = kindOfTest("RegExp");
25238
25307
 
25239
25308
  const reduceDescriptors = (obj, reducer) => {
25240
25309
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -25258,7 +25327,10 @@
25258
25327
  const freezeMethods = (obj) => {
25259
25328
  reduceDescriptors(obj, (descriptor, name) => {
25260
25329
  // skip restricted props in strict mode
25261
- if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
25330
+ if (
25331
+ isFunction$1(obj) &&
25332
+ ["arguments", "caller", "callee"].indexOf(name) !== -1
25333
+ ) {
25262
25334
  return false;
25263
25335
  }
25264
25336
 
@@ -25268,14 +25340,14 @@
25268
25340
 
25269
25341
  descriptor.enumerable = false;
25270
25342
 
25271
- if ('writable' in descriptor) {
25343
+ if ("writable" in descriptor) {
25272
25344
  descriptor.writable = false;
25273
25345
  return;
25274
25346
  }
25275
25347
 
25276
25348
  if (!descriptor.set) {
25277
25349
  descriptor.set = () => {
25278
- throw Error('Can not rewrite read-only method \'' + name + '\'');
25350
+ throw Error("Can not rewrite read-only method '" + name + "'");
25279
25351
  };
25280
25352
  }
25281
25353
  });
@@ -25285,12 +25357,14 @@
25285
25357
  const obj = {};
25286
25358
 
25287
25359
  const define = (arr) => {
25288
- arr.forEach(value => {
25360
+ arr.forEach((value) => {
25289
25361
  obj[value] = true;
25290
25362
  });
25291
25363
  };
25292
25364
 
25293
- isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
25365
+ isArray(arrayOrString)
25366
+ ? define(arrayOrString)
25367
+ : define(String(arrayOrString).split(delimiter));
25294
25368
 
25295
25369
  return obj;
25296
25370
  };
@@ -25298,11 +25372,11 @@
25298
25372
  const noop = () => {};
25299
25373
 
25300
25374
  const toFiniteNumber = (value, defaultValue) => {
25301
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
25375
+ return value != null && Number.isFinite((value = +value))
25376
+ ? value
25377
+ : defaultValue;
25302
25378
  };
25303
25379
 
25304
-
25305
-
25306
25380
  /**
25307
25381
  * If the thing is a FormData object, return true, otherwise return false.
25308
25382
  *
@@ -25311,14 +25385,18 @@
25311
25385
  * @returns {boolean}
25312
25386
  */
25313
25387
  function isSpecCompliantForm(thing) {
25314
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
25388
+ return !!(
25389
+ thing &&
25390
+ isFunction$1(thing.append) &&
25391
+ thing[toStringTag] === "FormData" &&
25392
+ thing[iterator]
25393
+ );
25315
25394
  }
25316
25395
 
25317
25396
  const toJSONObject = (obj) => {
25318
25397
  const stack = new Array(10);
25319
25398
 
25320
25399
  const visit = (source, i) => {
25321
-
25322
25400
  if (isObject(source)) {
25323
25401
  if (stack.indexOf(source) >= 0) {
25324
25402
  return;
@@ -25329,7 +25407,7 @@
25329
25407
  return source;
25330
25408
  }
25331
25409
 
25332
- if(!('toJSON' in source)) {
25410
+ if (!("toJSON" in source)) {
25333
25411
  stack[i] = source;
25334
25412
  const target = isArray(source) ? [] : {};
25335
25413
 
@@ -25350,10 +25428,13 @@
25350
25428
  return visit(obj, 0);
25351
25429
  };
25352
25430
 
25353
- const isAsyncFn = kindOfTest('AsyncFunction');
25431
+ const isAsyncFn = kindOfTest("AsyncFunction");
25354
25432
 
25355
25433
  const isThenable = (thing) =>
25356
- thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
25434
+ thing &&
25435
+ (isObject(thing) || isFunction$1(thing)) &&
25436
+ isFunction$1(thing.then) &&
25437
+ isFunction$1(thing.catch);
25357
25438
 
25358
25439
  // original code
25359
25440
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -25363,32 +25444,35 @@
25363
25444
  return setImmediate;
25364
25445
  }
25365
25446
 
25366
- return postMessageSupported ? ((token, callbacks) => {
25367
- _global.addEventListener("message", ({source, data}) => {
25368
- if (source === _global && data === token) {
25369
- callbacks.length && callbacks.shift()();
25370
- }
25371
- }, false);
25447
+ return postMessageSupported
25448
+ ? ((token, callbacks) => {
25449
+ _global.addEventListener(
25450
+ "message",
25451
+ ({ source, data }) => {
25452
+ if (source === _global && data === token) {
25453
+ callbacks.length && callbacks.shift()();
25454
+ }
25455
+ },
25456
+ false,
25457
+ );
25372
25458
 
25373
- return (cb) => {
25374
- callbacks.push(cb);
25375
- _global.postMessage(token, "*");
25376
- }
25377
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
25378
- })(
25379
- typeof setImmediate === 'function',
25380
- isFunction$1(_global.postMessage)
25381
- );
25459
+ return (cb) => {
25460
+ callbacks.push(cb);
25461
+ _global.postMessage(token, "*");
25462
+ };
25463
+ })(`axios@${Math.random()}`, [])
25464
+ : (cb) => setTimeout(cb);
25465
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
25382
25466
 
25383
- const asap = typeof queueMicrotask !== 'undefined' ?
25384
- queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
25467
+ const asap =
25468
+ typeof queueMicrotask !== "undefined"
25469
+ ? queueMicrotask.bind(_global)
25470
+ : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
25385
25471
 
25386
25472
  // *********************
25387
25473
 
25388
-
25389
25474
  const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
25390
25475
 
25391
-
25392
25476
  const utils$1 = {
25393
25477
  isArray,
25394
25478
  isArrayBuffer,
@@ -25446,113 +25530,78 @@
25446
25530
  isThenable,
25447
25531
  setImmediate: _setImmediate,
25448
25532
  asap,
25449
- isIterable
25533
+ isIterable,
25450
25534
  };
25451
25535
 
25452
- /**
25453
- * Create an Error with the specified message, config, error code, request and response.
25454
- *
25455
- * @param {string} message The error message.
25456
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
25457
- * @param {Object} [config] The config.
25458
- * @param {Object} [request] The request.
25459
- * @param {Object} [response] The response.
25460
- *
25461
- * @returns {Error} The created error.
25462
- */
25463
- function AxiosError$1(message, code, config, request, response) {
25464
- Error.call(this);
25536
+ class AxiosError$1 extends Error {
25537
+ static from(error, code, config, request, response, customProps) {
25538
+ const axiosError = new AxiosError$1(error.message, code || error.code, config, request, response);
25539
+ axiosError.cause = error;
25540
+ axiosError.name = error.name;
25541
+ customProps && Object.assign(axiosError, customProps);
25542
+ return axiosError;
25543
+ }
25465
25544
 
25466
- if (Error.captureStackTrace) {
25467
- Error.captureStackTrace(this, this.constructor);
25468
- } else {
25469
- this.stack = (new Error()).stack;
25470
- }
25545
+ /**
25546
+ * Create an Error with the specified message, config, error code, request and response.
25547
+ *
25548
+ * @param {string} message The error message.
25549
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
25550
+ * @param {Object} [config] The config.
25551
+ * @param {Object} [request] The request.
25552
+ * @param {Object} [response] The response.
25553
+ *
25554
+ * @returns {Error} The created error.
25555
+ */
25556
+ constructor(message, code, config, request, response) {
25557
+ super(message);
25558
+ this.name = 'AxiosError';
25559
+ this.isAxiosError = true;
25560
+ code && (this.code = code);
25561
+ config && (this.config = config);
25562
+ request && (this.request = request);
25563
+ if (response) {
25564
+ this.response = response;
25565
+ this.status = response.status;
25566
+ }
25567
+ }
25471
25568
 
25472
- this.message = message;
25473
- this.name = 'AxiosError';
25474
- code && (this.code = code);
25475
- config && (this.config = config);
25476
- request && (this.request = request);
25477
- if (response) {
25478
- this.response = response;
25479
- this.status = response.status ? response.status : null;
25480
- }
25569
+ toJSON() {
25570
+ return {
25571
+ // Standard
25572
+ message: this.message,
25573
+ name: this.name,
25574
+ // Microsoft
25575
+ description: this.description,
25576
+ number: this.number,
25577
+ // Mozilla
25578
+ fileName: this.fileName,
25579
+ lineNumber: this.lineNumber,
25580
+ columnNumber: this.columnNumber,
25581
+ stack: this.stack,
25582
+ // Axios
25583
+ config: utils$1.toJSONObject(this.config),
25584
+ code: this.code,
25585
+ status: this.status,
25586
+ };
25587
+ }
25481
25588
  }
25482
25589
 
25483
- utils$1.inherits(AxiosError$1, Error, {
25484
- toJSON: function toJSON() {
25485
- return {
25486
- // Standard
25487
- message: this.message,
25488
- name: this.name,
25489
- // Microsoft
25490
- description: this.description,
25491
- number: this.number,
25492
- // Mozilla
25493
- fileName: this.fileName,
25494
- lineNumber: this.lineNumber,
25495
- columnNumber: this.columnNumber,
25496
- stack: this.stack,
25497
- // Axios
25498
- config: utils$1.toJSONObject(this.config),
25499
- code: this.code,
25500
- status: this.status
25501
- };
25502
- }
25503
- });
25504
-
25505
- const prototype$1 = AxiosError$1.prototype;
25506
- const descriptors = {};
25507
-
25508
- [
25509
- 'ERR_BAD_OPTION_VALUE',
25510
- 'ERR_BAD_OPTION',
25511
- 'ECONNABORTED',
25512
- 'ETIMEDOUT',
25513
- 'ERR_NETWORK',
25514
- 'ERR_FR_TOO_MANY_REDIRECTS',
25515
- 'ERR_DEPRECATED',
25516
- 'ERR_BAD_RESPONSE',
25517
- 'ERR_BAD_REQUEST',
25518
- 'ERR_CANCELED',
25519
- 'ERR_NOT_SUPPORT',
25520
- 'ERR_INVALID_URL'
25521
- // eslint-disable-next-line func-names
25522
- ].forEach(code => {
25523
- descriptors[code] = {value: code};
25524
- });
25525
-
25526
- Object.defineProperties(AxiosError$1, descriptors);
25527
- Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
25528
-
25529
- // eslint-disable-next-line func-names
25530
- AxiosError$1.from = (error, code, config, request, response, customProps) => {
25531
- const axiosError = Object.create(prototype$1);
25590
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
25591
+ AxiosError$1.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
25592
+ AxiosError$1.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
25593
+ AxiosError$1.ECONNABORTED = 'ECONNABORTED';
25594
+ AxiosError$1.ETIMEDOUT = 'ETIMEDOUT';
25595
+ AxiosError$1.ERR_NETWORK = 'ERR_NETWORK';
25596
+ AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
25597
+ AxiosError$1.ERR_DEPRECATED = 'ERR_DEPRECATED';
25598
+ AxiosError$1.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
25599
+ AxiosError$1.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
25600
+ AxiosError$1.ERR_CANCELED = 'ERR_CANCELED';
25601
+ AxiosError$1.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
25602
+ AxiosError$1.ERR_INVALID_URL = 'ERR_INVALID_URL';
25532
25603
 
25533
- utils$1.toFlatObject(error, axiosError, function filter(obj) {
25534
- return obj !== Error.prototype;
25535
- }, prop => {
25536
- return prop !== 'isAxiosError';
25537
- });
25538
-
25539
- const msg = error && error.message ? error.message : 'Error';
25540
-
25541
- // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
25542
- const errCode = code == null && error ? error.code : code;
25543
- AxiosError$1.call(axiosError, msg, errCode, config, request, response);
25544
-
25545
- // Chain the original error on the standard field; non-enumerable to avoid JSON noise
25546
- if (error && axiosError.cause == null) {
25547
- Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
25548
- }
25549
-
25550
- axiosError.name = (error && error.name) || 'Error';
25551
-
25552
- customProps && Object.assign(axiosError, customProps);
25553
-
25554
- return axiosError;
25555
- };
25604
+ const AxiosError$2 = AxiosError$1;
25556
25605
 
25557
25606
  // eslint-disable-next-line strict
25558
25607
  const httpAdapter = null;
@@ -25677,7 +25726,7 @@
25677
25726
  }
25678
25727
 
25679
25728
  if (!useBlob && utils$1.isBlob(value)) {
25680
- throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
25729
+ throw new AxiosError$2('Blob is not supported. Use a Buffer instead.');
25681
25730
  }
25682
25731
 
25683
25732
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
@@ -25851,29 +25900,26 @@
25851
25900
  * @returns {string} The formatted url
25852
25901
  */
25853
25902
  function buildURL(url, params, options) {
25854
- /*eslint no-param-reassign:0*/
25855
25903
  if (!params) {
25856
25904
  return url;
25857
25905
  }
25858
-
25906
+
25859
25907
  const _encode = options && options.encode || encode;
25860
25908
 
25861
- if (utils$1.isFunction(options)) {
25862
- options = {
25863
- serialize: options
25864
- };
25865
- }
25909
+ const _options = utils$1.isFunction(options) ? {
25910
+ serialize: options
25911
+ } : options;
25866
25912
 
25867
- const serializeFn = options && options.serialize;
25913
+ const serializeFn = _options && _options.serialize;
25868
25914
 
25869
25915
  let serializedParams;
25870
25916
 
25871
25917
  if (serializeFn) {
25872
- serializedParams = serializeFn(params, options);
25918
+ serializedParams = serializeFn(params, _options);
25873
25919
  } else {
25874
25920
  serializedParams = utils$1.isURLSearchParams(params) ?
25875
25921
  params.toString() :
25876
- new AxiosURLSearchParams(params, options).toString(_encode);
25922
+ new AxiosURLSearchParams(params, _options).toString(_encode);
25877
25923
  }
25878
25924
 
25879
25925
  if (serializedParams) {
@@ -25898,6 +25944,7 @@
25898
25944
  *
25899
25945
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
25900
25946
  * @param {Function} rejected The function to handle `reject` for a `Promise`
25947
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
25901
25948
  *
25902
25949
  * @return {Number} An ID used to remove interceptor later
25903
25950
  */
@@ -25959,7 +26006,8 @@
25959
26006
  const transitionalDefaults = {
25960
26007
  silentJSONParsing: true,
25961
26008
  forcedJSONParsing: true,
25962
- clarifyTimeoutError: false
26009
+ clarifyTimeoutError: false,
26010
+ legacyInterceptorReqResOrdering: true
25963
26011
  };
25964
26012
 
25965
26013
  const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
@@ -26247,7 +26295,7 @@
26247
26295
  } catch (e) {
26248
26296
  if (strictJSONParsing) {
26249
26297
  if (e.name === 'SyntaxError') {
26250
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
26298
+ throw AxiosError$2.from(e, AxiosError$2.ERR_BAD_RESPONSE, this, null, this.response);
26251
26299
  }
26252
26300
  throw e;
26253
26301
  }
@@ -26681,24 +26729,24 @@
26681
26729
  return !!(value && value.__CANCEL__);
26682
26730
  }
26683
26731
 
26684
- /**
26685
- * A `CanceledError` is an object that is thrown when an operation is canceled.
26686
- *
26687
- * @param {string=} message The message.
26688
- * @param {Object=} config The config.
26689
- * @param {Object=} request The request.
26690
- *
26691
- * @returns {CanceledError} The created error.
26692
- */
26693
- function CanceledError$1(message, config, request) {
26694
- // eslint-disable-next-line no-eq-null,eqeqeq
26695
- AxiosError$1.call(this, message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
26696
- this.name = 'CanceledError';
26732
+ class CanceledError$1 extends AxiosError$2 {
26733
+ /**
26734
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
26735
+ *
26736
+ * @param {string=} message The message.
26737
+ * @param {Object=} config The config.
26738
+ * @param {Object=} request The request.
26739
+ *
26740
+ * @returns {CanceledError} The created error.
26741
+ */
26742
+ constructor(message, config, request) {
26743
+ super(message == null ? 'canceled' : message, AxiosError$2.ERR_CANCELED, config, request);
26744
+ this.name = 'CanceledError';
26745
+ this.__CANCEL__ = true;
26746
+ }
26697
26747
  }
26698
26748
 
26699
- utils$1.inherits(CanceledError$1, AxiosError$1, {
26700
- __CANCEL__: true
26701
- });
26749
+ const CanceledError$2 = CanceledError$1;
26702
26750
 
26703
26751
  /**
26704
26752
  * Resolve or reject a Promise based on response status.
@@ -26714,9 +26762,9 @@
26714
26762
  if (!response.status || !validateStatus || validateStatus(response.status)) {
26715
26763
  resolve(response);
26716
26764
  } else {
26717
- reject(new AxiosError$1(
26765
+ reject(new AxiosError$2(
26718
26766
  'Request failed with status code ' + response.status,
26719
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
26767
+ [AxiosError$2.ERR_BAD_REQUEST, AxiosError$2.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
26720
26768
  response.config,
26721
26769
  response.request,
26722
26770
  response
@@ -26939,6 +26987,10 @@
26939
26987
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
26940
26988
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
26941
26989
  // by any combination of letters, digits, plus, period, or hyphen.
26990
+ if (typeof url !== 'string') {
26991
+ return false;
26992
+ }
26993
+
26942
26994
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
26943
26995
  }
26944
26996
 
@@ -26974,7 +27026,8 @@
26974
27026
  return requestedURL;
26975
27027
  }
26976
27028
 
26977
- const headersToObject = (thing) => thing instanceof AxiosHeaders$2 ? { ...thing } : thing;
27029
+ const headersToObject = (thing) =>
27030
+ thing instanceof AxiosHeaders$2 ? { ...thing } : thing;
26978
27031
 
26979
27032
  /**
26980
27033
  * Config-specific merge-function which creates a new config-object
@@ -26992,7 +27045,7 @@
26992
27045
 
26993
27046
  function getMergedValue(target, source, prop, caseless) {
26994
27047
  if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
26995
- return utils$1.merge.call({caseless}, target, source);
27048
+ return utils$1.merge.call({ caseless }, target, source);
26996
27049
  } else if (utils$1.isPlainObject(source)) {
26997
27050
  return utils$1.merge({}, source);
26998
27051
  } else if (utils$1.isArray(source)) {
@@ -27001,7 +27054,6 @@
27001
27054
  return source;
27002
27055
  }
27003
27056
 
27004
- // eslint-disable-next-line consistent-return
27005
27057
  function mergeDeepProperties(a, b, prop, caseless) {
27006
27058
  if (!utils$1.isUndefined(b)) {
27007
27059
  return getMergedValue(a, b, prop, caseless);
@@ -27064,14 +27116,27 @@
27064
27116
  socketPath: defaultToConfig2,
27065
27117
  responseEncoding: defaultToConfig2,
27066
27118
  validateStatus: mergeDirectKeys,
27067
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
27119
+ headers: (a, b, prop) =>
27120
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
27068
27121
  };
27069
27122
 
27070
- utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
27071
- const merge = mergeMap[prop] || mergeDeepProperties;
27072
- const configValue = merge(config1[prop], config2[prop], prop);
27073
- (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
27074
- });
27123
+ utils$1.forEach(
27124
+ Object.keys({ ...config1, ...config2 }),
27125
+ function computeConfigValue(prop) {
27126
+ if (
27127
+ prop === "__proto__" ||
27128
+ prop === "constructor" ||
27129
+ prop === "prototype"
27130
+ )
27131
+ return;
27132
+ const merge = utils$1.hasOwnProp(mergeMap, prop)
27133
+ ? mergeMap[prop]
27134
+ : mergeDeepProperties;
27135
+ const configValue = merge(config1[prop], config2[prop], prop);
27136
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
27137
+ (config[prop] = configValue);
27138
+ },
27139
+ );
27075
27140
 
27076
27141
  return config;
27077
27142
  }
@@ -27216,7 +27281,7 @@
27216
27281
  return;
27217
27282
  }
27218
27283
 
27219
- reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
27284
+ reject(new AxiosError$2('Request aborted', AxiosError$2.ECONNABORTED, config, request));
27220
27285
 
27221
27286
  // Clean up request
27222
27287
  request = null;
@@ -27228,7 +27293,7 @@
27228
27293
  // (message may be empty; when present, surface it)
27229
27294
  // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
27230
27295
  const msg = event && event.message ? event.message : 'Network Error';
27231
- const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
27296
+ const err = new AxiosError$2(msg, AxiosError$2.ERR_NETWORK, config, request);
27232
27297
  // attach the underlying event for consumers who want details
27233
27298
  err.event = event || null;
27234
27299
  reject(err);
@@ -27242,9 +27307,9 @@
27242
27307
  if (_config.timeoutErrorMessage) {
27243
27308
  timeoutErrorMessage = _config.timeoutErrorMessage;
27244
27309
  }
27245
- reject(new AxiosError$1(
27310
+ reject(new AxiosError$2(
27246
27311
  timeoutErrorMessage,
27247
- transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
27312
+ transitional.clarifyTimeoutError ? AxiosError$2.ETIMEDOUT : AxiosError$2.ECONNABORTED,
27248
27313
  config,
27249
27314
  request));
27250
27315
 
@@ -27294,7 +27359,7 @@
27294
27359
  if (!request) {
27295
27360
  return;
27296
27361
  }
27297
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
27362
+ reject(!cancel || cancel.type ? new CanceledError$2(null, config, request) : cancel);
27298
27363
  request.abort();
27299
27364
  request = null;
27300
27365
  };
@@ -27308,7 +27373,7 @@
27308
27373
  const protocol = parseProtocol(_config.url);
27309
27374
 
27310
27375
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
27311
- reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
27376
+ reject(new AxiosError$2('Unsupported protocol ' + protocol + ':', AxiosError$2.ERR_BAD_REQUEST, config));
27312
27377
  return;
27313
27378
  }
27314
27379
 
@@ -27331,13 +27396,13 @@
27331
27396
  aborted = true;
27332
27397
  unsubscribe();
27333
27398
  const err = reason instanceof Error ? reason : this.reason;
27334
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
27399
+ controller.abort(err instanceof AxiosError$2 ? err : new CanceledError$2(err instanceof Error ? err.message : err));
27335
27400
  }
27336
27401
  };
27337
27402
 
27338
27403
  let timer = timeout && setTimeout(() => {
27339
27404
  timer = null;
27340
- onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
27405
+ onabort(new AxiosError$2(`timeout of ${timeout}ms exceeded`, AxiosError$2.ETIMEDOUT));
27341
27406
  }, timeout);
27342
27407
 
27343
27408
  const unsubscribe = () => {
@@ -27523,7 +27588,7 @@
27523
27588
  return method.call(res);
27524
27589
  }
27525
27590
 
27526
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
27591
+ throw new AxiosError$2(`Response type '${type}' is not supported`, AxiosError$2.ERR_NOT_SUPPORT, config);
27527
27592
  });
27528
27593
  });
27529
27594
  })());
@@ -27689,14 +27754,14 @@
27689
27754
 
27690
27755
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
27691
27756
  throw Object.assign(
27692
- new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
27757
+ new AxiosError$2('Network Error', AxiosError$2.ERR_NETWORK, config, request, err && err.response),
27693
27758
  {
27694
27759
  cause: err.cause || err
27695
27760
  }
27696
27761
  )
27697
27762
  }
27698
27763
 
27699
- throw AxiosError$1.from(err, err && err.code, config, request);
27764
+ throw AxiosError$2.from(err, err && err.code, config, request, err && err.response);
27700
27765
  }
27701
27766
  }
27702
27767
  };
@@ -27801,7 +27866,7 @@
27801
27866
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
27802
27867
 
27803
27868
  if (adapter === undefined) {
27804
- throw new AxiosError$1(`Unknown adapter '${id}'`);
27869
+ throw new AxiosError$2(`Unknown adapter '${id}'`);
27805
27870
  }
27806
27871
  }
27807
27872
 
@@ -27822,7 +27887,7 @@
27822
27887
  (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
27823
27888
  'as no adapter specified';
27824
27889
 
27825
- throw new AxiosError$1(
27890
+ throw new AxiosError$2(
27826
27891
  `There is no suitable adapter to dispatch the request ` + s,
27827
27892
  'ERR_NOT_SUPPORT'
27828
27893
  );
@@ -27861,7 +27926,7 @@
27861
27926
  }
27862
27927
 
27863
27928
  if (config.signal && config.signal.aborted) {
27864
- throw new CanceledError$1(null, config);
27929
+ throw new CanceledError$2(null, config);
27865
27930
  }
27866
27931
  }
27867
27932
 
@@ -27921,7 +27986,7 @@
27921
27986
  });
27922
27987
  }
27923
27988
 
27924
- const VERSION$1 = "1.13.2";
27989
+ const VERSION$1 = "1.13.5";
27925
27990
 
27926
27991
  const validators$1 = {};
27927
27992
 
@@ -27951,9 +28016,9 @@
27951
28016
  // eslint-disable-next-line func-names
27952
28017
  return (value, opt, opts) => {
27953
28018
  if (validator === false) {
27954
- throw new AxiosError$1(
28019
+ throw new AxiosError$2(
27955
28020
  formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
27956
- AxiosError$1.ERR_DEPRECATED
28021
+ AxiosError$2.ERR_DEPRECATED
27957
28022
  );
27958
28023
  }
27959
28024
 
@@ -27992,7 +28057,7 @@
27992
28057
 
27993
28058
  function assertOptions(options, schema, allowUnknown) {
27994
28059
  if (typeof options !== 'object') {
27995
- throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
28060
+ throw new AxiosError$2('options must be an object', AxiosError$2.ERR_BAD_OPTION_VALUE);
27996
28061
  }
27997
28062
  const keys = Object.keys(options);
27998
28063
  let i = keys.length;
@@ -28003,12 +28068,12 @@
28003
28068
  const value = options[opt];
28004
28069
  const result = value === undefined || validator(value, opt, options);
28005
28070
  if (result !== true) {
28006
- throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
28071
+ throw new AxiosError$2('option ' + opt + ' must be ' + result, AxiosError$2.ERR_BAD_OPTION_VALUE);
28007
28072
  }
28008
28073
  continue;
28009
28074
  }
28010
28075
  if (allowUnknown !== true) {
28011
- throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
28076
+ throw new AxiosError$2('Unknown option ' + opt, AxiosError$2.ERR_BAD_OPTION);
28012
28077
  }
28013
28078
  }
28014
28079
  }
@@ -28089,7 +28154,8 @@
28089
28154
  validator.assertOptions(transitional, {
28090
28155
  silentJSONParsing: validators.transitional(validators.boolean),
28091
28156
  forcedJSONParsing: validators.transitional(validators.boolean),
28092
- clarifyTimeoutError: validators.transitional(validators.boolean)
28157
+ clarifyTimeoutError: validators.transitional(validators.boolean),
28158
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
28093
28159
  }, false);
28094
28160
  }
28095
28161
 
@@ -28146,7 +28212,14 @@
28146
28212
 
28147
28213
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
28148
28214
 
28149
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
28215
+ const transitional = config.transitional || transitionalDefaults;
28216
+ const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
28217
+
28218
+ if (legacyInterceptorReqResOrdering) {
28219
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
28220
+ } else {
28221
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
28222
+ }
28150
28223
  });
28151
28224
 
28152
28225
  const responseInterceptorChain = [];
@@ -28301,7 +28374,7 @@
28301
28374
  return;
28302
28375
  }
28303
28376
 
28304
- token.reason = new CanceledError$1(message, config, request);
28377
+ token.reason = new CanceledError$2(message, config, request);
28305
28378
  resolvePromise(token.reason);
28306
28379
  });
28307
28380
  }
@@ -28385,7 +28458,7 @@
28385
28458
  *
28386
28459
  * ```js
28387
28460
  * function f(x, y, z) {}
28388
- * var args = [1, 2, 3];
28461
+ * const args = [1, 2, 3];
28389
28462
  * f.apply(null, args);
28390
28463
  * ```
28391
28464
  *
@@ -28526,14 +28599,14 @@
28526
28599
  axios$1.Axios = Axios$2;
28527
28600
 
28528
28601
  // Expose Cancel & CancelToken
28529
- axios$1.CanceledError = CanceledError$1;
28602
+ axios$1.CanceledError = CanceledError$2;
28530
28603
  axios$1.CancelToken = CancelToken$2;
28531
28604
  axios$1.isCancel = isCancel$1;
28532
28605
  axios$1.VERSION = VERSION$1;
28533
28606
  axios$1.toFormData = toFormData$1;
28534
28607
 
28535
28608
  // Expose AxiosError class
28536
- axios$1.AxiosError = AxiosError$1;
28609
+ axios$1.AxiosError = AxiosError$2;
28537
28610
 
28538
28611
  // alias for CanceledError for backward compatibility
28539
28612
  axios$1.Cancel = axios$1.CanceledError;
@@ -28933,7 +29006,7 @@
28933
29006
  const axiosGlobal = ((axios$1$1 === null || axios$1$1 === void 0 ? void 0 : axios$1$1.default) || axios$1$1);
28934
29007
  const axios = axiosGlobal.create();
28935
29008
  const DEFAULT_API_URI = 'https://api.getmembrane.com';
28936
- const DEFAULT_UI_URI = 'https://console.getmembrane.com';
29009
+ const DEFAULT_UI_URI = 'https://ui.getmembrane.com';
28937
29010
  const membraneClientOptionsSchema = object({
28938
29011
  token: string$1().nullish(),
28939
29012
  fetchToken: _function().nullish(),