@dataunlocker/defender
Version:
DataUnlocker core module that protects your web app's analytics.
16 lines (15 loc) • 586 B
TypeScript
type EndpointResponse = {
/** Selected endpoint for this installation. */
endpoint: string;
/** Files to extract into `./node_modules/@dataunlocker/defender` folder. */
files: Array<{
/** Relative file path to the package root, "lib/index.js" */
name: string;
/** File content (plaintext) */
content: string;
}>;
};
export declare const isFileExists: (file: string) => Promise<boolean>;
export declare const isValidEndpoint: (endpoint: string) => boolean;
export declare const fetchModule: () => Promise<EndpointResponse>;
export {};