@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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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 (!portablePath(rawPath))
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract-contract",
3
- "version": "0.7.10-alpha.2",
3
+ "version": "0.7.10",
4
4
  "type": "module",
5
5
  "description": "OpenAPI and GraphQL contract catalog adapter for Context",
6
6
  "license": "MIT",