UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

31 lines (30 loc) 616 B
class InMemorySource { #store; constructor(store) { this.#store = store; } hasCollection(collection) { return this.#store.hasCollection(collection); } get(collection, key) { return this.#store.get(collection, key); } entries(collection) { return this.#store.entries(collection); } values(collection) { return this.#store.values(collection); } keys(collection) { return this.#store.keys(collection); } has(collection, key) { return this.#store.has(collection, key); } collections() { return this.#store.collections(); } } export { InMemorySource };