@0xcert/utils
Advanced tools
Comparing version 1.7.0 to 1.7.2
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "1.7.2", | ||
"tag": "@0xcert/utils_v1.7.2", | ||
"date": "Wed, 05 Jun 2019 08:40:14 GMT", | ||
"comments": {} | ||
}, | ||
{ | ||
"version": "1.7.1", | ||
"tag": "@0xcert/utils_v1.7.1", | ||
"date": "Wed, 05 Jun 2019 08:19:55 GMT", | ||
"comments": {} | ||
}, | ||
{ | ||
"version": "1.7.0", | ||
@@ -7,0 +19,0 @@ "tag": "@0xcert/utils_v1.7.0", |
# Change Log - @0xcert/utils | ||
This log was last generated on Wed, 29 May 2019 13:47:23 GMT and should not be manually modified. | ||
This log was last generated on Wed, 05 Jun 2019 08:40:14 GMT and should not be manually modified. | ||
## 1.7.2 | ||
Wed, 05 Jun 2019 08:40:14 GMT | ||
*Version update only* | ||
## 1.7.1 | ||
Wed, 05 Jun 2019 08:19:55 GMT | ||
*Version update only* | ||
## 1.7.0 | ||
@@ -6,0 +16,0 @@ Wed, 29 May 2019 13:47:23 GMT |
{ | ||
"files": { | ||
"packages/0xcert-utils/CHANGELOG.json": "e72e5ec053f3282d9c34664346a5eaddbfffc818", | ||
"packages/0xcert-utils/CHANGELOG.md": "423f31b7e5848b00ffa2c5b25de78ce27bea0ec1", | ||
"packages/0xcert-utils/CHANGELOG.json": "980e91c27674438f5fcc8843591fd07d9e8912d9", | ||
"packages/0xcert-utils/CHANGELOG.md": "5ce451e4efeb79f8d9860d0572d68c0edf6c9eea", | ||
"packages/0xcert-utils/README.md": "12c39c4428dd2fa3e5f419b7e3ae1ebacf1148f1", | ||
"packages/0xcert-utils/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-utils/package.json": "4fa912359e6cb6da0d85f0cc9fed9540207af441", | ||
"packages/0xcert-utils/package.json": "1cf6b39b8a6c473f6616f4e286a14b0822f5b667", | ||
"packages/0xcert-utils/src/index.ts": "a40a59e4ffc9b7099602a46f9680dffb6e307f6e", | ||
"packages/0xcert-utils/src/methods/fetch.ts": "351af6388c6af1b6df18ed040bc89d73a239212a", | ||
"packages/0xcert-utils/src/methods/fetch.ts": "46b616ad0c51ca7b9bfac1491e77f0e1966e5431", | ||
"packages/0xcert-utils/src/methods/keccak.ts": "70bffccd2fa45a110d794c445d5ba8c152b8eb32", | ||
"packages/0xcert-utils/src/methods/sha.ts": "adcda87f19b555678b0cc454eea97e2150726893", | ||
"packages/0xcert-utils/src/methods/sha.ts": "c0aff1e1a2107310783b874f7a1b1a4d0fe4d6e8", | ||
"packages/0xcert-utils/src/methods/to-float.ts": "e44cc4338abf7d73ccabe640e3ead0abfe6dec44", | ||
@@ -28,5 +28,5 @@ "packages/0xcert-utils/src/methods/to-integer.ts": "798f589b5f6f7da68c7241b0b2a677b63617c4b4", | ||
"packages/0xcert-utils/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "023ff7e099bf4e74a4eb7d2305acc0acc10727c5" | ||
"common/config/rush/npm-shrinkwrap.json": "42506a51c1989967d20f8ca344c37aacd05e5b95" | ||
}, | ||
"arguments": "npm run clean && npx tsc " | ||
"arguments": "npm run lint && npx nyc npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/utils", | ||
"version": "1.7.0", | ||
"version": "1.7.2", | ||
"description": "General utility module with common helper functions.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -7,3 +7,3 @@ /** | ||
if (typeof window !== 'undefined') { | ||
return window.fetch(path, options); | ||
return (window as any).fetch(path, options); | ||
} else { | ||
@@ -10,0 +10,0 @@ return require('node-fetch')(path, options); |
@@ -8,3 +8,3 @@ /** | ||
if (typeof window !== 'undefined') { | ||
const msgBuffer = new window['TextEncoder']('utf-8').encode(message); | ||
const msgBuffer = new (window as any)['TextEncoder']('utf-8').encode(message); | ||
const hashBuffer = await window['crypto'].subtle.digest(`SHA-${bits}`, msgBuffer); | ||
@@ -11,0 +11,0 @@ const hashArray = Array.from(new Uint8Array(hashBuffer)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68785
956