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.2 to 0.3.3

bn/fromHex.js

4

is/hex.js

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

var HEX_REGEX = /^0x[a-fA-F0-9]+$/;
module.exports = function isHex(value) {
return isString(value) && /^0x[a-fA-F0-9]+$/.test(value);
return isString(value) && HEX_REGEX.test(value);
};
'use strict';
// ISC, Copyright 2017 Jaco Greeff
var isBN = require('./bn');
var isFunction = require('./function');

@@ -12,2 +13,3 @@ var isHex = require('./hex');

module.exports = {
isBN: isBN,
isFunction: isFunction,

@@ -14,0 +16,0 @@ isHex: isHex,

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

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

"babel-runtime": "^6.26.0",
"bn.js": "^4.11.8",
"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