@colony/colony-js-utils
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _browserAssert = require('browser-assert'); | ||
var _assert = require('assert'); | ||
var _browserAssert2 = _interopRequireDefault(_browserAssert); | ||
var _assert2 = _interopRequireDefault(_assert); | ||
@@ -27,6 +27,6 @@ var _web3Utils = require('web3-utils'); | ||
function checkValidAddress(address) { | ||
(0, _browserAssert2.default)(typeof address === 'string' && (0, _web3Utils.isAddress)(address), 'Invalid address'); | ||
(0, _browserAssert2.default)(!(0, _isEmptyHexString2.default)(address), 'Undefined address'); | ||
(0, _assert2.default)(typeof address === 'string' && (0, _web3Utils.isAddress)(address), 'Invalid address'); | ||
(0, _assert2.default)(!(0, _isEmptyHexString2.default)(address), 'Undefined address'); | ||
return true; | ||
} | ||
//# sourceMappingURL=checkValidAddress.js.map |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _browserAssert = require('browser-assert'); | ||
var _assert = require('assert'); | ||
var _browserAssert2 = _interopRequireDefault(_browserAssert); | ||
var _assert2 = _interopRequireDefault(_assert); | ||
@@ -24,3 +24,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
return function (assertion, reason) { | ||
(0, _browserAssert2.default)(assertion, message + ': ' + reason); | ||
(0, _assert2.default)(assertion, message + ': ' + reason); | ||
return true; | ||
@@ -27,0 +27,0 @@ }; |
{ | ||
"name": "@colony/colony-js-utils", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Utilities for Colony JS packages", | ||
@@ -58,5 +58,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"assert": "^1.4.1", | ||
"babel-runtime": "^6.26.0", | ||
"bn.js": "^4.11.6", | ||
"browser-assert": "^1.2.1", | ||
"web3-utils": "^1.0.0-beta.34" | ||
@@ -63,0 +63,0 @@ }, |
Sorry, the diff of this file is too big to display
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
754691
3203
+ Addedassert@^1.4.1
+ Addedassert@1.5.1(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.1.1(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.7(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedutil@0.10.4(transitive)
- Removedbrowser-assert@^1.2.1
- Removedbrowser-assert@1.2.1(transitive)