apple-mail-mcp 2.19.19 → 2.19.20
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/build/index.js +30 -18
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3118,12 +3118,13 @@ var require_data = __commonJS({
|
|
|
3118
3118
|
}
|
|
3119
3119
|
});
|
|
3120
3120
|
|
|
3121
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3121
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
|
|
3122
3122
|
var require_utils = __commonJS({
|
|
3123
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3123
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3124
3124
|
"use strict";
|
|
3125
3125
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3126
3126
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3127
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3127
3128
|
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3128
3129
|
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3129
3130
|
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
@@ -3589,8 +3590,12 @@ var require_utils = __commonJS({
|
|
|
3589
3590
|
uriTokens.push(host);
|
|
3590
3591
|
}
|
|
3591
3592
|
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
3593
|
+
const port = String(component.port);
|
|
3594
|
+
if (!isPort(port)) {
|
|
3595
|
+
throw new TypeError("URI port is malformed.");
|
|
3596
|
+
}
|
|
3592
3597
|
uriTokens.push(":");
|
|
3593
|
-
uriTokens.push(
|
|
3598
|
+
uriTokens.push(port);
|
|
3594
3599
|
}
|
|
3595
3600
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3596
3601
|
}
|
|
@@ -3615,9 +3620,9 @@ var require_utils = __commonJS({
|
|
|
3615
3620
|
}
|
|
3616
3621
|
});
|
|
3617
3622
|
|
|
3618
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3623
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
|
|
3619
3624
|
var require_schemes = __commonJS({
|
|
3620
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3625
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3621
3626
|
"use strict";
|
|
3622
3627
|
var { isUUID } = require_utils();
|
|
3623
3628
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3826,9 +3831,9 @@ var require_schemes = __commonJS({
|
|
|
3826
3831
|
}
|
|
3827
3832
|
});
|
|
3828
3833
|
|
|
3829
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3834
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
|
|
3830
3835
|
var require_fast_uri = __commonJS({
|
|
3831
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3836
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
|
|
3832
3837
|
"use strict";
|
|
3833
3838
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3834
3839
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -4033,12 +4038,15 @@ var require_fast_uri = __commonJS({
|
|
|
4033
4038
|
}
|
|
4034
4039
|
return false;
|
|
4035
4040
|
}
|
|
4041
|
+
function isIPLiteral(host) {
|
|
4042
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4043
|
+
}
|
|
4036
4044
|
function hasMalformedComponentPercentEncoding(matches) {
|
|
4037
4045
|
const host = matches[4];
|
|
4038
|
-
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host
|
|
4046
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4039
4047
|
}
|
|
4040
4048
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4041
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host
|
|
4049
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4042
4050
|
try {
|
|
4043
4051
|
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4044
4052
|
} catch (e) {
|
|
@@ -4125,10 +4133,11 @@ var require_fast_uri = __commonJS({
|
|
|
4125
4133
|
if (parsed.host) {
|
|
4126
4134
|
const ipv4result = isIPv4(parsed.host);
|
|
4127
4135
|
if (ipv4result === false) {
|
|
4128
|
-
const bracketedIPLiteral = parsed.host
|
|
4136
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4137
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
4129
4138
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
4130
4139
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4131
|
-
malformedIPLiteral =
|
|
4140
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4132
4141
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4133
4142
|
if (malformedIPLiteral) {
|
|
4134
4143
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
@@ -4151,14 +4160,17 @@ var require_fast_uri = __commonJS({
|
|
|
4151
4160
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
4152
4161
|
}
|
|
4153
4162
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4163
|
+
if (!malformedIPLiteral) {
|
|
4164
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4165
|
+
}
|
|
4166
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4167
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4168
|
+
if (!isIP) {
|
|
4169
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
4161
4170
|
}
|
|
4171
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4172
|
+
}
|
|
4173
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4162
4174
|
if (parsed.path) {
|
|
4163
4175
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
4164
4176
|
}
|
package/package.json
CHANGED