@digipair/skill-s3 0.81.2 → 0.82.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/package.esm.js DELETED
@@ -1,314 +0,0 @@
1
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
- try {
3
- var info = gen[key](arg);
4
- var value = info.value;
5
- } catch (error) {
6
- reject(error);
7
- return;
8
- }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
14
- }
15
- function _async_to_generator(fn) {
16
- return function() {
17
- var self = this, args = arguments;
18
- return new Promise(function(resolve, reject) {
19
- var gen = fn.apply(self, args);
20
- function _next(value) {
21
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
- }
23
- function _throw(err) {
24
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
- }
26
- _next(undefined);
27
- });
28
- };
29
- }
30
- function _type_of(obj) {
31
- "@swc/helpers - typeof";
32
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
33
- }
34
- function _ts_generator(thisArg, body) {
35
- var f, y, t, g, _ = {
36
- label: 0,
37
- sent: function() {
38
- if (t[0] & 1) throw t[1];
39
- return t[1];
40
- },
41
- trys: [],
42
- ops: []
43
- };
44
- return g = {
45
- next: verb(0),
46
- "throw": verb(1),
47
- "return": verb(2)
48
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
49
- return this;
50
- }), g;
51
- function verb(n) {
52
- return function(v) {
53
- return step([
54
- n,
55
- v
56
- ]);
57
- };
58
- }
59
- function step(op) {
60
- if (f) throw new TypeError("Generator is already executing.");
61
- while(_)try {
62
- 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;
63
- if (y = 0, t) op = [
64
- op[0] & 2,
65
- t.value
66
- ];
67
- switch(op[0]){
68
- case 0:
69
- case 1:
70
- t = op;
71
- break;
72
- case 4:
73
- _.label++;
74
- return {
75
- value: op[1],
76
- done: false
77
- };
78
- case 5:
79
- _.label++;
80
- y = op[1];
81
- op = [
82
- 0
83
- ];
84
- continue;
85
- case 7:
86
- op = _.ops.pop();
87
- _.trys.pop();
88
- continue;
89
- default:
90
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
91
- _ = 0;
92
- continue;
93
- }
94
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
95
- _.label = op[1];
96
- break;
97
- }
98
- if (op[0] === 6 && _.label < t[1]) {
99
- _.label = t[1];
100
- t = op;
101
- break;
102
- }
103
- if (t && _.label < t[2]) {
104
- _.label = t[2];
105
- _.ops.push(op);
106
- break;
107
- }
108
- if (t[2]) _.ops.pop();
109
- _.trys.pop();
110
- continue;
111
- }
112
- op = body.call(thisArg, _);
113
- } catch (e) {
114
- op = [
115
- 6,
116
- e
117
- ];
118
- y = 0;
119
- } finally{
120
- f = t = 0;
121
- }
122
- if (op[0] & 5) throw op[1];
123
- return {
124
- value: op[0] ? op[1] : void 0,
125
- done: true
126
- };
127
- }
128
- }
129
- var createAggregatedClient = function(commands, Client) {
130
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
131
- try {
132
- var _loop = function() {
133
- var command = _step.value;
134
- var CommandCtor = commands[command];
135
- var methodImpl = function() {
136
- var _ref = _async_to_generator(function(args, optionsOrCb, cb) {
137
- var command;
138
- return _ts_generator(this, function(_state) {
139
- command = new CommandCtor(args);
140
- if (typeof optionsOrCb === "function") {
141
- this.send(command, optionsOrCb);
142
- } else if (typeof cb === "function") {
143
- if (typeof optionsOrCb !== "object") throw new Error("Expected http options but got ".concat(typeof optionsOrCb === "undefined" ? "undefined" : _type_of(optionsOrCb)));
144
- this.send(command, optionsOrCb || {}, cb);
145
- } else {
146
- return [
147
- 2,
148
- this.send(command, optionsOrCb)
149
- ];
150
- }
151
- return [
152
- 2
153
- ];
154
- });
155
- });
156
- return function methodImpl(args, optionsOrCb, cb) {
157
- return _ref.apply(this, arguments);
158
- };
159
- }();
160
- var methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
161
- Client.prototype[methodName] = methodImpl;
162
- };
163
- for(var _iterator = Object.keys(commands)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
164
- } catch (err) {
165
- _didIteratorError = true;
166
- _iteratorError = err;
167
- } finally{
168
- try {
169
- if (!_iteratorNormalCompletion && _iterator.return != null) {
170
- _iterator.return();
171
- }
172
- } finally{
173
- if (_didIteratorError) {
174
- throw _iteratorError;
175
- }
176
- }
177
- }
178
- };
179
-
180
- var name = "@aws-sdk/nested-clients";
181
- var version = "3.787.0";
182
- var description = "Nested clients for AWS SDK packages.";
183
- var main = "./dist-cjs/index.js";
184
- var module = "./dist-es/index.js";
185
- var types = "./dist-types/index.d.ts";
186
- var scripts = {
187
- build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
188
- "build:cjs": "node ../../scripts/compilation/inline nested-clients",
189
- "build:es": "tsc -p tsconfig.es.json",
190
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
191
- "build:types": "tsc -p tsconfig.types.json",
192
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
193
- clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
194
- lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
195
- test: "yarn g:vitest run",
196
- "test:watch": "yarn g:vitest watch"
197
- };
198
- var engines = {
199
- node: ">=18.0.0"
200
- };
201
- var author = {
202
- name: "AWS SDK for JavaScript Team",
203
- url: "https://aws.amazon.com/javascript/"
204
- };
205
- var license = "Apache-2.0";
206
- var dependencies = {
207
- "@aws-crypto/sha256-browser": "5.2.0",
208
- "@aws-crypto/sha256-js": "5.2.0",
209
- "@aws-sdk/core": "3.775.0",
210
- "@aws-sdk/middleware-host-header": "3.775.0",
211
- "@aws-sdk/middleware-logger": "3.775.0",
212
- "@aws-sdk/middleware-recursion-detection": "3.775.0",
213
- "@aws-sdk/middleware-user-agent": "3.787.0",
214
- "@aws-sdk/region-config-resolver": "3.775.0",
215
- "@aws-sdk/types": "3.775.0",
216
- "@aws-sdk/util-endpoints": "3.787.0",
217
- "@aws-sdk/util-user-agent-browser": "3.775.0",
218
- "@aws-sdk/util-user-agent-node": "3.787.0",
219
- "@smithy/config-resolver": "^4.1.0",
220
- "@smithy/core": "^3.2.0",
221
- "@smithy/fetch-http-handler": "^5.0.2",
222
- "@smithy/hash-node": "^4.0.2",
223
- "@smithy/invalid-dependency": "^4.0.2",
224
- "@smithy/middleware-content-length": "^4.0.2",
225
- "@smithy/middleware-endpoint": "^4.1.0",
226
- "@smithy/middleware-retry": "^4.1.0",
227
- "@smithy/middleware-serde": "^4.0.3",
228
- "@smithy/middleware-stack": "^4.0.2",
229
- "@smithy/node-config-provider": "^4.0.2",
230
- "@smithy/node-http-handler": "^4.0.4",
231
- "@smithy/protocol-http": "^5.1.0",
232
- "@smithy/smithy-client": "^4.2.0",
233
- "@smithy/types": "^4.2.0",
234
- "@smithy/url-parser": "^4.0.2",
235
- "@smithy/util-base64": "^4.0.0",
236
- "@smithy/util-body-length-browser": "^4.0.0",
237
- "@smithy/util-body-length-node": "^4.0.0",
238
- "@smithy/util-defaults-mode-browser": "^4.0.8",
239
- "@smithy/util-defaults-mode-node": "^4.0.8",
240
- "@smithy/util-endpoints": "^3.0.2",
241
- "@smithy/util-middleware": "^4.0.2",
242
- "@smithy/util-retry": "^4.0.2",
243
- "@smithy/util-utf8": "^4.0.0",
244
- tslib: "^2.6.2"
245
- };
246
- var devDependencies = {
247
- concurrently: "7.0.0",
248
- "downlevel-dts": "0.10.1",
249
- rimraf: "3.0.2",
250
- typescript: "~5.2.2"
251
- };
252
- var typesVersions = {
253
- "<4.0": {
254
- "dist-types/*": [
255
- "dist-types/ts3.4/*"
256
- ]
257
- }
258
- };
259
- var files = [
260
- "./sso-oidc.d.ts",
261
- "./sso-oidc.js",
262
- "./sts.d.ts",
263
- "./sts.js",
264
- "dist-*/**"
265
- ];
266
- var browser = {
267
- "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
268
- "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
269
- };
270
- var homepage = "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients";
271
- var repository = {
272
- type: "git",
273
- url: "https://github.com/aws/aws-sdk-js-v3.git",
274
- directory: "packages/nested-clients"
275
- };
276
- var exports = {
277
- "./sso-oidc": {
278
- types: "./dist-types/submodules/sso-oidc/index.d.ts",
279
- module: "./dist-es/submodules/sso-oidc/index.js",
280
- node: "./dist-cjs/submodules/sso-oidc/index.js",
281
- "import": "./dist-es/submodules/sso-oidc/index.js",
282
- require: "./dist-cjs/submodules/sso-oidc/index.js"
283
- },
284
- "./sts": {
285
- types: "./dist-types/submodules/sts/index.d.ts",
286
- module: "./dist-es/submodules/sts/index.js",
287
- node: "./dist-cjs/submodules/sts/index.js",
288
- "import": "./dist-es/submodules/sts/index.js",
289
- require: "./dist-cjs/submodules/sts/index.js"
290
- }
291
- };
292
- var packageInfo = {
293
- name: name,
294
- version: version,
295
- description: description,
296
- main: main,
297
- module: module,
298
- types: types,
299
- scripts: scripts,
300
- engines: engines,
301
- author: author,
302
- license: license,
303
- dependencies: dependencies,
304
- devDependencies: devDependencies,
305
- typesVersions: typesVersions,
306
- files: files,
307
- browser: browser,
308
- "react-native": {},
309
- homepage: homepage,
310
- repository: repository,
311
- exports: exports
312
- };
313
-
314
- export { createAggregatedClient as c, packageInfo as p };
@@ -1,246 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index.cjs2.js');
4
-
5
- var _json = function(obj) {
6
- if (obj == null) {
7
- return {};
8
- }
9
- if (Array.isArray(obj)) {
10
- return obj.filter(function(_) {
11
- return _ != null;
12
- }).map(_json);
13
- }
14
- if (typeof obj === "object") {
15
- var target = {};
16
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
17
- try {
18
- for(var _iterator = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
19
- var key = _step.value;
20
- if (obj[key] == null) {
21
- continue;
22
- }
23
- target[key] = _json(obj[key]);
24
- }
25
- } catch (err) {
26
- _didIteratorError = true;
27
- _iteratorError = err;
28
- } finally{
29
- try {
30
- if (!_iteratorNormalCompletion && _iterator.return != null) {
31
- _iterator.return();
32
- }
33
- } finally{
34
- if (_didIteratorError) {
35
- throw _iteratorError;
36
- }
37
- }
38
- }
39
- return target;
40
- }
41
- return obj;
42
- };
43
-
44
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
45
- try {
46
- var info = gen[key](arg);
47
- var value = info.value;
48
- } catch (error) {
49
- reject(error);
50
- return;
51
- }
52
- if (info.done) {
53
- resolve(value);
54
- } else {
55
- Promise.resolve(value).then(_next, _throw);
56
- }
57
- }
58
- function _async_to_generator(fn) {
59
- return function() {
60
- var self = this, args = arguments;
61
- return new Promise(function(resolve, reject) {
62
- var gen = fn.apply(self, args);
63
- function _next(value) {
64
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
65
- }
66
- function _throw(err) {
67
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
68
- }
69
- _next(undefined);
70
- });
71
- };
72
- }
73
- function _ts_generator(thisArg, body) {
74
- var f, y, t, g, _ = {
75
- label: 0,
76
- sent: function() {
77
- if (t[0] & 1) throw t[1];
78
- return t[1];
79
- },
80
- trys: [],
81
- ops: []
82
- };
83
- return g = {
84
- next: verb(0),
85
- "throw": verb(1),
86
- "return": verb(2)
87
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
88
- return this;
89
- }), g;
90
- function verb(n) {
91
- return function(v) {
92
- return step([
93
- n,
94
- v
95
- ]);
96
- };
97
- }
98
- function step(op) {
99
- if (f) throw new TypeError("Generator is already executing.");
100
- while(_)try {
101
- 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;
102
- if (y = 0, t) op = [
103
- op[0] & 2,
104
- t.value
105
- ];
106
- switch(op[0]){
107
- case 0:
108
- case 1:
109
- t = op;
110
- break;
111
- case 4:
112
- _.label++;
113
- return {
114
- value: op[1],
115
- done: false
116
- };
117
- case 5:
118
- _.label++;
119
- y = op[1];
120
- op = [
121
- 0
122
- ];
123
- continue;
124
- case 7:
125
- op = _.ops.pop();
126
- _.trys.pop();
127
- continue;
128
- default:
129
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
130
- _ = 0;
131
- continue;
132
- }
133
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
134
- _.label = op[1];
135
- break;
136
- }
137
- if (op[0] === 6 && _.label < t[1]) {
138
- _.label = t[1];
139
- t = op;
140
- break;
141
- }
142
- if (t && _.label < t[2]) {
143
- _.label = t[2];
144
- _.ops.push(op);
145
- break;
146
- }
147
- if (t[2]) _.ops.pop();
148
- _.trys.pop();
149
- continue;
150
- }
151
- op = body.call(thisArg, _);
152
- } catch (e) {
153
- op = [
154
- 6,
155
- e
156
- ];
157
- y = 0;
158
- } finally{
159
- f = t = 0;
160
- }
161
- if (op[0] & 5) throw op[1];
162
- return {
163
- value: op[0] ? op[1] : void 0,
164
- done: true
165
- };
166
- }
167
- }
168
- var parseJsonBody = function(streamBody, context) {
169
- return index.collectBodyString(streamBody, context).then(function(encoded) {
170
- if (encoded.length) {
171
- try {
172
- return JSON.parse(encoded);
173
- } catch (e) {
174
- if ((e === null || e === void 0 ? void 0 : e.name) === "SyntaxError") {
175
- Object.defineProperty(e, "$responseBodyText", {
176
- value: encoded
177
- });
178
- }
179
- throw e;
180
- }
181
- }
182
- return {};
183
- });
184
- };
185
- var parseJsonErrorBody = function() {
186
- var _ref = _async_to_generator(function(errorBody, context) {
187
- var value, _value_message;
188
- return _ts_generator(this, function(_state) {
189
- switch(_state.label){
190
- case 0:
191
- return [
192
- 4,
193
- parseJsonBody(errorBody, context)
194
- ];
195
- case 1:
196
- value = _state.sent();
197
- value.message = (_value_message = value.message) !== null && _value_message !== void 0 ? _value_message : value.Message;
198
- return [
199
- 2,
200
- value
201
- ];
202
- }
203
- });
204
- });
205
- return function parseJsonErrorBody(errorBody, context) {
206
- return _ref.apply(this, arguments);
207
- };
208
- }();
209
- var loadRestJsonErrorCode = function(output, data) {
210
- var findKey = function(object, key) {
211
- return Object.keys(object).find(function(k) {
212
- return k.toLowerCase() === key.toLowerCase();
213
- });
214
- };
215
- var sanitizeErrorCode = function(rawValue) {
216
- var cleanValue = rawValue;
217
- if (typeof cleanValue === "number") {
218
- cleanValue = cleanValue.toString();
219
- }
220
- if (cleanValue.indexOf(",") >= 0) {
221
- cleanValue = cleanValue.split(",")[0];
222
- }
223
- if (cleanValue.indexOf(":") >= 0) {
224
- cleanValue = cleanValue.split(":")[0];
225
- }
226
- if (cleanValue.indexOf("#") >= 0) {
227
- cleanValue = cleanValue.split("#")[1];
228
- }
229
- return cleanValue;
230
- };
231
- var headerKey = findKey(output.headers, "x-amzn-errortype");
232
- if (headerKey !== undefined) {
233
- return sanitizeErrorCode(output.headers[headerKey]);
234
- }
235
- if (data.code !== undefined) {
236
- return sanitizeErrorCode(data.code);
237
- }
238
- if (data["__type"] !== undefined) {
239
- return sanitizeErrorCode(data["__type"]);
240
- }
241
- };
242
-
243
- exports._json = _json;
244
- exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
245
- exports.parseJsonBody = parseJsonBody;
246
- exports.parseJsonErrorBody = parseJsonErrorBody;