Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/utils

Package Overview
Dependencies
Maintainers
4
Versions
496
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/utils - npm Package Compare versions

Comparing version 0.21.5 to 0.22.0

dist/declarations/src/big-number.d.ts

6

CHANGELOG.md
# @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;

9

dist/0xsequence-utils.esm.js
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'
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