@0xcert/utils
Advanced tools
Comparing version 2.0.0-alpha5 to 2.0.0-alpha6
@@ -1,1 +0,1 @@ | ||
{"processes":{"a4a048f8-dd25-457a-b257-c1637eca591e":{"parent":null,"children":[]}},"files":{"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/index.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/fetch.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/sha.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/keccak.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-float.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-integer.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-seconds.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-string.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"],"/Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-utils/src/methods/to-tuple.ts":["a4a048f8-dd25-457a-b257-c1637eca591e"]},"externalIds":{}} | ||
{"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":{}} |
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "2.0.0-alpha5", | ||
"tag": "@0xcert/utils_v2.0.0-alpha5", | ||
"version": "2.0.0-alpha6", | ||
"tag": "@0xcert/utils_v2.0.0-alpha6", | ||
"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-alpha5 | ||
## 2.0.0-alpha6 | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -8,0 +8,0 @@ |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -8,0 +9,0 @@ }); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -8,0 +9,0 @@ }); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -15,7 +16,7 @@ }); | ||
const spec = new spec_1.Spec(); | ||
spec.test('downloads a remote file', (ctx) => __awaiter(this, void 0, void 0, function* () { | ||
spec.test('downloads a remote file', (ctx) => __awaiter(void 0, void 0, void 0, function* () { | ||
const res = yield fetch_1.fetchJson('https://docs.0xcert.org/xcert-mock.json'); | ||
ctx.true(!!res.XcertMock); | ||
})); | ||
spec.test('reads a local file', (ctx) => __awaiter(this, void 0, void 0, function* () { | ||
spec.test('reads a local file', (ctx) => __awaiter(void 0, void 0, void 0, function* () { | ||
const res = yield fetch_1.fetchJson(path.join(__dirname, '..', 'mocks', 'xcert-mock.json')); | ||
@@ -22,0 +23,0 @@ ctx.true(!!res.XcertMock); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -14,3 +15,3 @@ }); | ||
const spec = new spec_1.Spec(); | ||
spec.test('converts string into keccak256 hash', (ctx) => __awaiter(this, void 0, void 0, function* () { | ||
spec.test('converts string into keccak256 hash', (ctx) => __awaiter(void 0, void 0, void 0, function* () { | ||
ctx.is(keccak_1.keccak256('foo#'), '0xe7bb87eda991af44cdb673a7d5f2bfeb854dd089e421b3934d022fc5c29259a0'); | ||
@@ -17,0 +18,0 @@ ctx.is(keccak_1.keccak256('bar!'), '0x179eb773d34690d312adc3f96661402e2de2009e39dbf4b8dee22b3adc842752'); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -14,3 +15,3 @@ }); | ||
const spec = new spec_1.Spec(); | ||
spec.test('converts string into SHA256 hash', (ctx) => __awaiter(this, void 0, void 0, function* () { | ||
spec.test('converts string into SHA256 hash', (ctx) => __awaiter(void 0, void 0, void 0, function* () { | ||
ctx.is(yield sha_1.sha(256, 'foo#'), '18845243706c9f9a00b514348b58edd82fe708a68393ccbb3f70e1599577a148'); | ||
@@ -17,0 +18,0 @@ ctx.is(yield sha_1.sha(256, 'bar!'), 'e687b749f2cd93615923a2f705faace4033f35d57ccfca652cdc39616a94a3c2'); |
{ | ||
"files": { | ||
"packages/0xcert-utils/CHANGELOG.json": "5381c44d7e22f799bdba7d279cb2d55c1a8a0624", | ||
"packages/0xcert-utils/CHANGELOG.md": "67c4a9c9c27ac86060722062afcc6a04d8adf870", | ||
"packages/0xcert-utils/README.md": "12c39c4428dd2fa3e5f419b7e3ae1ebacf1148f1", | ||
"packages/0xcert-utils/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-utils/package.json": "ac0ea167860e07155c0302389fae6cbbe8088adc", | ||
"packages/0xcert-utils/src/index.ts": "a40a59e4ffc9b7099602a46f9680dffb6e307f6e", | ||
"packages/0xcert-utils/src/methods/fetch.ts": "78dcb8cd401756cfc1061f52552f8e7e53db5819", | ||
"packages/0xcert-utils/src/methods/keccak.ts": "70bffccd2fa45a110d794c445d5ba8c152b8eb32", | ||
"packages/0xcert-utils/src/methods/sha.ts": "c0aff1e1a2107310783b874f7a1b1a4d0fe4d6e8", | ||
"packages/0xcert-utils/src/methods/to-float.ts": "e44cc4338abf7d73ccabe640e3ead0abfe6dec44", | ||
"packages/0xcert-utils/src/methods/to-integer.ts": "798f589b5f6f7da68c7241b0b2a677b63617c4b4", | ||
"packages/0xcert-utils/src/methods/to-seconds.ts": "2f50bbde126ee11228ba0790499e9dcc863c8190", | ||
"packages/0xcert-utils/src/methods/to-string.ts": "e71cc4af1e7669773aa0f67fd2d1b993c4bad2d5", | ||
"packages/0xcert-utils/src/methods/to-tuple.ts": "7d9a6a53ce157d552203e20977a80958db65b06f", | ||
"packages/0xcert-utils/src/tests/index.test.ts": "d3f4d7ec5dc4ddf378405f2dfcc92644997ec883", | ||
"packages/0xcert-utils/src/tests/methods/fetch.test.ts": "466aa7acd6ea3a60df81d2faf8a60d704ca588dd", | ||
"packages/0xcert-utils/src/tests/methods/keccak.test.ts": "2cca7c33547ee81e344fc05b7e47e2ee552f5497", | ||
"packages/0xcert-utils/src/tests/methods/sha.test.ts": "85d6c28a9928192ed45a2ecded6c4c26ab1bac15", | ||
"packages/0xcert-utils/src/tests/methods/to-float.test.ts": "c8d4d54b5a7e37653243f09606d038b324fddaa2", | ||
"packages/0xcert-utils/src/tests/methods/to-integer.test.ts": "d676adc99d44e370df36b9056e296c90483d858e", | ||
"packages/0xcert-utils/src/tests/methods/to-seconds.test.ts": "3bb0b02e3ae3739a779f376b8f58e98f11644914", | ||
"packages/0xcert-utils/src/tests/methods/to-string.test.ts": "d1f57e03baa4fb6b26edc9cb1d8bc800e5b046e6", | ||
"packages/0xcert-utils/src/tests/methods/to-tuple.test.ts": "46278b2a9bd7918529fad7e0588bbd2058397199", | ||
"packages/0xcert-utils/src/tests/mocks/xcert-mock.json": "c5e5a28442cc4df6ff86246f3d64dceca038f62c", | ||
"packages/0xcert-utils/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-utils/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "61a980a58792c3190cc96ec3982261423bf45f2e" | ||
}, | ||
"arguments": "npm run clean && npx tsc " | ||
"files": {}, | ||
"arguments": "npm run lint && npx nyc npx hayspec test " | ||
} |
{ | ||
"name": "@0xcert/utils", | ||
"version": "2.0.0-alpha5", | ||
"version": "2.0.0-alpha6", | ||
"description": "General utility module with common helper functions.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
74873
968