8 Commits

Author SHA1 Message Date
d865e3b874 2.1.7 2020-09-29 15:54:05 +00:00
13f1f854ce fix(core): update 2020-09-29 15:54:05 +00:00
34586b5fec 2.1.6 2019-12-15 22:49:22 +00:00
edb13cbdcf fix(core): update 2019-12-15 22:49:22 +00:00
5c2e01fe84 2.1.5 2019-12-15 19:22:27 +00:00
d348590e9a fix(core): update 2019-12-15 19:22:27 +00:00
c908cd824b 2.1.4 2019-12-15 19:18:45 +00:00
4a62342015 fix(core): update 2019-12-15 19:18:44 +00:00
3 changed files with 7 additions and 7 deletions

8
package-lock.json generated
View File

@ -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",

View File

@ -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"

View File

@ -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');