@scalar/api-client 0.7.28 → 0.7.30

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,5 +1,17 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 0.7.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 5da1fc6: security: update axios from 1.5.0 to 1.6.1
8
+
9
+ ## 0.7.29
10
+
11
+ ### Patch Changes
12
+
13
+ - 7fb2302: chore: add findVariables helper
14
+
3
15
  ## 0.7.28
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Scalar API Client
2
2
 
3
- ![Version](https://img.shields.io/npm/v/%40scalar/api-client)
4
- ![Downloads](https://img.shields.io/npm/dm/%40scalar/api-client)
5
- ![License](https://img.shields.io/npm/l/%40scalar%2Fapi-client)
3
+ [![Version](https://img.shields.io/npm/v/%40scalar/api-client)](https://www.npmjs.com/package/@scalar/api-client)
4
+ [![Downloads](https://img.shields.io/npm/dm/%40scalar/api-client)](https://www.npmjs.com/package/@scalar/api-client)
5
+ [![License](https://img.shields.io/npm/l/%40scalar%2Fapi-client)](https://www.npmjs.com/package/@scalar/api-client)
6
6
  [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS)
7
7
 
8
8
  ## Installation
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Find all strings wrapped in {} or {{}} in value.
3
+ *
4
+ */
5
+ export declare const findVariables: (value: string) => string[];
6
+ //# sourceMappingURL=findVariables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findVariables.d.ts","sourceRoot":"","sources":["../../src/helpers/findVariables.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aAO1C,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './concatenateUrlAndPath';
2
2
  export * from './createPlaceholderRequest';
3
+ export * from './findVariables';
3
4
  export * from './isJsonString';
4
5
  export * from './mapFromArray';
5
6
  export * from './normalizePath';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
package/dist/index.js CHANGED
@@ -4015,6 +4015,11 @@ const concatenateUrlAndPath = (url, path) => {
4015
4015
  const pathWithoutSlash = path.startsWith("/") ? path.slice(1) : path;
4016
4016
  return [urlWithSlash, pathWithoutSlash].join("");
4017
4017
  };
4018
+ const findVariables = (value) => {
4019
+ var _a;
4020
+ const regex = new RegExp("(?<=\\{)\\s*\\w+\\s*(?=\\})", "g");
4021
+ return ((_a = value.match(regex)) == null ? void 0 : _a.map((variable) => variable.trim())) || [];
4022
+ };
4018
4023
  const isJsonString = (value) => {
4019
4024
  if (typeof value !== "string") {
4020
4025
  return false;
@@ -5212,7 +5217,7 @@ const toJSONObject = (obj) => {
5212
5217
  };
5213
5218
  const isAsyncFn = kindOfTest("AsyncFunction");
5214
5219
  const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
5215
- const utils = {
5220
+ const utils$1 = {
5216
5221
  isArray,
5217
5222
  isArrayBuffer,
5218
5223
  isBuffer,
@@ -5280,7 +5285,7 @@ function AxiosError(message, code, config, request, response) {
5280
5285
  request && (this.request = request);
5281
5286
  response && (this.response = response);
5282
5287
  }
5283
- utils.inherits(AxiosError, Error, {
5288
+ utils$1.inherits(AxiosError, Error, {
5284
5289
  toJSON: function toJSON() {
5285
5290
  return {
5286
5291
  // Standard
@@ -5295,7 +5300,7 @@ utils.inherits(AxiosError, Error, {
5295
5300
  columnNumber: this.columnNumber,
5296
5301
  stack: this.stack,
5297
5302
  // Axios
5298
- config: utils.toJSONObject(this.config),
5303
+ config: utils$1.toJSONObject(this.config),
5299
5304
  code: this.code,
5300
5305
  status: this.response && this.response.status ? this.response.status : null
5301
5306
  };
@@ -5324,7 +5329,7 @@ Object.defineProperties(AxiosError, descriptors);
5324
5329
  Object.defineProperty(prototype$1, "isAxiosError", { value: true });
5325
5330
  AxiosError.from = (error, code, config, request, response, customProps) => {
5326
5331
  const axiosError = Object.create(prototype$1);
5327
- utils.toFlatObject(error, axiosError, function filter2(obj) {
5332
+ utils$1.toFlatObject(error, axiosError, function filter2(obj) {
5328
5333
  return obj !== Error.prototype;
5329
5334
  }, (prop) => {
5330
5335
  return prop !== "isAxiosError";
@@ -5337,10 +5342,10 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
5337
5342
  };
5338
5343
  const httpAdapter = null;
5339
5344
  function isVisitable(thing) {
5340
- return utils.isPlainObject(thing) || utils.isArray(thing);
5345
+ return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
5341
5346
  }
5342
5347
  function removeBrackets(key) {
5343
- return utils.endsWith(key, "[]") ? key.slice(0, -2) : key;
5348
+ return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
5344
5349
  }
5345
5350
  function renderKey(path, key, dots) {
5346
5351
  if (!path)
@@ -5351,42 +5356,42 @@ function renderKey(path, key, dots) {
5351
5356
  }).join(dots ? "." : "");
5352
5357
  }
5353
5358
  function isFlatArray(arr) {
5354
- return utils.isArray(arr) && !arr.some(isVisitable);
5359
+ return utils$1.isArray(arr) && !arr.some(isVisitable);
5355
5360
  }
5356
- const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
5361
+ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
5357
5362
  return /^is[A-Z]/.test(prop);
5358
5363
  });
5359
5364
  function toFormData(obj, formData, options) {
5360
- if (!utils.isObject(obj)) {
5365
+ if (!utils$1.isObject(obj)) {
5361
5366
  throw new TypeError("target must be an object");
5362
5367
  }
5363
5368
  formData = formData || new FormData();
5364
- options = utils.toFlatObject(options, {
5369
+ options = utils$1.toFlatObject(options, {
5365
5370
  metaTokens: true,
5366
5371
  dots: false,
5367
5372
  indexes: false
5368
5373
  }, false, function defined(option, source) {
5369
- return !utils.isUndefined(source[option]);
5374
+ return !utils$1.isUndefined(source[option]);
5370
5375
  });
5371
5376
  const metaTokens = options.metaTokens;
5372
5377
  const visitor = options.visitor || defaultVisitor;
5373
5378
  const dots = options.dots;
5374
5379
  const indexes = options.indexes;
5375
5380
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
5376
- const useBlob = _Blob && utils.isSpecCompliantForm(formData);
5377
- if (!utils.isFunction(visitor)) {
5381
+ const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
5382
+ if (!utils$1.isFunction(visitor)) {
5378
5383
  throw new TypeError("visitor must be a function");
5379
5384
  }
5380
5385
  function convertValue(value) {
5381
5386
  if (value === null)
5382
5387
  return "";
5383
- if (utils.isDate(value)) {
5388
+ if (utils$1.isDate(value)) {
5384
5389
  return value.toISOString();
5385
5390
  }
5386
- if (!useBlob && utils.isBlob(value)) {
5391
+ if (!useBlob && utils$1.isBlob(value)) {
5387
5392
  throw new AxiosError("Blob is not supported. Use a Buffer instead.");
5388
5393
  }
5389
- if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
5394
+ if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
5390
5395
  return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
5391
5396
  }
5392
5397
  return value;
@@ -5394,13 +5399,13 @@ function toFormData(obj, formData, options) {
5394
5399
  function defaultVisitor(value, key, path) {
5395
5400
  let arr = value;
5396
5401
  if (value && !path && typeof value === "object") {
5397
- if (utils.endsWith(key, "{}")) {
5402
+ if (utils$1.endsWith(key, "{}")) {
5398
5403
  key = metaTokens ? key : key.slice(0, -2);
5399
5404
  value = JSON.stringify(value);
5400
- } else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, "[]")) && (arr = utils.toArray(value))) {
5405
+ } else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
5401
5406
  key = removeBrackets(key);
5402
5407
  arr.forEach(function each(el, index) {
5403
- !(utils.isUndefined(el) || el === null) && formData.append(
5408
+ !(utils$1.isUndefined(el) || el === null) && formData.append(
5404
5409
  // eslint-disable-next-line no-nested-ternary
5405
5410
  indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
5406
5411
  convertValue(el)
@@ -5422,17 +5427,17 @@ function toFormData(obj, formData, options) {
5422
5427
  isVisitable
5423
5428
  });
5424
5429
  function build(value, path) {
5425
- if (utils.isUndefined(value))
5430
+ if (utils$1.isUndefined(value))
5426
5431
  return;
5427
5432
  if (stack.indexOf(value) !== -1) {
5428
5433
  throw Error("Circular reference detected in " + path.join("."));
5429
5434
  }
5430
5435
  stack.push(value);
5431
- utils.forEach(value, function each(el, key) {
5432
- const result = !(utils.isUndefined(el) || el === null) && visitor.call(
5436
+ utils$1.forEach(value, function each(el, key) {
5437
+ const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
5433
5438
  formData,
5434
5439
  el,
5435
- utils.isString(key) ? key.trim() : key,
5440
+ utils$1.isString(key) ? key.trim() : key,
5436
5441
  path,
5437
5442
  exposedHelpers
5438
5443
  );
@@ -5442,7 +5447,7 @@ function toFormData(obj, formData, options) {
5442
5447
  });
5443
5448
  stack.pop();
5444
5449
  }
5445
- if (!utils.isObject(obj)) {
5450
+ if (!utils$1.isObject(obj)) {
5446
5451
  throw new TypeError("data must be an object");
5447
5452
  }
5448
5453
  build(obj);
@@ -5491,7 +5496,7 @@ function buildURL(url, params, options) {
5491
5496
  if (serializeFn) {
5492
5497
  serializedParams = serializeFn(params, options);
5493
5498
  } else {
5494
- serializedParams = utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
5499
+ serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
5495
5500
  }
5496
5501
  if (serializedParams) {
5497
5502
  const hashmarkIndex = url.indexOf("#");
@@ -5556,7 +5561,7 @@ class InterceptorManager {
5556
5561
  * @returns {void}
5557
5562
  */
5558
5563
  forEach(fn) {
5559
- utils.forEach(this.handlers, function forEachHandler(h2) {
5564
+ utils$1.forEach(this.handlers, function forEachHandler(h2) {
5560
5565
  if (h2 !== null) {
5561
5566
  fn(h2);
5562
5567
  }
@@ -5572,32 +5577,37 @@ const transitionalDefaults = {
5572
5577
  const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
5573
5578
  const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
5574
5579
  const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
5575
- const isStandardBrowserEnv = (() => {
5576
- let product;
5577
- if (typeof navigator !== "undefined" && ((product = navigator.product) === "ReactNative" || product === "NativeScript" || product === "NS")) {
5578
- return false;
5579
- }
5580
- return typeof window !== "undefined" && typeof document !== "undefined";
5581
- })();
5582
- const isStandardBrowserWebWorkerEnv = (() => {
5583
- return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
5584
- self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
5585
- })();
5586
- const platform = {
5580
+ const platform$1 = {
5587
5581
  isBrowser: true,
5588
5582
  classes: {
5589
5583
  URLSearchParams: URLSearchParams$1,
5590
5584
  FormData: FormData$1,
5591
5585
  Blob: Blob$1
5592
5586
  },
5593
- isStandardBrowserEnv,
5594
- isStandardBrowserWebWorkerEnv,
5595
5587
  protocols: ["http", "https", "file", "blob", "url", "data"]
5596
5588
  };
5589
+ const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
5590
+ const hasStandardBrowserEnv = ((product) => {
5591
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
5592
+ })(typeof navigator !== "undefined" && navigator.product);
5593
+ const hasStandardBrowserWebWorkerEnv = (() => {
5594
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
5595
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
5596
+ })();
5597
+ const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5598
+ __proto__: null,
5599
+ hasBrowserEnv,
5600
+ hasStandardBrowserEnv,
5601
+ hasStandardBrowserWebWorkerEnv
5602
+ }, Symbol.toStringTag, { value: "Module" }));
5603
+ const platform = {
5604
+ ...utils,
5605
+ ...platform$1
5606
+ };
5597
5607
  function toURLEncodedForm(data, options) {
5598
5608
  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
5599
5609
  visitor: function(value, key, path, helpers) {
5600
- if (platform.isNode && utils.isBuffer(value)) {
5610
+ if (platform.isNode && utils$1.isBuffer(value)) {
5601
5611
  this.append(key, value.toString("base64"));
5602
5612
  return false;
5603
5613
  }
@@ -5606,7 +5616,7 @@ function toURLEncodedForm(data, options) {
5606
5616
  }, options));
5607
5617
  }
5608
5618
  function parsePropPath(name) {
5609
- return utils.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
5619
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
5610
5620
  return match[0] === "[]" ? "" : match[1] || match[0];
5611
5621
  });
5612
5622
  }
@@ -5627,27 +5637,27 @@ function formDataToJSON(formData) {
5627
5637
  let name = path[index++];
5628
5638
  const isNumericKey = Number.isFinite(+name);
5629
5639
  const isLast = index >= path.length;
5630
- name = !name && utils.isArray(target) ? target.length : name;
5640
+ name = !name && utils$1.isArray(target) ? target.length : name;
5631
5641
  if (isLast) {
5632
- if (utils.hasOwnProp(target, name)) {
5642
+ if (utils$1.hasOwnProp(target, name)) {
5633
5643
  target[name] = [target[name], value];
5634
5644
  } else {
5635
5645
  target[name] = value;
5636
5646
  }
5637
5647
  return !isNumericKey;
5638
5648
  }
5639
- if (!target[name] || !utils.isObject(target[name])) {
5649
+ if (!target[name] || !utils$1.isObject(target[name])) {
5640
5650
  target[name] = [];
5641
5651
  }
5642
5652
  const result = buildPath(path, value, target[name], index);
5643
- if (result && utils.isArray(target[name])) {
5653
+ if (result && utils$1.isArray(target[name])) {
5644
5654
  target[name] = arrayToObject(target[name]);
5645
5655
  }
5646
5656
  return !isNumericKey;
5647
5657
  }
5648
- if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
5658
+ if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
5649
5659
  const obj = {};
5650
- utils.forEachEntry(formData, (name, value) => {
5660
+ utils$1.forEachEntry(formData, (name, value) => {
5651
5661
  buildPath(parsePropPath(name), value, obj, 0);
5652
5662
  });
5653
5663
  return obj;
@@ -5655,10 +5665,10 @@ function formDataToJSON(formData) {
5655
5665
  return null;
5656
5666
  }
5657
5667
  function stringifySafely(rawValue, parser, encoder) {
5658
- if (utils.isString(rawValue)) {
5668
+ if (utils$1.isString(rawValue)) {
5659
5669
  try {
5660
5670
  (parser || JSON.parse)(rawValue);
5661
- return utils.trim(rawValue);
5671
+ return utils$1.trim(rawValue);
5662
5672
  } catch (e2) {
5663
5673
  if (e2.name !== "SyntaxError") {
5664
5674
  throw e2;
@@ -5669,28 +5679,28 @@ function stringifySafely(rawValue, parser, encoder) {
5669
5679
  }
5670
5680
  const defaults = {
5671
5681
  transitional: transitionalDefaults,
5672
- adapter: platform.isNode ? "http" : "xhr",
5682
+ adapter: ["xhr", "http"],
5673
5683
  transformRequest: [function transformRequest(data, headers) {
5674
5684
  const contentType2 = headers.getContentType() || "";
5675
5685
  const hasJSONContentType = contentType2.indexOf("application/json") > -1;
5676
- const isObjectPayload = utils.isObject(data);
5677
- if (isObjectPayload && utils.isHTMLForm(data)) {
5686
+ const isObjectPayload = utils$1.isObject(data);
5687
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
5678
5688
  data = new FormData(data);
5679
5689
  }
5680
- const isFormData2 = utils.isFormData(data);
5690
+ const isFormData2 = utils$1.isFormData(data);
5681
5691
  if (isFormData2) {
5682
5692
  if (!hasJSONContentType) {
5683
5693
  return data;
5684
5694
  }
5685
5695
  return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
5686
5696
  }
5687
- if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
5697
+ if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
5688
5698
  return data;
5689
5699
  }
5690
- if (utils.isArrayBufferView(data)) {
5700
+ if (utils$1.isArrayBufferView(data)) {
5691
5701
  return data.buffer;
5692
5702
  }
5693
- if (utils.isURLSearchParams(data)) {
5703
+ if (utils$1.isURLSearchParams(data)) {
5694
5704
  headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
5695
5705
  return data.toString();
5696
5706
  }
@@ -5699,7 +5709,7 @@ const defaults = {
5699
5709
  if (contentType2.indexOf("application/x-www-form-urlencoded") > -1) {
5700
5710
  return toURLEncodedForm(data, this.formSerializer).toString();
5701
5711
  }
5702
- if ((isFileList2 = utils.isFileList(data)) || contentType2.indexOf("multipart/form-data") > -1) {
5712
+ if ((isFileList2 = utils$1.isFileList(data)) || contentType2.indexOf("multipart/form-data") > -1) {
5703
5713
  const _FormData = this.env && this.env.FormData;
5704
5714
  return toFormData(
5705
5715
  isFileList2 ? { "files[]": data } : data,
@@ -5718,7 +5728,7 @@ const defaults = {
5718
5728
  const transitional2 = this.transitional || defaults.transitional;
5719
5729
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
5720
5730
  const JSONRequested = this.responseType === "json";
5721
- if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
5731
+ if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
5722
5732
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
5723
5733
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
5724
5734
  try {
@@ -5757,11 +5767,11 @@ const defaults = {
5757
5767
  }
5758
5768
  }
5759
5769
  };
5760
- utils.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
5770
+ utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
5761
5771
  defaults.headers[method] = {};
5762
5772
  });
5763
5773
  const defaults$1 = defaults;
5764
- const ignoreDuplicateOf = utils.toObjectSet([
5774
+ const ignoreDuplicateOf = utils$1.toObjectSet([
5765
5775
  "age",
5766
5776
  "authorization",
5767
5777
  "content-length",
@@ -5812,7 +5822,7 @@ function normalizeValue(value) {
5812
5822
  if (value === false || value == null) {
5813
5823
  return value;
5814
5824
  }
5815
- return utils.isArray(value) ? value.map(normalizeValue) : String(value);
5825
+ return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
5816
5826
  }
5817
5827
  function parseTokens(str) {
5818
5828
  const tokens = /* @__PURE__ */ Object.create(null);
@@ -5825,18 +5835,18 @@ function parseTokens(str) {
5825
5835
  }
5826
5836
  const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
5827
5837
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
5828
- if (utils.isFunction(filter2)) {
5838
+ if (utils$1.isFunction(filter2)) {
5829
5839
  return filter2.call(this, value, header);
5830
5840
  }
5831
5841
  if (isHeaderNameFilter) {
5832
5842
  value = header;
5833
5843
  }
5834
- if (!utils.isString(value))
5844
+ if (!utils$1.isString(value))
5835
5845
  return;
5836
- if (utils.isString(filter2)) {
5846
+ if (utils$1.isString(filter2)) {
5837
5847
  return value.indexOf(filter2) !== -1;
5838
5848
  }
5839
- if (utils.isRegExp(filter2)) {
5849
+ if (utils$1.isRegExp(filter2)) {
5840
5850
  return filter2.test(value);
5841
5851
  }
5842
5852
  }
@@ -5846,7 +5856,7 @@ function formatHeader(header) {
5846
5856
  });
5847
5857
  }
5848
5858
  function buildAccessors(obj, header) {
5849
- const accessorName = utils.toCamelCase(" " + header);
5859
+ const accessorName = utils$1.toCamelCase(" " + header);
5850
5860
  ["get", "set", "has"].forEach((methodName) => {
5851
5861
  Object.defineProperty(obj, methodName + accessorName, {
5852
5862
  value: function(arg1, arg2, arg3) {
@@ -5867,15 +5877,15 @@ class AxiosHeaders {
5867
5877
  if (!lHeader) {
5868
5878
  throw new Error("header name must be a non-empty string");
5869
5879
  }
5870
- const key = utils.findKey(self2, lHeader);
5880
+ const key = utils$1.findKey(self2, lHeader);
5871
5881
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
5872
5882
  self2[key || _header] = normalizeValue(_value);
5873
5883
  }
5874
5884
  }
5875
- const setHeaders = (headers, _rewrite) => utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
5876
- if (utils.isPlainObject(header) || header instanceof this.constructor) {
5885
+ const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
5886
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
5877
5887
  setHeaders(header, valueOrRewrite);
5878
- } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
5888
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
5879
5889
  setHeaders(parseHeaders(header), valueOrRewrite);
5880
5890
  } else {
5881
5891
  header != null && setHeader(valueOrRewrite, header, rewrite);
@@ -5885,7 +5895,7 @@ class AxiosHeaders {
5885
5895
  get(header, parser) {
5886
5896
  header = normalizeHeader(header);
5887
5897
  if (header) {
5888
- const key = utils.findKey(this, header);
5898
+ const key = utils$1.findKey(this, header);
5889
5899
  if (key) {
5890
5900
  const value = this[key];
5891
5901
  if (!parser) {
@@ -5894,10 +5904,10 @@ class AxiosHeaders {
5894
5904
  if (parser === true) {
5895
5905
  return parseTokens(value);
5896
5906
  }
5897
- if (utils.isFunction(parser)) {
5907
+ if (utils$1.isFunction(parser)) {
5898
5908
  return parser.call(this, value, key);
5899
5909
  }
5900
- if (utils.isRegExp(parser)) {
5910
+ if (utils$1.isRegExp(parser)) {
5901
5911
  return parser.exec(value);
5902
5912
  }
5903
5913
  throw new TypeError("parser must be boolean|regexp|function");
@@ -5907,7 +5917,7 @@ class AxiosHeaders {
5907
5917
  has(header, matcher) {
5908
5918
  header = normalizeHeader(header);
5909
5919
  if (header) {
5910
- const key = utils.findKey(this, header);
5920
+ const key = utils$1.findKey(this, header);
5911
5921
  return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
5912
5922
  }
5913
5923
  return false;
@@ -5918,14 +5928,14 @@ class AxiosHeaders {
5918
5928
  function deleteHeader(_header) {
5919
5929
  _header = normalizeHeader(_header);
5920
5930
  if (_header) {
5921
- const key = utils.findKey(self2, _header);
5931
+ const key = utils$1.findKey(self2, _header);
5922
5932
  if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
5923
5933
  delete self2[key];
5924
5934
  deleted = true;
5925
5935
  }
5926
5936
  }
5927
5937
  }
5928
- if (utils.isArray(header)) {
5938
+ if (utils$1.isArray(header)) {
5929
5939
  header.forEach(deleteHeader);
5930
5940
  } else {
5931
5941
  deleteHeader(header);
@@ -5948,8 +5958,8 @@ class AxiosHeaders {
5948
5958
  normalize(format4) {
5949
5959
  const self2 = this;
5950
5960
  const headers = {};
5951
- utils.forEach(this, (value, header) => {
5952
- const key = utils.findKey(headers, header);
5961
+ utils$1.forEach(this, (value, header) => {
5962
+ const key = utils$1.findKey(headers, header);
5953
5963
  if (key) {
5954
5964
  self2[key] = normalizeValue(value);
5955
5965
  delete self2[header];
@@ -5969,8 +5979,8 @@ class AxiosHeaders {
5969
5979
  }
5970
5980
  toJSON(asStrings) {
5971
5981
  const obj = /* @__PURE__ */ Object.create(null);
5972
- utils.forEach(this, (value, header) => {
5973
- value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(", ") : value);
5982
+ utils$1.forEach(this, (value, header) => {
5983
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
5974
5984
  });
5975
5985
  return obj;
5976
5986
  }
@@ -6004,12 +6014,12 @@ class AxiosHeaders {
6004
6014
  accessors[lHeader] = true;
6005
6015
  }
6006
6016
  }
6007
- utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
6017
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
6008
6018
  return this;
6009
6019
  }
6010
6020
  }
6011
6021
  AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
6012
- utils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
6022
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
6013
6023
  let mapped = key[0].toUpperCase() + key.slice(1);
6014
6024
  return {
6015
6025
  get: () => value,
@@ -6018,14 +6028,14 @@ utils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
6018
6028
  }
6019
6029
  };
6020
6030
  });
6021
- utils.freezeMethods(AxiosHeaders);
6031
+ utils$1.freezeMethods(AxiosHeaders);
6022
6032
  const AxiosHeaders$1 = AxiosHeaders;
6023
6033
  function transformData(fns, response) {
6024
6034
  const config = this || defaults$1;
6025
6035
  const context = response || config;
6026
6036
  const headers = AxiosHeaders$1.from(context.headers);
6027
6037
  let data = context.data;
6028
- utils.forEach(fns, function transform(fn) {
6038
+ utils$1.forEach(fns, function transform(fn) {
6029
6039
  data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
6030
6040
  });
6031
6041
  headers.normalize();
@@ -6038,7 +6048,7 @@ function CanceledError(message, config, request) {
6038
6048
  AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
6039
6049
  this.name = "CanceledError";
6040
6050
  }
6041
- utils.inherits(CanceledError, AxiosError, {
6051
+ utils$1.inherits(CanceledError, AxiosError, {
6042
6052
  __CANCEL__: true
6043
6053
  });
6044
6054
  function settle(resolve, reject, response) {
@@ -6055,20 +6065,20 @@ function settle(resolve, reject, response) {
6055
6065
  ));
6056
6066
  }
6057
6067
  }
6058
- const cookies = platform.isStandardBrowserEnv ? (
6068
+ const cookies = platform.hasStandardBrowserEnv ? (
6059
6069
  // Standard browser envs support document.cookie
6060
6070
  function standardBrowserEnv() {
6061
6071
  return {
6062
6072
  write: function write(name, value, expires, path, domain, secure) {
6063
6073
  const cookie = [];
6064
6074
  cookie.push(name + "=" + encodeURIComponent(value));
6065
- if (utils.isNumber(expires)) {
6075
+ if (utils$1.isNumber(expires)) {
6066
6076
  cookie.push("expires=" + new Date(expires).toGMTString());
6067
6077
  }
6068
- if (utils.isString(path)) {
6078
+ if (utils$1.isString(path)) {
6069
6079
  cookie.push("path=" + path);
6070
6080
  }
6071
- if (utils.isString(domain)) {
6081
+ if (utils$1.isString(domain)) {
6072
6082
  cookie.push("domain=" + domain);
6073
6083
  }
6074
6084
  if (secure === true) {
@@ -6111,7 +6121,7 @@ function buildFullPath(baseURL, requestedURL) {
6111
6121
  }
6112
6122
  return requestedURL;
6113
6123
  }
6114
- const isURLSameOrigin = platform.isStandardBrowserEnv ? (
6124
+ const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
6115
6125
  // Standard browser envs have full support of the APIs needed to test
6116
6126
  // whether the request URL is of the same origin as current location.
6117
6127
  function standardBrowserEnv2() {
@@ -6138,7 +6148,7 @@ const isURLSameOrigin = platform.isStandardBrowserEnv ? (
6138
6148
  }
6139
6149
  originURL = resolveURL(window.location.href);
6140
6150
  return function isURLSameOrigin2(requestURL) {
6141
- const parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
6151
+ const parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
6142
6152
  return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
6143
6153
  };
6144
6154
  }()
@@ -6225,11 +6235,13 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
6225
6235
  config.signal.removeEventListener("abort", onCanceled);
6226
6236
  }
6227
6237
  }
6228
- if (utils.isFormData(requestData)) {
6229
- if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {
6238
+ let contentType2;
6239
+ if (utils$1.isFormData(requestData)) {
6240
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
6230
6241
  requestHeaders.setContentType(false);
6231
- } else {
6232
- requestHeaders.setContentType("multipart/form-data;", false);
6242
+ } else if ((contentType2 = requestHeaders.getContentType()) !== false) {
6243
+ const [type, ...tokens] = contentType2 ? contentType2.split(";").map((token) => token.trim()).filter(Boolean) : [];
6244
+ requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
6233
6245
  }
6234
6246
  }
6235
6247
  let request = new XMLHttpRequest();
@@ -6304,19 +6316,19 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
6304
6316
  ));
6305
6317
  request = null;
6306
6318
  };
6307
- if (platform.isStandardBrowserEnv) {
6308
- const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
6319
+ if (platform.hasStandardBrowserEnv) {
6320
+ const xsrfValue = isURLSameOrigin(fullPath) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
6309
6321
  if (xsrfValue) {
6310
6322
  requestHeaders.set(config.xsrfHeaderName, xsrfValue);
6311
6323
  }
6312
6324
  }
6313
6325
  requestData === void 0 && requestHeaders.setContentType(null);
6314
6326
  if ("setRequestHeader" in request) {
6315
- utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
6327
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
6316
6328
  request.setRequestHeader(key, val);
6317
6329
  });
6318
6330
  }
6319
- if (!utils.isUndefined(config.withCredentials)) {
6331
+ if (!utils$1.isUndefined(config.withCredentials)) {
6320
6332
  request.withCredentials = !!config.withCredentials;
6321
6333
  }
6322
6334
  if (responseType && responseType !== "json") {
@@ -6354,7 +6366,7 @@ const knownAdapters = {
6354
6366
  http: httpAdapter,
6355
6367
  xhr: xhrAdapter
6356
6368
  };
6357
- utils.forEach(knownAdapters, (fn, value) => {
6369
+ utils$1.forEach(knownAdapters, (fn, value) => {
6358
6370
  if (fn) {
6359
6371
  try {
6360
6372
  Object.defineProperty(fn, "name", { value });
@@ -6363,31 +6375,39 @@ utils.forEach(knownAdapters, (fn, value) => {
6363
6375
  Object.defineProperty(fn, "adapterName", { value });
6364
6376
  }
6365
6377
  });
6378
+ const renderReason = (reason) => `- ${reason}`;
6379
+ const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
6366
6380
  const adapters = {
6367
6381
  getAdapter: (adapters2) => {
6368
- adapters2 = utils.isArray(adapters2) ? adapters2 : [adapters2];
6382
+ adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
6369
6383
  const { length } = adapters2;
6370
6384
  let nameOrAdapter;
6371
6385
  let adapter;
6386
+ const rejectedReasons = {};
6372
6387
  for (let i2 = 0; i2 < length; i2++) {
6373
6388
  nameOrAdapter = adapters2[i2];
6374
- if (adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
6389
+ let id;
6390
+ adapter = nameOrAdapter;
6391
+ if (!isResolvedHandle(nameOrAdapter)) {
6392
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
6393
+ if (adapter === void 0) {
6394
+ throw new AxiosError(`Unknown adapter '${id}'`);
6395
+ }
6396
+ }
6397
+ if (adapter) {
6375
6398
  break;
6376
6399
  }
6400
+ rejectedReasons[id || "#" + i2] = adapter;
6377
6401
  }
6378
6402
  if (!adapter) {
6379
- if (adapter === false) {
6380
- throw new AxiosError(
6381
- `Adapter ${nameOrAdapter} is not supported by the environment`,
6382
- "ERR_NOT_SUPPORT"
6383
- );
6384
- }
6385
- throw new Error(
6386
- utils.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
6403
+ const reasons = Object.entries(rejectedReasons).map(
6404
+ ([id, state2]) => `adapter ${id} ` + (state2 === false ? "is not supported by the environment" : "is not available in the build")
6405
+ );
6406
+ let s2 = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
6407
+ throw new AxiosError(
6408
+ `There is no suitable adapter to dispatch the request ` + s2,
6409
+ "ERR_NOT_SUPPORT"
6387
6410
  );
6388
- }
6389
- if (!utils.isFunction(adapter)) {
6390
- throw new TypeError("adapter is not a function");
6391
6411
  }
6392
6412
  return adapter;
6393
6413
  },
@@ -6441,31 +6461,31 @@ function mergeConfig(config1, config2) {
6441
6461
  config2 = config2 || {};
6442
6462
  const config = {};
6443
6463
  function getMergedValue(target, source, caseless) {
6444
- if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
6445
- return utils.merge.call({ caseless }, target, source);
6446
- } else if (utils.isPlainObject(source)) {
6447
- return utils.merge({}, source);
6448
- } else if (utils.isArray(source)) {
6464
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
6465
+ return utils$1.merge.call({ caseless }, target, source);
6466
+ } else if (utils$1.isPlainObject(source)) {
6467
+ return utils$1.merge({}, source);
6468
+ } else if (utils$1.isArray(source)) {
6449
6469
  return source.slice();
6450
6470
  }
6451
6471
  return source;
6452
6472
  }
6453
6473
  function mergeDeepProperties(a2, b2, caseless) {
6454
- if (!utils.isUndefined(b2)) {
6474
+ if (!utils$1.isUndefined(b2)) {
6455
6475
  return getMergedValue(a2, b2, caseless);
6456
- } else if (!utils.isUndefined(a2)) {
6476
+ } else if (!utils$1.isUndefined(a2)) {
6457
6477
  return getMergedValue(void 0, a2, caseless);
6458
6478
  }
6459
6479
  }
6460
6480
  function valueFromConfig2(a2, b2) {
6461
- if (!utils.isUndefined(b2)) {
6481
+ if (!utils$1.isUndefined(b2)) {
6462
6482
  return getMergedValue(void 0, b2);
6463
6483
  }
6464
6484
  }
6465
6485
  function defaultToConfig2(a2, b2) {
6466
- if (!utils.isUndefined(b2)) {
6486
+ if (!utils$1.isUndefined(b2)) {
6467
6487
  return getMergedValue(void 0, b2);
6468
- } else if (!utils.isUndefined(a2)) {
6488
+ } else if (!utils$1.isUndefined(a2)) {
6469
6489
  return getMergedValue(void 0, a2);
6470
6490
  }
6471
6491
  }
@@ -6506,14 +6526,14 @@ function mergeConfig(config1, config2) {
6506
6526
  validateStatus: mergeDirectKeys,
6507
6527
  headers: (a2, b2) => mergeDeepProperties(headersToObject(a2), headersToObject(b2), true)
6508
6528
  };
6509
- utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
6529
+ utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
6510
6530
  const merge2 = mergeMap[prop] || mergeDeepProperties;
6511
6531
  const configValue = merge2(config1[prop], config2[prop], prop);
6512
- utils.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
6532
+ utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
6513
6533
  });
6514
6534
  return config;
6515
6535
  }
6516
- const VERSION = "1.5.0";
6536
+ const VERSION = "1.6.1";
6517
6537
  const validators$1 = {};
6518
6538
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i2) => {
6519
6539
  validators$1[type] = function validator2(thing) {
@@ -6604,7 +6624,7 @@ class Axios {
6604
6624
  }, false);
6605
6625
  }
6606
6626
  if (paramsSerializer != null) {
6607
- if (utils.isFunction(paramsSerializer)) {
6627
+ if (utils$1.isFunction(paramsSerializer)) {
6608
6628
  config.paramsSerializer = {
6609
6629
  serialize: paramsSerializer
6610
6630
  };
@@ -6616,11 +6636,11 @@ class Axios {
6616
6636
  }
6617
6637
  }
6618
6638
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
6619
- let contextHeaders = headers && utils.merge(
6639
+ let contextHeaders = headers && utils$1.merge(
6620
6640
  headers.common,
6621
6641
  headers[config.method]
6622
6642
  );
6623
- headers && utils.forEach(
6643
+ headers && utils$1.forEach(
6624
6644
  ["delete", "get", "head", "post", "put", "patch", "common"],
6625
6645
  (method) => {
6626
6646
  delete headers[method];
@@ -6685,7 +6705,7 @@ class Axios {
6685
6705
  return buildURL(fullPath, config.params, config.paramsSerializer);
6686
6706
  }
6687
6707
  }
6688
- utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
6708
+ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
6689
6709
  Axios.prototype[method] = function(url, config) {
6690
6710
  return this.request(mergeConfig(config || {}, {
6691
6711
  method,
@@ -6694,7 +6714,7 @@ utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData
6694
6714
  }));
6695
6715
  };
6696
6716
  });
6697
- utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
6717
+ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
6698
6718
  function generateHTTPMethod(isForm) {
6699
6719
  return function httpMethod(url, data, config) {
6700
6720
  return this.request(mergeConfig(config || {}, {
@@ -6805,7 +6825,7 @@ function spread(callback) {
6805
6825
  };
6806
6826
  }
6807
6827
  function isAxiosError(payload) {
6808
- return utils.isObject(payload) && payload.isAxiosError === true;
6828
+ return utils$1.isObject(payload) && payload.isAxiosError === true;
6809
6829
  }
6810
6830
  const HttpStatusCode = {
6811
6831
  Continue: 100,
@@ -6879,8 +6899,8 @@ const HttpStatusCode$1 = HttpStatusCode;
6879
6899
  function createInstance(defaultConfig) {
6880
6900
  const context = new Axios$1(defaultConfig);
6881
6901
  const instance = bind(Axios$1.prototype.request, context);
6882
- utils.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
6883
- utils.extend(instance, context, null, { allOwnKeys: true });
6902
+ utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
6903
+ utils$1.extend(instance, context, null, { allOwnKeys: true });
6884
6904
  instance.create = function create(instanceConfig) {
6885
6905
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
6886
6906
  };
@@ -6902,7 +6922,7 @@ axios.spread = spread;
6902
6922
  axios.isAxiosError = isAxiosError;
6903
6923
  axios.mergeConfig = mergeConfig;
6904
6924
  axios.AxiosHeaders = AxiosHeaders$1;
6905
- axios.formToJSON = (thing) => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
6925
+ axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
6906
6926
  axios.getAdapter = adapters.getAdapter;
6907
6927
  axios.HttpStatusCode = HttpStatusCode$1;
6908
6928
  axios.default = axios;
@@ -9010,6 +9030,7 @@ export {
9010
9030
  concatenateUrlAndPath,
9011
9031
  createEmptyAuthState,
9012
9032
  createPlaceholderRequest,
9033
+ findVariables,
9013
9034
  httpHeaders,
9014
9035
  httpStatusCodes,
9015
9036
  isJsonString,
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@scalar/api-client",
3
3
  "description": "the open source API testing client",
4
- "version": "0.7.28",
4
+ "version": "0.7.30",
5
5
  "author": "Scalar (https://github.com/scalar)",
6
6
  "bugs": "https://github.com/scalar/scalar/issues/new",
7
7
  "dependencies": {
8
8
  "@headlessui/vue": "1.7.16",
9
9
  "@vueuse/core": "10.4.1",
10
- "axios": "1.5.0",
10
+ "axios": "1.6.1",
11
11
  "content-type": "1.0.5",
12
12
  "javascript-time-ago": "2.5.9",
13
13
  "nanoid": "5.0.1",
14
14
  "pretty-bytes": "6.1.1",
15
15
  "pretty-ms": "8.0.0",
16
- "@scalar/themes": "0.4.0",
17
16
  "@scalar/use-codemirror": "0.7.12",
17
+ "@scalar/use-modal": "0.1.6",
18
18
  "@scalar/use-keyboard-event": "0.5.3",
19
- "@scalar/use-modal": "0.1.6"
19
+ "@scalar/themes": "0.4.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@vitejs/plugin-vue": "4.3.4",
@@ -26,7 +26,7 @@
26
26
  "vite-plugin-css-injected-by-js": "3.3.0",
27
27
  "vitest": "0.34.4",
28
28
  "vue-tsc": "1.8.13",
29
- "@scalar/api-client-proxy": "0.5.7",
29
+ "@scalar/api-client-proxy": "0.5.8",
30
30
  "@scalar/echo-server": "0.5.3"
31
31
  },
32
32
  "engines": {