@squirrelnotes.app/mcp 1.31.5 → 1.31.6
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/stdio-handler.js +7 -1
- package/package.json +1 -1
package/dist/stdio-handler.js
CHANGED
|
@@ -17059,6 +17059,7 @@ var require_fast_uri = __commonJS({
|
|
|
17059
17059
|
return uriTokens.join("");
|
|
17060
17060
|
}
|
|
17061
17061
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
17062
|
+
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
17062
17063
|
function getParseError(parsed, matches) {
|
|
17063
17064
|
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
17064
17065
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -17088,6 +17089,11 @@ var require_fast_uri = __commonJS({
|
|
|
17088
17089
|
uri = "//" + uri;
|
|
17089
17090
|
}
|
|
17090
17091
|
}
|
|
17092
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
17093
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
17094
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
17095
|
+
malformedAuthorityOrPort = true;
|
|
17096
|
+
}
|
|
17091
17097
|
const matches = uri.match(URI_PARSE);
|
|
17092
17098
|
if (matches) {
|
|
17093
17099
|
parsed.scheme = matches[1];
|
|
@@ -17131,7 +17137,7 @@ var require_fast_uri = __commonJS({
|
|
|
17131
17137
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
17132
17138
|
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
17133
17139
|
try {
|
|
17134
|
-
parsed.host = URL
|
|
17140
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
17135
17141
|
} catch (e) {
|
|
17136
17142
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
17137
17143
|
}
|