@trivikr-test/middleware-signing
Advanced tools
Comparing version 3.52.0 to 3.55.0-node.cjs
@@ -86,3 +86,3 @@ "use strict"; | ||
if (typeof credentials === "function") { | ||
return property_provider_1.memoize(credentials, (credentials) => credentials.expiration !== undefined && | ||
return (0, property_provider_1.memoize)(credentials, (credentials) => credentials.expiration !== undefined && | ||
credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); | ||
@@ -89,0 +89,0 @@ } |
@@ -14,3 +14,3 @@ "use strict"; | ||
request: await signer.sign(args.request, { | ||
signingDate: getSkewCorrectedDate_1.getSkewCorrectedDate(options.systemClockOffset), | ||
signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), | ||
signingRegion: context["signing_region"], | ||
@@ -23,3 +23,3 @@ signingService: context["signing_service"], | ||
if (serverTime) { | ||
options.systemClockOffset = getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset(serverTime, options.systemClockOffset); | ||
options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); | ||
} | ||
@@ -30,3 +30,3 @@ throw error; | ||
if (dateHeader) { | ||
options.systemClockOffset = getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset(dateHeader, options.systemClockOffset); | ||
options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); | ||
} | ||
@@ -46,3 +46,3 @@ return output; | ||
applyToStack: (clientStack) => { | ||
clientStack.addRelativeTo(exports.awsAuthMiddleware(options), exports.awsAuthMiddlewareOptions); | ||
clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); | ||
}, | ||
@@ -49,0 +49,0 @@ }); |
@@ -7,3 +7,3 @@ "use strict"; | ||
const clockTimeInMs = Date.parse(clockTime); | ||
if (isClockSkewed_1.isClockSkewed(clockTimeInMs, currentSystemClockOffset)) { | ||
if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { | ||
return clockTimeInMs - Date.now(); | ||
@@ -10,0 +10,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
const getSkewCorrectedDate_1 = require("./getSkewCorrectedDate"); | ||
const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate_1.getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000; | ||
const isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 300000; | ||
exports.isClockSkewed = isClockSkewed; |
{ | ||
"name": "@trivikr-test/middleware-signing", | ||
"version": "3.52.0", | ||
"version": "3.55.0-node.cjs", | ||
"scripts": { | ||
@@ -14,4 +14,2 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"main": "./dist-cjs/index.js", | ||
"module": "./dist-es/index.js", | ||
"types": "./dist-types/index.d.ts", | ||
"author": { | ||
@@ -23,7 +21,7 @@ "name": "AWS SDK for JavaScript Team", | ||
"dependencies": { | ||
"@trivikr-test/property-provider": "3.52.0", | ||
"@trivikr-test/protocol-http": "3.52.0", | ||
"@trivikr-test/signature-v4": "3.52.0", | ||
"@trivikr-test/types": "3.52.0", | ||
"tslib": "^2.3.0" | ||
"@trivikr-test/property-provider": "3.55.0-node.cjs", | ||
"@trivikr-test/protocol-http": "3.55.0-node.cjs", | ||
"@trivikr-test/signature-v4": "3.55.0-node.cjs", | ||
"@trivikr-test/types": "3.55.0-node.cjs", | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -41,3 +39,3 @@ "engines": { | ||
"files": [ | ||
"dist-*" | ||
"dist-cjs" | ||
], | ||
@@ -56,4 +54,4 @@ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-signing", | ||
"typedoc": "0.19.2", | ||
"typescript": "~4.3.5" | ||
"typescript": "~4.6.2" | ||
} | ||
} |
@@ -1,4 +0,1 @@ | ||
# @aws-sdk/signer-middleware | ||
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-signing/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-signing) | ||
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-signing.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-signing) | ||
Please refer [README.md](https://github.com/aws/aws-sdk-js-v3/blob/v3.55.0/packages/middleware-signing/README.md) for v3.55.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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
20300
9
165
1
2
1
+ Added@trivikr-test/is-array-buffer@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/property-provider@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/protocol-http@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/signature-v4@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/types@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/util-hex-encoding@3.55.0-node.cjs(transitive)
+ Added@trivikr-test/util-uri-escape@3.55.0-node.cjs(transitive)
- Removed@trivikr-test/is-array-buffer@3.52.0(transitive)
- Removed@trivikr-test/property-provider@3.52.0(transitive)
- Removed@trivikr-test/protocol-http@3.52.0(transitive)
- Removed@trivikr-test/signature-v4@3.52.0(transitive)
- Removed@trivikr-test/types@3.52.0(transitive)
- Removed@trivikr-test/util-hex-encoding@3.52.0(transitive)
- Removed@trivikr-test/util-uri-escape@3.52.0(transitive)
Updatedtslib@^2.3.1