This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

12
node_modules/shasum-object/index.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
var createHash = require('crypto').createHash
var stringify = require('fast-safe-stringify')
module.exports = function shasum (input, hash, digest) {
if (!hash) hash = 'sha1'
if (!digest) digest = 'hex'
if (typeof input !== 'string' && !Buffer.isBuffer(input)) input = stringify.stable(input)
return createHash(hash)
.update(input, typeof input === 'string' ? 'utf8' : undefined)
.digest(digest)
}