Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@colony/colony-js-utils

Package Overview
Dependencies
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colony/colony-js-utils - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

8

lib/checkValidAddress.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc