UNPKG

@adonis-agora/media

Version:

Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a

17 lines • 553 B
/** * Thin façade over a {@link DiskResolver} (an `@adonisjs/drive` manager in production). * The media-library and attachment layers talk to disks only through this, so they never * import Drive and the in-memory test resolver is a drop-in. */ export class StorageManager { defaultDisk; resolver; constructor(options) { this.defaultDisk = options.default; this.resolver = options.resolve; } disk(name) { return this.resolver(name ?? this.defaultDisk); } } //# sourceMappingURL=storage_manager.js.map