@rebilly/instruments 9.64.1 → 9.64.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [9.64.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.64.0...instruments/core-v9.64.1) (2024-07-05)
1
+ ## [9.64.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.64.1...instruments/core-v9.64.2) (2024-07-08)
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ function makeMap(str, expectsLowerCase) {
4
4
  for (let i = 0; i < list.length; i++) {
5
5
  map[list[i]] = true;
6
6
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
7
+ return (val) => !!map[val];
8
8
  }
9
9
  const hasOwnProperty$d = Object.prototype.hasOwnProperty;
10
10
  const hasOwn = (val, key) => hasOwnProperty$d.call(val, key);
@@ -4246,7 +4246,6 @@ const defaults$1 = {
4246
4246
  utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
4247
4247
  defaults$1.headers[method] = {};
4248
4248
  });
4249
- const defaults$2 = defaults$1;
4250
4249
  const ignoreDuplicateOf = utils$1.toObjectSet([
4251
4250
  "age",
4252
4251
  "authorization",
@@ -4508,11 +4507,10 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
4508
4507
  };
4509
4508
  });
4510
4509
  utils$1.freezeMethods(AxiosHeaders);
4511
- const AxiosHeaders$1 = AxiosHeaders;
4512
4510
  function transformData(fns, response) {
4513
- const config = this || defaults$2;
4511
+ const config = this || defaults$1;
4514
4512
  const context = response || config;
4515
- const headers = AxiosHeaders$1.from(context.headers);
4513
+ const headers = AxiosHeaders.from(context.headers);
4516
4514
  let data = context.data;
4517
4515
  utils$1.forEach(fns, function transform(fn) {
4518
4516
  data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
@@ -4711,7 +4709,7 @@ function buildFullPath(baseURL, requestedURL) {
4711
4709
  }
4712
4710
  return requestedURL;
4713
4711
  }
4714
- const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
4712
+ const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
4715
4713
  function mergeConfig(config1, config2) {
4716
4714
  config2 = config2 || {};
4717
4715
  const config = {};
@@ -4792,7 +4790,7 @@ function mergeConfig(config1, config2) {
4792
4790
  const resolveConfig = (config) => {
4793
4791
  const newConfig = mergeConfig({}, config);
4794
4792
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
4795
- newConfig.headers = headers = AxiosHeaders$1.from(headers);
4793
+ newConfig.headers = headers = AxiosHeaders.from(headers);
4796
4794
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
4797
4795
  if (auth) {
4798
4796
  headers.set(
@@ -4825,7 +4823,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
4825
4823
  return new Promise(function dispatchXhrRequest(resolve2, reject) {
4826
4824
  const _config = resolveConfig(config);
4827
4825
  let requestData = _config.data;
4828
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
4826
+ const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
4829
4827
  let { responseType } = _config;
4830
4828
  let onCanceled;
4831
4829
  function done() {
@@ -4843,7 +4841,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
4843
4841
  if (!request) {
4844
4842
  return;
4845
4843
  }
4846
- const responseHeaders = AxiosHeaders$1.from(
4844
+ const responseHeaders = AxiosHeaders.from(
4847
4845
  "getAllResponseHeaders" in request && request.getAllResponseHeaders()
4848
4846
  );
4849
4847
  const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
@@ -5159,7 +5157,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
5159
5157
  return await new Promise((resolve2, reject) => {
5160
5158
  settle(resolve2, reject, {
5161
5159
  data: responseData,
5162
- headers: AxiosHeaders$1.from(response.headers),
5160
+ headers: AxiosHeaders.from(response.headers),
5163
5161
  status: response.status,
5164
5162
  statusText: response.statusText,
5165
5163
  config,
@@ -5241,7 +5239,7 @@ function throwIfCancellationRequested(config) {
5241
5239
  }
5242
5240
  function dispatchRequest(config) {
5243
5241
  throwIfCancellationRequested(config);
5244
- config.headers = AxiosHeaders$1.from(config.headers);
5242
+ config.headers = AxiosHeaders.from(config.headers);
5245
5243
  config.data = transformData.call(
5246
5244
  config,
5247
5245
  config.transformRequest
@@ -5249,7 +5247,7 @@ function dispatchRequest(config) {
5249
5247
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
5250
5248
  config.headers.setContentType("application/x-www-form-urlencoded", false);
5251
5249
  }
5252
- const adapter = adapters.getAdapter(config.adapter || defaults$2.adapter);
5250
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
5253
5251
  return adapter(config).then(function onAdapterResolution(response) {
5254
5252
  throwIfCancellationRequested(config);
5255
5253
  response.data = transformData.call(
@@ -5257,7 +5255,7 @@ function dispatchRequest(config) {
5257
5255
  config.transformResponse,
5258
5256
  response
5259
5257
  );
5260
- response.headers = AxiosHeaders$1.from(response.headers);
5258
+ response.headers = AxiosHeaders.from(response.headers);
5261
5259
  return response;
5262
5260
  }, function onAdapterRejection(reason) {
5263
5261
  if (!isCancel(reason)) {
@@ -5268,7 +5266,7 @@ function dispatchRequest(config) {
5268
5266
  config.transformResponse,
5269
5267
  reason.response
5270
5268
  );
5271
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
5269
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
5272
5270
  }
5273
5271
  }
5274
5272
  return Promise.reject(reason);
@@ -5407,7 +5405,7 @@ class Axios {
5407
5405
  delete headers[method];
5408
5406
  }
5409
5407
  );
5410
- config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
5408
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
5411
5409
  const requestInterceptorChain = [];
5412
5410
  let synchronousRequestInterceptors = true;
5413
5411
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
@@ -5491,7 +5489,6 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
5491
5489
  Axios.prototype[method] = generateHTTPMethod();
5492
5490
  Axios.prototype[method + "Form"] = generateHTTPMethod(true);
5493
5491
  });
5494
- const Axios$1 = Axios;
5495
5492
  class CancelToken {
5496
5493
  constructor(executor) {
5497
5494
  if (typeof executor !== "function") {
@@ -5578,7 +5575,6 @@ class CancelToken {
5578
5575
  };
5579
5576
  }
5580
5577
  }
5581
- const CancelToken$1 = CancelToken;
5582
5578
  function spread(callback) {
5583
5579
  return function wrap(arr) {
5584
5580
  return callback.apply(null, arr);
@@ -5655,21 +5651,20 @@ const HttpStatusCode = {
5655
5651
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
5656
5652
  HttpStatusCode[value] = key;
5657
5653
  });
5658
- const HttpStatusCode$1 = HttpStatusCode;
5659
5654
  function createInstance(defaultConfig) {
5660
- const context = new Axios$1(defaultConfig);
5661
- const instance = bind(Axios$1.prototype.request, context);
5662
- utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
5655
+ const context = new Axios(defaultConfig);
5656
+ const instance = bind(Axios.prototype.request, context);
5657
+ utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
5663
5658
  utils$1.extend(instance, context, null, { allOwnKeys: true });
5664
5659
  instance.create = function create(instanceConfig) {
5665
5660
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
5666
5661
  };
5667
5662
  return instance;
5668
5663
  }
5669
- const axios = createInstance(defaults$2);
5670
- axios.Axios = Axios$1;
5664
+ const axios = createInstance(defaults$1);
5665
+ axios.Axios = Axios;
5671
5666
  axios.CanceledError = CanceledError;
5672
- axios.CancelToken = CancelToken$1;
5667
+ axios.CancelToken = CancelToken;
5673
5668
  axios.isCancel = isCancel;
5674
5669
  axios.VERSION = VERSION;
5675
5670
  axios.toFormData = toFormData;
@@ -5681,10 +5676,10 @@ axios.all = function all(promises) {
5681
5676
  axios.spread = spread;
5682
5677
  axios.isAxiosError = isAxiosError;
5683
5678
  axios.mergeConfig = mergeConfig;
5684
- axios.AxiosHeaders = AxiosHeaders$1;
5679
+ axios.AxiosHeaders = AxiosHeaders;
5685
5680
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
5686
5681
  axios.getAdapter = adapters.getAdapter;
5687
- axios.HttpStatusCode = HttpStatusCode$1;
5682
+ axios.HttpStatusCode = HttpStatusCode;
5688
5683
  axios.default = axios;
5689
5684
  var it$1 = Object.defineProperty;
5690
5685
  var gt$1 = (e2, t2, s) => t2 in e2 ? it$1(e2, t2, { enumerable: true, configurable: true, writable: true, value: s }) : e2[t2] = s;
@@ -10980,7 +10975,7 @@ function F(e2, t2, n2, a) {
10980
10975
  function s(u) {
10981
10976
  u.done ? r2(u.value) : o2(u.value).then(c, l);
10982
10977
  }
10983
- s((a = a.apply(e2, t2 || [])).next());
10978
+ s((a = a.apply(e2, [])).next());
10984
10979
  });
10985
10980
  }
10986
10981
  function W(e2, t2) {
@@ -11044,7 +11039,7 @@ function W(e2, t2) {
11044
11039
  }
11045
11040
  }
11046
11041
  function ue(e2, t2, n2) {
11047
- if (n2 || arguments.length === 2) for (var a = 0, o2 = t2.length, r2; a < o2; a++)
11042
+ for (var a = 0, o2 = t2.length, r2; a < o2; a++)
11048
11043
  (r2 || !(a in t2)) && (r2 || (r2 = Array.prototype.slice.call(t2, 0, a)), r2[a] = t2[a]);
11049
11044
  return e2.concat(r2 || Array.prototype.slice.call(t2));
11050
11045
  }
@@ -11768,7 +11763,7 @@ function it() {
11768
11763
  return W(this, function(n2) {
11769
11764
  switch (n2.label) {
11770
11765
  case 0:
11771
- return t2 = N(), B(t2) ? X ? [2, ue([], X, true)] : Ie() ? [4, Ge()] : [3, 2] : [3, 2];
11766
+ return t2 = N(), B(t2) ? X ? [2, ue([], X)] : Ie() ? [4, Ge()] : [3, 2] : [3, 2];
11772
11767
  case 1:
11773
11768
  n2.sent(), t2 = N(), n2.label = 2;
11774
11769
  case 2:
@@ -12403,7 +12398,7 @@ function jt(e2, t2) {
12403
12398
  var o2 = a.document, r2 = o2.body, i = r2.style;
12404
12399
  i.width = "".concat(t2, "px"), i.webkitTextSizeAdjust = i.textSizeAdjust = "none", U() ? r2.style.zoom = "".concat(1 / a.devicePixelRatio) : j() && (r2.style.zoom = "reset");
12405
12400
  var c = o2.createElement("div");
12406
- return c.textContent = ue([], Array(t2 / 20 << 0), true).map(function() {
12401
+ return c.textContent = ue([], Array(t2 / 20 << 0)).map(function() {
12407
12402
  return "word";
12408
12403
  }).join(" "), r2.appendChild(c), e2(o2, r2);
12409
12404
  }, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
@@ -26297,8 +26292,7 @@ class Values {
26297
26292
  }
26298
26293
  }
26299
26294
  Values.VERSION = "v2.1.1";
26300
- const Values$1 = Values;
26301
- const colorValues = (color) => new Values$1(color.trim());
26295
+ const colorValues = (color) => new Values(color.trim());
26302
26296
  function alphaColor(color, alphaValue = 1) {
26303
26297
  if (color === null) {
26304
26298
  return color;