@xyo-network/previous-hash-store-storage
Advanced tools
Comparing version 2.111.3 to 3.0.0
@@ -1,2 +0,24 @@ | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map | ||
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 }; |
@@ -1,2 +0,24 @@ | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map | ||
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 }; |
@@ -1,2 +0,24 @@ | ||
export * from './StoragePreviousHashStore.ts'; | ||
//# sourceMappingURL=index.d.ts.map | ||
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 }; |
@@ -15,3 +15,3 @@ { | ||
"@xylabs/hex": "^3.6.12", | ||
"@xyo-network/previous-hash-store-model": "^2.111.3", | ||
"@xyo-network/previous-hash-store-model": "^3.0.0", | ||
"store2": "^2.14.3" | ||
@@ -22,4 +22,4 @@ }, | ||
"@types/uuid": "^10.0.0", | ||
"@xylabs/ts-scripts-yarn3": "^3.15.14", | ||
"@xylabs/tsconfig": "^3.15.14", | ||
"@xylabs/ts-scripts-yarn3": "next", | ||
"@xylabs/tsconfig": "next", | ||
"typescript": "^5.5.4", | ||
@@ -30,27 +30,8 @@ "uuid": "^10.0.0" | ||
".": { | ||
"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", | ||
"module": "dist/neutral/index.mjs", | ||
"homepage": "https://xyo.network", | ||
@@ -66,5 +47,5 @@ "license": "LGPL-3.0-only", | ||
"sideEffects": false, | ||
"types": "dist/node/index.d.ts", | ||
"version": "2.111.3", | ||
"types": "dist/neutral/index.d.ts", | ||
"version": "3.0.0", | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
25029
16
236
1
+ Added@xylabs/hex@4.3.4(transitive)
+ Added@xyo-network/previous-hash-store-model@3.3.3(transitive)
- Removed@xyo-network/previous-hash-store-model@2.111.3(transitive)