New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/util

Package Overview
Dependencies
Maintainers
1
Versions
1412
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.18.2 to 0.18.3

7

hex/fixLength.js

@@ -9,5 +9,2 @@ 'use strict';

var _require = require('./constants'),
ZEROS_256 = _require.ZEROS_256;
/**

@@ -26,4 +23,2 @@ @name hexFixLength

*/
module.exports = function hexFixLength(value) {

@@ -44,3 +39,3 @@ var bitLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;

return hexAddPrefix(('' + ZEROS_256 + hexStripPrefix(value)).slice(-1 * strLength));
return hexAddPrefix(('' + '0'.repeat(strLength) + hexStripPrefix(value)).slice(-1 * strLength));
};

2

package.json
{
"name": "@polkadot/util",
"version": "0.18.2",
"version": "0.18.3",
"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

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