Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
1.4 KiB
Plaintext
1 line
1.4 KiB
Plaintext
{"version":3,"sources":["../../../src/uploads/image-resizing/createImageSize.ts"],"sourcesContent":["/**\n * Create the result object for the image resize operation based on the\n * provided parameters. If the name is not provided, an empty result object\n * is returned.\n *\n * @param filename - the filename of the image\n * @param width - the width of the image\n * @param height - the height of the image\n * @param filesize - the filesize of the image\n * @param mimeType - the mime type of the image\n * @returns a FileSize result object\n */\n\nimport type { FileSize } from '../types.js'\n\ntype CreateResultArgs = {\n filename?: FileSize['filename']\n filesize?: FileSize['filesize']\n height?: FileSize['height']\n mimeType?: FileSize['mimeType']\n url?: FileSize['url']\n width?: FileSize['width']\n}\nexport const createImageSize = ({\n filename = null,\n filesize = null,\n height = null,\n mimeType = null,\n url = null,\n width = null,\n}: CreateResultArgs): FileSize => {\n return {\n filename,\n filesize,\n height,\n mimeType,\n url,\n width,\n }\n}\n"],"names":["createImageSize","filename","filesize","height","mimeType","url","width"],"mappings":"AAAA;;;;;;;;;;;CAWC,GAYD,OAAO,MAAMA,kBAAkB,CAAC,EAC9BC,WAAW,IAAI,EACfC,WAAW,IAAI,EACfC,SAAS,IAAI,EACbC,WAAW,IAAI,EACfC,MAAM,IAAI,EACVC,QAAQ,IAAI,EACK;IACjB,OAAO;QACLL;QACAC;QACAC;QACAC;QACAC;QACAC;IACF;AACF,EAAC"} |