@j0hanz/fetch-url-mcp 1.12.10 → 1.12.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"worker-pool.d.ts","sourceRoot":"","sources":["../../src/transform/worker-pool.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EACV,uBAAuB,EAKxB,MAAM,YAAY,CAAC;AAEpB,UAAU,yBAAyB;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,oBAAoB;IAC5B,UAAU,EAAE,GAAG,CAAC;CACjB;AAq+BD,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,GAAG,UAAU,EACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAalC;AAED,wBAAgB,kBAAkB,IAAI;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAOP;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKxD"}
1
+ {"version":3,"file":"worker-pool.d.ts","sourceRoot":"","sources":["../../src/transform/worker-pool.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EACV,uBAAuB,EAKxB,MAAM,YAAY,CAAC;AAEpB,UAAU,yBAAyB;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,oBAAoB;IAC5B,UAAU,EAAE,GAAG,CAAC;CACjB;AAs+BD,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,GAAG,UAAU,EACjC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAalC;AAED,wBAAgB,kBAAkB,IAAI;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAOP;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKxD"}
@@ -643,9 +643,12 @@ function buildWorkerDispatchPayload(task) {
643
643
  : { message };
644
644
  }
645
645
  function createTsxWorkerBootstrapUrl(workerPath) {
646
- const tsxApiUrl = new URL('../../node_modules/tsx/dist/esm/api/index.mjs', import.meta.url);
647
646
  const source = [
648
- `import { tsImport } from ${JSON.stringify(tsxApiUrl.href)};`,
647
+ `import { createRequire } from 'node:module';`,
648
+ `import { pathToFileURL } from 'node:url';`,
649
+ `const require = createRequire(${JSON.stringify(workerPath.href)});`,
650
+ `const tsxApiUrl = pathToFileURL(require.resolve('tsx/esm/api')).href;`,
651
+ `const { tsImport } = await import(tsxApiUrl);`,
649
652
  `await tsImport(${JSON.stringify(workerPath.href)}, { parentURL: import.meta.url });`,
650
653
  ].join('\n');
651
654
  return new URL(`data:text/javascript;charset=utf-8,${encodeURIComponent(source)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j0hanz/fetch-url-mcp",
3
- "version": "1.12.10",
3
+ "version": "1.12.11",
4
4
  "mcpName": "io.github.j0hanz/fetch-url-mcp",
5
5
  "description": "An MCP server that fetches web pages and converts them to clean, readable Markdown.",
6
6
  "type": "module",