@aws-sdk/client-sqs 3.53.0 → 3.55.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/CHANGELOG.md +27 -0
- package/dist-cjs/SQSClient.js +13 -13
- package/dist-cjs/commands/AddPermissionCommand.js +3 -3
- package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +3 -3
- package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +3 -3
- package/dist-cjs/commands/CreateQueueCommand.js +3 -3
- package/dist-cjs/commands/DeleteMessageBatchCommand.js +3 -3
- package/dist-cjs/commands/DeleteMessageCommand.js +3 -3
- package/dist-cjs/commands/DeleteQueueCommand.js +3 -3
- package/dist-cjs/commands/GetQueueAttributesCommand.js +3 -3
- package/dist-cjs/commands/GetQueueUrlCommand.js +3 -3
- package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +3 -3
- package/dist-cjs/commands/ListQueueTagsCommand.js +3 -3
- package/dist-cjs/commands/ListQueuesCommand.js +3 -3
- package/dist-cjs/commands/PurgeQueueCommand.js +3 -3
- package/dist-cjs/commands/ReceiveMessageCommand.js +4 -4
- package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
- package/dist-cjs/commands/SendMessageBatchCommand.js +4 -4
- package/dist-cjs/commands/SendMessageCommand.js +4 -4
- package/dist-cjs/commands/SetQueueAttributesCommand.js +3 -3
- package/dist-cjs/commands/TagQueueCommand.js +3 -3
- package/dist-cjs/commands/UntagQueueCommand.js +3 -3
- package/dist-cjs/endpoints.js +2 -2
- package/dist-cjs/protocols/Aws_query.js +88 -88
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/SQS.js +20 -20
- package/dist-es/endpoints.js +1 -1
- package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +4 -4
- package/dist-es/pagination/ListQueuesPaginator.js +4 -4
- package/dist-es/protocols/Aws_query.js +39 -39
- package/dist-types/SQSClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/SQSClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +36 -36
|
@@ -18,9 +18,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
18
18
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
21
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
22
22
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
23
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
24
24
|
return {
|
|
25
25
|
...clientSharedValues,
|
|
26
26
|
...config,
|
|
@@ -30,10 +30,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
31
31
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
33
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
34
34
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
35
35
|
md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : md5_js_1.Md5,
|
|
36
|
-
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
36
|
+
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
37
37
|
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
38
38
|
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
39
39
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,20 +30,20 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
36
|
md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "md5"),
|
|
37
|
-
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
38
|
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
39
|
-
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig({
|
|
39
|
+
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({
|
|
40
40
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
41
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
42
42
|
}),
|
|
43
43
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
|
|
44
44
|
streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
|
|
45
|
-
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
-
useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
47
|
utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8,
|
|
48
48
|
utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8,
|
|
49
49
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/SQS.js
CHANGED
|
@@ -32,7 +32,7 @@ var SQS = (function (_super) {
|
|
|
32
32
|
}
|
|
33
33
|
else if (typeof cb === "function") {
|
|
34
34
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error("Expect http options but get "
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
36
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -46,7 +46,7 @@ var SQS = (function (_super) {
|
|
|
46
46
|
}
|
|
47
47
|
else if (typeof cb === "function") {
|
|
48
48
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error("Expect http options but get "
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
50
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
@@ -60,7 +60,7 @@ var SQS = (function (_super) {
|
|
|
60
60
|
}
|
|
61
61
|
else if (typeof cb === "function") {
|
|
62
62
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error("Expect http options but get "
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
@@ -74,7 +74,7 @@ var SQS = (function (_super) {
|
|
|
74
74
|
}
|
|
75
75
|
else if (typeof cb === "function") {
|
|
76
76
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error("Expect http options but get "
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -88,7 +88,7 @@ var SQS = (function (_super) {
|
|
|
88
88
|
}
|
|
89
89
|
else if (typeof cb === "function") {
|
|
90
90
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error("Expect http options but get "
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
@@ -102,7 +102,7 @@ var SQS = (function (_super) {
|
|
|
102
102
|
}
|
|
103
103
|
else if (typeof cb === "function") {
|
|
104
104
|
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error("Expect http options but get "
|
|
105
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
106
106
|
this.send(command, optionsOrCb || {}, cb);
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
@@ -116,7 +116,7 @@ var SQS = (function (_super) {
|
|
|
116
116
|
}
|
|
117
117
|
else if (typeof cb === "function") {
|
|
118
118
|
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error("Expect http options but get "
|
|
119
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
120
120
|
this.send(command, optionsOrCb || {}, cb);
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
@@ -130,7 +130,7 @@ var SQS = (function (_super) {
|
|
|
130
130
|
}
|
|
131
131
|
else if (typeof cb === "function") {
|
|
132
132
|
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error("Expect http options but get "
|
|
133
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
134
134
|
this.send(command, optionsOrCb || {}, cb);
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
@@ -144,7 +144,7 @@ var SQS = (function (_super) {
|
|
|
144
144
|
}
|
|
145
145
|
else if (typeof cb === "function") {
|
|
146
146
|
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error("Expect http options but get "
|
|
147
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
148
148
|
this.send(command, optionsOrCb || {}, cb);
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
@@ -158,7 +158,7 @@ var SQS = (function (_super) {
|
|
|
158
158
|
}
|
|
159
159
|
else if (typeof cb === "function") {
|
|
160
160
|
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error("Expect http options but get "
|
|
161
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
162
162
|
this.send(command, optionsOrCb || {}, cb);
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
@@ -172,7 +172,7 @@ var SQS = (function (_super) {
|
|
|
172
172
|
}
|
|
173
173
|
else if (typeof cb === "function") {
|
|
174
174
|
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error("Expect http options but get "
|
|
175
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
176
176
|
this.send(command, optionsOrCb || {}, cb);
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
@@ -186,7 +186,7 @@ var SQS = (function (_super) {
|
|
|
186
186
|
}
|
|
187
187
|
else if (typeof cb === "function") {
|
|
188
188
|
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error("Expect http options but get "
|
|
189
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
190
190
|
this.send(command, optionsOrCb || {}, cb);
|
|
191
191
|
}
|
|
192
192
|
else {
|
|
@@ -200,7 +200,7 @@ var SQS = (function (_super) {
|
|
|
200
200
|
}
|
|
201
201
|
else if (typeof cb === "function") {
|
|
202
202
|
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error("Expect http options but get "
|
|
203
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
204
204
|
this.send(command, optionsOrCb || {}, cb);
|
|
205
205
|
}
|
|
206
206
|
else {
|
|
@@ -214,7 +214,7 @@ var SQS = (function (_super) {
|
|
|
214
214
|
}
|
|
215
215
|
else if (typeof cb === "function") {
|
|
216
216
|
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error("Expect http options but get "
|
|
217
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
218
218
|
this.send(command, optionsOrCb || {}, cb);
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
@@ -228,7 +228,7 @@ var SQS = (function (_super) {
|
|
|
228
228
|
}
|
|
229
229
|
else if (typeof cb === "function") {
|
|
230
230
|
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error("Expect http options but get "
|
|
231
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
232
232
|
this.send(command, optionsOrCb || {}, cb);
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
@@ -242,7 +242,7 @@ var SQS = (function (_super) {
|
|
|
242
242
|
}
|
|
243
243
|
else if (typeof cb === "function") {
|
|
244
244
|
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error("Expect http options but get "
|
|
245
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
246
246
|
this.send(command, optionsOrCb || {}, cb);
|
|
247
247
|
}
|
|
248
248
|
else {
|
|
@@ -256,7 +256,7 @@ var SQS = (function (_super) {
|
|
|
256
256
|
}
|
|
257
257
|
else if (typeof cb === "function") {
|
|
258
258
|
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error("Expect http options but get "
|
|
259
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
260
260
|
this.send(command, optionsOrCb || {}, cb);
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
@@ -270,7 +270,7 @@ var SQS = (function (_super) {
|
|
|
270
270
|
}
|
|
271
271
|
else if (typeof cb === "function") {
|
|
272
272
|
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error("Expect http options but get "
|
|
273
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
274
274
|
this.send(command, optionsOrCb || {}, cb);
|
|
275
275
|
}
|
|
276
276
|
else {
|
|
@@ -284,7 +284,7 @@ var SQS = (function (_super) {
|
|
|
284
284
|
}
|
|
285
285
|
else if (typeof cb === "function") {
|
|
286
286
|
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error("Expect http options but get "
|
|
287
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
288
288
|
this.send(command, optionsOrCb || {}, cb);
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
@@ -298,7 +298,7 @@ var SQS = (function (_super) {
|
|
|
298
298
|
}
|
|
299
299
|
else if (typeof cb === "function") {
|
|
300
300
|
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error("Expect http options but get "
|
|
301
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
302
302
|
this.send(command, optionsOrCb || {}, cb);
|
|
303
303
|
}
|
|
304
304
|
else {
|
package/dist-es/endpoints.js
CHANGED
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDeadLetterSourceQueuesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDeadLetterSourceQueuesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDeadLetterSourceQueues.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDeadLetterSourceQueues.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDeadLetterSourceQueues(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof SQS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof SQSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueuesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueuesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listQueues.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listQueues.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListQueues(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof SQS)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof SQSClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|