@polkadot/util
Advanced tools
Comparing version 0.3.1 to 0.3.2
'use strict'; | ||
// ISC, Copyright 2017 Jaco Greeff | ||
var isHex = require('./is/hex'); | ||
function addHexPrefix(value) { | ||
@@ -13,3 +15,3 @@ if (value && hasHexPrefix(value)) { | ||
function hasHexPrefix(value) { | ||
return !!(value && value.substr(0, 2) === '0x'); | ||
return !!(value && isHex(value) && value.substr(0, 2) === '0x'); | ||
} | ||
@@ -16,0 +18,0 @@ |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -67,4 +67,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"babel-runtime": "^6.26.0" | ||
"babel-runtime": "^6.26.0", | ||
"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
5716
14
88
2
+ Addedkeccak@^1.3.0
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedkeccak@1.4.0(transitive)
+ Addednan@2.22.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)