You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@xylabs/storage

Package Overview
Dependencies
Maintainers
5
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/storage - npm Package Compare versions

Comparing version
5.0.80
to
5.0.81
+4
-7
package.json
{
"name": "@xylabs/storage",
"version": "5.0.80",
"version": "5.0.81",
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",

@@ -32,3 +32,2 @@ "keywords": [

"types": "./dist/neutral/index.d.ts",
"source": "./src/index.ts",
"default": "./dist/neutral/index.mjs"

@@ -39,7 +38,5 @@ },

"module": "./dist/neutral/index.mjs",
"source": "./src/index.ts",
"types": "./dist/neutral/index.d.ts",
"files": [
"dist",
"src",
"!**/*.bench.*",

@@ -50,7 +47,7 @@ "!**/*.spec.*",

"dependencies": {
"@xylabs/promise": "~5.0.80"
"@xylabs/promise": "~5.0.81"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "~7.3.2",
"@xylabs/tsconfig": "~7.3.2",
"@xylabs/ts-scripts-yarn3": "~7.4.11",
"@xylabs/tsconfig": "~7.4.11",
"typescript": "~5.9.3"

@@ -57,0 +54,0 @@ },

@@ -58,3 +58,3 @@ # @xylabs/storage

```ts
get(key): Promisable<undefined | TValue>;
get(key): Promisable<TValue | undefined>;
```

@@ -74,3 +74,3 @@

`Promisable`\<`undefined` \| `TValue`\>
`Promisable`\<`TValue` \| `undefined`\>

@@ -178,3 +178,3 @@ ### Inherited from

```ts
get(key): Promisable<undefined | TValue>;
get(key): Promisable<TValue | undefined>;
```

@@ -194,3 +194,3 @@

`Promisable`\<`undefined` \| `TValue`\>
`Promisable`\<`TValue` \| `undefined`\>

@@ -197,0 +197,0 @@ ***

export * from './KeyValueStore.ts'
import type { Promisable } from '@xylabs/promise'
/**
* A readonly storage device.
*/
export interface ReadonlyKeyValueStore<TValue, TKey = string> {
/**
* Returns a promise that resolves to the value for the given key.
* @param key The key to get the value for.
*/
get(key: TKey): Promisable<TValue | undefined>
/**
* The keys an array of keys.
*/
keys?(): Promisable<TKey[]>
}
/**
* A read/write storage device.
*/
export interface KeyValueStore<TValue, TKey = string> extends ReadonlyKeyValueStore<TValue, TKey> {
clear?(): Promisable<void>
delete(key: TKey): Promisable<void>
set(key: TKey, value: TValue): Promisable<void>
}