UNPKG

@sentry/wizard

Version:

Sentry wizard helping you to configure your project

15 lines (14 loc) 839 B
import type { Program } from '@babel/types'; import { PackageDotJson } from '../utils/package-json'; export declare const POSSIBLE_SERVER_INSTRUMENTATION_PATHS: string[]; export declare function hasSentryContent(fileName: string, fileContent: string, expectedContent?: string): boolean; export declare function serverHasInstrumentationImport(serverFileName: string, serverFileContent: string): boolean; /** * We want to insert the init call on top of the file, before any other imports. */ export declare function getBeforeImportsInsertionIndex(originalHooksModAST: Program): number; /** * We want to insert the handleError function just after all imports */ export declare function getAfterImportsInsertionIndex(originalEntryServerModAST: Program): number; export declare function isHydrogenApp(packageJson: PackageDotJson): boolean;