@c4a/extract-contract 0.7.10-alpha.2 → 0.7.10
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -21820,7 +21820,7 @@ function refTarget(importer, raw) {
|
|
|
21820
21820
|
const pointer = fragment === undefined ? "" : `#${fragment}`;
|
|
21821
21821
|
if (rawPath === "")
|
|
21822
21822
|
return { targetPath: importer, pointer, external: false };
|
|
21823
|
-
if (
|
|
21823
|
+
if (rawPath.includes("\\") || rawPath.split("/").some((part) => part === ""))
|
|
21824
21824
|
return null;
|
|
21825
21825
|
const targetPath = posix.normalize(posix.join(posix.dirname(importer), rawPath));
|
|
21826
21826
|
return portablePath(targetPath) ? { targetPath, pointer, external: true } : null;
|