@xyo-network/previous-hash-store-storage
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -1,24 +0,2 @@ | ||
import { Address, Hash } from '@xylabs/hex'; | ||
import { PreviousHashStore } from '@xyo-network/previous-hash-store-model'; | ||
type Storage = 'local' | 'session' | 'page'; | ||
type StoragePreviousHashOpts = { | ||
namespace?: string; | ||
type?: Storage; | ||
}; | ||
declare class StoragePreviousHashStore implements PreviousHashStore { | ||
static readonly DefaultNamespace = "xyo-previous-hash-store"; | ||
static readonly DefaultStorageType: Storage; | ||
private _namespace; | ||
private _storage; | ||
private _type; | ||
constructor(opts?: StoragePreviousHashOpts); | ||
get namespace(): string; | ||
get type(): Storage; | ||
private get storage(); | ||
getItem(address: Address): Promise<Hash | null>; | ||
removeItem(address: Address): Promise<void>; | ||
setItem(address: Address, previousHash: Hash): Promise<void>; | ||
} | ||
export { type Storage, type StoragePreviousHashOpts, StoragePreviousHashStore }; | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,24 +0,2 @@ | ||
import { Address, Hash } from '@xylabs/hex'; | ||
import { PreviousHashStore } from '@xyo-network/previous-hash-store-model'; | ||
type Storage = 'local' | 'session' | 'page'; | ||
type StoragePreviousHashOpts = { | ||
namespace?: string; | ||
type?: Storage; | ||
}; | ||
declare class StoragePreviousHashStore implements PreviousHashStore { | ||
static readonly DefaultNamespace = "xyo-previous-hash-store"; | ||
static readonly DefaultStorageType: Storage; | ||
private _namespace; | ||
private _storage; | ||
private _type; | ||
constructor(opts?: StoragePreviousHashOpts); | ||
get namespace(): string; | ||
get type(): Storage; | ||
private get storage(); | ||
getItem(address: Address): Promise<Hash | null>; | ||
removeItem(address: Address): Promise<void>; | ||
setItem(address: Address, previousHash: Hash): Promise<void>; | ||
} | ||
export { type Storage, type StoragePreviousHashOpts, StoragePreviousHashStore }; | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,24 +0,2 @@ | ||
import { Address, Hash } from '@xylabs/hex'; | ||
import { PreviousHashStore } from '@xyo-network/previous-hash-store-model'; | ||
type Storage = 'local' | 'session' | 'page'; | ||
type StoragePreviousHashOpts = { | ||
namespace?: string; | ||
type?: Storage; | ||
}; | ||
declare class StoragePreviousHashStore implements PreviousHashStore { | ||
static readonly DefaultNamespace = "xyo-previous-hash-store"; | ||
static readonly DefaultStorageType: Storage; | ||
private _namespace; | ||
private _storage; | ||
private _type; | ||
constructor(opts?: StoragePreviousHashOpts); | ||
get namespace(): string; | ||
get type(): Storage; | ||
private get storage(); | ||
getItem(address: Address): Promise<Hash | null>; | ||
removeItem(address: Address): Promise<void>; | ||
setItem(address: Address, previousHash: Hash): Promise<void>; | ||
} | ||
export { type Storage, type StoragePreviousHashOpts, StoragePreviousHashStore }; | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xyo-network/previous-hash-store-storage", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -32,4 +32,4 @@ "homepage": "https://xyo.network", | ||
"dependencies": { | ||
"@xylabs/hex": "^4.0.2", | ||
"@xyo-network/previous-hash-store-model": "^3.0.7", | ||
"@xylabs/hex": "^4.0.3", | ||
"@xyo-network/previous-hash-store-model": "^3.0.8", | ||
"store2": "^2.14.3" | ||
@@ -40,4 +40,4 @@ }, | ||
"@types/uuid": "^10.0.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0", | ||
"@xylabs/tsconfig": "^4.0.0", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"@xylabs/tsconfig": "^4.0.7", | ||
"typescript": "^5.5.4", | ||
@@ -44,0 +44,0 @@ "uuid": "^10.0.0" |
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
const config: XyTsupConfig = { | ||
compile: { | ||
browser: { | ||
src: true, | ||
}, | ||
node: { | ||
src: true, | ||
}, | ||
browser: { src: true }, | ||
node: { src: true }, | ||
}, | ||
@@ -11,0 +7,0 @@ } |
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
28538
25
233