@0xsequence/utils
Advanced tools
Comparing version 0.21.5 to 0.22.0
# @0xsequence/utils | ||
## 0.22.0 | ||
### Minor Changes | ||
- e667b65: Expose all relayer options on networks | ||
## 0.21.5 | ||
@@ -4,0 +10,0 @@ |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var properties = require('@ethersproject/properties'); | ||
var utils = require('ethers/lib/utils'); | ||
@@ -259,2 +260,6 @@ const base64Encode = val => { | ||
function isBigNumberish(value) { | ||
return value != null && (ethers.BigNumber.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || utils.isHexString(value) || typeof value === "bigint" || utils.isBytes(value)); | ||
} | ||
Object.defineProperty(exports, 'checkProperties', { | ||
@@ -306,2 +311,3 @@ enumerable: true, | ||
exports.getRandomInt = getRandomInt; | ||
exports.isBigNumberish = isBigNumberish; | ||
exports.isBrowser = isBrowser; | ||
@@ -308,0 +314,0 @@ exports.isNode = isNode; |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var properties = require('@ethersproject/properties'); | ||
var utils = require('ethers/lib/utils'); | ||
@@ -259,2 +260,6 @@ const base64Encode = val => { | ||
function isBigNumberish(value) { | ||
return value != null && (ethers.BigNumber.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || utils.isHexString(value) || typeof value === "bigint" || utils.isBytes(value)); | ||
} | ||
Object.defineProperty(exports, 'checkProperties', { | ||
@@ -306,2 +311,3 @@ enumerable: true, | ||
exports.getRandomInt = getRandomInt; | ||
exports.isBigNumberish = isBigNumberish; | ||
exports.isBrowser = isBrowser; | ||
@@ -308,0 +314,0 @@ exports.isNode = isNode; |
import { Base64 } from 'js-base64'; | ||
import { ethers } from 'ethers'; | ||
import { ethers, BigNumber } from 'ethers'; | ||
export { checkProperties, deepCopy, defineReadOnly, getStatic, resolveProperties, shallowCopy } from '@ethersproject/properties'; | ||
import { isHexString, isBytes } from 'ethers/lib/utils'; | ||
@@ -254,2 +255,6 @@ const base64Encode = val => { | ||
export { Logger, base64Decode, base64DecodeObject, base64Encode, base64EncodeObject, configureLogger, encodeMessageDigest, encodeTypedDataDigest, encodeTypedDataHash, getRandomInt, isBrowser, isNode, jwtDecodeClaims, logger, packMessageData, promisify, queryStringFromObject, queryStringToObject, sanitizeAlphanumeric, sanitizeHost, sanitizeNumberString, sleep, subDigestOf, urlClean }; | ||
function isBigNumberish(value) { | ||
return value != null && (BigNumber.isBigNumber(value) || typeof value === "number" && value % 1 === 0 || typeof value === "string" && !!value.match(/^-?[0-9]+$/) || isHexString(value) || typeof value === "bigint" || isBytes(value)); | ||
} | ||
export { Logger, base64Decode, base64DecodeObject, base64Encode, base64EncodeObject, configureLogger, encodeMessageDigest, encodeTypedDataDigest, encodeTypedDataHash, getRandomInt, isBigNumberish, isBrowser, isNode, jwtDecodeClaims, logger, packMessageData, promisify, queryStringFromObject, queryStringToObject, sanitizeAlphanumeric, sanitizeHost, sanitizeNumberString, sleep, subDigestOf, urlClean }; |
@@ -14,1 +14,2 @@ export * from './base64'; | ||
export * from './web'; | ||
export * from './big-number'; |
{ | ||
"name": "@0xsequence/utils", | ||
"version": "0.21.5", | ||
"version": "0.22.0", | ||
"description": "utils sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/utils", |
@@ -14,1 +14,2 @@ export * from './base64' | ||
export * from './web' | ||
export * from './big-number' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43333
38
1100