@cdklabs/cdk-ecs-codedeploy 0.0.265 → 0.0.267
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/.jsii +2 -2
- package/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@smithy/core/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +45 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +36 -75
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +23 -23
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +4 -5
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +17 -17
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +12 -10
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +9 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +7 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +6 -4
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +7 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +18 -18
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +2 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +8 -3
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +2 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +7 -5
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +8 -2
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +1 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +41 -41
- package/node_modules/@smithy/middleware-retry/package.json +3 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +128 -7
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +125 -0
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +4 -4
- package/node_modules/@smithy/signature-v4/dist-types/HeaderFormatter.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +24 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/package.json +1 -2
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/package.json +4 -4
- package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -76
- package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
- package/node_modules/@aws-crypto/crc32/README.md +0 -16
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.js +0 -31
- package/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/index.js +0 -108
- package/node_modules/@aws-crypto/crc32/build/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +0 -12
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +0 -142
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +0 -51
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +0 -3
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +0 -37
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +0 -37
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +0 -218
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +0 -1
- package/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +0 -284
- package/node_modules/@aws-crypto/crc32/package.json +0 -28
- package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
- package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
- package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -23
- package/node_modules/@smithy/eventstream-codec/LICENSE +0 -201
- package/node_modules/@smithy/eventstream-codec/README.md +0 -4
- package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +0 -468
- package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +0 -62
- package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +0 -182
- package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +0 -43
- package/node_modules/@smithy/eventstream-codec/dist-es/Message.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +0 -14
- package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +0 -16
- package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +0 -14
- package/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +0 -690
- package/node_modules/@smithy/eventstream-codec/dist-es/index.js +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +0 -30
- package/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +0 -1
- package/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +0 -31
- package/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +0 -20
- package/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +0 -26
- package/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +0 -31
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +0 -20
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +0 -26
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/package.json +0 -61
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- /package/node_modules/@smithy/{eventstream-codec/dist-cjs/EventStreamCodec.js → signature-v4/dist-cjs/HeaderFormatter.js} +0 -0
|
@@ -33,10 +33,9 @@ __export(src_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(src_exports);
|
|
34
34
|
|
|
35
35
|
// src/SignatureV4.ts
|
|
36
|
-
var import_eventstream_codec = require("@smithy/eventstream-codec");
|
|
37
36
|
|
|
38
37
|
var import_util_middleware = require("@smithy/util-middleware");
|
|
39
|
-
var
|
|
38
|
+
var import_util_utf84 = require("@smithy/util-utf8");
|
|
40
39
|
|
|
41
40
|
// src/constants.ts
|
|
42
41
|
var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
|
|
@@ -174,6 +173,128 @@ var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstr
|
|
|
174
173
|
return UNSIGNED_PAYLOAD;
|
|
175
174
|
}, "getPayloadHash");
|
|
176
175
|
|
|
176
|
+
// src/HeaderFormatter.ts
|
|
177
|
+
|
|
178
|
+
var import_util_utf83 = require("@smithy/util-utf8");
|
|
179
|
+
var _HeaderFormatter = class _HeaderFormatter {
|
|
180
|
+
format(headers) {
|
|
181
|
+
const chunks = [];
|
|
182
|
+
for (const headerName of Object.keys(headers)) {
|
|
183
|
+
const bytes = (0, import_util_utf83.fromUtf8)(headerName);
|
|
184
|
+
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
185
|
+
}
|
|
186
|
+
const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
|
|
187
|
+
let position = 0;
|
|
188
|
+
for (const chunk of chunks) {
|
|
189
|
+
out.set(chunk, position);
|
|
190
|
+
position += chunk.byteLength;
|
|
191
|
+
}
|
|
192
|
+
return out;
|
|
193
|
+
}
|
|
194
|
+
formatHeaderValue(header) {
|
|
195
|
+
switch (header.type) {
|
|
196
|
+
case "boolean":
|
|
197
|
+
return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
|
|
198
|
+
case "byte":
|
|
199
|
+
return Uint8Array.from([2 /* byte */, header.value]);
|
|
200
|
+
case "short":
|
|
201
|
+
const shortView = new DataView(new ArrayBuffer(3));
|
|
202
|
+
shortView.setUint8(0, 3 /* short */);
|
|
203
|
+
shortView.setInt16(1, header.value, false);
|
|
204
|
+
return new Uint8Array(shortView.buffer);
|
|
205
|
+
case "integer":
|
|
206
|
+
const intView = new DataView(new ArrayBuffer(5));
|
|
207
|
+
intView.setUint8(0, 4 /* integer */);
|
|
208
|
+
intView.setInt32(1, header.value, false);
|
|
209
|
+
return new Uint8Array(intView.buffer);
|
|
210
|
+
case "long":
|
|
211
|
+
const longBytes = new Uint8Array(9);
|
|
212
|
+
longBytes[0] = 5 /* long */;
|
|
213
|
+
longBytes.set(header.value.bytes, 1);
|
|
214
|
+
return longBytes;
|
|
215
|
+
case "binary":
|
|
216
|
+
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
217
|
+
binView.setUint8(0, 6 /* byteArray */);
|
|
218
|
+
binView.setUint16(1, header.value.byteLength, false);
|
|
219
|
+
const binBytes = new Uint8Array(binView.buffer);
|
|
220
|
+
binBytes.set(header.value, 3);
|
|
221
|
+
return binBytes;
|
|
222
|
+
case "string":
|
|
223
|
+
const utf8Bytes = (0, import_util_utf83.fromUtf8)(header.value);
|
|
224
|
+
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
225
|
+
strView.setUint8(0, 7 /* string */);
|
|
226
|
+
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
227
|
+
const strBytes = new Uint8Array(strView.buffer);
|
|
228
|
+
strBytes.set(utf8Bytes, 3);
|
|
229
|
+
return strBytes;
|
|
230
|
+
case "timestamp":
|
|
231
|
+
const tsBytes = new Uint8Array(9);
|
|
232
|
+
tsBytes[0] = 8 /* timestamp */;
|
|
233
|
+
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
234
|
+
return tsBytes;
|
|
235
|
+
case "uuid":
|
|
236
|
+
if (!UUID_PATTERN.test(header.value)) {
|
|
237
|
+
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
238
|
+
}
|
|
239
|
+
const uuidBytes = new Uint8Array(17);
|
|
240
|
+
uuidBytes[0] = 9 /* uuid */;
|
|
241
|
+
uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1);
|
|
242
|
+
return uuidBytes;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
__name(_HeaderFormatter, "HeaderFormatter");
|
|
247
|
+
var HeaderFormatter = _HeaderFormatter;
|
|
248
|
+
var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
249
|
+
var _Int64 = class _Int64 {
|
|
250
|
+
constructor(bytes) {
|
|
251
|
+
this.bytes = bytes;
|
|
252
|
+
if (bytes.byteLength !== 8) {
|
|
253
|
+
throw new Error("Int64 buffers must be exactly 8 bytes");
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
static fromNumber(number) {
|
|
257
|
+
if (number > 9223372036854776e3 || number < -9223372036854776e3) {
|
|
258
|
+
throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
|
|
259
|
+
}
|
|
260
|
+
const bytes = new Uint8Array(8);
|
|
261
|
+
for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
|
|
262
|
+
bytes[i] = remaining;
|
|
263
|
+
}
|
|
264
|
+
if (number < 0) {
|
|
265
|
+
negate(bytes);
|
|
266
|
+
}
|
|
267
|
+
return new _Int64(bytes);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Called implicitly by infix arithmetic operators.
|
|
271
|
+
*/
|
|
272
|
+
valueOf() {
|
|
273
|
+
const bytes = this.bytes.slice(0);
|
|
274
|
+
const negative = bytes[0] & 128;
|
|
275
|
+
if (negative) {
|
|
276
|
+
negate(bytes);
|
|
277
|
+
}
|
|
278
|
+
return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);
|
|
279
|
+
}
|
|
280
|
+
toString() {
|
|
281
|
+
return String(this.valueOf());
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
__name(_Int64, "Int64");
|
|
285
|
+
var Int64 = _Int64;
|
|
286
|
+
function negate(bytes) {
|
|
287
|
+
for (let i = 0; i < 8; i++) {
|
|
288
|
+
bytes[i] ^= 255;
|
|
289
|
+
}
|
|
290
|
+
for (let i = 7; i > -1; i--) {
|
|
291
|
+
bytes[i]++;
|
|
292
|
+
if (bytes[i] !== 0)
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
__name(negate, "negate");
|
|
297
|
+
|
|
177
298
|
// src/headerUtil.ts
|
|
178
299
|
var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
|
|
179
300
|
soughtHeader = soughtHeader.toLowerCase();
|
|
@@ -253,7 +374,7 @@ var _SignatureV4 = class _SignatureV4 {
|
|
|
253
374
|
sha256,
|
|
254
375
|
uriEscapePath = true
|
|
255
376
|
}) {
|
|
256
|
-
this.
|
|
377
|
+
this.headerFormatter = new HeaderFormatter();
|
|
257
378
|
this.service = service;
|
|
258
379
|
this.sha256 = sha256;
|
|
259
380
|
this.uriEscapePath = uriEscapePath;
|
|
@@ -331,7 +452,7 @@ var _SignatureV4 = class _SignatureV4 {
|
|
|
331
452
|
async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {
|
|
332
453
|
const promise = this.signEvent(
|
|
333
454
|
{
|
|
334
|
-
headers: this.
|
|
455
|
+
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
335
456
|
payload: signableMessage.message.body
|
|
336
457
|
},
|
|
337
458
|
{
|
|
@@ -351,7 +472,7 @@ var _SignatureV4 = class _SignatureV4 {
|
|
|
351
472
|
const region = signingRegion ?? await this.regionProvider();
|
|
352
473
|
const { shortDate } = formatDate(signingDate);
|
|
353
474
|
const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));
|
|
354
|
-
hash.update((0,
|
|
475
|
+
hash.update((0, import_util_utf84.toUint8Array)(stringToSign));
|
|
355
476
|
return (0, import_util_hex_encoding.toHex)(await hash.digest());
|
|
356
477
|
}
|
|
357
478
|
async signRequest(requestToSign, {
|
|
@@ -397,7 +518,7 @@ ${payloadHash}`;
|
|
|
397
518
|
}
|
|
398
519
|
async createStringToSign(longDate, credentialScope, canonicalRequest) {
|
|
399
520
|
const hash = new this.sha256();
|
|
400
|
-
hash.update((0,
|
|
521
|
+
hash.update((0, import_util_utf84.toUint8Array)(canonicalRequest));
|
|
401
522
|
const hashedRequest = await hash.digest();
|
|
402
523
|
return `${ALGORITHM_IDENTIFIER}
|
|
403
524
|
${longDate}
|
|
@@ -427,7 +548,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
|
|
|
427
548
|
async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
|
|
428
549
|
const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
|
|
429
550
|
const hash = new this.sha256(await keyPromise);
|
|
430
|
-
hash.update((0,
|
|
551
|
+
hash.update((0, import_util_utf84.toUint8Array)(stringToSign));
|
|
431
552
|
return (0, import_util_hex_encoding.toHex)(await hash.digest());
|
|
432
553
|
}
|
|
433
554
|
getSigningKey(credentials, region, shortDate, service) {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { fromHex, toHex } from "@smithy/util-hex-encoding";
|
|
2
|
+
import { fromUtf8 } from "@smithy/util-utf8";
|
|
3
|
+
export class HeaderFormatter {
|
|
4
|
+
format(headers) {
|
|
5
|
+
const chunks = [];
|
|
6
|
+
for (const headerName of Object.keys(headers)) {
|
|
7
|
+
const bytes = fromUtf8(headerName);
|
|
8
|
+
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
9
|
+
}
|
|
10
|
+
const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
|
|
11
|
+
let position = 0;
|
|
12
|
+
for (const chunk of chunks) {
|
|
13
|
+
out.set(chunk, position);
|
|
14
|
+
position += chunk.byteLength;
|
|
15
|
+
}
|
|
16
|
+
return out;
|
|
17
|
+
}
|
|
18
|
+
formatHeaderValue(header) {
|
|
19
|
+
switch (header.type) {
|
|
20
|
+
case "boolean":
|
|
21
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
22
|
+
case "byte":
|
|
23
|
+
return Uint8Array.from([2, header.value]);
|
|
24
|
+
case "short":
|
|
25
|
+
const shortView = new DataView(new ArrayBuffer(3));
|
|
26
|
+
shortView.setUint8(0, 3);
|
|
27
|
+
shortView.setInt16(1, header.value, false);
|
|
28
|
+
return new Uint8Array(shortView.buffer);
|
|
29
|
+
case "integer":
|
|
30
|
+
const intView = new DataView(new ArrayBuffer(5));
|
|
31
|
+
intView.setUint8(0, 4);
|
|
32
|
+
intView.setInt32(1, header.value, false);
|
|
33
|
+
return new Uint8Array(intView.buffer);
|
|
34
|
+
case "long":
|
|
35
|
+
const longBytes = new Uint8Array(9);
|
|
36
|
+
longBytes[0] = 5;
|
|
37
|
+
longBytes.set(header.value.bytes, 1);
|
|
38
|
+
return longBytes;
|
|
39
|
+
case "binary":
|
|
40
|
+
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
41
|
+
binView.setUint8(0, 6);
|
|
42
|
+
binView.setUint16(1, header.value.byteLength, false);
|
|
43
|
+
const binBytes = new Uint8Array(binView.buffer);
|
|
44
|
+
binBytes.set(header.value, 3);
|
|
45
|
+
return binBytes;
|
|
46
|
+
case "string":
|
|
47
|
+
const utf8Bytes = fromUtf8(header.value);
|
|
48
|
+
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
49
|
+
strView.setUint8(0, 7);
|
|
50
|
+
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
51
|
+
const strBytes = new Uint8Array(strView.buffer);
|
|
52
|
+
strBytes.set(utf8Bytes, 3);
|
|
53
|
+
return strBytes;
|
|
54
|
+
case "timestamp":
|
|
55
|
+
const tsBytes = new Uint8Array(9);
|
|
56
|
+
tsBytes[0] = 8;
|
|
57
|
+
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
58
|
+
return tsBytes;
|
|
59
|
+
case "uuid":
|
|
60
|
+
if (!UUID_PATTERN.test(header.value)) {
|
|
61
|
+
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
62
|
+
}
|
|
63
|
+
const uuidBytes = new Uint8Array(17);
|
|
64
|
+
uuidBytes[0] = 9;
|
|
65
|
+
uuidBytes.set(fromHex(header.value.replace(/\-/g, "")), 1);
|
|
66
|
+
return uuidBytes;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
var HEADER_VALUE_TYPE;
|
|
71
|
+
(function (HEADER_VALUE_TYPE) {
|
|
72
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue";
|
|
73
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse";
|
|
74
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte";
|
|
75
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short";
|
|
76
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer";
|
|
77
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long";
|
|
78
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray";
|
|
79
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string";
|
|
80
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp";
|
|
81
|
+
HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid";
|
|
82
|
+
})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
|
|
83
|
+
const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
84
|
+
export class Int64 {
|
|
85
|
+
constructor(bytes) {
|
|
86
|
+
this.bytes = bytes;
|
|
87
|
+
if (bytes.byteLength !== 8) {
|
|
88
|
+
throw new Error("Int64 buffers must be exactly 8 bytes");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
static fromNumber(number) {
|
|
92
|
+
if (number > 9223372036854776000 || number < -9223372036854776000) {
|
|
93
|
+
throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
|
|
94
|
+
}
|
|
95
|
+
const bytes = new Uint8Array(8);
|
|
96
|
+
for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
|
|
97
|
+
bytes[i] = remaining;
|
|
98
|
+
}
|
|
99
|
+
if (number < 0) {
|
|
100
|
+
negate(bytes);
|
|
101
|
+
}
|
|
102
|
+
return new Int64(bytes);
|
|
103
|
+
}
|
|
104
|
+
valueOf() {
|
|
105
|
+
const bytes = this.bytes.slice(0);
|
|
106
|
+
const negative = bytes[0] & 0b10000000;
|
|
107
|
+
if (negative) {
|
|
108
|
+
negate(bytes);
|
|
109
|
+
}
|
|
110
|
+
return parseInt(toHex(bytes), 16) * (negative ? -1 : 1);
|
|
111
|
+
}
|
|
112
|
+
toString() {
|
|
113
|
+
return String(this.valueOf());
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function negate(bytes) {
|
|
117
|
+
for (let i = 0; i < 8; i++) {
|
|
118
|
+
bytes[i] ^= 0xff;
|
|
119
|
+
}
|
|
120
|
+
for (let i = 7; i > -1; i--) {
|
|
121
|
+
bytes[i]++;
|
|
122
|
+
if (bytes[i] !== 0)
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { HeaderMarshaller } from "@smithy/eventstream-codec";
|
|
2
1
|
import { toHex } from "@smithy/util-hex-encoding";
|
|
3
2
|
import { normalizeProvider } from "@smithy/util-middleware";
|
|
4
|
-
import {
|
|
3
|
+
import { toUint8Array } from "@smithy/util-utf8";
|
|
5
4
|
import { ALGORITHM_IDENTIFIER, ALGORITHM_QUERY_PARAM, AMZ_DATE_HEADER, AMZ_DATE_QUERY_PARAM, AUTH_HEADER, CREDENTIAL_QUERY_PARAM, EVENT_ALGORITHM_IDENTIFIER, EXPIRES_QUERY_PARAM, MAX_PRESIGNED_TTL, SHA256_HEADER, SIGNATURE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, TOKEN_HEADER, TOKEN_QUERY_PARAM, } from "./constants";
|
|
6
5
|
import { createScope, getSigningKey } from "./credentialDerivation";
|
|
7
6
|
import { getCanonicalHeaders } from "./getCanonicalHeaders";
|
|
8
7
|
import { getCanonicalQuery } from "./getCanonicalQuery";
|
|
9
8
|
import { getPayloadHash } from "./getPayloadHash";
|
|
9
|
+
import { HeaderFormatter } from "./HeaderFormatter";
|
|
10
10
|
import { hasHeader } from "./headerUtil";
|
|
11
11
|
import { moveHeadersToQuery } from "./moveHeadersToQuery";
|
|
12
12
|
import { prepareRequest } from "./prepareRequest";
|
|
13
13
|
import { iso8601 } from "./utilDate";
|
|
14
14
|
export class SignatureV4 {
|
|
15
15
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) {
|
|
16
|
-
this.
|
|
16
|
+
this.headerFormatter = new HeaderFormatter();
|
|
17
17
|
this.service = service;
|
|
18
18
|
this.sha256 = sha256;
|
|
19
19
|
this.uriEscapePath = uriEscapePath;
|
|
@@ -78,7 +78,7 @@ export class SignatureV4 {
|
|
|
78
78
|
}
|
|
79
79
|
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) {
|
|
80
80
|
const promise = this.signEvent({
|
|
81
|
-
headers: this.
|
|
81
|
+
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
82
82
|
payload: signableMessage.message.body,
|
|
83
83
|
}, {
|
|
84
84
|
signingDate,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Int64 as IInt64, MessageHeaders } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* TODO: duplicated from @smithy/eventstream-codec to break large dependency.
|
|
5
|
+
* TODO: This should be moved to its own deduped submodule in @smithy/core when submodules are implemented.
|
|
6
|
+
*/
|
|
7
|
+
export declare class HeaderFormatter {
|
|
8
|
+
format(headers: MessageHeaders): Uint8Array;
|
|
9
|
+
private formatHeaderValue;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* TODO: duplicated from @smithy/eventstream-codec to break large dependency.
|
|
13
|
+
* TODO: This should be moved to its own deduped submodule in @smithy/core when submodules are implemented.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Int64 implements IInt64 {
|
|
16
|
+
readonly bytes: Uint8Array;
|
|
17
|
+
constructor(bytes: Uint8Array);
|
|
18
|
+
static fromNumber(number: number): Int64;
|
|
19
|
+
/**
|
|
20
|
+
* Called implicitly by infix arithmetic operators.
|
|
21
|
+
*/
|
|
22
|
+
valueOf(): number;
|
|
23
|
+
toString(): string;
|
|
24
|
+
}
|
|
@@ -47,7 +47,7 @@ export declare class SignatureV4 implements RequestPresigner, RequestSigner, Str
|
|
|
47
47
|
private readonly sha256;
|
|
48
48
|
private readonly uriEscapePath;
|
|
49
49
|
private readonly applyChecksum;
|
|
50
|
-
private readonly
|
|
50
|
+
private readonly headerFormatter;
|
|
51
51
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
|
|
52
52
|
presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
53
53
|
sign(stringToSign: string, options?: SigningArguments): Promise<string>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Int64 as IInt64, MessageHeaders } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* TODO: duplicated from @smithy/eventstream-codec to break large dependency.
|
|
5
|
+
* TODO: This should be moved to its own deduped submodule in @smithy/core when submodules are implemented.
|
|
6
|
+
*/
|
|
7
|
+
export declare class HeaderFormatter {
|
|
8
|
+
format(headers: MessageHeaders): Uint8Array;
|
|
9
|
+
private formatHeaderValue;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* TODO: duplicated from @smithy/eventstream-codec to break large dependency.
|
|
13
|
+
* TODO: This should be moved to its own deduped submodule in @smithy/core when submodules are implemented.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Int64 implements IInt64 {
|
|
16
|
+
readonly bytes: Uint8Array;
|
|
17
|
+
constructor(bytes: Uint8Array);
|
|
18
|
+
static fromNumber(number: number): Int64;
|
|
19
|
+
/**
|
|
20
|
+
* Called implicitly by infix arithmetic operators.
|
|
21
|
+
*/
|
|
22
|
+
valueOf(): number;
|
|
23
|
+
toString(): string;
|
|
24
|
+
}
|
|
@@ -47,7 +47,7 @@ export declare class SignatureV4 implements RequestPresigner, RequestSigner, Str
|
|
|
47
47
|
private readonly sha256;
|
|
48
48
|
private readonly uriEscapePath;
|
|
49
49
|
private readonly applyChecksum;
|
|
50
|
-
private readonly
|
|
50
|
+
private readonly headerFormatter;
|
|
51
51
|
constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit);
|
|
52
52
|
presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
53
53
|
sign(stringToSign: string, options?: SigningArguments): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/eventstream-codec": "^2.2.0",
|
|
28
27
|
"@smithy/is-array-buffer": "^2.2.0",
|
|
29
28
|
"@smithy/types": "^2.12.0",
|
|
30
29
|
"@smithy/util-hex-encoding": "^2.2.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline smithy-client",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/middleware-endpoint": "^2.5.
|
|
26
|
+
"@smithy/middleware-endpoint": "^2.5.1",
|
|
27
27
|
"@smithy/middleware-stack": "^2.2.0",
|
|
28
28
|
"@smithy/protocol-http": "^3.3.0",
|
|
29
29
|
"@smithy/types": "^2.12.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@smithy/property-provider": "^2.2.0",
|
|
26
|
-
"@smithy/smithy-client": "^2.5.
|
|
26
|
+
"@smithy/smithy-client": "^2.5.1",
|
|
27
27
|
"@smithy/types": "^2.12.0",
|
|
28
28
|
"bowser": "^2.11.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@smithy/credential-provider-imds": "^2.3.0",
|
|
27
27
|
"@smithy/node-config-provider": "^2.3.0",
|
|
28
28
|
"@smithy/property-provider": "^2.2.0",
|
|
29
|
-
"@smithy/smithy-client": "^2.5.
|
|
29
|
+
"@smithy/smithy-client": "^2.5.1",
|
|
30
30
|
"@smithy/types": "^2.12.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"aws-cdk-lib": "2.131.0",
|
|
84
84
|
"aws-sdk-client-mock": "^4.0.0",
|
|
85
85
|
"aws-sdk-client-mock-jest": "^4.0.0",
|
|
86
|
-
"cdk-nag": "^2.28.
|
|
86
|
+
"cdk-nag": "^2.28.80",
|
|
87
87
|
"cdklabs-projen-project-types": "^0.1.190",
|
|
88
88
|
"constructs": "10.0.5",
|
|
89
89
|
"esbuild": "^0.20.2",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"jsii-diff": "^1.96.0",
|
|
97
97
|
"jsii-docgen": "^7.2.9",
|
|
98
98
|
"jsii-pacmak": "^1.96.0",
|
|
99
|
-
"jsii-rosetta": "^5.3.
|
|
99
|
+
"jsii-rosetta": "^5.3.34",
|
|
100
100
|
"lambda-tester": "^4.0.1",
|
|
101
|
-
"projen": "0.80.
|
|
101
|
+
"projen": "0.80.16",
|
|
102
102
|
"standard-version": "^9",
|
|
103
103
|
"ts-jest": "^27",
|
|
104
104
|
"ts-node": "^10.9.2",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.267",
|
|
131
131
|
"jest": {
|
|
132
132
|
"testMatch": [
|
|
133
133
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12)
|
|
7
|
-
|
|
8
|
-
- feat!: replace Hash implementations with Checksum interface (#492) ([da43dc0](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/da43dc0fdf669d9ebb5bfb1b1f7c79e46c4aaae1)), closes [#492](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/492)
|
|
9
|
-
|
|
10
|
-
### BREAKING CHANGES
|
|
11
|
-
|
|
12
|
-
- All classes that implemented `Hash` now implement `Checksum`.
|
|
13
|
-
|
|
14
|
-
## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07)
|
|
15
|
-
|
|
16
|
-
### Bug Fixes
|
|
17
|
-
|
|
18
|
-
- **#337:** update @aws-sdk/types ([#373](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/373)) ([b26a811](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/b26a811a392f5209c7ec7e57251500d4d78f97ff)), closes [#337](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/337)
|
|
19
|
-
|
|
20
|
-
## [2.0.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.0...v2.0.1) (2021-12-09)
|
|
21
|
-
|
|
22
|
-
**Note:** Version bump only for package @aws-crypto/crc32
|
|
23
|
-
|
|
24
|
-
# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25)
|
|
25
|
-
|
|
26
|
-
**Note:** Version bump only for package @aws-crypto/crc32
|
|
27
|
-
|
|
28
|
-
## [1.2.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.1...v1.2.2) (2021-10-12)
|
|
29
|
-
|
|
30
|
-
### Bug Fixes
|
|
31
|
-
|
|
32
|
-
- **crc32c:** ie11 does not support Array.from ([#221](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/221)) ([5f49547](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/5f495472ab8988cf203e0f2a70a51f7e1fcd7e60))
|
|
33
|
-
|
|
34
|
-
## [1.2.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.0...v1.2.1) (2021-09-17)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @aws-crypto/crc32
|
|
37
|
-
|
|
38
|
-
# [1.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.1.1...v1.2.0) (2021-09-17)
|
|
39
|
-
|
|
40
|
-
### Features
|
|
41
|
-
|
|
42
|
-
- Add AwsCrc32 Hash ([f5d7e81](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/f5d7e815fcbe0f8da1edb855fea3bd33eb1edc15))
|
|
43
|
-
|
|
44
|
-
# [1.1.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@1.0.0...@aws-crypto/crc32@1.1.0) (2021-08-11)
|
|
45
|
-
|
|
46
|
-
### Features
|
|
47
|
-
|
|
48
|
-
- Create CRC-32C implementation ([#201](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/201)) ([e43c7ec](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/e43c7ecd30d6499fa696f5839ecc30502a34b8b6))
|
|
49
|
-
|
|
50
|
-
# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@1.0.0-alpha.0...@aws-crypto/crc32@1.0.0) (2020-10-22)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @aws-crypto/crc32
|
|
53
|
-
|
|
54
|
-
# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.4...@aws-crypto/crc32@1.0.0-alpha.0) (2020-02-07)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @aws-crypto/crc32
|
|
57
|
-
|
|
58
|
-
# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.2...@aws-crypto/crc32@0.1.0-preview.4) (2020-01-16)
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8)
|
|
63
|
-
- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13)
|
|
64
|
-
|
|
65
|
-
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.2...@aws-crypto/crc32@0.1.0-preview.3) (2019-11-15)
|
|
66
|
-
|
|
67
|
-
### Bug Fixes
|
|
68
|
-
|
|
69
|
-
- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8)
|
|
70
|
-
- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13)
|
|
71
|
-
|
|
72
|
-
# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.1...@aws-crypto/crc32@0.1.0-preview.2) (2019-10-30)
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056))
|