Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as Watchman from './Watchman';
import * as Webpack from './Webpack';
import XDLError from './XDLError';
import * as Doctor from './project/Doctor';
import * as IosPlist from './detach/IosPlist';
// @ts-ignore IosWorkspace not yet converted to TypeScript
import * as IosWorkspace from './detach/IosWorkspace';
import { ConnectionStatus } from './xdl';
const EXPO_CDN = 'https://d1wp6m56sqw74a.cloudfront.net';
const MINIMUM_BUNDLE_SIZE = 500;
const TUNNEL_TIMEOUT = 10 * 1000;
const treekillAsync = promisify(treekill);
const ngrokConnectAsync = promisify(ngrok.connect);
const ngrokKillAsync = promisify(ngrok.kill);
type CachedSignedManifest =
| {
manifestString: null;
signedManifest: null;
}
| {
manifestString: string;
signedManifest: string;
};
let _cachedSignedManifest: CachedSignedManifest = {
manifestString: null,
signedManifest: null,
};
import * as Sentry from './Sentry';
import * as UrlUtils from './UrlUtils';
import UserManager from './User';
import UserSettings from './UserSettings';
import * as Versions from './Versions';
import * as Watchman from './Watchman';
import XDLError from './XDLError';
import type { User as ExpUser } from './User'; //eslint-disable-line
const MINIMUM_BUNDLE_SIZE = 500;
const TUNNEL_TIMEOUT = 10 * 1000;
const joiValidateAsync = promisify(joi.validate);
const treekillAsync = promisify(treekill);
const ngrokConnectAsync = promisify(ngrok.connect);
const ngrokKillAsync = promisify(ngrok.kill);
const request = Request.defaults({
resolveWithFullResponse: true,
});
type CachedSignedManifest = {
manifestString: ?string,
signedManifest: ?string,
};
let _cachedSignedManifest: CachedSignedManifest = {
manifestString: null,
signedManifest: null,
};
import * as ThirdParty from './ThirdParty';
import * as UrlUtils from './UrlUtils';
import UserManager, { ANONYMOUS_USERNAME } from './User';
import UserSettings from './UserSettings';
import * as Versions from './Versions';
import * as Watchman from './Watchman';
import XDLError from './XDLError';
import type { User as ExpUser } from './User'; //eslint-disable-line
const EXPO_CDN = 'https://d1wp6m56sqw74a.cloudfront.net';
const MINIMUM_BUNDLE_SIZE = 500;
const TUNNEL_TIMEOUT = 10 * 1000;
const treekillAsync = promisify(treekill);
const ngrokConnectAsync = promisify(ngrok.connect);
const ngrokKillAsync = promisify(ngrok.kill);
type CachedSignedManifest = {
manifestString: ?string,
signedManifest: ?string,
};
let _cachedSignedManifest: CachedSignedManifest = {
manifestString: null,
signedManifest: null,
};
export type ProjectStatus = 'running' | 'ill' | 'exited';
export async function currentStatus(projectDir: string): Promise {
const { packagerPort, expoServerPort } = await ProjectSettings.readPackagerInfoAsync(projectDir);