@gleanwork/mcp-server-tester 1.0.0-beta.1 → 1.0.0-beta.2
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/cli/index.js +1 -1
- package/dist/fixtures/mcp.js +13 -2
- package/dist/fixtures/mcp.js.map +1 -1
- package/dist/index.cjs +25 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
package/dist/fixtures/mcp.js
CHANGED
|
@@ -464,7 +464,18 @@ function applySanitizers(value, sanitizers) {
|
|
|
464
464
|
continue;
|
|
465
465
|
}
|
|
466
466
|
if (isRegexSanitizer(sanitizer)) {
|
|
467
|
-
|
|
467
|
+
let pattern;
|
|
468
|
+
if (sanitizer.pattern instanceof RegExp) {
|
|
469
|
+
pattern = sanitizer.pattern;
|
|
470
|
+
} else {
|
|
471
|
+
try {
|
|
472
|
+
pattern = new RegExp(sanitizer.pattern, "g");
|
|
473
|
+
} catch {
|
|
474
|
+
throw new Error(
|
|
475
|
+
`toMatchToolSnapshot: invalid regex pattern "${sanitizer.pattern}" in sanitizer`
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
468
479
|
const replacement = sanitizer.replacement ?? "[SANITIZED]";
|
|
469
480
|
result = result.replace(pattern, replacement);
|
|
470
481
|
continue;
|
|
@@ -1423,7 +1434,7 @@ var debugHttp = createDebug(`${NAMESPACE}:http`);
|
|
|
1423
1434
|
|
|
1424
1435
|
// package.json
|
|
1425
1436
|
var package_default = {
|
|
1426
|
-
version: "1.0.0-beta.
|
|
1437
|
+
version: "1.0.0-beta.2"};
|
|
1427
1438
|
var debug = createDebug("mcp-server-tester:oauth-flow");
|
|
1428
1439
|
async function generatePKCE() {
|
|
1429
1440
|
const codeVerifier = oauth.generateRandomCodeVerifier();
|