Comparing version 1.0.0 to 1.0.1
@@ -7,2 +7,3 @@ 'use strict' | ||
Transform.call(this) | ||
this.initialised_ = true | ||
} | ||
@@ -25,2 +26,5 @@ | ||
HashBase.prototype.digest = function (encoding) { | ||
if (!this.initialised_) throw new Error('Not initialized') | ||
this.initialised_ = false | ||
var digest = this._digest() | ||
@@ -27,0 +31,0 @@ if (encoding === undefined) encoding = HashBase.DEFAULT_ENCODING |
{ | ||
"name": "hash-base", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "abstract base class for hash-streams", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,3 +9,3 @@ # hash-base | ||
Abstract base class to inherit from if you want to create streams implementing the same API as node crypto streams. | ||
Abstract base class to inherit from if you want to create streams implementing the same API as node crypto [Hash][1] (for [Cipher][2] / [Decipher][3] check [crypto-browserify/cipher-base][4]). | ||
@@ -21,1 +21,6 @@ Requires you to implement 2 methods: | ||
MIT | ||
[1]: https://nodejs.org/api/crypto.html#crypto_class_hash | ||
[2]: https://nodejs.org/api/crypto.html#crypto_class_cipher | ||
[3]: https://nodejs.org/api/crypto.html#crypto_class_decipher | ||
[4]: https://github.com/crypto-browserify/cipher-base |
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
3518
51
25