@polkadot/util
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -6,4 +6,6 @@ 'use strict'; | ||
var HEX_REGEX = /^0x[a-fA-F0-9]+$/; | ||
module.exports = function isHex(value) { | ||
return isString(value) && /^0x[a-fA-F0-9]+$/.test(value); | ||
return isString(value) && HEX_REGEX.test(value); | ||
}; |
'use strict'; | ||
// ISC, Copyright 2017 Jaco Greeff | ||
var isBN = require('./bn'); | ||
var isFunction = require('./function'); | ||
@@ -12,2 +13,3 @@ var isHex = require('./hex'); | ||
module.exports = { | ||
isBN: isBN, | ||
isFunction: isFunction, | ||
@@ -14,0 +16,0 @@ isHex: isHex, |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -68,4 +68,5 @@ "main": "index.js", | ||
"babel-runtime": "^6.26.0", | ||
"bn.js": "^4.11.8", | ||
"keccak": "^1.3.0" | ||
} | ||
} |
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
7049
18
133
3
+ Addedbn.js@^4.11.8
+ Addedbn.js@4.12.0(transitive)