@0xcert/utils
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -1,1 +0,1 @@ | ||
{"processes":{"0a31310e-e93a-418e-ace8-1dfc02dc9ac8":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/index.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/fetch.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/sha.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/keccak.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-float.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-integer.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-seconds.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-string.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-tuple.ts":["0a31310e-e93a-418e-ace8-1dfc02dc9ac8"]},"externalIds":{}} | ||
{"processes":{"f8eec332-53f0-464d-abc2-1005a89dac8d":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/index.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/fetch.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/sha.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/keccak.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-float.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-integer.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-seconds.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-string.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-tuple.ts":["f8eec332-53f0-464d-abc2-1005a89dac8d"]},"externalIds":{}} |
{ | ||
"files": { | ||
"packages/0xcert-utils/CHANGELOG.json": "5a9b8db711553c3da2e27e3db9c237cffc250ffa", | ||
"packages/0xcert-utils/CHANGELOG.md": "25ea19b5ff385dc73afc9b8014bcd7916ace49eb", | ||
"packages/0xcert-utils/.eslintrc.js": "e06b150d1aa354253220cc93ef7f223ec261c686", | ||
"packages/0xcert-utils/CHANGELOG.json": "003fd2262ec31921d58716e001e617b50cc52cd1", | ||
"packages/0xcert-utils/CHANGELOG.md": "239e78edd4abeb286cd3b044107cc555f5dc9a76", | ||
"packages/0xcert-utils/README.md": "c8abb425ca1c7e2c61a51db6801fc96a506b5028", | ||
"packages/0xcert-utils/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-utils/package.json": "22e956e041717d27b9fc597c5c218c3ab4a6aeea", | ||
"packages/0xcert-utils/package.json": "fd5262f1c4a2a778d61622d041cb12b005a544f1", | ||
"packages/0xcert-utils/src/index.ts": "a40a59e4ffc9b7099602a46f9680dffb6e307f6e", | ||
@@ -28,6 +29,5 @@ "packages/0xcert-utils/src/methods/fetch.ts": "58b60a0a7cb589ced62f08ff7dc2fd1ce198b541", | ||
"packages/0xcert-utils/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-utils/tslint.json": "12682b3e0654945ac1c384149f328fa5b1437ab8", | ||
"common/config/rush/npm-shrinkwrap.json": "f781738dc601aa2b6bd770edc83782a39968a1cc" | ||
"common/config/rush/npm-shrinkwrap.json": "233ea34fd10ecde695ec44c1b5654dd4935c623e" | ||
}, | ||
"arguments": "npm run clean && npx tsc " | ||
} |
{ | ||
"files": { | ||
"packages/0xcert-utils/CHANGELOG.json": "5a9b8db711553c3da2e27e3db9c237cffc250ffa", | ||
"packages/0xcert-utils/CHANGELOG.md": "25ea19b5ff385dc73afc9b8014bcd7916ace49eb", | ||
"packages/0xcert-utils/.eslintrc.js": "e06b150d1aa354253220cc93ef7f223ec261c686", | ||
"packages/0xcert-utils/CHANGELOG.json": "003fd2262ec31921d58716e001e617b50cc52cd1", | ||
"packages/0xcert-utils/CHANGELOG.md": "239e78edd4abeb286cd3b044107cc555f5dc9a76", | ||
"packages/0xcert-utils/README.md": "c8abb425ca1c7e2c61a51db6801fc96a506b5028", | ||
"packages/0xcert-utils/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-utils/package.json": "22e956e041717d27b9fc597c5c218c3ab4a6aeea", | ||
"packages/0xcert-utils/package.json": "fd5262f1c4a2a778d61622d041cb12b005a544f1", | ||
"packages/0xcert-utils/src/index.ts": "a40a59e4ffc9b7099602a46f9680dffb6e307f6e", | ||
@@ -28,6 +29,5 @@ "packages/0xcert-utils/src/methods/fetch.ts": "58b60a0a7cb589ced62f08ff7dc2fd1ce198b541", | ||
"packages/0xcert-utils/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-utils/tslint.json": "12682b3e0654945ac1c384149f328fa5b1437ab8", | ||
"common/config/rush/npm-shrinkwrap.json": "f781738dc601aa2b6bd770edc83782a39968a1cc" | ||
"common/config/rush/npm-shrinkwrap.json": "233ea34fd10ecde695ec44c1b5654dd4935c623e" | ||
}, | ||
"arguments": "npm run lint && npx nyc npx hayspec test " | ||
} |
@@ -5,2 +5,8 @@ { | ||
{ | ||
"version": "2.0.3", | ||
"tag": "@0xcert/utils_v2.0.3", | ||
"date": "Wed, 12 Aug 2020 11:26:03 GMT", | ||
"comments": {} | ||
}, | ||
{ | ||
"version": "2.0.2", | ||
@@ -7,0 +13,0 @@ "tag": "@0xcert/utils_v2.0.2", |
# Change Log - @0xcert/utils | ||
This log was last generated on Mon, 04 May 2020 17:35:38 GMT and should not be manually modified. | ||
This log was last generated on Wed, 12 Aug 2020 11:26:03 GMT and should not be manually modified. | ||
## 2.0.3 | ||
Wed, 12 Aug 2020 11:26:03 GMT | ||
*Version update only* | ||
## 2.0.2 | ||
@@ -6,0 +11,0 @@ Mon, 04 May 2020 17:35:38 GMT |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./methods/fetch")); | ||
__export(require("./methods/sha")); | ||
__export(require("./methods/keccak")); | ||
__export(require("./methods/to-float")); | ||
__export(require("./methods/to-integer")); | ||
__export(require("./methods/to-seconds")); | ||
__export(require("./methods/to-string")); | ||
__export(require("./methods/to-tuple")); | ||
__exportStar(require("./methods/fetch"), exports); | ||
__exportStar(require("./methods/sha"), exports); | ||
__exportStar(require("./methods/keccak"), exports); | ||
__exportStar(require("./methods/to-float"), exports); | ||
__exportStar(require("./methods/to-integer"), exports); | ||
__exportStar(require("./methods/to-seconds"), exports); | ||
__exportStar(require("./methods/to-string"), exports); | ||
__exportStar(require("./methods/to-tuple"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fetchJson = void 0; | ||
function fetchJson(path, options) { | ||
@@ -14,0 +15,0 @@ return __awaiter(this, void 0, void 0, function* () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.keccak256 = void 0; | ||
const Hash = require("eth-lib/src/hash"); | ||
@@ -4,0 +5,0 @@ function keccak256(input) { |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sha = void 0; | ||
function sha(bits, message) { | ||
@@ -14,0 +15,0 @@ return __awaiter(this, void 0, void 0, function* () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toFloat = void 0; | ||
function toFloat(val) { | ||
@@ -4,0 +5,0 @@ return parseFloat(`${val}`) || 0; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toInteger = void 0; | ||
function toInteger(val) { | ||
@@ -4,0 +5,0 @@ if (typeof val === 'number' && val > Number.MAX_SAFE_INTEGER) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toSeconds = void 0; | ||
function toSeconds(milliseconds) { | ||
@@ -4,0 +5,0 @@ return parseInt(`${parseFloat(`${milliseconds}`) / 1000}`) || 0; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toString = void 0; | ||
function toString(val) { | ||
@@ -4,0 +5,0 @@ return val !== null && val !== undefined ? val.toString() : null; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toTuple = void 0; | ||
function toTuple(obj) { | ||
@@ -4,0 +5,0 @@ if (!(obj instanceof Object)) { |
{ | ||
"name": "@0xcert/utils", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "General utility module with common helper functions.", | ||
@@ -10,3 +10,3 @@ "main": "./dist/index.js", | ||
"clean": "rm -Rf ./dist", | ||
"lint": "npx tslint 'src/**/*.ts?(x)'", | ||
"lint": "npx eslint 'src/**/*.ts?(x)'", | ||
"test": "npm run lint && npx nyc npx hayspec test" | ||
@@ -70,7 +70,13 @@ }, | ||
"@hayspec/spec": "0.10.0", | ||
"@types/node": "13.13.4", | ||
"nyc": "15.0.1", | ||
"ts-node": "8.10.1", | ||
"tslint": "6.1.2", | ||
"typescript": "3.8.3" | ||
"@types/node": "14.0.27", | ||
"nyc": "15.1.0", | ||
"ts-node": "8.10.2", | ||
"@typescript-eslint/eslint-plugin": "3.9.0", | ||
"@typescript-eslint/parser": "3.9.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-jsdoc": "30.2.1", | ||
"eslint-plugin-unicorn": "21.0.0", | ||
"eslint": "7.6.0", | ||
"typescript": "3.9.7" | ||
}, | ||
@@ -77,0 +83,0 @@ "dependencies": { |
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
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93205
13
1000