@polkadot/util
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -11,2 +11,3 @@ 'use strict'; | ||
var bn = require('./bn'); | ||
var buffer = require('./buffer'); | ||
var hex = require('./hex'); | ||
@@ -16,2 +17,2 @@ var is = require('./is'); | ||
module.exports = (0, _assign2.default)({}, bn, hex, is, keccak); | ||
module.exports = (0, _assign2.default)({}, bn, buffer, hex, is, keccak); |
'use strict'; | ||
// ISC, Copyright 2017 Jaco Greeff | ||
var _require = require('../hex'), | ||
addHexPrefix = _require.addHexPrefix; | ||
var keccakAsBuffer = require('./asBuffer'); | ||
var bufferToHex = require('../buffer/toHex'); | ||
var keccakAsString = require('./asString'); | ||
module.exports = function keccakAsHex(value) { | ||
return addHexPrefix(keccakAsString(value)); | ||
return bufferToHex(keccakAsBuffer(value)); | ||
}; |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"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
8751
23
182
3
4
1
8