New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

idb-lru-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-lru-cache - npm Package Compare versions

Comparing version

to
0.1.0

18

dist/mod.d.ts

@@ -9,6 +9,6 @@ import { IDBPCursorWithValue, IDBPCursorWithValueIteratorValue, IDBPObjectStore } from 'idb';

declare const RW = "readwrite";
declare type Expiry = Date;
declare type Access = Date;
declare type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
interface Fields<V> {
export declare type Expiry = Date;
export declare type Access = Date;
export declare type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
export interface Fields<V> {
[VALUE]: V;

@@ -21,3 +21,3 @@ [EXPIRY]: Expiry;

}
interface Schema<K extends IDBValidKey, V> extends DBSchema {
export interface Schema<K extends IDBValidKey, V> extends DBSchema {
[STORE]: {

@@ -32,5 +32,5 @@ key: K;

}
declare type IndexedField<K extends IDBValidKey, V> = keyof Schema<K, V>[typeof STORE]['indexes'];
declare type DB<K extends IDBValidKey, V> = IDBPDatabase<Schema<K, V>>;
interface Metadata {
export declare type IndexedField<K extends IDBValidKey, V> = keyof Schema<K, V>[typeof STORE]['indexes'];
export declare type DB<K extends IDBValidKey, V> = IDBPDatabase<Schema<K, V>>;
export interface Metadata {
[EXPIRY]: Expiry;

@@ -64,3 +64,3 @@ [ACCESS]?: Access;

}
interface CacheOptions {
export interface CacheOptions {
dbName?: string;

@@ -67,0 +67,0 @@ dbVersion?: number;

@@ -9,6 +9,6 @@ import { IDBPCursorWithValue, IDBPCursorWithValueIteratorValue, IDBPObjectStore } from 'idb';

declare const RW = "readwrite";
declare type Expiry = Date;
declare type Access = Date;
declare type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
interface Fields<V> {
export declare type Expiry = Date;
export declare type Access = Date;
export declare type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
export interface Fields<V> {
[VALUE]: V;

@@ -21,3 +21,3 @@ [EXPIRY]: Expiry;

}
interface Schema<K extends IDBValidKey, V> extends DBSchema {
export interface Schema<K extends IDBValidKey, V> extends DBSchema {
[STORE]: {

@@ -32,5 +32,5 @@ key: K;

}
declare type IndexedField<K extends IDBValidKey, V> = keyof Schema<K, V>[typeof STORE]['indexes'];
declare type DB<K extends IDBValidKey, V> = IDBPDatabase<Schema<K, V>>;
interface Metadata {
export declare type IndexedField<K extends IDBValidKey, V> = keyof Schema<K, V>[typeof STORE]['indexes'];
export declare type DB<K extends IDBValidKey, V> = IDBPDatabase<Schema<K, V>>;
export interface Metadata {
[EXPIRY]: Expiry;

@@ -64,3 +64,3 @@ [ACCESS]?: Access;

}
interface CacheOptions {
export interface CacheOptions {
dbName?: string;

@@ -67,0 +67,0 @@ dbVersion?: number;

{
"name": "idb-lru-cache",
"description": "IndexedDB-based persisting LRU cache for the browser",
"version": "0.0.1",
"version": "0.1.0",
"license": "AGPL-3.0",

@@ -63,3 +63,3 @@ "author": "make-github-pseudonymous-again",

"tc:watch": "yarn tc --noErrorTruncation --watch",
"test": "aba test"
"test": "aba test --timeout 30s"
},

@@ -66,0 +66,0 @@ "dependencies": {

@@ -29,3 +29,3 @@ [idb-lru-cache](https://make-github-pseudonymous-again.github.io/idb-lru-cache)

[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/make-github-pseudonymous-again/idb-lru-cache.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/trends/technical_debt)
[![Documentation](https://make-github-pseudonymous-again.github.io/idb-lru-cache/badge.svg)](https://make-github-pseudonymous-again.github.io/idb-lru-cache/source.html)
[![Documentation](https://make-github-pseudonymous-again.github.io/idb-lru-cache/coverage.svg)](https://make-github-pseudonymous-again.github.io/idb-lru-cache/modules.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/idb-lru-cache)](https://bundlephobia.com/result?p=idb-lru-cache)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet