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

@xyo-network/previous-hash-store-storage

Package Overview
Dependencies
Maintainers
5
Versions
537
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/previous-hash-store-storage - npm Package Compare versions

Comparing version 2.111.3 to 3.0.0

26

dist/browser/index.d.ts

@@ -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 };

35

package.json

@@ -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

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