SYMBOL INDEX (181 symbols across 34 files) FILE: packages/cli/src/cfg.ts constant TTL (line 12) | const TTL = ms("8h"); type IUser (line 14) | interface IUser { type IConfig (line 23) | interface IConfig { constant CONFIG_NAME (line 29) | const CONFIG_NAME = IS_STAGING function save (line 42) | async function save(data: object) { function read (line 49) | async function read(): Promise { function remove (line 84) | async function remove(key: string) { function merge (line 96) | async function merge(data: object) { function deleteUser (line 109) | async function deleteUser() { function saveUser (line 120) | function saveUser(token: string, user: IUser) { function getUser (line 130) | async function getUser(): Promise { function getToken (line 135) | async function getToken(): Promise { FILE: packages/cli/src/commands/deploy.ts constant MAX_MODULE_COUNT (line 21) | const MAX_MODULE_COUNT = 500; constant MAX_DIRECTORY_COUNT (line 22) | const MAX_DIRECTORY_COUNT = 500; function showWarnings (line 31) | async function showWarnings(resolvedPath: string, errors: FileError[]) { function showUploads (line 50) | async function showUploads(resolvedPath: string, uploads: IUploads) { function registerCommand (line 72) | function registerCommand(program: typeof Commander) { FILE: packages/cli/src/commands/login.ts function handleSignIn (line 23) | async function handleSignIn() { function login (line 53) | async function login() { function registerCLI (line 74) | function registerCLI(program: typeof Commander) { FILE: packages/cli/src/commands/logout.ts function registerCLI (line 7) | function registerCLI(program: typeof Commander) { FILE: packages/cli/src/commands/token.ts function registerToken (line 6) | function registerToken(program: typeof Commander) { FILE: packages/cli/src/github/url.ts type IOptions (line 10) | interface IOptions { function optionsToParameterizedUrl (line 30) | function optionsToParameterizedUrl(options: { [option: string]: any }) { function getUrlOptions (line 42) | function getUrlOptions(options: IOptions) { constant CODESANDBOX_ROOT (line 106) | const CODESANDBOX_ROOT = `https://codesandbox.io`; function findGitRoot (line 108) | function findGitRoot() { function getRepoPath (line 125) | function getRepoPath(options: IOptions) { function getFullUrl (line 168) | function getFullUrl(type: "s" | "embed", options: IOptions) { function getSandboxUrl (line 175) | function getSandboxUrl(options?: IOptions) { function getEmbedUrl (line 179) | function getEmbedUrl(options?: IOptions) { FILE: packages/cli/src/utils/api.ts function uploadSandbox (line 29) | async function uploadSandbox(sandbox: ISandbox) { function fetchUser (line 55) | async function fetchUser(token: string) { function verifyUser (line 68) | async function verifyUser(token: string) { function createUpload (line 77) | async function createUpload(filename: string, buffer: Buffer) { FILE: packages/cli/src/utils/confirm.ts function confirm (line 3) | async function confirm(question: string, defaultNo = false) { FILE: packages/cli/src/utils/env.ts constant IS_STAGING (line 1) | const IS_STAGING = process.env.CODESANDBOX_NODE_ENV === "development"; FILE: packages/cli/src/utils/log.ts function log (line 3) | function log(text = "") { function logCodeSandbox (line 7) | function logCodeSandbox() { function extraHelp (line 16) | function extraHelp() { function info (line 35) | function info(text: string) { function error (line 39) | function error(text: string) { function warn (line 45) | function warn(text: string) { function success (line 49) | function success(text: string) { FILE: packages/cli/src/utils/parse-sandbox/file-error.ts class FileError (line 1) | class FileError extends Error { method constructor (line 12) | constructor(message: string, path: string, isBinary = false) { FILE: packages/cli/src/utils/parse-sandbox/index.ts constant MAX_FILE_SIZE (line 8) | const MAX_FILE_SIZE = 5 * 1024 * 1024; type IUploads (line 10) | interface IUploads { function normalizeFilesInDirectory (line 14) | async function normalizeFilesInDirectory( function parseSandbox (line 113) | async function parseSandbox(resolvedPath: string) { FILE: packages/cli/src/utils/parse-sandbox/upload-files.ts function uploadFiles (line 5) | async function uploadFiles(uploads: IUploads) { FILE: packages/cli/src/utils/url.ts constant BASE_URL (line 3) | const BASE_URL = IS_STAGING constant CREATE_SANDBOX_URL (line 7) | const CREATE_SANDBOX_URL = BASE_URL + "/api/v1/sandboxes"; constant CREATE_UPLOAD_URL (line 8) | const CREATE_UPLOAD_URL = constant GET_USER_URL (line 10) | const GET_USER_URL = BASE_URL + "/api/v1/users/current"; constant LOGIN_URL (line 11) | const LOGIN_URL = BASE_URL + "/cli/login"; constant VERIFY_USER_TOKEN_URL (line 13) | const VERIFY_USER_TOKEN_URL = BASE_URL + "/api/v1/auth/verify/"; FILE: packages/git-extractor/src/index.ts constant DEFAULT_PORT (line 23) | const DEFAULT_PORT = process.env.PORT || 2000; FILE: packages/git-extractor/src/middleware/logger.ts type ILogParams (line 3) | interface ILogParams { function log (line 10) | function log({ method, url, duration, error }: ILogParams) { FILE: packages/git-extractor/src/routes/github/api.ts constant API_URL (line 10) | const API_URL = "https://api.github.com"; constant REPO_BASE_URL (line 11) | const REPO_BASE_URL = API_URL + "/repos"; constant GITHUB_CLIENT_ID (line 13) | const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID; constant GITHUB_CLIENT_SECRET (line 14) | const GITHUB_CLIENT_SECRET = process.env.GITHUB_CLIENT_SECRET; constant NOT_FOUND_MESSAGE (line 16) | const NOT_FOUND_MESSAGE = function buildRepoApiUrl (line 19) | function buildRepoApiUrl(username: string, repo: string) { function buildPullApiUrl (line 23) | function buildPullApiUrl(username: string, repo: string, pull: number) { function buildCommitApiUrl (line 27) | function buildCommitApiUrl(username: string, repo: string, commitSha: st... function buildTreesApiUrl (line 31) | function buildTreesApiUrl(username: string, repo: string, treeSha: strin... function buildContentsApiUrl (line 35) | function buildContentsApiUrl(username: string, repo: string, path: strin... function requestAxios (line 39) | function requestAxios( function buildCompareApiUrl (line 86) | function buildCompareApiUrl( function createAxiosRequestConfig (line 95) | function createAxiosRequestConfig(token?: string): AxiosRequestConfig { function buildContentsUrl (line 110) | function buildContentsUrl( function buildCommitsUrl (line 119) | function buildCommitsUrl( function buildCommitsByPathUrl (line 128) | function buildCommitsByPathUrl( type IRepoResponse (line 140) | interface IRepoResponse { type ICompareResponse (line 149) | interface ICompareResponse { type IContentResponse (line 169) | interface IContentResponse { type ICommitResponse (line 175) | interface ICommitResponse { type IPrResponse (line 183) | interface IPrResponse { type IDeleteContentResponse (line 201) | interface IDeleteContentResponse { function getComparison (line 207) | async function getComparison( function getContent (line 227) | async function getContent(url: string, token: string) { type RepoInfoCache (line 239) | type RepoInfoCache = { function getRepo (line 247) | async function getRepo(username: string, repo: string, token?: string) { function getTreeWithDeletedFiles (line 285) | async function getTreeWithDeletedFiles( function getCommitTreeSha (line 348) | async function getCommitTreeSha( function getLatestCommitShaOfFile (line 367) | async function getLatestCommitShaOfFile( function isRepoPrivate (line 390) | async function isRepoPrivate( type RightsResponse (line 400) | interface RightsResponse { function fetchRights (line 411) | async function fetchRights( type ITreeResponse (line 453) | interface ITreeResponse { type IBlobResponse (line 460) | interface IBlobResponse { function createPr (line 465) | async function createPr( function createBlob (line 514) | async function createBlob( type ICreateTreeResponse (line 531) | interface ICreateTreeResponse { function createTree (line 537) | async function createTree( type ICreateCommitResponse (line 557) | interface ICreateCommitResponse { function createCommit (line 576) | async function createCommit( type IUpdateReferenceResponse (line 597) | interface IUpdateReferenceResponse { function updateReference (line 602) | async function updateReference( type ICreateReferenceResponse (line 624) | interface ICreateReferenceResponse { function createReference (line 634) | async function createReference( type ICreateForkResponse (line 653) | interface ICreateForkResponse { function createFork (line 661) | async function createFork( type ICreateRepoResponse (line 679) | interface ICreateRepoResponse { function getDefaultBranch (line 689) | async function getDefaultBranch( function createRepo (line 699) | async function createRepo( function doesRepoExist (line 738) | async function doesRepoExist( type CommitResponse (line 760) | interface CommitResponse { function resetShaCache (line 777) | function resetShaCache(gitInfo: IGitInfo) { function fetchRepoInfo (line 783) | async function fetchRepoInfo( function fetchPullInfo (line 903) | async function fetchPullInfo( constant MAX_ZIP_SIZE (line 942) | const MAX_ZIP_SIZE = 128 * 1024 * 1024; function downloadZip (line 944) | async function downloadZip( function checkRemainingRateLimit (line 987) | async function checkRemainingRateLimit( FILE: packages/git-extractor/src/routes/github/pull/download.ts function downloadRepository (line 36) | async function downloadRepository( FILE: packages/git-extractor/src/routes/github/push/index.ts type IGitInfo (line 11) | interface IGitInfo { type ITreeFile (line 18) | interface ITreeFile { type IChanges (line 27) | interface IChanges { type ITree (line 41) | type ITree = ITreeFile[]; function generateBranchName (line 43) | function generateBranchName() { function createBranch (line 48) | async function createBranch( function createFork (line 65) | async function createFork( function createInitialCommit (line 104) | async function createInitialCommit( function createCommit (line 119) | async function createCommit( function createRepo (line 175) | async function createRepo( FILE: packages/git-extractor/src/routes/github/push/utils/create-blobs.ts function downloadContent (line 7) | async function downloadContent(module: IModule): Promise { function createBlobs (line 17) | async function createBlobs( FILE: packages/git-extractor/src/routes/github/push/utils/delta.ts function getGitSha (line 6) | function getGitSha(content: string) { type INormalizedAndDeletedModules (line 14) | interface INormalizedAndDeletedModules { function getDelta (line 18) | function getDelta( FILE: packages/git-extractor/src/routes/github/types.d.ts type Module (line 1) | type Module = { type NormalizedDirectory (line 13) | type NormalizedDirectory = { type DownloadedFile (line 20) | type DownloadedFile = Module & { FILE: packages/git-extractor/src/utils/delay.ts function delay (line 1) | function delay(ms: number): Promise { FILE: packages/git-extractor/src/utils/log.ts function log (line 8) | function log(message: string) { FILE: packages/import-utils/src/api/define.ts type IFiles (line 4) | interface IFiles { function compress (line 11) | function compress(input: string) { function getParameters (line 18) | function getParameters(parameters: { FILE: packages/import-utils/src/create-sandbox/html-parser.ts function isValidResource (line 1) | function isValidResource(resource: string) { function getCssResource (line 15) | function getCssResource(line: string): string | undefined { function getJsResource (line 34) | function getJsResource(line: string): string | undefined { function getExternalResources (line 53) | function getExternalResources(html: string) { function getBodyContent (line 65) | function getBodyContent(html: string): string | undefined { function parseHTML (line 81) | function parseHTML(html: string) { FILE: packages/import-utils/src/create-sandbox/index.ts type IDependencies (line 13) | interface IDependencies { function getHTMLInfo (line 17) | function getHTMLInfo(html: IModule | undefined) { function findMainFile (line 27) | function findMainFile( constant CLOUD_TEMPLATES (line 48) | const CLOUD_TEMPLATES = [ function isCloudTemplate (line 71) | function isCloudTemplate(template: ITemplate): boolean { function getSandboxMetadata (line 75) | function getSandboxMetadata(directory: INormalizedModules): { function getEnvironmentVariables (line 114) | function getEnvironmentVariables(directory: INormalizedModules) { function createSandbox (line 132) | async function createSandbox( FILE: packages/import-utils/src/create-sandbox/templates.ts function getMainFile (line 3) | function getMainFile(template: ITemplate) { constant SANDBOX_CONFIG (line 41) | const SANDBOX_CONFIG = "sandbox.config.json"; constant TEMPLATE_CONFIG (line 42) | const TEMPLATE_CONFIG = ".codesandbox/template.json"; constant MAX_CLIENT_DEPENDENCY_COUNT (line 43) | const MAX_CLIENT_DEPENDENCY_COUNT = 50; type Dependencies (line 45) | type Dependencies = { [name: string]: string }; type PackageJSON (line 46) | type PackageJSON = { function getTemplate (line 50) | function getTemplate( FILE: packages/import-utils/src/create-sandbox/utils/extract-requires.ts constant ECMA_VERSION (line 11) | const ECMA_VERSION = 2017; function exportRequires (line 24) | function exportRequires(code: string) { FILE: packages/import-utils/src/create-sandbox/utils/resolve.ts function getDirectoryPaths (line 3) | function getDirectoryPaths(directories: ISandboxDirectory[]) { FILE: packages/import-utils/src/is-text.ts constant FILE_LOADER_REGEX (line 5) | const FILE_LOADER_REGEX = constant MAX_FILE_SIZE (line 7) | const MAX_FILE_SIZE = 3 * 1024 * 1024; FILE: packages/import-utils/src/utils/files/denormalize.ts function generateSandboxFile (line 13) | function generateSandboxFile( function createDirectoryRecursively (line 35) | function createDirectoryRecursively( function generateSandboxDirectory (line 61) | function generateSandboxDirectory( function denormalize (line 72) | function denormalize( FILE: packages/import-utils/src/utils/files/normalize.ts function findSandboxFiles (line 9) | function findSandboxFiles( function normalizeSandboxFiles (line 44) | function normalizeSandboxFiles( FILE: packages/types/index.d.ts type IModule (line 1) | interface IModule { type IBinaryModule (line 9) | interface IBinaryModule extends IModule { type IDirectory (line 13) | interface IDirectory { type INormalizedModules (line 17) | interface INormalizedModules { type ISandboxFile (line 21) | interface ISandboxFile { type ISandboxDirectory (line 32) | interface ISandboxDirectory { type ITemplate (line 38) | type ITemplate = type ISandbox (line 67) | interface ISandbox {