Initial commit

This commit is contained in:
2024-11-03 17:41:45 +01:00
commit c1640c1754
8043 changed files with 775536 additions and 0 deletions

7
node_modules/liquidjs/dist/cache/cache.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import type { Template } from '../template/template';
export interface Cache<T> {
write(key: string, value: T): void | Promise<void>;
read(key: string): T | undefined | Promise<T | undefined>;
remove(key: string): void | Promise<void>;
}
export type LiquidCache = Cache<Template[] | Promise<Template[]>>;

2
node_modules/liquidjs/dist/cache/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export * from './cache';
export * from './lru';

14
node_modules/liquidjs/dist/cache/lru.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import { Cache } from './cache';
export declare class LRU<T> implements Cache<T> {
limit: number;
size: number;
private cache;
private head;
private tail;
constructor(limit: number, size?: number);
write(key: string, value: T): void;
read(key: string): T | undefined;
remove(key: string): void;
clear(): void;
private ensureLimit;
}

1
node_modules/liquidjs/dist/cache/lru.spec.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export {};