Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.186.0 to 3.188.0

8

CHANGELOG.md

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

# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
**Note:** Version bump only for package @aws-sdk/hash-node
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)

@@ -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.186.0",
"version": "3.188.0",
"scripts": {

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

"dependencies": {
"@aws-sdk/types": "3.186.0",
"@aws-sdk/util-buffer-from": "3.186.0",
"@aws-sdk/types": "3.188.0",
"@aws-sdk/util-buffer-from": "3.188.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