UNPKG

@uppy/companion

Version:

OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:

14 lines (13 loc) 462 B
declare function _exports(req: object, res: object, next: any): void; declare namespace _exports { export { isOriginAllowed }; } export = _exports; /** * Derived from `cors` npm package. * @see https://github.com/expressjs/cors/blob/791983ebc0407115bc8ae8e64830d440da995938/lib/index.js#L19-L34 * @param {string} origin * @param {*} allowedOrigins * @returns {boolean} */ declare function isOriginAllowed(origin: string, allowedOrigins: any): boolean;