@polkadot/util
Advanced tools
Comparing version 0.19.4 to 0.19.5
@@ -9,3 +9,3 @@ 'use strict'; | ||
/** | ||
@name isBN | ||
@name isBn | ||
@signature isBN (value: mixed): boolean | ||
@@ -17,8 +17,8 @@ @summary Tests for a `BN` object instance. | ||
import BN from 'bn.js'; | ||
import { isBN } from '@polkadot/util'; | ||
import { isBn } from '@polkadot/util'; | ||
console.log('isBN', isBN(new BN(1))); // => true | ||
console.log('isBn', isBn(new BN(1))); // => true | ||
*/ | ||
module.exports = function isBN(value) { | ||
module.exports = function isBn(value) { | ||
return BN.isBN(value); | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
// of the ISC license. See the LICENSE file for details. | ||
var isBN = require('./bn'); | ||
var isBn = require('./bn'); | ||
var isBuffer = require('./buffer'); | ||
@@ -18,2 +18,3 @@ var isBoolean = require('./boolean'); | ||
var isObject = require('./object'); | ||
var isObservable = require('./observable'); | ||
var isString = require('./string'); | ||
@@ -27,3 +28,3 @@ var isU8a = require('./u8a'); | ||
module.exports = { | ||
isBN: isBN, | ||
isBn: isBn, | ||
isBoolean: isBoolean, | ||
@@ -37,2 +38,3 @@ isBuffer: isBuffer, | ||
isObject: isObject, | ||
isObservable: isObservable, | ||
isNull: isNull, | ||
@@ -39,0 +41,0 @@ isNumber: isNumber, |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.19.4", | ||
"version": "0.19.5", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@polkadot/api-jsonrpc": "^0.9.5" | ||
"@polkadot/api-jsonrpc": "^0.9.15" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
154084
197
1470