@aws-sdk/middleware-apply-body-checksum
Advanced tools
Comparing version 3.23.0 to 3.25.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [3.25.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.24.0...v3.25.0) (2021-08-05) | ||
### Bug Fixes | ||
* **middleware-apply-body-checksum:** use lowercase content-md5 header ([#2645](https://github.com/aws/aws-sdk-js-v3/issues/2645)) ([e1f2dfc](https://github.com/aws/aws-sdk-js-v3/commit/e1f2dfcb8dbfd999829e3843bab6578518496728)) | ||
* **packages:** use HashConstructor instead of { new: Hash } ([#2638](https://github.com/aws/aws-sdk-js-v3/issues/2638)) ([6890a47](https://github.com/aws/aws-sdk-js-v3/commit/6890a47322fa37efb7a5589ab57d3273da69ac67)) | ||
# [3.23.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.22.0...v3.23.0) (2021-07-23) | ||
@@ -8,0 +20,0 @@ |
@@ -10,3 +10,3 @@ "use strict"; | ||
const { body, headers } = request; | ||
if (!hasHeader("Content-MD5", headers)) { | ||
if (!hasHeader("content-md5", headers)) { | ||
let digest; | ||
@@ -25,3 +25,3 @@ if (body === undefined || typeof body === "string" || ArrayBuffer.isView(body) || is_array_buffer_1.isArrayBuffer(body)) { | ||
...headers, | ||
"Content-MD5": options.base64Encoder(await digest), | ||
"content-md5": options.base64Encoder(await digest), | ||
}, | ||
@@ -58,2 +58,2 @@ }; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FwcGx5TWQ1Qm9keUNoZWNrc3VtTWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw4REFBeUQ7QUFDekQsMERBQXFEO0FBYzlDLE1BQU0sOEJBQThCLEdBQ3pDLENBQUMsT0FBc0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zOiBbXCJTRVRfQ09OVEVOVF9NRDVcIiwgXCJCT0RZX0NIRUNLU1VNXCJdLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRBcHBseU1kNUJvZHlDaGVja3N1bVBsdWdpbiA9IChjb25maWc6IE1kNUJvZHlDaGVja3N1bVJlc29sdmVkQ29uZmlnKTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChhcHBseU1kNUJvZHlDaGVja3N1bU1pZGRsZXdhcmUoY29uZmlnKSwgYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcblxuY29uc3QgaGFzSGVhZGVyID0gKHNvdWdodEhlYWRlcjogc3RyaW5nLCBoZWFkZXJzOiBIZWFkZXJCYWcpOiBib29sZWFuID0+IHtcbiAgc291Z2h0SGVhZGVyID0gc291Z2h0SGVhZGVyLnRvTG93ZXJDYXNlKCk7XG4gIGZvciAoY29uc3QgaGVhZGVyTmFtZSBvZiBPYmplY3Qua2V5cyhoZWFkZXJzKSkge1xuICAgIGlmIChzb3VnaHRIZWFkZXIgPT09IGhlYWRlck5hbWUudG9Mb3dlckNhc2UoKSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGZhbHNlO1xufTtcbiJdfQ== |
@@ -6,2 +6,2 @@ "use strict"; | ||
exports.resolveMd5BodyChecksumConfig = resolveMd5BodyChecksumConfig; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1Q29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZDVDb25maWd1cmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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zb2x2ZWRDb25maWcge1xuICAvKipcbiAgICogQSBjb25zdHJ1Y3RvciBmb3IgYSBjbGFzcyBpbXBsZW1lbnRpbmcgdGhlIEBhd3Mtc2RrL3R5cGVzLkhhc2ggaW50ZXJmYWNlIHRoYXQgY29tcHV0ZXMgTUQ1IGhhc2hlcy5cbiAgICogQGludGVybmFsXG4gICAqL1xuICBtZDU6IEhhc2hDb25zdHJ1Y3RvcjtcbiAgLyoqXG4gICAqIFRoZSBmdW5jdGlvbiB0aGF0IHdpbGwgYmUgdXNlZCB0byBjb252ZXJ0IGJpbmFyeSBkYXRhIHRvIGEgYmFzZTY0LWVuY29kZWQgc3RyaW5nLlxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIGJhc2U2NEVuY29kZXI6IEVuY29kZXI7XG4gIC8qKlxuICAgKiBBIGZ1bmN0aW9uIHRoYXQsIGdpdmVuIGEgaGFzaCBjb25zdHJ1Y3RvciBhbmQgYSBzdHJlYW0sIGNhbGN1bGF0ZXMgdGhlIGhhc2ggb2YgdGhlIHN0cmVhbWVkIHZhbHVlLlxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIHN0cmVhbUhhc2hlcjogU3RyZWFtSGFzaGVyPGFueT47XG59XG5cbmV4cG9ydCBjb25zdCByZXNvbHZlTWQ1Qm9keUNoZWNrc3VtQ29uZmlnID0gPFQ+KFxuICBpbnB1dDogVCAmIFByZXZpb3VzbHlSZXNvbHZlZCAmIE1kNUJvZHlDaGVja3N1bUlucHV0Q29uZmlnXG4pOiBUICYgTWQ1Qm9keUNoZWNrc3VtUmVzb2x2ZWRDb25maWcgPT4gaW5wdXQ7XG4iXX0= |
@@ -15,3 +15,3 @@ import { __assign, __awaiter, __generator, __values } from "tslib"; | ||
body = request.body, headers = request.headers; | ||
if (!!hasHeader("Content-MD5", headers)) return [3 /*break*/, 2]; | ||
if (!!hasHeader("content-md5", headers)) return [3 /*break*/, 2]; | ||
digest = void 0; | ||
@@ -30,3 +30,3 @@ if (body === undefined || typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer(body)) { | ||
_g = {}; | ||
_c = "Content-MD5"; | ||
_c = "content-md5"; | ||
_e = (_d = options).base64Encoder; | ||
@@ -74,2 +74,2 @@ return [4 /*yield*/, digest]; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FwcGx5TWQ1Qm9keUNoZWNrc3VtTWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQWNyRCxNQUFNLENBQUMsSUFBTSw4QkFBOEIsR0FDekMsVUFBQyxPQUFzQztJQUN2QyxPQUFBLFVBQWdDLElBQStCO1FBQy9ELE9BQUEsVUFBTyxJQUFnQzs7Ozs7O3dCQUMvQixPQUFPLEdBQUssSUFBSSxRQUFULENBQVU7NkJBQ25CLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQS9CLHdCQUErQjt3QkFDekIsSUFBSSxHQUFjLE9BQU8sS0FBckIsRUFBRSxPQUFPLEdBQUssT0FBTyxRQUFaLENBQWE7NkJBQzlCLENBQUMsU0FBUyxDQUFDLGFBQWEsRUFBRSxPQUFPLENBQUMsRUFBbEMsd0JBQWtDO3dCQUNoQyxNQUFNLFNBQXFCLENBQUM7d0JBQ2hDLElBQUksSUFBSSxLQUFLLFNBQVMsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLElBQUksV0FBVyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxhQUFhLENBQUMsSUFBSSxDQUFDL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1xuICAgIGNsaWVudFN0YWNrLmFkZChhcHBseU1kNUJvZHlDaGVja3N1bU1pZGRsZXdhcmUoY29uZmlnKSwgYXBwbHlNZDVCb2R5Q2hlY2tzdW1NaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcblxuY29uc3QgaGFzSGVhZGVyID0gKHNvdWdodEhlYWRlcjogc3RyaW5nLCBoZWFkZXJzOiBIZWFkZXJCYWcpOiBib29sZWFuID0+IHtcbiAgc291Z2h0SGVhZGVyID0gc291Z2h0SGVhZGVyLnRvTG93ZXJDYXNlKCk7XG4gIGZvciAoY29uc3QgaGVhZGVyTmFtZSBvZiBPYmplY3Qua2V5cyhoZWFkZXJzKSkge1xuICAgIGlmIChzb3VnaHRIZWFkZXIgPT09IGhlYWRlck5hbWUudG9Mb3dlckNhc2UoKSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGZhbHNlO1xufTtcbiJdfQ== |
export var resolveMd5BodyChecksumConfig = function (input) { return input; }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWQ1Q29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZDVDb25maWd1cmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCQSxNQUFNLENBQUMsSUFBTSw0QkFBNEIsR0FBRyxVQUMxQyxLQUEwRCxJQUNwQixPQUFBLEtBQUssRUFBTCxDQUFLLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbmNvZGVyLCBIYXNoLCBTdHJlYW1IYXNoZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGludGVyZmFjZSBNZDVCb2R5Q2hlY2tzdW1JbnB1dENvbmZpZyB7fVxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZ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nLlxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIGJhc2U2NEVuY29kZXI6IEVuY29kZXI7XG4gIC8qKlxuICAgKiBBIGZ1bmN0aW9uIHRoYXQsIGdpdmVuIGEgaGFzaCBjb25zdHJ1Y3RvciBhbmQgYSBzdHJlYW0sIGNhbGN1bGF0ZXMgdGhlIGhhc2ggb2YgdGhlIHN0cmVhbWVkIHZhbHVlLlxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIHN0cmVhbUhhc2hlcjogU3RyZWFtSGFzaGVyPGFueT47XG59XG5cbmV4cG9ydCBjb25zdCByZXNvbHZlTWQ1Qm9keUNoZWNrc3VtQ29uZmlnID0gPFQ+KFxuICBpbnB1dDogVCAmIFByZXZpb3VzbHlSZXNvbHZlZCAmIE1kNUJvZHlDaGVja3N1bUlucHV0Q29uZmlnXG4pOiBUICYgTWQ1Qm9keUNoZWNrc3VtUmVzb2x2ZWRDb25maWcgPT4gaW5wdXQ7XG4iXX0= |
@@ -1,8 +0,6 @@ | ||
import { Encoder, Hash, StreamHasher } from "@aws-sdk/types"; | ||
import { Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types"; | ||
export interface Md5BodyChecksumInputConfig { | ||
} | ||
interface PreviouslyResolved { | ||
md5: { | ||
new (): Hash; | ||
}; | ||
md5: HashConstructor; | ||
base64Encoder: Encoder; | ||
@@ -16,5 +14,3 @@ streamHasher: StreamHasher<any>; | ||
*/ | ||
md5: { | ||
new (): Hash; | ||
}; | ||
md5: HashConstructor; | ||
/** | ||
@@ -21,0 +17,0 @@ * The function that will be used to convert binary data to a base64-encoded string. |
@@ -1,8 +0,6 @@ | ||
import { Encoder, Hash, StreamHasher } from "@aws-sdk/types"; | ||
import { Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types"; | ||
export interface Md5BodyChecksumInputConfig { | ||
} | ||
interface PreviouslyResolved { | ||
md5: { | ||
new (): Hash; | ||
}; | ||
md5: HashConstructor; | ||
base64Encoder: Encoder; | ||
@@ -16,5 +14,3 @@ streamHasher: StreamHasher<any>; | ||
*/ | ||
md5: { | ||
new (): Hash; | ||
}; | ||
md5: HashConstructor; | ||
/** | ||
@@ -21,0 +17,0 @@ * The function that will be used to convert binary data to a base64-encoded string. |
{ | ||
"name": "@aws-sdk/middleware-apply-body-checksum", | ||
"version": "3.23.0", | ||
"version": "3.25.0", | ||
"scripts": { | ||
@@ -21,4 +21,4 @@ "build:cjs": "tsc -p tsconfig.cjs.json", | ||
"@aws-sdk/is-array-buffer": "3.23.0", | ||
"@aws-sdk/protocol-http": "3.23.0", | ||
"@aws-sdk/types": "3.22.0", | ||
"@aws-sdk/protocol-http": "3.25.0", | ||
"@aws-sdk/types": "3.25.0", | ||
"tslib": "^2.3.0" | ||
@@ -25,0 +25,0 @@ }, |
@@ -23,3 +23,3 @@ import { isArrayBuffer } from "@aws-sdk/is-array-buffer"; | ||
const { body, headers } = request; | ||
if (!hasHeader("Content-MD5", headers)) { | ||
if (!hasHeader("content-md5", headers)) { | ||
let digest: Promise<Uint8Array>; | ||
@@ -38,3 +38,3 @@ if (body === undefined || typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer(body)) { | ||
...headers, | ||
"Content-MD5": options.base64Encoder(await digest), | ||
"content-md5": options.base64Encoder(await digest), | ||
}, | ||
@@ -41,0 +41,0 @@ }; |
@@ -1,6 +0,6 @@ | ||
import { Encoder, Hash, StreamHasher } from "@aws-sdk/types"; | ||
import { Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types"; | ||
export interface Md5BodyChecksumInputConfig {} | ||
interface PreviouslyResolved { | ||
md5: { new (): Hash }; | ||
md5: HashConstructor; | ||
base64Encoder: Encoder; | ||
@@ -15,3 +15,3 @@ streamHasher: StreamHasher<any>; | ||
*/ | ||
md5: { new (): Hash }; | ||
md5: HashConstructor; | ||
/** | ||
@@ -18,0 +18,0 @@ * The function that will be used to convert binary data to a base64-encoded string. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65652
320
+ Added@aws-sdk/protocol-http@3.25.0(transitive)
+ Added@aws-sdk/types@3.25.0(transitive)
- Removed@aws-sdk/protocol-http@3.23.0(transitive)
- Removed@aws-sdk/types@3.22.0(transitive)
Updated@aws-sdk/types@3.25.0