@polkadot/util
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -12,2 +12,3 @@ 'use strict'; | ||
var buffer = require('./buffer'); | ||
var ext = require('./ext'); | ||
var hex = require('./hex'); | ||
@@ -22,2 +23,2 @@ var is = require('./is'); | ||
*/ | ||
module.exports = (0, _assign2.default)({}, bn, buffer, hex, is, jsonrpc, keccak, logger); | ||
module.exports = (0, _assign2.default)({}, bn, buffer, ext, hex, is, jsonrpc, keccak, logger); |
@@ -5,2 +5,4 @@ 'use strict'; | ||
var isBN = require('./bn'); | ||
var isBuffer = require('./buffer'); | ||
var isError = require('./error'); | ||
var isFunction = require('./function'); | ||
@@ -18,2 +20,4 @@ var isHex = require('./hex'); | ||
isBN: isBN, | ||
isBuffer: isBuffer, | ||
isError: isError, | ||
isFunction: isFunction, | ||
@@ -20,0 +24,0 @@ isHex: isHex, |
'use strict'; | ||
function formatParam(param) { | ||
return param.name ? param.name + ': ' + param.type : param.type; | ||
} | ||
/** | ||
@@ -16,10 +20,10 @@ @name jsonrpcSignature | ||
*/ | ||
// ISC, Copyright 2017 Jaco Greeff | ||
module.exports = function jsonrpcSignature(name, _inputs, _output) { | ||
var inputParams = _inputs.map(function (_ref) { | ||
var name = _ref.name, | ||
type = _ref.type; | ||
return name + ': ' + type; | ||
}).join(', '); | ||
var inputs = _inputs.map(formatParam).join(', '); | ||
var output = formatParam(_output); | ||
return name + ' (' + inputParams + '): ' + _output.type; | ||
}; // ISC, Copyright 2017 Jaco Greeff | ||
return name + ' (' + inputs + '): ' + output; | ||
}; |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Sorry, the diff of this file is not supported yet
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
52521
73
582
3
4
1
8