Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d865e3b874 | |||
13f1f854ce |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smarthash",
|
||||
"version": "2.1.6",
|
||||
"version": "2.1.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smarthash",
|
||||
"version": "2.1.6",
|
||||
"version": "2.1.7",
|
||||
"private": false,
|
||||
"description": "simplified access to node hash functions",
|
||||
"main": "dist/index.js",
|
||||
|
@ -26,7 +26,7 @@ export const sha256FromFile = async (filePath: string): Promise<string> => {
|
||||
/**
|
||||
* Computes sha256 Hash from String synchronously
|
||||
*/
|
||||
export let sha256FromStringSync = (stringArg): string => {
|
||||
export const sha256FromStringSync = (stringArg: string): string => {
|
||||
const hash = plugins.crypto.createHash('sha256');
|
||||
hash.update(stringArg);
|
||||
return hash.digest('hex');
|
||||
|
Reference in New Issue
Block a user