Socket
Socket
Sign inDemoInstall

@aws-sdk/hash-node

Package Overview
Dependencies
Maintainers
4
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/hash-node - npm Package Compare versions

Comparing version 3.54.1 to 3.55.0

8

CHANGELOG.md

@@ -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 @@

8

dist-cjs/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc