Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/util

Package Overview
Dependencies
Maintainers
1
Versions
1411
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 0.5.8 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc