@aws-sdk/hash-node
Advanced tools
Comparing version 3.54.1 to 3.55.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21) | ||
**Note:** Version bump only for package @aws-sdk/hash-node | ||
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15) | ||
@@ -8,0 +16,0 @@ |
@@ -9,3 +9,3 @@ "use strict"; | ||
constructor(algorithmIdentifier, secret) { | ||
this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); | ||
this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); | ||
} | ||
@@ -25,8 +25,8 @@ update(toHash, encoding) { | ||
if (typeof toCast === "string") { | ||
return util_buffer_from_1.fromString(toCast, encoding); | ||
return (0, util_buffer_from_1.fromString)(toCast, encoding); | ||
} | ||
if (ArrayBuffer.isView(toCast)) { | ||
return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); | ||
return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); | ||
} | ||
return util_buffer_from_1.fromArrayBuffer(toCast); | ||
return (0, util_buffer_from_1.fromArrayBuffer)(toCast); | ||
} |
{ | ||
"name": "@aws-sdk/hash-node", | ||
"version": "3.54.1", | ||
"version": "3.55.0", | ||
"scripts": { | ||
@@ -29,8 +29,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"typedoc": "0.19.2", | ||
"typescript": "~4.3.5" | ||
"typescript": "~4.6.2" | ||
}, | ||
"dependencies": { | ||
"@aws-sdk/types": "3.54.1", | ||
"@aws-sdk/util-buffer-from": "3.52.0", | ||
"tslib": "^2.3.0" | ||
"@aws-sdk/types": "3.55.0", | ||
"@aws-sdk/util-buffer-from": "3.55.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "engines": { |
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
43823
+ Added@aws-sdk/is-array-buffer@3.55.0(transitive)
+ Added@aws-sdk/types@3.55.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.55.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.52.0(transitive)
- Removed@aws-sdk/types@3.54.1(transitive)
- Removed@aws-sdk/util-buffer-from@3.52.0(transitive)
Updated@aws-sdk/types@3.55.0
Updatedtslib@^2.3.1