Socket
Socket
Sign inDemoInstall

@aws-sdk/hash-node

Package Overview
Dependencies
Maintainers
5
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.178.0 to 3.183.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
**Note:** Version bump only for package @aws-sdk/hash-node
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)

@@ -8,0 +16,0 @@

16

dist-es/index.js
import { fromArrayBuffer, fromString } from "@aws-sdk/util-buffer-from";
import { Buffer } from "buffer";
import { createHash, createHmac } from "crypto";
var Hash = (function () {
function Hash(algorithmIdentifier, secret) {
export class Hash {
constructor(algorithmIdentifier, secret) {
this.hash = secret ? createHmac(algorithmIdentifier, castSourceData(secret)) : createHash(algorithmIdentifier);
}
Hash.prototype.update = function (toHash, encoding) {
update(toHash, encoding) {
this.hash.update(castSourceData(toHash, encoding));
};
Hash.prototype.digest = function () {
}
digest() {
return Promise.resolve(this.hash.digest());
};
return Hash;
}());
export { Hash };
}
}
function castSourceData(toCast, encoding) {

@@ -18,0 +16,0 @@ if (Buffer.isBuffer(toCast)) {

{
"name": "@aws-sdk/hash-node",
"version": "3.178.0",
"version": "3.183.0",
"scripts": {

@@ -33,4 +33,4 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@aws-sdk/types": "3.178.0",
"@aws-sdk/util-buffer-from": "3.170.0",
"@aws-sdk/types": "3.183.0",
"@aws-sdk/util-buffer-from": "3.183.0",
"tslib": "^2.3.1"

@@ -37,0 +37,0 @@ },

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