@modelcontextprotocol/server-pdf 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -28,6 +28,11 @@ export declare function isArxivUrl(url: string): boolean;
28
28
  export declare function normalizeArxivUrl(url: string): string;
29
29
  export declare function fileUrlToPath(fileUrl: string): string;
30
30
  export declare function pathToFileUrl(filePath: string): string;
31
+ /**
32
+ * Check if `dir` is an ancestor of `filePath` using path.relative,
33
+ * which is more robust than string prefix matching (handles normalization).
34
+ */
35
+ export declare function isAncestorDir(dir: string, filePath: string): boolean;
31
36
  export declare function validateUrl(url: string): {
32
37
  valid: boolean;
33
38
  error?: string;