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

@xylabs/eth-address

Package Overview
Dependencies
Maintainers
7
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/eth-address - npm Package Compare versions

Comparing version 2.10.0 to 2.10.1

30

dist/index.d.ts

@@ -1,4 +0,26 @@

export { ellipsize } from './ellipsize.js';
export { EthAddress, isEthAddress } from './EthAddress.js';
export { padHex } from './padHex.js';
import '@xylabs/bignumber';
import { BigNumber } from '@xylabs/bignumber';
declare const ellipsize: (value: string, length?: number) => string;
declare const isEthAddress: (obj: {
type: string;
}) => boolean;
declare class EthAddress {
static type: string;
type: string;
private address;
private constructor();
static fromString(value?: string, base?: number): EthAddress | undefined;
static parse(value: unknown, base?: number): EthAddress | undefined;
equals(address?: EthAddress | string | null): boolean;
toBigNumber(): BigNumber;
toHex(): string;
toJSON(): string;
toLowerCaseString(): string;
toShortString(length?: number): string;
toString(): string;
}
declare const padHex: (hex: string, byteCount?: number) => string;
export { EthAddress, ellipsize, isEthAddress, padHex };

7

package.json

@@ -58,5 +58,4 @@ {

"dependencies": {
"@xylabs/assert": "~2.10.0",
"@xylabs/bignumber": "~2.10.0",
"tslib": "^2.6.2"
"@xylabs/assert": "~2.10.1",
"@xylabs/bignumber": "~2.10.1"
},

@@ -78,4 +77,4 @@ "devDependencies": {

"sideEffects": false,
"version": "2.10.0",
"version": "2.10.1",
"packageManager": "yarn@3.3.1"
}

@@ -8,8 +8,10 @@ import { defineConfig } from 'tsup'

clean: true,
dts: true,
entry: ['src'],
dts: {
entry: ['src/index.ts'],
},
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
sourcemap: true,
splitting: false,
tsconfig: 'tsconfig.json',
tsconfig: 'tsconfig.build.json',
})

Sorry, the diff of this file is not supported yet

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