UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 804 B
{"version":3,"file":"passthrough.mjs","names":[],"sources":["../../../../src/libs/image-processor/adapters/passthrough.ts"],"sourcesContent":["import type { ImageProcessorInstance } from \"../types.js\";\n\n/**\n * A passthrough image processor that leaves the original stream unchanged.\n *\n * This is used when no image processor is configured or the configured processor cannot be\n * initialized.\n */\nconst passthroughImageProcessor = (): ImageProcessorInstance => ({\n\ttype: \"image-processor\",\n\tkey: \"passthrough\",\n\tprocess: async () => ({\n\t\terror: undefined,\n\t\tdata: {\n\t\t\tprocessed: false,\n\t\t},\n\t}),\n});\n\nexport default passthroughImageProcessor;\n"],"mappings":"AAQA,MAAM,OAA2D,CAChE,KAAM,kBACN,IAAK,cACL,QAAS,UAAa,CACrB,MAAO,IAAA,GACP,KAAM,CACL,UAAW,EACZ,CACD,EACD"}