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.1 to 0.3.2

is/function.js

4

hex.js
'use strict';
// ISC, Copyright 2017 Jaco Greeff
var isHex = require('./is/hex');
function addHexPrefix(value) {

@@ -13,3 +15,3 @@ if (value && hasHexPrefix(value)) {

function hasHexPrefix(value) {
return !!(value && value.substr(0, 2) === '0x');
return !!(value && isHex(value) && value.substr(0, 2) === '0x');
}

@@ -16,0 +18,0 @@

{
"name": "@polkadot/util",
"version": "0.3.1",
"version": "0.3.2",
"description": "A collection of useful utilities for @polkadot",

@@ -67,4 +67,5 @@ "main": "index.js",

"dependencies": {
"babel-runtime": "^6.26.0"
"babel-runtime": "^6.26.0",
"keccak": "^1.3.0"
}
}
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