@digipair/skill-s3 0.136.3 → 0.136.5

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.
@@ -1,366 +0,0 @@
1
- function _array_like_to_array(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
- return arr2;
5
- }
6
- function _array_with_holes(arr) {
7
- if (Array.isArray(arr)) return arr;
8
- }
9
- function _array_without_holes(arr) {
10
- if (Array.isArray(arr)) return _array_like_to_array(arr);
11
- }
12
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
13
- try {
14
- var info = gen[key](arg);
15
- var value = info.value;
16
- } catch (error) {
17
- reject(error);
18
- return;
19
- }
20
- if (info.done) {
21
- resolve(value);
22
- } else {
23
- Promise.resolve(value).then(_next, _throw);
24
- }
25
- }
26
- function _async_to_generator(fn) {
27
- return function() {
28
- var self = this, args = arguments;
29
- return new Promise(function(resolve, reject) {
30
- var gen = fn.apply(self, args);
31
- function _next(value) {
32
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
33
- }
34
- function _throw(err) {
35
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
36
- }
37
- _next(undefined);
38
- });
39
- };
40
- }
41
- function _define_property(obj, key, value) {
42
- if (key in obj) {
43
- Object.defineProperty(obj, key, {
44
- value: value,
45
- enumerable: true,
46
- configurable: true,
47
- writable: true
48
- });
49
- } else {
50
- obj[key] = value;
51
- }
52
- return obj;
53
- }
54
- function _iterable_to_array(iter) {
55
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
56
- }
57
- function _iterable_to_array_limit(arr, i) {
58
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
59
- if (_i == null) return;
60
- var _arr = [];
61
- var _n = true;
62
- var _d = false;
63
- var _s, _e;
64
- try {
65
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
66
- _arr.push(_s.value);
67
- if (i && _arr.length === i) break;
68
- }
69
- } catch (err) {
70
- _d = true;
71
- _e = err;
72
- } finally{
73
- try {
74
- if (!_n && _i["return"] != null) _i["return"]();
75
- } finally{
76
- if (_d) throw _e;
77
- }
78
- }
79
- return _arr;
80
- }
81
- function _non_iterable_rest() {
82
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
83
- }
84
- function _non_iterable_spread() {
85
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
86
- }
87
- function _object_spread(target) {
88
- for(var i = 1; i < arguments.length; i++){
89
- var source = arguments[i] != null ? arguments[i] : {};
90
- var ownKeys = Object.keys(source);
91
- if (typeof Object.getOwnPropertySymbols === "function") {
92
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
93
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
94
- }));
95
- }
96
- ownKeys.forEach(function(key) {
97
- _define_property(target, key, source[key]);
98
- });
99
- }
100
- return target;
101
- }
102
- function ownKeys(object, enumerableOnly) {
103
- var keys = Object.keys(object);
104
- if (Object.getOwnPropertySymbols) {
105
- var symbols = Object.getOwnPropertySymbols(object);
106
- keys.push.apply(keys, symbols);
107
- }
108
- return keys;
109
- }
110
- function _object_spread_props(target, source) {
111
- source = source != null ? source : {};
112
- if (Object.getOwnPropertyDescriptors) {
113
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
114
- } else {
115
- ownKeys(Object(source)).forEach(function(key) {
116
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
117
- });
118
- }
119
- return target;
120
- }
121
- function _sliced_to_array(arr, i) {
122
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
123
- }
124
- function _to_consumable_array(arr) {
125
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
126
- }
127
- function _type_of(obj) {
128
- "@swc/helpers - typeof";
129
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
130
- }
131
- function _unsupported_iterable_to_array(o, minLen) {
132
- if (!o) return;
133
- if (typeof o === "string") return _array_like_to_array(o, minLen);
134
- var n = Object.prototype.toString.call(o).slice(8, -1);
135
- if (n === "Object" && o.constructor) n = o.constructor.name;
136
- if (n === "Map" || n === "Set") return Array.from(n);
137
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
138
- }
139
- function _ts_generator(thisArg, body) {
140
- var f, y, t, g, _ = {
141
- label: 0,
142
- sent: function() {
143
- if (t[0] & 1) throw t[1];
144
- return t[1];
145
- },
146
- trys: [],
147
- ops: []
148
- };
149
- return g = {
150
- next: verb(0),
151
- "throw": verb(1),
152
- "return": verb(2)
153
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
154
- return this;
155
- }), g;
156
- function verb(n) {
157
- return function(v) {
158
- return step([
159
- n,
160
- v
161
- ]);
162
- };
163
- }
164
- function step(op) {
165
- if (f) throw new TypeError("Generator is already executing.");
166
- while(_)try {
167
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
168
- if (y = 0, t) op = [
169
- op[0] & 2,
170
- t.value
171
- ];
172
- switch(op[0]){
173
- case 0:
174
- case 1:
175
- t = op;
176
- break;
177
- case 4:
178
- _.label++;
179
- return {
180
- value: op[1],
181
- done: false
182
- };
183
- case 5:
184
- _.label++;
185
- y = op[1];
186
- op = [
187
- 0
188
- ];
189
- continue;
190
- case 7:
191
- op = _.ops.pop();
192
- _.trys.pop();
193
- continue;
194
- default:
195
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
196
- _ = 0;
197
- continue;
198
- }
199
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
200
- _.label = op[1];
201
- break;
202
- }
203
- if (op[0] === 6 && _.label < t[1]) {
204
- _.label = t[1];
205
- t = op;
206
- break;
207
- }
208
- if (t && _.label < t[2]) {
209
- _.label = t[2];
210
- _.ops.push(op);
211
- break;
212
- }
213
- if (t[2]) _.ops.pop();
214
- _.trys.pop();
215
- continue;
216
- }
217
- op = body.call(thisArg, _);
218
- } catch (e) {
219
- op = [
220
- 6,
221
- e
222
- ];
223
- y = 0;
224
- } finally{
225
- f = t = 0;
226
- }
227
- if (op[0] & 5) throw op[1];
228
- return {
229
- value: op[0] ? op[1] : void 0,
230
- done: true
231
- };
232
- }
233
- }
234
- var createAggregatedClient = function(commands, Client, options) {
235
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
236
- try {
237
- var _loop = function() {
238
- var _step_value = _sliced_to_array(_step.value, 2), command = _step_value[0], CommandCtor = _step_value[1];
239
- var methodImpl = function() {
240
- var _ref = _async_to_generator(function(args, optionsOrCb, cb) {
241
- var command;
242
- return _ts_generator(this, function(_state) {
243
- command = new CommandCtor(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- } else if (typeof cb === "function") {
247
- if ((typeof optionsOrCb === "undefined" ? "undefined" : _type_of(optionsOrCb)) !== "object") throw new Error("Expected http options but got ".concat(typeof optionsOrCb === "undefined" ? "undefined" : _type_of(optionsOrCb)));
248
- this.send(command, optionsOrCb || {}, cb);
249
- } else {
250
- return [
251
- 2,
252
- this.send(command, optionsOrCb)
253
- ];
254
- }
255
- return [
256
- 2
257
- ];
258
- });
259
- });
260
- return function methodImpl(args, optionsOrCb, cb) {
261
- return _ref.apply(this, arguments);
262
- };
263
- }();
264
- var methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
265
- Client.prototype[methodName] = methodImpl;
266
- };
267
- for(var _iterator = Object.entries(commands)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
268
- } catch (err) {
269
- _didIteratorError = true;
270
- _iteratorError = err;
271
- } finally{
272
- try {
273
- if (!_iteratorNormalCompletion && _iterator.return != null) {
274
- _iterator.return();
275
- }
276
- } finally{
277
- if (_didIteratorError) {
278
- throw _iteratorError;
279
- }
280
- }
281
- }
282
- var _ref = {}, _ref_paginators = _ref.paginators, paginators = _ref_paginators === void 0 ? {} : _ref_paginators, _ref_waiters = _ref.waiters, waiters = _ref_waiters === void 0 ? {} : _ref_waiters;
283
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
284
- try {
285
- var _loop1 = function() {
286
- var _step_value = _sliced_to_array(_step1.value, 2), paginatorName = _step_value[0], paginatorFn = _step_value[1];
287
- if (Client.prototype[paginatorName] === void 0) {
288
- Client.prototype[paginatorName] = function createAggregatedClient() {
289
- var commandInput = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, paginationConfiguration = arguments.length > 1 ? arguments[1] : void 0;
290
- for(var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
291
- rest[_key - 2] = arguments[_key];
292
- }
293
- return paginatorFn.apply(void 0, [
294
- _object_spread_props(_object_spread({}, paginationConfiguration), {
295
- client: this
296
- }),
297
- commandInput
298
- ].concat(_to_consumable_array(rest)));
299
- };
300
- }
301
- };
302
- for(var _iterator1 = Object.entries(paginators)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true)_loop1();
303
- } catch (err) {
304
- _didIteratorError1 = true;
305
- _iteratorError1 = err;
306
- } finally{
307
- try {
308
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
309
- _iterator1.return();
310
- }
311
- } finally{
312
- if (_didIteratorError1) {
313
- throw _iteratorError1;
314
- }
315
- }
316
- }
317
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
318
- try {
319
- var _loop2 = function() {
320
- var _step_value = _sliced_to_array(_step2.value, 2), waiterName = _step_value[0], waiterFn = _step_value[1];
321
- if (Client.prototype[waiterName] === void 0) {
322
- Client.prototype[waiterName] = /*#__PURE__*/ _async_to_generator(function() {
323
- var commandInput, waiterConfiguration, _len, rest, _key, config;
324
- var _arguments = arguments;
325
- return _ts_generator(this, function(_state) {
326
- commandInput = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : {}, waiterConfiguration = _arguments.length > 1 ? _arguments[1] : void 0;
327
- for(_len = _arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
328
- rest[_key - 2] = _arguments[_key];
329
- }
330
- config = waiterConfiguration;
331
- if (typeof waiterConfiguration === "number") {
332
- config = {
333
- maxWaitTime: waiterConfiguration
334
- };
335
- }
336
- return [
337
- 2,
338
- waiterFn.apply(void 0, [
339
- _object_spread_props(_object_spread({}, config), {
340
- client: this
341
- }),
342
- commandInput
343
- ].concat(_to_consumable_array(rest)))
344
- ];
345
- });
346
- });
347
- }
348
- };
349
- for(var _iterator2 = Object.entries(waiters)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop2();
350
- } catch (err) {
351
- _didIteratorError2 = true;
352
- _iteratorError2 = err;
353
- } finally{
354
- try {
355
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
356
- _iterator2.return();
357
- }
358
- } finally{
359
- if (_didIteratorError2) {
360
- throw _iteratorError2;
361
- }
362
- }
363
- }
364
- };
365
-
366
- export { createAggregatedClient as c };