From 7a52ddeba2a68388b544f529d2d92104420f77b0 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 31 Oct 2025 20:02:14 +0000 Subject: Changed from static to 11ty! --- node_modules/liquidjs/dist/cache/cache.d.ts | 7 +++++++ node_modules/liquidjs/dist/cache/index.d.ts | 2 ++ node_modules/liquidjs/dist/cache/lru.d.ts | 14 ++++++++++++++ node_modules/liquidjs/dist/cache/lru.spec.d.ts | 1 + 4 files changed, 24 insertions(+) create mode 100644 node_modules/liquidjs/dist/cache/cache.d.ts create mode 100644 node_modules/liquidjs/dist/cache/index.d.ts create mode 100644 node_modules/liquidjs/dist/cache/lru.d.ts create mode 100644 node_modules/liquidjs/dist/cache/lru.spec.d.ts (limited to 'node_modules/liquidjs/dist/cache') diff --git a/node_modules/liquidjs/dist/cache/cache.d.ts b/node_modules/liquidjs/dist/cache/cache.d.ts new file mode 100644 index 0000000..57debad --- /dev/null +++ b/node_modules/liquidjs/dist/cache/cache.d.ts @@ -0,0 +1,7 @@ +import type { Template } from '../template/template'; +export interface Cache { + write(key: string, value: T): void | Promise; + read(key: string): T | undefined | Promise; + remove(key: string): void | Promise; +} +export type LiquidCache = Cache>; diff --git a/node_modules/liquidjs/dist/cache/index.d.ts b/node_modules/liquidjs/dist/cache/index.d.ts new file mode 100644 index 0000000..66fd9cb --- /dev/null +++ b/node_modules/liquidjs/dist/cache/index.d.ts @@ -0,0 +1,2 @@ +export * from './cache'; +export * from './lru'; diff --git a/node_modules/liquidjs/dist/cache/lru.d.ts b/node_modules/liquidjs/dist/cache/lru.d.ts new file mode 100644 index 0000000..9532ed1 --- /dev/null +++ b/node_modules/liquidjs/dist/cache/lru.d.ts @@ -0,0 +1,14 @@ +import { Cache } from './cache'; +export declare class LRU implements Cache { + 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; +} diff --git a/node_modules/liquidjs/dist/cache/lru.spec.d.ts b/node_modules/liquidjs/dist/cache/lru.spec.d.ts new file mode 100644 index 0000000..509db18 --- /dev/null +++ b/node_modules/liquidjs/dist/cache/lru.spec.d.ts @@ -0,0 +1 @@ +export {}; -- cgit v1.2.3