UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

29 lines (28 loc) • 751 B
/*! * FilePond v5.0.2 * Copyright (c) 2017-2026 Pqina B.V. * Released under the MIT License * https://filepond.com */ import { createStoreExtension as s } from "./common/createStoreExtension.js"; import { thread as n, createThreadWorker as i } from "../utils/thread.js"; import { isFileEntry as m } from "../utils/test.js"; import { readFile as c } from "../workers/readFile.js"; const y = s({ name: "DataURLStore", props: { workersURL: void 0 }, factory: ({ props: t }) => ({ storeEntry: async (r, { onprogress: e, signal: o }) => { const { workersURL: a } = t; return m(r) ? (await n(i(a, c), [r.file], { signal: o, onprogress: e })).dataURL : void 0; } }) }); export { y as DataURLStore };