@xylabs/eth-address
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -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 }; |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
0
28339
14
298
- Removedtslib@^2.6.2
- Removedtslib@2.8.1(transitive)
Updated@xylabs/assert@~2.10.1
Updated@xylabs/bignumber@~2.10.1