Starting with version `1.1.8` (released April 2017), new versions will consider
the exact returned hash part of the API contract, i.e. changes that will affect
hash values will be considered `semver-major`. Previous versions may violate
that expectation.
For more information, see [this discussion](https://github.com/puleos/object-hash/issues/30).
## hash(value, options);
Generate a hash from any object or type. Defaults to sha1 with hex encoding.
*`algorithm` hash algo to be used: 'sha1', 'md5'. default: sha1
* This supports the algorithms returned by `crypto.getHashes()`. Note that the default of SHA-1 is not considered secure, and a stronger algorithm should be used if a cryptographical hash is desired.
function_assertThisInitialized(self){if(self===void0){thrownewReferenceError("this hasn't been initialised - super() hasn't been called");}returnself;}
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}
function_wrapNativeSuper(Class){var_cache=typeofMap==="function"?newMap():undefined;_wrapNativeSuper=function_wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))returnClass;if(typeofClass!=="function"){thrownewTypeError("Super expression must either be null or a function");}if(typeof_cache!=="undefined"){if(_cache.has(Class))return_cache.get(Class);_cache.set(Class,Wrapper);}functionWrapper(){return_construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return_setPrototypeOf(Wrapper,Class);};return_wrapNativeSuper(Class);}