@servicevic-oss/cdk-cleanup-certificate-validation-records 1.3.52 → 1.3.53

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.
Files changed (58) hide show
  1. package/.jsii +4 -4
  2. package/lib/index.js +2 -2
  3. package/node_modules/@aws-sdk/client-acm/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-acm/package.json +3 -3
  5. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
  6. package/node_modules/@aws-sdk/client-route-53/package.json +3 -3
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +182 -0
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +473 -0
  9. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +59 -0
  11. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +14 -0
  12. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +30 -0
  13. package/node_modules/@aws-sdk/core/package.json +2 -1
  14. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  17. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  19. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  20. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  21. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  25. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  26. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  27. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  28. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  29. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  30. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +28 -10
  31. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  32. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  33. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  34. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js +8 -1
  35. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js +2 -1
  36. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +11 -9
  37. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.js +8 -0
  38. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -0
  39. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  40. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  41. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  42. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  43. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  44. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  45. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  46. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  47. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  48. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  49. package/node_modules/@smithy/core/package.json +91 -91
  50. package/node_modules/@smithy/credential-provider-imds/package.json +34 -34
  51. package/node_modules/@smithy/signature-v4/package.json +29 -29
  52. package/package.json +3 -3
  53. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  54. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  55. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
  56. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/getEndpointUrlConfig.js +0 -21
  57. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
  58. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
package/.jsii CHANGED
@@ -7,8 +7,8 @@
7
7
  ]
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-acm": "^3.1091.0",
11
- "@aws-sdk/client-route-53": "^3.1091.0",
10
+ "@aws-sdk/client-acm": "^3.1092.0",
11
+ "@aws-sdk/client-route-53": "^3.1092.0",
12
12
  "@types/aws-lambda": "^8.10.162",
13
13
  "async-await-retry": "^2.1.0"
14
14
  },
@@ -8898,6 +8898,6 @@
8898
8898
  "symbolId": "src/index:CertificateWithCleanup"
8899
8899
  }
8900
8900
  },
8901
- "version": "1.3.52",
8902
- "fingerprint": "+b+aiX24US6uqQLne12p162Q5vkMbbJ8mJIjibN5vfA="
8901
+ "version": "1.3.53",
8902
+ "fingerprint": "wb/esiNCYC+LVhBkryRNR5lihcfdk7zA2S7VI8R1KWs="
8903
8903
  }
package/lib/index.js CHANGED
@@ -43,7 +43,7 @@ const constructs_1 = require("constructs");
43
43
  * leave behind when deleting a DNS validated certificate
44
44
  */
45
45
  class CertificateValidationRecordCleanup extends constructs_1.Construct {
46
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateValidationRecordCleanup", version: "1.3.52" };
46
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateValidationRecordCleanup", version: "1.3.53" };
47
47
  static HANDLER_UID = 'CertRecordsCleanupHandler-2B663BAB-7981';
48
48
  static PROVIDER_UID = 'CertRecordsCleanupProvider-57EBF059-2E26';
49
49
  static LOG_GROUP_UID = 'CertRecordsCleanupLogGroup-57ABF051-1E25';
@@ -109,7 +109,7 @@ exports.CertificateValidationRecordCleanup = CertificateValidationRecordCleanup;
109
109
  * A wrapper class for a vanilla `Certificate` object with automatic cleanup attached
110
110
  */
111
111
  class CertificateWithCleanup extends cdk.aws_certificatemanager.Certificate {
112
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateWithCleanup", version: "1.3.52" };
112
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@servicevic-oss/cdk-cleanup-certificate-validation-records.CertificateWithCleanup", version: "1.3.53" };
113
113
  constructor(scope, id, props) {
114
114
  super(scope, id, props);
115
115
  if (props.validation && props.validation.props.hostedZone && props.validation?.method == cdk.aws_certificatemanager.ValidationMethod.DNS) {
@@ -71,7 +71,7 @@ const commonParams = {
71
71
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
72
72
  };
73
73
 
74
- var version = "3.1090.0";
74
+ var version = "3.1091.0";
75
75
  var packageInfo = {
76
76
  version: version};
77
77
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-acm",
3
- "version": "3.1091.0",
3
+ "version": "3.1092.0",
4
4
  "description": "AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm",
6
6
  "license": "Apache-2.0",
@@ -48,8 +48,8 @@
48
48
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.975.3",
52
- "@aws-sdk/credential-provider-node": "^3.972.70",
51
+ "@aws-sdk/core": "^3.976.0",
52
+ "@aws-sdk/credential-provider-node": "^3.972.71",
53
53
  "@aws-sdk/types": "^3.974.2",
54
54
  "@smithy/core": "^3.29.4",
55
55
  "@smithy/fetch-http-handler": "^5.6.6",
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1090.0";
73
+ var version = "3.1091.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route-53",
3
- "version": "3.1091.0",
3
+ "version": "3.1092.0",
4
4
  "description": "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
6
6
  "license": "Apache-2.0",
@@ -52,8 +52,8 @@
52
52
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/core": "^3.975.3",
56
- "@aws-sdk/credential-provider-node": "^3.972.70",
55
+ "@aws-sdk/core": "^3.976.0",
56
+ "@aws-sdk/credential-provider-node": "^3.972.71",
57
57
  "@aws-sdk/middleware-sdk-route53": "^3.972.23",
58
58
  "@aws-sdk/types": "^3.974.2",
59
59
  "@smithy/core": "^3.29.4",
@@ -0,0 +1,182 @@
1
+ import { determineTimestampFormat } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
+ import { fromBase64 } from "@smithy/core/serde";
5
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
+ import { UnionSerde } from "../../UnionSerde";
7
+ import { jsonReviver } from "../jsonReviver";
8
+ import { parseJsonBody } from "../parseJsonBody";
9
+ let canParseBuffer;
10
+ function detectBufferParsing() {
11
+ if (canParseBuffer === undefined) {
12
+ try {
13
+ const result = JSON.parse(new Uint8Array([0x7b, 0x7d]));
14
+ canParseBuffer = result !== null && typeof result === "object";
15
+ }
16
+ catch {
17
+ canParseBuffer = false;
18
+ }
19
+ }
20
+ return canParseBuffer;
21
+ }
22
+ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
23
+ settings;
24
+ constructor(settings) {
25
+ super();
26
+ this.settings = settings;
27
+ }
28
+ async read(schema, data) {
29
+ let parsed;
30
+ if (typeof data === "string") {
31
+ parsed = JSON.parse(data, jsonReviver);
32
+ }
33
+ else if (data instanceof Uint8Array && detectBufferParsing()) {
34
+ parsed = JSON.parse(data, jsonReviver);
35
+ }
36
+ else {
37
+ parsed = await parseJsonBody(data, this.serdeContext);
38
+ }
39
+ return this._read(schema, parsed);
40
+ }
41
+ readObject(schema, data) {
42
+ return this._read(schema, data);
43
+ }
44
+ _read(schema, value) {
45
+ const isObject = value !== null && typeof value === "object";
46
+ const ns = NormalizedSchema.of(schema);
47
+ if (isObject) {
48
+ if (ns.isStructSchema()) {
49
+ return this._readStruct(ns, value);
50
+ }
51
+ if (Array.isArray(value) && ns.isListSchema()) {
52
+ const listMember = ns.getValueSchema();
53
+ for (let i = 0; i < value.length; ++i) {
54
+ value[i] = this._read(listMember, value[i]);
55
+ }
56
+ return value;
57
+ }
58
+ if (ns.isMapSchema()) {
59
+ const mapMember = ns.getValueSchema();
60
+ const map = value;
61
+ for (const k in map) {
62
+ map[k] = this._read(mapMember, map[k]);
63
+ }
64
+ return map;
65
+ }
66
+ }
67
+ if (ns.isBlobSchema() && typeof value === "string") {
68
+ return fromBase64(value);
69
+ }
70
+ const mediaType = ns.getMergedTraits().mediaType;
71
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
72
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
73
+ if (isJson) {
74
+ return LazyJsonString.from(value);
75
+ }
76
+ return value;
77
+ }
78
+ if (ns.isTimestampSchema() && value != null) {
79
+ const format = determineTimestampFormat(ns, this.settings);
80
+ switch (format) {
81
+ case 5:
82
+ return parseRfc3339DateTimeWithOffset(value);
83
+ case 6:
84
+ return parseRfc7231DateTime(value);
85
+ case 7:
86
+ return parseEpochTimestamp(value);
87
+ default:
88
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
89
+ return new Date(value);
90
+ }
91
+ }
92
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
93
+ return BigInt(value);
94
+ }
95
+ if (ns.isBigDecimalSchema() && value != undefined) {
96
+ if (value instanceof NumericValue) {
97
+ return value;
98
+ }
99
+ const untyped = value;
100
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
101
+ return new NumericValue(untyped.string, untyped.type);
102
+ }
103
+ return new NumericValue(String(value), "bigDecimal");
104
+ }
105
+ if (ns.isNumericSchema() && typeof value === "string") {
106
+ switch (value) {
107
+ case "Infinity":
108
+ return Infinity;
109
+ case "-Infinity":
110
+ return -Infinity;
111
+ case "NaN":
112
+ return NaN;
113
+ }
114
+ return value;
115
+ }
116
+ if (ns.isDocumentSchema()) {
117
+ if (isObject) {
118
+ if (Array.isArray(value)) {
119
+ for (let i = 0; i < value.length; ++i) {
120
+ const v = value[i];
121
+ if (!(v instanceof NumericValue)) {
122
+ value[i] = this._read(ns, v);
123
+ }
124
+ }
125
+ }
126
+ else {
127
+ const doc = value;
128
+ for (const k in doc) {
129
+ const v = doc[k];
130
+ if (!(v instanceof NumericValue)) {
131
+ doc[k] = this._read(ns, v);
132
+ }
133
+ }
134
+ }
135
+ return value;
136
+ }
137
+ else {
138
+ return value;
139
+ }
140
+ }
141
+ return value;
142
+ }
143
+ _readStruct(ns, record) {
144
+ const union = ns.isUnionSchema();
145
+ const out = {};
146
+ let nameMap = void 0;
147
+ const { jsonName } = this.settings;
148
+ if (jsonName) {
149
+ nameMap = {};
150
+ }
151
+ let unionSerde;
152
+ if (union) {
153
+ unionSerde = new UnionSerde(record, out);
154
+ }
155
+ for (const [memberName, memberSchema] of ns.structIterator()) {
156
+ let fromKey = memberName;
157
+ if (jsonName) {
158
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
159
+ nameMap[fromKey] = memberName;
160
+ }
161
+ if (union) {
162
+ unionSerde.mark(fromKey);
163
+ }
164
+ if (record[fromKey] != null) {
165
+ out[memberName] = this._read(memberSchema, record[fromKey]);
166
+ }
167
+ }
168
+ if (union) {
169
+ unionSerde.writeUnknown();
170
+ }
171
+ else if (typeof record.__type === "string") {
172
+ for (const k in record) {
173
+ const v = record[k];
174
+ const t = jsonName ? (nameMap[k] ?? k) : k;
175
+ if (!(t in out)) {
176
+ out[t] = v;
177
+ }
178
+ }
179
+ }
180
+ return out;
181
+ }
182
+ }