@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
11 lines • 447 B
TypeScript
//#region src/utils/pathSecurity.d.ts
/**
* Throws if `resolvedPath` escapes `baseDir`.
* Use this before any file operation whose path is derived from user-controlled
* input (e.g. dictionary keys, filePath fields from dictionary data) to prevent
* path-traversal attacks.
*/
declare const assertPathWithin: (resolvedPath: string, baseDir: string) => void;
//#endregion
export { assertPathWithin };
//# sourceMappingURL=pathSecurity.d.ts.map