@colony/colony-js-contract-client
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -31,5 +31,5 @@ 'use strict'; | ||
var _browserAssert = require('browser-assert'); | ||
var _assert = require('assert'); | ||
var _browserAssert2 = _interopRequireDefault(_browserAssert); | ||
var _assert2 = _interopRequireDefault(_assert); | ||
@@ -137,3 +137,3 @@ var _colonyJsUtils = require('@colony/colony-js-utils'); | ||
(0, _browserAssert2.default)(Array.isArray(signees) && signees.every(_colonyJsUtils.isValidAddress), 'Expected an array of signee addresses'); | ||
(0, _assert2.default)(Array.isArray(signees) && signees.every(_colonyJsUtils.isValidAddress), 'Expected an array of signee addresses'); | ||
return _context2.abrupt('return', signees); | ||
@@ -175,3 +175,3 @@ | ||
(0, _browserAssert2.default)(Number(nonce) === nonce && Number.isInteger(nonce), 'Nonce must be an integer'); | ||
(0, _assert2.default)(Number(nonce) === nonce && Number.isInteger(nonce), 'Nonce must be an integer'); | ||
@@ -178,0 +178,0 @@ return _context3.abrupt('return', nonce); |
@@ -37,5 +37,5 @@ 'use strict'; | ||
var _browserAssert = require('browser-assert'); | ||
var _assert = require('assert'); | ||
var _browserAssert2 = _interopRequireDefault(_browserAssert); | ||
var _assert2 = _interopRequireDefault(_assert); | ||
@@ -92,3 +92,3 @@ var _colonyJsUtils = require('@colony/colony-js-utils'); | ||
value: function _validateSignature(signature) { | ||
var assert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _browserAssert2.default; | ||
var assert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _assert2.default; | ||
@@ -134,3 +134,3 @@ assert((0, _lodash2.default)(signature), 'Signature must be an object'); | ||
this.constructor._validateSigners(signers); | ||
(0, _browserAssert2.default)(nonce == null || Number.isInteger(nonce), 'The optional `nonce` parameter should be an integer'); | ||
(0, _assert2.default)(nonce == null || Number.isInteger(nonce), 'The optional `nonce` parameter should be an integer'); | ||
@@ -173,3 +173,3 @@ this.sender = sender; | ||
(0, _browserAssert2.default)((0, _lodash4.default)(this.payload, payload), 'Unable to add state; incompatible payloads'); | ||
(0, _assert2.default)((0, _lodash4.default)(this.payload, payload), 'Unable to add state; incompatible payloads'); | ||
this.constructor._validateSigners(signers); | ||
@@ -269,3 +269,3 @@ this._signers = Object.assign({}, this._signers, signers); | ||
value: function _validateRequiredSignees() { | ||
(0, _browserAssert2.default)(this.missingSignees.length === 0, 'Missing signatures (from addresses ' + this.missingSignees.join(', ') + ')'); | ||
(0, _assert2.default)(this.missingSignees.length === 0, 'Missing signatures (from addresses ' + this.missingSignees.join(', ') + ')'); | ||
return true; | ||
@@ -510,3 +510,3 @@ } | ||
get: function get() { | ||
(0, _browserAssert2.default)(Array.isArray(this._requiredSignees), 'Required signees not defined; call `.refresh` to refresh signees'); | ||
(0, _assert2.default)(Array.isArray(this._requiredSignees), 'Required signees not defined; call `.refresh` to refresh signees'); | ||
@@ -513,0 +513,0 @@ return this._requiredSignees; |
{ | ||
"name": "@colony/colony-js-contract-client", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Method-like interface for Smart Contracts", | ||
@@ -44,8 +44,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@colony/colony-js-adapter": "^1.2.1", | ||
"@colony/colony-js-contract-loader": "^1.2.1", | ||
"@colony/colony-js-utils": "^1.2.1", | ||
"@colony/colony-js-adapter": "^1.3.0", | ||
"@colony/colony-js-contract-loader": "^1.3.0", | ||
"@colony/colony-js-utils": "^1.3.0", | ||
"assert": "^1.4.1", | ||
"babel-runtime": "^6.26.0", | ||
"bn.js": "^4.11.6", | ||
"browser-assert": "^1.2.1", | ||
"bs58": "^4.0.1", | ||
@@ -52,0 +52,0 @@ "lodash.isequal": "^4.5.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
1116545
5807
+ Addedassert@^1.4.1
+ Addedassert@1.5.1(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedutil@0.10.4(transitive)
- Removedbrowser-assert@^1.2.1
- Removedbrowser-assert@1.2.1(transitive)
- Removedinherits@2.0.4(transitive)