Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
d865e3b874 | |||
13f1f854ce | |||
34586b5fec | |||
edb13cbdcf | |||
5c2e01fe84 | |||
d348590e9a | |||
c908cd824b | |||
4a62342015 |
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smarthash",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -202,9 +202,9 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartjson": {
|
||||
"version": "3.0.9",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-3.0.9.tgz",
|
||||
"integrity": "sha512-KAWMUpUY5a5WWRxlE0YQiJhbEQ9wOUWs/Iyv+S1cxYx//javChKai6kwvRMVEfEn/xRcFqGgSGJW5RspcL0s/g==",
|
||||
"version": "3.0.10",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-3.0.10.tgz",
|
||||
"integrity": "sha512-0tBkET2yjmSSIf4DlgeyU8U/J2EshTmQGuMY28EjPq9VvuCFXLh72WmETpA4QqKRMqhWp1+P+RZgnQupW3GQxQ==",
|
||||
"requires": {
|
||||
"@types/fast-json-stable-stringify": "^2.0.0",
|
||||
"fast-json-stable-stringify": "^2.1.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smarthash",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.7",
|
||||
"private": false,
|
||||
"description": "simplified access to node hash functions",
|
||||
"main": "dist/index.js",
|
||||
@ -38,7 +38,7 @@
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartjson": "^3.0.9",
|
||||
"@pushrocks/smartjson": "^3.0.10",
|
||||
"@pushrocks/smartpromise": "^3.0.6",
|
||||
"@types/through2": "^2.0.34",
|
||||
"through2": "^3.0.1"
|
||||
|
@ -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