🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@polkadot/util

Package Overview
Dependencies
Maintainers
1
Versions
1418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/util - npm Package Compare versions

Comparing version

to
0.5.9

ext/error.js

3

index.js

@@ -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