aws-sdk 2.1548.0 → 2.1549.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.
@@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
83
83
  /**
84
84
  * @constant
85
85
  */
86
- VERSION: '2.1548.0',
86
+ VERSION: '2.1549.0',
87
87
 
88
88
  /**
89
89
  * @api private
@@ -9415,6 +9415,7 @@ return /******/ (function(modules) { // webpackBootstrap
9415
9415
 
9416
9416
  var hasSymbols = __webpack_require__(56);
9417
9417
 
9418
+ /** @type {import('.')} */
9418
9419
  module.exports = function hasToStringTagShams() {
9419
9420
  return hasSymbols() && !!Symbol.toStringTag;
9420
9421
  };
@@ -10297,7 +10298,7 @@ return /******/ (function(modules) { // webpackBootstrap
10297
10298
  var $slice = callBound('String.prototype.slice');
10298
10299
  var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
10299
10300
 
10300
- var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
10301
+ var $indexOf = callBound('Array.prototype.indexOf', true) || /** @type {(array: readonly unknown[], value: unknown) => keyof array} */ function indexOf(array, value) {
10301
10302
  for (var i = 0; i < array.length; i += 1) {
10302
10303
  if (array[i] === value) {
10303
10304
  return i;
@@ -10305,17 +10306,24 @@ return /******/ (function(modules) { // webpackBootstrap
10305
10306
  }
10306
10307
  return -1;
10307
10308
  };
10309
+
10310
+ /** @typedef {Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array} TypedArray */
10311
+ /** @typedef {'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array'} TypedArrayName */
10312
+ /** @type {{ [k in `\$${TypedArrayName}`]?: (receiver: TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call } & { __proto__: null }} */
10308
10313
  var cache = { __proto__: null };
10309
10314
  if (hasToStringTag && gOPD && getPrototypeOf) {
10310
10315
  forEach(typedArrays, function (typedArray) {
10311
10316
  var arr = new g[typedArray]();
10312
10317
  if (Symbol.toStringTag in arr) {
10313
10318
  var proto = getPrototypeOf(arr);
10319
+ // @ts-expect-error TS won't narrow inside a closure
10314
10320
  var descriptor = gOPD(proto, Symbol.toStringTag);
10315
10321
  if (!descriptor) {
10316
10322
  var superProto = getPrototypeOf(proto);
10323
+ // @ts-expect-error TS won't narrow inside a closure
10317
10324
  descriptor = gOPD(superProto, Symbol.toStringTag);
10318
10325
  }
10326
+ // @ts-expect-error TODO: fix
10319
10327
  cache['$' + typedArray] = callBind(descriptor.get);
10320
10328
  }
10321
10329
  });
@@ -10324,38 +10332,52 @@ return /******/ (function(modules) { // webpackBootstrap
10324
10332
  var arr = new g[typedArray]();
10325
10333
  var fn = arr.slice || arr.set;
10326
10334
  if (fn) {
10335
+ // @ts-expect-error TODO: fix
10327
10336
  cache['$' + typedArray] = callBind(fn);
10328
10337
  }
10329
10338
  });
10330
10339
  }
10331
10340
 
10341
+ /** @type {import('.')} */
10332
10342
  var tryTypedArrays = function tryAllTypedArrays(value) {
10333
- var found = false;
10334
- forEach(cache, function (getter, typedArray) {
10335
- if (!found) {
10336
- try {
10337
- if ('$' + getter(value) === typedArray) {
10338
- found = $slice(typedArray, 1);
10339
- }
10340
- } catch (e) { /**/ }
10343
+ /** @type {ReturnType<tryAllTypedArrays>} */ var found = false;
10344
+ forEach(
10345
+ // eslint-disable-next-line no-extra-parens
10346
+ /** @type {Record<`\$${TypedArrayName}`, typeof cache>} */ /** @type {any} */ (cache),
10347
+ /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, typedArray) {
10348
+ if (!found) {
10349
+ try {
10350
+ // @ts-expect-error TODO: fix
10351
+ if ('$' + getter(value) === typedArray) {
10352
+ found = $slice(typedArray, 1);
10353
+ }
10354
+ } catch (e) { /**/ }
10355
+ }
10341
10356
  }
10342
- });
10357
+ );
10343
10358
  return found;
10344
10359
  };
10345
10360
 
10361
+ /** @type {import('.')} */
10346
10362
  var trySlices = function tryAllSlices(value) {
10347
- var found = false;
10348
- forEach(cache, function (getter, name) {
10349
- if (!found) {
10350
- try {
10351
- getter(value);
10352
- found = $slice(name, 1);
10353
- } catch (e) { /**/ }
10363
+ /** @type {ReturnType<tryAllSlices>} */ var found = false;
10364
+ forEach(
10365
+ // eslint-disable-next-line no-extra-parens
10366
+ /** @type {any} */ (cache),
10367
+ /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ function (getter, name) {
10368
+ if (!found) {
10369
+ try {
10370
+ // @ts-expect-error TODO: fix
10371
+ getter(value);
10372
+ found = $slice(name, 1);
10373
+ } catch (e) { /**/ }
10374
+ }
10354
10375
  }
10355
- });
10376
+ );
10356
10377
  return found;
10357
10378
  };
10358
10379
 
10380
+ /** @type {import('.')} */
10359
10381
  module.exports = function whichTypedArray(value) {
10360
10382
  if (!value || typeof value !== 'object') { return false; }
10361
10383
  if (!hasToStringTag) {
@@ -10556,7 +10578,7 @@ return /******/ (function(modules) { // webpackBootstrap
10556
10578
 
10557
10579
  /* WEBPACK VAR INJECTION */(function(global) {'use strict';
10558
10580
 
10559
- var possibleNames = [
10581
+ var /** @type {ReturnType<import('.')>} */ possibleNames = [
10560
10582
  'BigInt64Array',
10561
10583
  'BigUint64Array',
10562
10584
  'Float32Array',
@@ -10572,10 +10594,12 @@ return /******/ (function(modules) { // webpackBootstrap
10572
10594
 
10573
10595
  var g = typeof globalThis === 'undefined' ? global : globalThis;
10574
10596
 
10597
+ /** @type {import('.')} */
10575
10598
  module.exports = function availableTypedArrays() {
10576
- var out = [];
10599
+ var /** @type {ReturnType<typeof availableTypedArrays>} */ out = [];
10577
10600
  for (var i = 0; i < possibleNames.length; i++) {
10578
10601
  if (typeof g[possibleNames[i]] === 'function') {
10602
+ // @ts-expect-error
10579
10603
  out[out.length] = possibleNames[i];
10580
10604
  }
10581
10605
  }