UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

3 lines (2 loc) 354 B
import e from"./getFileNameFromUrl.js";import o from"./fetchRemoteBlob.js";import t from"./blobToFile.js";import r from"./getFileBasename.js";async function m(m,i){const n=await o(m),a=function(o){const t=e(o),m=r({name:t});return t.replace(`.${m}`,`-optimized.${m}`)}(m);return t(n,a,i)}export{m as default}; //# sourceMappingURL=fetchRemoteFile.js.map