webmcp-nexus-core 0.1.13 → 0.1.14
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/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -280,7 +280,7 @@ function resolveObjectLiteralArg(arg, sourceFile, project, projectRoot) {
|
|
|
280
280
|
const objLiteral = arg;
|
|
281
281
|
const filePath = sourceFile.getFilePath();
|
|
282
282
|
const baseDir = projectRoot ?? process.cwd();
|
|
283
|
-
const relPath = "./" + import_node_path.default.relative(baseDir, filePath).replace(/\.tsx?$/, "");
|
|
283
|
+
const relPath = "./" + import_node_path.default.relative(baseDir, filePath).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
284
284
|
for (const prop of objLiteral.getProperties()) {
|
|
285
285
|
let toolName;
|
|
286
286
|
let valueNode;
|
|
@@ -413,7 +413,7 @@ function resolveNamespaceImportArg(arg, sourceFile, project, projectRoot, alias)
|
|
|
413
413
|
}
|
|
414
414
|
const namespaceName = identifier.getText();
|
|
415
415
|
const baseDir = projectRoot ?? process.cwd();
|
|
416
|
-
const relPath = "./" + import_node_path.default.relative(baseDir, targetFile.getFilePath()).replace(/\.tsx?$/, "");
|
|
416
|
+
const relPath = "./" + import_node_path.default.relative(baseDir, targetFile.getFilePath()).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
417
417
|
for (const exportedDecl of targetFile.getExportedDeclarations()) {
|
|
418
418
|
const [exportName, declarations2] = exportedDecl;
|
|
419
419
|
if (declarations2.length === 0) continue;
|
|
@@ -496,7 +496,7 @@ function resolveClassComponentArg(args, sourceFile, _project, projectRoot) {
|
|
|
496
496
|
}
|
|
497
497
|
const filePath = sourceFile.getFilePath();
|
|
498
498
|
const baseDir = projectRoot ?? process.cwd();
|
|
499
|
-
const relPath = "./" + import_node_path.default.relative(baseDir, filePath).replace(/\.tsx?$/, "");
|
|
499
|
+
const relPath = "./" + import_node_path.default.relative(baseDir, filePath).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
500
500
|
const members = classDecl.getMembers?.() ?? [];
|
|
501
501
|
for (const member of members) {
|
|
502
502
|
const memberKind = member.getKind();
|
package/dist/index.js
CHANGED
|
@@ -239,7 +239,7 @@ function resolveObjectLiteralArg(arg, sourceFile, project, projectRoot) {
|
|
|
239
239
|
const objLiteral = arg;
|
|
240
240
|
const filePath = sourceFile.getFilePath();
|
|
241
241
|
const baseDir = projectRoot ?? process.cwd();
|
|
242
|
-
const relPath = "./" + nodePath.relative(baseDir, filePath).replace(/\.tsx?$/, "");
|
|
242
|
+
const relPath = "./" + nodePath.relative(baseDir, filePath).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
243
243
|
for (const prop of objLiteral.getProperties()) {
|
|
244
244
|
let toolName;
|
|
245
245
|
let valueNode;
|
|
@@ -372,7 +372,7 @@ function resolveNamespaceImportArg(arg, sourceFile, project, projectRoot, alias)
|
|
|
372
372
|
}
|
|
373
373
|
const namespaceName = identifier.getText();
|
|
374
374
|
const baseDir = projectRoot ?? process.cwd();
|
|
375
|
-
const relPath = "./" + nodePath.relative(baseDir, targetFile.getFilePath()).replace(/\.tsx?$/, "");
|
|
375
|
+
const relPath = "./" + nodePath.relative(baseDir, targetFile.getFilePath()).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
376
376
|
for (const exportedDecl of targetFile.getExportedDeclarations()) {
|
|
377
377
|
const [exportName, declarations2] = exportedDecl;
|
|
378
378
|
if (declarations2.length === 0) continue;
|
|
@@ -455,7 +455,7 @@ function resolveClassComponentArg(args, sourceFile, _project, projectRoot) {
|
|
|
455
455
|
}
|
|
456
456
|
const filePath = sourceFile.getFilePath();
|
|
457
457
|
const baseDir = projectRoot ?? process.cwd();
|
|
458
|
-
const relPath = "./" + nodePath.relative(baseDir, filePath).replace(/\.tsx?$/, "");
|
|
458
|
+
const relPath = "./" + nodePath.relative(baseDir, filePath).replace(/\\/g, "/").replace(/\.tsx?$/, "");
|
|
459
459
|
const members = classDecl.getMembers?.() ?? [];
|
|
460
460
|
for (const member of members) {
|
|
461
461
|
const memberKind = member.getKind();
|