@mintlify/link-rot 3.0.941 → 3.0.943

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/graph.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cleanHeadingId, isAbsoluteUrl, isMintIgnored } from '@mintlify/common';
1
+ import { cleanHeadingId, isMintIgnored } from '@mintlify/common';
2
2
  import { getFileListWithDirectories } from '@mintlify/prebuild';
3
3
  import { existsSync } from 'fs';
4
4
  import { parse, join, resolve, relative, dirname, basename } from 'path';
@@ -28,7 +28,9 @@ export var EdgeType;
28
28
  export class MdxPath {
29
29
  static getPathType(url) {
30
30
  let pathType;
31
- if (isAbsoluteUrl(url)) {
31
+ // Use URL.canParse instead of isAbsoluteUrl to treat any URL with a protocol
32
+ // (e.g. cursor://, vscode://) as external rather than a broken internal link.
33
+ if (URL.canParse(url)) {
32
34
  pathType = PathType.EXTERNAL;
33
35
  }
34
36
  else if (url.startsWith('data:')) {