@aws-sdk/client-appconfigdata 3.523.0 → 3.529.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/dist-cjs/index.js +3 -44
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/package.json +17 -17
- package/dist-cjs/AppConfigData.js +0 -1
- package/dist-cjs/AppConfigDataClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/GetLatestConfigurationCommand.js +0 -1
- package/dist-cjs/commands/StartConfigurationSessionCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/AppConfigDataServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -396,7 +396,7 @@ var de_StartConfigurationSessionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
396
396
|
const contents = (0, import_smithy_client.map)({
|
|
397
397
|
$metadata: deserializeMetadata(output)
|
|
398
398
|
});
|
|
399
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
399
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
400
400
|
const doc = (0, import_smithy_client.take)(data, {
|
|
401
401
|
InitialConfigurationToken: import_smithy_client.expectString
|
|
402
402
|
});
|
|
@@ -406,9 +406,9 @@ var de_StartConfigurationSessionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
406
406
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
407
|
const parsedOutput = {
|
|
408
408
|
...output,
|
|
409
|
-
body: await
|
|
409
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
410
410
|
};
|
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
412
412
|
switch (errorCode) {
|
|
413
413
|
case "BadRequestException":
|
|
414
414
|
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
@@ -494,7 +494,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
494
494
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
495
495
|
cfId: output.headers["x-amz-cf-id"]
|
|
496
496
|
}), "deserializeMetadata");
|
|
497
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
498
497
|
var _CT = "ConfigurationToken";
|
|
499
498
|
var _CTo = "ContentType";
|
|
500
499
|
var _NPCT = "NextPollConfigurationToken";
|
|
@@ -505,46 +504,6 @@ var _ct_ = "content-type";
|
|
|
505
504
|
var _npct = "next-poll-configuration-token";
|
|
506
505
|
var _npiis = "next-poll-interval-in-seconds";
|
|
507
506
|
var _vl = "version-label";
|
|
508
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
509
|
-
if (encoded.length) {
|
|
510
|
-
return JSON.parse(encoded);
|
|
511
|
-
}
|
|
512
|
-
return {};
|
|
513
|
-
}), "parseBody");
|
|
514
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
515
|
-
const value = await parseBody(errorBody, context);
|
|
516
|
-
value.message = value.message ?? value.Message;
|
|
517
|
-
return value;
|
|
518
|
-
}, "parseErrorBody");
|
|
519
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
520
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
521
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
522
|
-
let cleanValue = rawValue;
|
|
523
|
-
if (typeof cleanValue === "number") {
|
|
524
|
-
cleanValue = cleanValue.toString();
|
|
525
|
-
}
|
|
526
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
527
|
-
cleanValue = cleanValue.split(",")[0];
|
|
528
|
-
}
|
|
529
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
530
|
-
cleanValue = cleanValue.split(":")[0];
|
|
531
|
-
}
|
|
532
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
533
|
-
cleanValue = cleanValue.split("#")[1];
|
|
534
|
-
}
|
|
535
|
-
return cleanValue;
|
|
536
|
-
}, "sanitizeErrorCode");
|
|
537
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
538
|
-
if (headerKey !== void 0) {
|
|
539
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
540
|
-
}
|
|
541
|
-
if (data.code !== void 0) {
|
|
542
|
-
return sanitizeErrorCode(data.code);
|
|
543
|
-
}
|
|
544
|
-
if (data["__type"] !== void 0) {
|
|
545
|
-
return sanitizeErrorCode(data["__type"]);
|
|
546
|
-
}
|
|
547
|
-
}, "loadRestJsonErrorCode");
|
|
548
507
|
|
|
549
508
|
// src/commands/GetLatestConfigurationCommand.ts
|
|
550
509
|
var _GetLatestConfigurationCommand = class _GetLatestConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
@@ -166,43 +166,3 @@ const _ct_ = "content-type";
|
|
|
166
166
|
const _npct = "next-poll-configuration-token";
|
|
167
167
|
const _npiis = "next-poll-interval-in-seconds";
|
|
168
168
|
const _vl = "version-label";
|
|
169
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
170
|
-
if (encoded.length) {
|
|
171
|
-
return JSON.parse(encoded);
|
|
172
|
-
}
|
|
173
|
-
return {};
|
|
174
|
-
});
|
|
175
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
176
|
-
const value = await parseBody(errorBody, context);
|
|
177
|
-
value.message = value.message ?? value.Message;
|
|
178
|
-
return value;
|
|
179
|
-
};
|
|
180
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
181
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
182
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
183
|
-
let cleanValue = rawValue;
|
|
184
|
-
if (typeof cleanValue === "number") {
|
|
185
|
-
cleanValue = cleanValue.toString();
|
|
186
|
-
}
|
|
187
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
188
|
-
cleanValue = cleanValue.split(",")[0];
|
|
189
|
-
}
|
|
190
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
191
|
-
cleanValue = cleanValue.split(":")[0];
|
|
192
|
-
}
|
|
193
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
194
|
-
cleanValue = cleanValue.split("#")[1];
|
|
195
|
-
}
|
|
196
|
-
return cleanValue;
|
|
197
|
-
};
|
|
198
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
199
|
-
if (headerKey !== undefined) {
|
|
200
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
201
|
-
}
|
|
202
|
-
if (data.code !== undefined) {
|
|
203
|
-
return sanitizeErrorCode(data.code);
|
|
204
|
-
}
|
|
205
|
-
if (data["__type"] !== undefined) {
|
|
206
|
-
return sanitizeErrorCode(data["__type"]);
|
|
207
|
-
}
|
|
208
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfigdata",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-appconfigdata",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-stream": "^2.1.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|