New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xyo-network/data

Package Overview
Dependencies
Maintainers
0
Versions
384
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/data - npm Package Compare versions

Comparing version 3.4.2 to 3.5.0

16

dist/browser/AbstractData.d.ts

@@ -1,8 +0,16 @@

export declare abstract class AbstractData {
import type { Hex } from '@xylabs/hex';
export interface DataInstance {
base58: string;
bytes: ArrayBufferLike;
hex: Hex;
keccak256: ArrayBufferLike;
}
export declare abstract class AbstractData implements DataInstance {
get length(): number;
abstract get bytes(): ArrayBuffer;
abstract get hex(): string;
abstract get keccak256(): ArrayBuffer;
abstract get base58(): string;
abstract get bytes(): ArrayBufferLike;
abstract get hex(): Hex;
abstract get keccak256(): ArrayBufferLike;
static is(value: unknown): value is AbstractData;
}
//# sourceMappingURL=AbstractData.d.ts.map
import type { Hex } from '@xylabs/hex';
import { AbstractData } from './AbstractData.ts';
export interface DataInstance {
base58: string;
bytes: ArrayBuffer;
hex: Hex;
keccak256: Uint8Array;
}
export declare class Data extends AbstractData implements DataInstance {
export declare class Data extends AbstractData {
private _bytes?;
private _length;
constructor(length: number, bytes?: ArrayBuffer, base?: number);
constructor(length: number, bytes?: ArrayBufferLike, base?: number);
get base58(): string;
get bytes(): ArrayBuffer;
get bytes(): ArrayBuffer | SharedArrayBuffer;
get hex(): Hex;
get keccak256(): Uint8Array;
get keccak256(): ArrayBufferLike;
static from(data: ArrayBuffer | undefined): Data | undefined;

@@ -18,0 +12,0 @@ private checkLength;

@@ -1,8 +0,16 @@

export declare abstract class AbstractData {
import type { Hex } from '@xylabs/hex';
export interface DataInstance {
base58: string;
bytes: ArrayBufferLike;
hex: Hex;
keccak256: ArrayBufferLike;
}
export declare abstract class AbstractData implements DataInstance {
get length(): number;
abstract get bytes(): ArrayBuffer;
abstract get hex(): string;
abstract get keccak256(): ArrayBuffer;
abstract get base58(): string;
abstract get bytes(): ArrayBufferLike;
abstract get hex(): Hex;
abstract get keccak256(): ArrayBufferLike;
static is(value: unknown): value is AbstractData;
}
//# sourceMappingURL=AbstractData.d.ts.map
import type { Hex } from '@xylabs/hex';
import { AbstractData } from './AbstractData.ts';
export interface DataInstance {
base58: string;
bytes: ArrayBuffer;
hex: Hex;
keccak256: Uint8Array;
}
export declare class Data extends AbstractData implements DataInstance {
export declare class Data extends AbstractData {
private _bytes?;
private _length;
constructor(length: number, bytes?: ArrayBuffer, base?: number);
constructor(length: number, bytes?: ArrayBufferLike, base?: number);
get base58(): string;
get bytes(): ArrayBuffer;
get bytes(): ArrayBuffer | SharedArrayBuffer;
get hex(): Hex;
get keccak256(): Uint8Array;
get keccak256(): ArrayBufferLike;
static from(data: ArrayBuffer | undefined): Data | undefined;

@@ -18,0 +12,0 @@ private checkLength;

@@ -1,8 +0,16 @@

export declare abstract class AbstractData {
import type { Hex } from '@xylabs/hex';
export interface DataInstance {
base58: string;
bytes: ArrayBufferLike;
hex: Hex;
keccak256: ArrayBufferLike;
}
export declare abstract class AbstractData implements DataInstance {
get length(): number;
abstract get bytes(): ArrayBuffer;
abstract get hex(): string;
abstract get keccak256(): ArrayBuffer;
abstract get base58(): string;
abstract get bytes(): ArrayBufferLike;
abstract get hex(): Hex;
abstract get keccak256(): ArrayBufferLike;
static is(value: unknown): value is AbstractData;
}
//# sourceMappingURL=AbstractData.d.ts.map
import type { Hex } from '@xylabs/hex';
import { AbstractData } from './AbstractData.ts';
export interface DataInstance {
base58: string;
bytes: ArrayBuffer;
hex: Hex;
keccak256: Uint8Array;
}
export declare class Data extends AbstractData implements DataInstance {
export declare class Data extends AbstractData {
private _bytes?;
private _length;
constructor(length: number, bytes?: ArrayBuffer, base?: number);
constructor(length: number, bytes?: ArrayBufferLike, base?: number);
get base58(): string;
get bytes(): ArrayBuffer;
get bytes(): ArrayBuffer | SharedArrayBuffer;
get hex(): Hex;
get keccak256(): Uint8Array;
get keccak256(): ArrayBufferLike;
static from(data: ArrayBuffer | undefined): Data | undefined;

@@ -18,0 +12,0 @@ private checkLength;

{
"name": "@xyo-network/data",
"version": "3.4.2",
"version": "3.5.0",
"description": "Primary SDK for using XYO Protocol 2.0",

@@ -32,6 +32,6 @@ "homepage": "https://xyo.network",

"dependencies": {
"@scure/base": "^1.1.9",
"@xylabs/arraybuffer": "^4.3.13",
"@xylabs/assert": "^4.3.13",
"@xylabs/hex": "^4.3.13",
"@scure/base": "^1.2.1",
"@xylabs/arraybuffer": "^4.4.4",
"@xylabs/assert": "^4.4.4",
"@xylabs/hex": "^4.4.4",
"ethers": "6.13.4"

@@ -42,3 +42,5 @@ },

"@xylabs/tsconfig": "^4.2.4",
"typescript": "^5.6.3"
"@xylabs/vitest-extended": "^4.4.4",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
},

@@ -45,0 +47,0 @@ "publishConfig": {

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

export abstract class AbstractData {
import type { Hex } from '@xylabs/hex'
export interface DataInstance {
base58: string
bytes: ArrayBufferLike
hex: Hex
keccak256: ArrayBufferLike
}
export abstract class AbstractData implements DataInstance {
get length() {

@@ -6,8 +15,10 @@ return this.bytes.byteLength

abstract get bytes(): ArrayBuffer
abstract get base58(): string
abstract get hex(): string
abstract get bytes(): ArrayBufferLike
abstract get keccak256(): ArrayBuffer
abstract get hex(): Hex
abstract get keccak256(): ArrayBufferLike
static is(value: unknown): value is AbstractData {

@@ -14,0 +25,0 @@ return value instanceof AbstractData

@@ -9,16 +9,9 @@ import { base16, base58 } from '@scure/base'

export interface DataInstance {
base58: string
bytes: ArrayBuffer
hex: Hex
keccak256: Uint8Array
}
export class Data extends AbstractData implements DataInstance {
private _bytes?: ArrayBuffer
export class Data extends AbstractData {
private _bytes?: ArrayBufferLike
private _length: number
constructor(length: number, bytes?: ArrayBuffer, base?: number) {
constructor(length: number, bytes?: ArrayBufferLike, base?: number) {
super()
this._bytes = toUint8Array(bytes, length, base)
this._bytes = toUint8Array(bytes, length, base)?.buffer
this._length = length

@@ -25,0 +18,0 @@ }

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