@polkadot/util
Advanced tools
Comparing version 0.3.5 to 0.4.1
@@ -6,5 +6,3 @@ 'use strict'; | ||
var _require = require('../hex'), | ||
stripHexPrefix = _require.stripHexPrefix; | ||
var hexStripPrefix = require('../hex/stripPrefix'); | ||
var isHex = require('../is/hex'); | ||
@@ -23,3 +21,3 @@ | ||
return new BN(stripHexPrefix(value), 16); | ||
return new BN(hexStripPrefix(value), 16); | ||
}; |
@@ -6,5 +6,3 @@ 'use strict'; | ||
var _require = require('../hex'), | ||
addHexPrefix = _require.addHexPrefix; | ||
var hexAddPrefix = require('../hex/addPrefix'); | ||
var isBN = require('../is/bn'); | ||
@@ -23,3 +21,3 @@ | ||
return addHexPrefix(value.toString(16)); | ||
return hexAddPrefix(value.toString(16)); | ||
}; |
@@ -5,6 +5,4 @@ 'use strict'; | ||
var isHex = require('../is/hex'); | ||
var hexStripPrefix = require('../hex/stripPrefix'); | ||
var _require = require('../hex'), | ||
stripHexPrefix = _require.stripHexPrefix; | ||
var EMPTY_BUFFER = Buffer.from([]); | ||
@@ -21,3 +19,3 @@ | ||
return Buffer.from(stripHexPrefix(value), 'hex'); | ||
return Buffer.from(hexStripPrefix(value), 'hex'); | ||
}; |
@@ -5,6 +5,4 @@ 'use strict'; | ||
var isBuffer = require('../is/buffer'); | ||
var hexAddPrefix = require('../hex/addPrefix'); | ||
var _require = require('../hex'), | ||
addHexPrefix = _require.addHexPrefix; | ||
var ZERO_HEX = '0x'; | ||
@@ -21,3 +19,3 @@ | ||
return addHexPrefix(value.toString('hex')); | ||
return hexAddPrefix(value.toString('hex')); | ||
}; |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.3.5", | ||
"version": "0.4.1", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9035
26
186