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

@xyo-network/data

Package Overview
Dependencies
Maintainers
0
Versions
347
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 2.111.3 to 3.0.0

32

dist/browser/index.d.ts

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

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

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

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

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

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

33

package.json

@@ -21,4 +21,4 @@ {

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "next",
"@xylabs/tsconfig": "next",
"typescript": "^5.5.4"

@@ -28,28 +28,9 @@ },

".": {
"browser": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/index.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.mjs"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
}
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/node/index.cjs",
"module": "dist/node/index.mjs",
"types": "dist/node/index.d.mts",
"module": "dist/neutral/index.mjs",
"types": "dist/neutral/index.d.ts",
"homepage": "https://xyo.network",

@@ -65,4 +46,4 @@ "license": "LGPL-3.0-or-later",

"sideEffects": false,
"version": "2.111.3",
"version": "3.0.0",
"type": "module"
}
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