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,CAAC;AAJD,4BAIC","sourcesContent":["export { CancellationToken, CancellationError } from \"./CancellationToken\"\nexport {\n HttpError,\n createHttpError,\n HttpExecutor,\n DownloadOptions,\n DigestTransform,\n RequestHeaders,\n safeGetHeader,\n configureRequestOptions,\n configureRequestOptionsFromUrl,\n safeStringifyJson,\n parseJson,\n configureRequestUrl,\n} from \"./httpExecutor\"\nexport {\n CustomPublishOptions,\n GenericServerOptions,\n GithubOptions,\n KeygenOptions,\n BitbucketOptions,\n SnapStoreOptions,\n PublishConfiguration,\n S3Options,\n SpacesOptions,\n BaseS3Options,\n getS3LikeProviderBaseUrl,\n githubUrl,\n PublishProvider,\n AllPublishOptions,\n} from \"./publishOptions\"\nexport { UpdateInfo, UpdateFileInfo, WindowsUpdateInfo, BlockMapDataHolder, PackageFileInfo, ReleaseNoteInfo } from \"./updateInfo\"\nexport { parseDn } from \"./rfc2253Parser\"\nexport { UUID } from \"./uuid\"\nexport { ProgressCallbackTransform, ProgressInfo } from \"./ProgressCallbackTransform\"\nexport { parseXml, XElement } from \"./xml\"\nexport { BlockMap } from \"./blockMapApi\"\n\n// nsis\nexport const CURRENT_APP_INSTALLER_FILE_NAME = \"installer.exe\"\n// nsis-web\nexport const CURRENT_APP_PACKAGE_FILE_NAME = \"package.7z\"\n\nexport function asArray(v: null | undefined | T | Array): Array {\n if (v == null) {\n return []\n } else if (Array.isArray(v)) {\n return v\n } else {\n return [v]\n }\n}\n\nexport function newError(message: string, code: string) {\n const error = new Error(message)\n ;(error as NodeJS.ErrnoException).code = code\n return error\n}\n"]}