@open-agent-toolkit/docs-transforms 0.2.21 → 0.2.22

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.
@@ -106,12 +106,12 @@ export const remarkLinks = function remarkLinks() {
106
106
  }
107
107
  // Split off any anchor fragment or query string
108
108
  const suffixIndex = url.search(/[#?]/);
109
- const path = suffixIndex >= 0 ? url.slice(0, suffixIndex) : url;
109
+ const urlPath = suffixIndex >= 0 ? url.slice(0, suffixIndex) : url;
110
110
  const fragment = suffixIndex >= 0 ? url.slice(suffixIndex) : '';
111
- const cleaned = cleanMdPath(path);
111
+ const cleaned = cleanMdPath(urlPath);
112
112
  if (cleaned !== null) {
113
113
  const rewrittenPath = typeof file?.path === 'string'
114
- ? (resolveRelativeDocsLink(file.path, path) ?? cleaned)
114
+ ? (resolveRelativeDocsLink(file.path, urlPath) ?? cleaned)
115
115
  : cleaned;
116
116
  const prefix = rewrittenPath.startsWith('.') || rewrittenPath.startsWith('/')
117
117
  ? ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-agent-toolkit/docs-transforms",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "private": false,
5
5
  "description": "Remark/unified transforms for OAT documentation",
6
6
  "homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/docs-transforms",