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.5 to 0.4.1

hex/addPrefix.js

6

bn/fromHex.js

@@ -6,5 +6,3 @@ 'use strict';

var _require = require('../hex'),
stripHexPrefix = _require.stripHexPrefix;
var hexStripPrefix = require('../hex/stripPrefix');
var isHex = require('../is/hex');

@@ -23,3 +21,3 @@

return new BN(stripHexPrefix(value), 16);
return new BN(hexStripPrefix(value), 16);
};

@@ -6,5 +6,3 @@ 'use strict';

var _require = require('../hex'),
addHexPrefix = _require.addHexPrefix;
var hexAddPrefix = require('../hex/addPrefix');
var isBN = require('../is/bn');

@@ -23,3 +21,3 @@

return addHexPrefix(value.toString(16));
return hexAddPrefix(value.toString(16));
};

@@ -5,6 +5,4 @@ 'use strict';

var isHex = require('../is/hex');
var hexStripPrefix = require('../hex/stripPrefix');
var _require = require('../hex'),
stripHexPrefix = _require.stripHexPrefix;
var EMPTY_BUFFER = Buffer.from([]);

@@ -21,3 +19,3 @@

return Buffer.from(stripHexPrefix(value), 'hex');
return Buffer.from(hexStripPrefix(value), 'hex');
};

@@ -5,6 +5,4 @@ 'use strict';

var isBuffer = require('../is/buffer');
var hexAddPrefix = require('../hex/addPrefix');
var _require = require('../hex'),
addHexPrefix = _require.addHexPrefix;
var ZERO_HEX = '0x';

@@ -21,3 +19,3 @@

return addHexPrefix(value.toString('hex'));
return hexAddPrefix(value.toString('hex'));
};
{
"name": "@polkadot/util",
"version": "0.3.5",
"version": "0.4.1",
"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