@trivikr-test/middleware-signing
Advanced tools
Comparing version 3.170.0-es2019 to 3.170.0-es2020
@@ -16,4 +16,3 @@ import { HttpRequest, HttpResponse } from "@trivikr-test/protocol-http"; | ||
}).catch((error) => { | ||
var _a; | ||
const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); | ||
const serverTime = error.ServerTime ?? getDateHeader(error.$response); | ||
if (serverTime) { | ||
@@ -30,3 +29,3 @@ options.systemClockOffset = getUpdatedSystemClockOffset(serverTime, options.systemClockOffset); | ||
}; | ||
const getDateHeader = (response) => { var _a, _b, _c; return HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : undefined; }; | ||
const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined; | ||
export const awsAuthMiddlewareOptions = { | ||
@@ -33,0 +32,0 @@ name: "awsAuthMiddleware", |
{ | ||
"name": "@trivikr-test/middleware-signing", | ||
"version": "3.170.0-es2019", | ||
"version": "3.170.0-es2020", | ||
"scripts": { | ||
@@ -23,6 +23,6 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@trivikr-test/property-provider": "3.170.0-es2019", | ||
"@trivikr-test/protocol-http": "3.170.0-es2019", | ||
"@trivikr-test/signature-v4": "3.170.0-es2019", | ||
"@trivikr-test/types": "3.170.0-es2019", | ||
"@trivikr-test/property-provider": "3.170.0-es2020", | ||
"@trivikr-test/protocol-http": "3.170.0-es2020", | ||
"@trivikr-test/signature-v4": "3.170.0-es2020", | ||
"@trivikr-test/types": "3.170.0-es2020", | ||
"tslib": "^2.3.1" | ||
@@ -29,0 +29,0 @@ }, |
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
33935
514
+ Added@trivikr-test/is-array-buffer@3.170.0-es2020(transitive)
+ Added@trivikr-test/property-provider@3.170.0-es2020(transitive)
+ Added@trivikr-test/protocol-http@3.170.0-es2020(transitive)
+ Added@trivikr-test/signature-v4@3.170.0-es2020(transitive)
+ Added@trivikr-test/types@3.170.0-es2020(transitive)
+ Added@trivikr-test/util-hex-encoding@3.170.0-es2020(transitive)
+ Added@trivikr-test/util-middleware@3.170.0-es2020(transitive)
+ Added@trivikr-test/util-uri-escape@3.170.0-es2020(transitive)
- Removed@trivikr-test/is-array-buffer@3.170.0-es2019(transitive)
- Removed@trivikr-test/property-provider@3.170.0-es2019(transitive)
- Removed@trivikr-test/protocol-http@3.170.0-es2019(transitive)
- Removed@trivikr-test/signature-v4@3.170.0-es2019(transitive)
- Removed@trivikr-test/types@3.170.0-es2019(transitive)
- Removed@trivikr-test/util-hex-encoding@3.170.0-es2019(transitive)
- Removed@trivikr-test/util-middleware@3.170.0-es2019(transitive)
- Removed@trivikr-test/util-uri-escape@3.170.0-es2019(transitive)