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

@hazae41/glacier

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/glacier - npm Package Compare versions

Comparing version 2.0.13 to 2.0.14

6

dist/types/index.d.ts

@@ -31,5 +31,5 @@ import * as index from './mods/index.js';

export { StorageCreationError } from './mods/storages/errors.js';
export { IDBError, IDBStorage, IDBStorageParams, useIDBStorage } from './mods/storages/idb/basic.js';
export { AsyncLocalStorage, AsyncLocalStorageParams, useAsyncLocalStorage } from './mods/storages/local/basic.js';
export { Storage } from './mods/storages/storage.js';
export { IDBError, IDBQueryStorage, IDBStorageParams, useIDBStorage } from './mods/storages/idb/basic.js';
export { AsyncLocalQueryStorage, AsyncLocalStorageParams, useAsyncLocalStorage } from './mods/storages/local/basic.js';
export { QueryStorage } from './mods/storages/storage.js';
export { Fallback } from './mods/types/fallback.js';

@@ -36,0 +36,0 @@ export { Fetcher, FetcherMore } from './mods/types/fetcher.js';

@@ -29,5 +29,5 @@ export { AsyncBicoder, AsyncEncoder, AsyncJson, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, SyncBicoder, SyncEncoder, SyncIdentity, SyncJson, SyncPipeBicoder, SyncPipeEncoder } from './coders/coder.js';

export { StorageCreationError } from './storages/errors.js';
export { IDBError, IDBStorage, IDBStorageParams, useIDBStorage } from './storages/idb/basic.js';
export { AsyncLocalStorage, AsyncLocalStorageParams, useAsyncLocalStorage } from './storages/local/basic.js';
export { Storage } from './storages/storage.js';
export { IDBError, IDBQueryStorage, IDBStorageParams, useIDBStorage } from './storages/idb/basic.js';
export { AsyncLocalQueryStorage, AsyncLocalStorageParams, useAsyncLocalStorage } from './storages/local/basic.js';
export { QueryStorage } from './storages/storage.js';
export { Fallback } from './types/fallback.js';

@@ -34,0 +34,0 @@ export { Fetcher, FetcherMore } from './types/fetcher.js';

import { Result } from '@hazae41/result';
import { Encoder, Bicoder } from '../../coders/coder.js';
import { Storage } from '../storage.js';
import { QueryStorage } from '../storage.js';
import { RawState } from '../../types/state.js';
declare function useIDBStorage(params?: IDBStorageParams): Result<IDBStorage, Error>;
declare function useIDBStorage(params?: IDBStorageParams): Result<IDBQueryStorage, Error>;
interface IDBStorageParams {

@@ -23,3 +23,3 @@ readonly name?: string;

}
declare class IDBStorage implements Storage {
declare class IDBQueryStorage implements QueryStorage {
#private;

@@ -39,3 +39,3 @@ readonly name: string;

[Symbol.asyncDispose](): Promise<void>;
static createOrThrow(params?: IDBStorageParams): IDBStorage;
static createOrThrow(params?: IDBStorageParams): IDBQueryStorage;
/**

@@ -61,2 +61,2 @@ * Load the keys and garbage collect them

export { IDBError, IDBStorage, type IDBStorageParams, useIDBStorage };
export { IDBError, IDBQueryStorage, type IDBStorageParams, useIDBStorage };
import { Result } from '@hazae41/result';
import { Encoder, Bicoder } from '../../coders/coder.js';
import { RawState } from '../../types/state.js';
import { Storage } from '../storage.js';
import { QueryStorage } from '../storage.js';

@@ -19,3 +19,3 @@ /**

*/
declare function useAsyncLocalStorage(params?: AsyncLocalStorageParams): Result<AsyncLocalStorage, Error>;
declare function useAsyncLocalStorage(params?: AsyncLocalStorageParams): Result<AsyncLocalQueryStorage, Error>;
interface AsyncLocalStorageParams {

@@ -39,3 +39,3 @@ readonly prefix?: string;

*/
declare class AsyncLocalStorage implements Storage {
declare class AsyncLocalQueryStorage implements QueryStorage {
#private;

@@ -48,3 +48,3 @@ readonly prefix: string;

private constructor();
static createOrThrow(params?: AsyncLocalStorageParams): AsyncLocalStorage;
static createOrThrow(params?: AsyncLocalStorageParams): AsyncLocalQueryStorage;
[Symbol.dispose](): void;

@@ -57,2 +57,2 @@ collect(): void;

export { AsyncLocalStorage, type AsyncLocalStorageParams, useAsyncLocalStorage };
export { AsyncLocalQueryStorage, type AsyncLocalStorageParams, useAsyncLocalStorage };
import { Awaitable } from '../../libs/promises/promises.js';
import { RawState } from '../types/state.js';
interface Storage {
interface QueryStorage {
/**

@@ -22,2 +22,2 @@ * Get the data from the given key

export type { Storage };
export type { QueryStorage };
import { Bicoder, SyncEncoder } from '../coders/coder.js';
import { Equalser } from '../equals/equals.js';
import { Storage } from '../storages/storage.js';
import { QueryStorage } from '../storages/storage.js';
import { Normalizer } from './normalizer.js';

@@ -26,3 +26,3 @@ import { Fetcher } from './fetcher.js';

readonly errorEqualser?: Equalser<F>;
readonly storage?: Storage;
readonly storage?: QueryStorage;
}

@@ -45,3 +45,3 @@ interface FetcherfulQuerySettings<K, D, F> {

readonly errorEqualser?: Equalser<F>;
readonly storage?: Storage;
readonly storage?: QueryStorage;
}

@@ -64,3 +64,3 @@ interface FetcherlessQuerySettings<K, D, F> {

readonly errorEqualser?: Equalser<F>;
readonly storage?: Storage;
readonly storage?: QueryStorage;
}

@@ -67,0 +67,0 @@ type ScrollableQuerySettings<K, D, F> = ScrollableFetcherlessQuerySettings<K, D, F> | ScrollableFetcherfulQuerySettings<K, D, F>;

{
"type": "module",
"name": "@hazae41/glacier",
"version": "2.0.13",
"version": "2.0.14",
"author": "hazae41",

@@ -25,9 +25,9 @@ "license": "MIT",

"dependencies": {
"@hazae41/base64": "^1.0.10",
"@hazae41/box": "^1.0.14",
"@hazae41/bytes": "^1.2.9",
"@hazae41/mutex": "^1.2.12",
"@hazae41/option": "^1.0.27",
"@hazae41/plume": "^2.4.1",
"@hazae41/result": "^1.2.0"
"@hazae41/base64": "^1.0.15",
"@hazae41/box": "^2.0.1",
"@hazae41/bytes": "^1.2.11",
"@hazae41/mutex": "^2.0.1",
"@hazae41/option": "^1.1.4",
"@hazae41/plume": "^2.4.4",
"@hazae41/result": "^1.3.1"
},

@@ -40,9 +40,9 @@ "peerDependencies": {

"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"rimraf": "^5.0.5",
"rollup": "^4.12.1",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-node-externals": "^7.0.1",
"typescript": "^5.4.2"
"@types/node": "^22.5.2",
"@types/react": "^18.3.5",
"rimraf": "^6.0.1",
"rollup": "^4.21.2",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-node-externals": "^7.1.3",
"typescript": "^5.5.4"
},

@@ -49,0 +49,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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