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.3.4 to 0.3.5

buffer/fromHex.js

3

index.js

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

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