UNPKG

bugsnag-source-maps-fork

Version:

CLI and JS library for uploading source maps to Bugsnag

29 lines (28 loc) 1.19 kB
import http from 'http'; import { Logger } from '../Logger'; interface CommonUploadOpts { apiKey: string; platform: 'ios' | 'android'; dev: boolean; appVersion?: string; codeBundleId?: string; appVersionCode?: string; appBundleVersion?: string; overwrite?: boolean; projectRoot?: string; endpoint?: string; requestOpts?: http.RequestOptions; logger?: Logger; idleTimeout?: number; } interface UploadSingleOpts extends CommonUploadOpts { sourceMap: string; bundle: string; } export declare function uploadOne({ apiKey, sourceMap, bundle, platform, dev, appVersion, codeBundleId, appVersionCode, appBundleVersion, idleTimeout, overwrite, projectRoot, endpoint, requestOpts, logger, ...unknownArgs }: UploadSingleOpts): Promise<void>; interface FetchUploadOpts extends CommonUploadOpts { bundlerUrl?: string; bundlerEntryPoint?: string; } export declare function fetchAndUploadOne({ apiKey, platform, dev, appVersion, codeBundleId, appVersionCode, appBundleVersion, idleTimeout, overwrite, projectRoot, endpoint, requestOpts, bundlerUrl, bundlerEntryPoint, logger, ...unknownArgs }: FetchUploadOpts): Promise<void>; export {};