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

@xylabs/hex

Package Overview
Dependencies
Maintainers
5
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/hex - npm Package Compare versions

Comparing version 3.6.6 to 3.6.7

dist/browser/index.mjs

4

dist/browser/address.d.ts

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex, HexConfig } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex, HexConfig } from './hex/index.ts';
export type Address = Exclude<Hex, 'reserved-address-value'>;

@@ -4,0 +4,0 @@ export declare const toAddress: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex } from './hex/index.ts';
export type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;

@@ -4,0 +4,0 @@ export declare const HashBitLength: HashBitLength[];

@@ -1,5 +0,5 @@

import { AssertConfig } from '../assert.js';
import { Hex } from './model.js';
import { AssertConfig } from '../assert.ts';
import { Hex } from './model.ts';
export declare function asHex(value: unknown): Hex | undefined;
export declare function asHex(value: unknown, assert: AssertConfig): Hex;
//# sourceMappingURL=as.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFrom: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=from.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromArrayBuffer: (buffer: ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=fromArrayBuffer.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromBigInt: (value: bigint, config?: HexConfig) => Hex;
//# sourceMappingURL=fromBigInt.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex;
//# sourceMappingURL=fromHexString.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromNumber: (value: number, config?: HexConfig) => Hex;
//# sourceMappingURL=fromNumber.d.ts.map

@@ -1,6 +0,6 @@

export * from './from.js';
export * from './fromArrayBuffer.js';
export * from './fromBigInt.js';
export * from './fromHexString.js';
export * from './fromNumber.js';
export * from './from.ts';
export * from './fromArrayBuffer.ts';
export * from './fromBigInt.ts';
export * from './fromHexString.ts';
export * from './fromNumber.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,10 +0,10 @@

export * from './as.js';
export * from './from/index.js';
export * from './is.js';
export * from './isHexZero.js';
export * from './legacy.js';
export * from './model.js';
export * from './nibble.js';
export * from './regex.js';
export * from './to.js';
export * from './as.ts';
export * from './from/index.ts';
export * from './is.ts';
export * from './isHexZero.ts';
export * from './legacy.ts';
export * from './model.ts';
export * from './nibble.ts';
export * from './regex.ts';
export * from './to.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from './model.js';
import { Hex, HexConfig } from './model.ts';
export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex;
//# sourceMappingURL=is.d.ts.map

@@ -1,3 +0,3 @@

import { HexConfig } from './model.js';
import { HexConfig } from './model.ts';
export declare const toHex: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;
//# sourceMappingURL=to.d.ts.map

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

export * from './address.js';
export * from './hash.js';
export * from './hex/index.js';
export * from './address.ts';
export * from './hash.ts';
export * from './hex/index.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex, HexConfig } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex, HexConfig } from './hex/index.ts';
export type Address = Exclude<Hex, 'reserved-address-value'>;

@@ -4,0 +4,0 @@ export declare const toAddress: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex } from './hex/index.ts';
export type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;

@@ -4,0 +4,0 @@ export declare const HashBitLength: HashBitLength[];

@@ -1,5 +0,5 @@

import { AssertConfig } from '../assert.js';
import { Hex } from './model.js';
import { AssertConfig } from '../assert.ts';
import { Hex } from './model.ts';
export declare function asHex(value: unknown): Hex | undefined;
export declare function asHex(value: unknown, assert: AssertConfig): Hex;
//# sourceMappingURL=as.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFrom: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=from.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromArrayBuffer: (buffer: ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=fromArrayBuffer.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromBigInt: (value: bigint, config?: HexConfig) => Hex;
//# sourceMappingURL=fromBigInt.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex;
//# sourceMappingURL=fromHexString.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromNumber: (value: number, config?: HexConfig) => Hex;
//# sourceMappingURL=fromNumber.d.ts.map

@@ -1,6 +0,6 @@

export * from './from.js';
export * from './fromArrayBuffer.js';
export * from './fromBigInt.js';
export * from './fromHexString.js';
export * from './fromNumber.js';
export * from './from.ts';
export * from './fromArrayBuffer.ts';
export * from './fromBigInt.ts';
export * from './fromHexString.ts';
export * from './fromNumber.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,10 +0,10 @@

export * from './as.js';
export * from './from/index.js';
export * from './is.js';
export * from './isHexZero.js';
export * from './legacy.js';
export * from './model.js';
export * from './nibble.js';
export * from './regex.js';
export * from './to.js';
export * from './as.ts';
export * from './from/index.ts';
export * from './is.ts';
export * from './isHexZero.ts';
export * from './legacy.ts';
export * from './model.ts';
export * from './nibble.ts';
export * from './regex.ts';
export * from './to.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from './model.js';
import { Hex, HexConfig } from './model.ts';
export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex;
//# sourceMappingURL=is.d.ts.map

@@ -1,3 +0,3 @@

import { HexConfig } from './model.js';
import { HexConfig } from './model.ts';
export declare const toHex: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;
//# sourceMappingURL=to.d.ts.map

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

export * from './address.js';
export * from './hash.js';
export * from './hex/index.js';
export * from './address.ts';
export * from './hash.ts';
export * from './hex/index.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex, HexConfig } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex, HexConfig } from './hex/index.ts';
export type Address = Exclude<Hex, 'reserved-address-value'>;

@@ -4,0 +4,0 @@ export declare const toAddress: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;

@@ -1,3 +0,3 @@

import { AssertConfig } from './assert.js';
import { Hex } from './hex/index.js';
import { AssertConfig } from './assert.ts';
import { Hex } from './hex/index.ts';
export type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;

@@ -4,0 +4,0 @@ export declare const HashBitLength: HashBitLength[];

@@ -1,5 +0,5 @@

import { AssertConfig } from '../assert.js';
import { Hex } from './model.js';
import { AssertConfig } from '../assert.ts';
import { Hex } from './model.ts';
export declare function asHex(value: unknown): Hex | undefined;
export declare function asHex(value: unknown, assert: AssertConfig): Hex;
//# sourceMappingURL=as.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFrom: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=from.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromArrayBuffer: (buffer: ArrayBuffer, config?: HexConfig) => Hex;
//# sourceMappingURL=fromArrayBuffer.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromBigInt: (value: bigint, config?: HexConfig) => Hex;
//# sourceMappingURL=fromBigInt.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex;
//# sourceMappingURL=fromHexString.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js';
import { Hex, HexConfig } from '../model.ts';
export declare const hexFromNumber: (value: number, config?: HexConfig) => Hex;
//# sourceMappingURL=fromNumber.d.ts.map

@@ -1,6 +0,6 @@

export * from './from.js';
export * from './fromArrayBuffer.js';
export * from './fromBigInt.js';
export * from './fromHexString.js';
export * from './fromNumber.js';
export * from './from.ts';
export * from './fromArrayBuffer.ts';
export * from './fromBigInt.ts';
export * from './fromHexString.ts';
export * from './fromNumber.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,10 +0,10 @@

export * from './as.js';
export * from './from/index.js';
export * from './is.js';
export * from './isHexZero.js';
export * from './legacy.js';
export * from './model.js';
export * from './nibble.js';
export * from './regex.js';
export * from './to.js';
export * from './as.ts';
export * from './from/index.ts';
export * from './is.ts';
export * from './isHexZero.ts';
export * from './legacy.ts';
export * from './model.ts';
export * from './nibble.ts';
export * from './regex.ts';
export * from './to.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from './model.js';
import { Hex, HexConfig } from './model.ts';
export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex;
//# sourceMappingURL=is.d.ts.map

@@ -1,3 +0,3 @@

import { HexConfig } from './model.js';
import { HexConfig } from './model.ts';
export declare const toHex: (value: string | number | bigint | ArrayBuffer, config?: HexConfig) => Lowercase<string>;
//# sourceMappingURL=to.d.ts.map

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

export * from './address.js';
export * from './hash.js';
export * from './hex/index.js';
export * from './address.ts';
export * from './hash.ts';
export * from './hex/index.ts';
//# sourceMappingURL=index.d.ts.map

@@ -24,4 +24,4 @@ {

"import": {
"types": "./dist/neutral/index.d.mts",
"default": "./dist/neutral/index.js"
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
}

@@ -33,3 +33,3 @@ },

"types": "./dist/neutral/index.d.ts",
"module": "./dist/neutral/index.js",
"module": "./dist/neutral/index.mjs",
"homepage": "https://xylabs.com",

@@ -44,4 +44,5 @@ "keywords": [

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.14.1",
"@xylabs/tsconfig": "^3.14.1",
"@xylabs/ts-scripts-yarn3": "^3.15.4",
"@xylabs/tsconfig": "^3.15.4",
"tslib": "^2.6.3",
"typescript": "^5.5.4"

@@ -60,4 +61,4 @@ },

"sideEffects": false,
"version": "3.6.6",
"version": "3.6.7",
"type": "module"
}

@@ -1,3 +0,3 @@

import { AssertConfig, assertError } from './assert.js'
import { Hex, HexConfig, hexFrom, hexFromHexString, isHex } from './hex/index.js'
import { AssertConfig, assertError } from './assert.ts'
import { Hex, HexConfig, hexFrom, hexFromHexString, isHex } from './hex/index.ts'

@@ -4,0 +4,0 @@ export type Address = Exclude<Hex, 'reserved-address-value'>

@@ -1,3 +0,3 @@

import { AssertConfig, assertError } from './assert.js'
import { Hex, hexFromHexString, isHex } from './hex/index.js'
import { AssertConfig, assertError } from './assert.ts'
import { Hex, hexFromHexString, isHex } from './hex/index.ts'

@@ -4,0 +4,0 @@ export type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096

@@ -1,5 +0,5 @@

import { AssertConfig, assertError } from '../assert.js'
import { hexFromHexString } from './from/index.js'
import { isHex } from './is.js'
import { Hex } from './model.js'
import { AssertConfig, assertError } from '../assert.ts'
import { hexFromHexString } from './from/index.ts'
import { isHex } from './is.ts'
import { Hex } from './model.ts'

@@ -6,0 +6,0 @@ export function asHex(value: unknown): Hex | undefined

@@ -1,6 +0,6 @@

import { Hex, HexConfig } from '../model.js'
import { hexFromArrayBuffer } from './fromArrayBuffer.js'
import { hexFromBigInt } from './fromBigInt.js'
import { hexFromHexString } from './fromHexString.js'
import { hexFromNumber } from './fromNumber.js'
import { Hex, HexConfig } from '../model.ts'
import { hexFromArrayBuffer } from './fromArrayBuffer.ts'
import { hexFromBigInt } from './fromBigInt.ts'
import { hexFromHexString } from './fromHexString.ts'
import { hexFromNumber } from './fromNumber.ts'

@@ -7,0 +7,0 @@ /** Takes unknown value and tries our best to convert it to a hex string */

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js'
import { hexFromHexString } from './fromHexString.js'
import { Hex, HexConfig } from '../model.ts'
import { hexFromHexString } from './fromHexString.ts'

@@ -4,0 +4,0 @@ /** Convert an ArrayBuffer to a hex string */

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

import { Hex, HexConfig } from '../model.js'
import { bitsToNibbles } from '../nibble.js'
import { hexFromHexString } from './fromHexString.js'
import { Hex, HexConfig } from '../model.ts'
import { bitsToNibbles } from '../nibble.ts'
import { hexFromHexString } from './fromHexString.ts'

@@ -5,0 +5,0 @@ /** Convert a bigint to a hex string */

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

import { isHex } from '../is.js'
import { Hex, HexConfig } from '../model.js'
import { bitsToNibbles } from '../nibble.js'
import { isHex } from '../is.ts'
import { Hex, HexConfig } from '../model.ts'
import { bitsToNibbles } from '../nibble.ts'

@@ -5,0 +5,0 @@ export const hexFromHexString = (value: string, config: HexConfig = {}): Hex => {

@@ -1,3 +0,3 @@

import { Hex, HexConfig } from '../model.js'
import { hexFromBigInt } from './fromBigInt.js'
import { Hex, HexConfig } from '../model.ts'
import { hexFromBigInt } from './fromBigInt.ts'

@@ -4,0 +4,0 @@ export const hexFromNumber = (value: number, config?: HexConfig): Hex => {

@@ -1,5 +0,5 @@

export * from './from.js'
export * from './fromArrayBuffer.js'
export * from './fromBigInt.js'
export * from './fromHexString.js'
export * from './fromNumber.js'
export * from './from.ts'
export * from './fromArrayBuffer.ts'
export * from './fromBigInt.ts'
export * from './fromHexString.ts'
export * from './fromNumber.ts'

@@ -1,9 +0,9 @@

export * from './as.js'
export * from './from/index.js'
export * from './is.js'
export * from './isHexZero.js'
export * from './legacy.js'
export * from './model.js'
export * from './nibble.js'
export * from './regex.js'
export * from './to.js'
export * from './as.ts'
export * from './from/index.ts'
export * from './is.ts'
export * from './isHexZero.ts'
export * from './legacy.ts'
export * from './model.ts'
export * from './nibble.ts'
export * from './regex.ts'
export * from './to.ts'

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

import { Hex, HexConfig } from './model.js'
import { bitsToNibbles } from './nibble.js'
import { hexRegex, hexRegexWithPrefix } from './regex.js'
import { Hex, HexConfig } from './model.ts'
import { bitsToNibbles } from './nibble.ts'
import { hexRegex, hexRegexWithPrefix } from './regex.ts'

@@ -5,0 +5,0 @@ export const isHex = (value: unknown, config?: HexConfig): value is Hex => {

@@ -1,2 +0,2 @@

import { hexFromHexString } from './from/index.js'
import { hexFromHexString } from './from/index.ts'

@@ -3,0 +3,0 @@ export const isHexZero = (value?: string) => {

@@ -1,3 +0,3 @@

import { hexFrom } from './from/index.js'
import { HexConfig } from './model.js'
import { hexFrom } from './from/index.ts'
import { HexConfig } from './model.ts'

@@ -4,0 +4,0 @@ /** takes any value and tries our best to convert it to a hex string */

@@ -1,3 +0,3 @@

export * from './address.js'
export * from './hash.js'
export * from './hex/index.js'
export * from './address.ts'
export * from './hash.ts'
export * from './hex/index.ts'

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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