UNPKG

zipy-cli

Version:

CLI for Zipyai

49 lines (48 loc) 1.27 kB
import FormData from "form-data"; /** * * @param dir * @returns all files in the directory. Accepts plain string or a glob pattern */ export declare const readFolderContents: (dir: string) => Promise<string[]>; /** * * @param files * @returns filters map files from the list of the files */ export declare const filterMapsAndJsFiles: (files: string[]) => string[]; /** * * @param api_key * @param release_ver * @param files * @returns Creates request for uploading sourcemap files to the server */ export declare const createUploadApiRequest: (api_key: string, authKey: string, release_ver: string, files: string[]) => FormData; /** * * @param username * @param password * @param requestData * @returns Calls upload files API for uploading source maps to the server */ export declare const callUploadApi: (requestData: FormData) => Promise<any>; /** * Print cli logs with proper date, time and status * * @param status * @param message */ export declare const cliLog: (status: string, message: string) => void; /** * * @param apiKey * @returns boolean */ export declare const validateApiKey: (apiKey: string) => boolean; /** * * @param authKey * @returns boolean */ export declare const validateAuthKey: (authKey: string) => boolean;