@xyo-network/data
Advanced tools
Comparing version 2.111.3 to 3.0.0
@@ -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 }; |
@@ -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" | ||
} |
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
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
61106
16
281
1