@0xcert/utils
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
{"processes":{"e10deabc-ca65-4297-b0c9-d0fcd3345d2d":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/index.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/fetch.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/sha.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/keccak.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/to-float.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/to-integer.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/to-seconds.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/to-string.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"],"/Users/xpepermint/Downloads/framework-1-manage-abilities-proxy/packages/0xcert-utils/src/methods/to-tuple.ts":["e10deabc-ca65-4297-b0c9-d0fcd3345d2d"]},"externalIds":{}} | ||
{"processes":{"8667f593-1f75-4324-a17b-58a8791080e4":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/index.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/fetch.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/sha.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/keccak.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/to-float.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/to-integer.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/to-seconds.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/to-string.ts":["8667f593-1f75-4324-a17b-58a8791080e4"],"/Users/xpepermint/Downloads/framework-1-multi-sig/packages/0xcert-utils/src/methods/to-tuple.ts":["8667f593-1f75-4324-a17b-58a8791080e4"]},"externalIds":{}} |
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "2.0.0-alpha6", | ||
"tag": "@0xcert/utils_v2.0.0-alpha6", | ||
"version": "2.0.0-alpha7", | ||
"tag": "@0xcert/utils_v2.0.0-alpha7", | ||
"date": "Wed, 19 Jun 2019 10:31:05 GMT", | ||
@@ -9,0 +9,0 @@ "comments": {} |
@@ -5,3 +5,3 @@ # Change Log - @0xcert/utils | ||
## 2.0.0-alpha6 | ||
## 2.0.0-alpha7 | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -8,0 +8,0 @@ |
@@ -18,5 +18,3 @@ "use strict"; | ||
else if (path.lastIndexOf('http', 0) !== 0) { | ||
return new Promise((resolve, reject) => { | ||
require('fs').readFile(path, 'utf8', (err, data) => err ? reject(err) : resolve(JSON.parse(data))); | ||
}); | ||
return require('fs').promises.readFile(path, 'utf8').then((d) => JSON.parse(d)); | ||
} | ||
@@ -23,0 +21,0 @@ else { |
{ | ||
"name": "@0xcert/utils", | ||
"version": "2.0.0-alpha6", | ||
"version": "2.0.0-alpha7", | ||
"description": "General utility module with common helper functions.", | ||
@@ -67,14 +67,14 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@hayspec/cli": "^0.8.3", | ||
"@hayspec/spec": "^0.8.3", | ||
"@types/node": "^10.12.24", | ||
"nyc": "^14.1.1", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.1.1" | ||
"@hayspec/cli": "0.9.0", | ||
"@hayspec/spec": "0.9.0", | ||
"@types/node": "12.7.8", | ||
"nyc": "14.1.1", | ||
"ts-node": "8.4.1", | ||
"tslint": "5.20.0", | ||
"typescript": "3.6.3" | ||
}, | ||
"dependencies": { | ||
"eth-lib": "0.1.27", | ||
"node-fetch": "^2.3.0" | ||
"eth-lib": "0.2.8", | ||
"node-fetch": "2.6.0" | ||
} | ||
} |
@@ -9,5 +9,3 @@ /** | ||
} else if (path.lastIndexOf('http', 0) !== 0) { | ||
return new Promise((resolve, reject) => { | ||
require('fs').readFile(path, 'utf8', (err, data) => err ? reject(err) : resolve(JSON.parse(data))); | ||
}); | ||
return require('fs').promises.readFile(path, 'utf8').then((d) => JSON.parse(d)); | ||
} else { | ||
@@ -14,0 +12,0 @@ return require('node-fetch')(path, options).then((r) => r.json()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86
1.18%73590
-1.71%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated