apple-numbers-mcp 1.2.3 → 1.2.5
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
|
@@ -3104,12 +3104,13 @@ var require_data = __commonJS({
|
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
|
|
3107
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3107
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
|
|
3108
3108
|
var require_utils = __commonJS({
|
|
3109
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3109
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3110
3110
|
"use strict";
|
|
3111
3111
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3112
3112
|
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);
|
|
3113
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3113
3114
|
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3114
3115
|
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3115
3116
|
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
@@ -3575,8 +3576,12 @@ var require_utils = __commonJS({
|
|
|
3575
3576
|
uriTokens.push(host);
|
|
3576
3577
|
}
|
|
3577
3578
|
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
3579
|
+
const port = String(component.port);
|
|
3580
|
+
if (!isPort(port)) {
|
|
3581
|
+
throw new TypeError("URI port is malformed.");
|
|
3582
|
+
}
|
|
3578
3583
|
uriTokens.push(":");
|
|
3579
|
-
uriTokens.push(
|
|
3584
|
+
uriTokens.push(port);
|
|
3580
3585
|
}
|
|
3581
3586
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3582
3587
|
}
|
|
@@ -3601,9 +3606,9 @@ var require_utils = __commonJS({
|
|
|
3601
3606
|
}
|
|
3602
3607
|
});
|
|
3603
3608
|
|
|
3604
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3609
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
|
|
3605
3610
|
var require_schemes = __commonJS({
|
|
3606
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3611
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3607
3612
|
"use strict";
|
|
3608
3613
|
var { isUUID } = require_utils();
|
|
3609
3614
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3812,9 +3817,9 @@ var require_schemes = __commonJS({
|
|
|
3812
3817
|
}
|
|
3813
3818
|
});
|
|
3814
3819
|
|
|
3815
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3820
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
|
|
3816
3821
|
var require_fast_uri = __commonJS({
|
|
3817
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3822
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
|
|
3818
3823
|
"use strict";
|
|
3819
3824
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3820
3825
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -4019,12 +4024,15 @@ var require_fast_uri = __commonJS({
|
|
|
4019
4024
|
}
|
|
4020
4025
|
return false;
|
|
4021
4026
|
}
|
|
4027
|
+
function isIPLiteral(host) {
|
|
4028
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4029
|
+
}
|
|
4022
4030
|
function hasMalformedComponentPercentEncoding(matches) {
|
|
4023
4031
|
const host = matches[4];
|
|
4024
|
-
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host
|
|
4032
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4025
4033
|
}
|
|
4026
4034
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4027
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host
|
|
4035
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4028
4036
|
try {
|
|
4029
4037
|
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4030
4038
|
} catch (e) {
|
|
@@ -4111,10 +4119,11 @@ var require_fast_uri = __commonJS({
|
|
|
4111
4119
|
if (parsed.host) {
|
|
4112
4120
|
const ipv4result = isIPv4(parsed.host);
|
|
4113
4121
|
if (ipv4result === false) {
|
|
4114
|
-
const bracketedIPLiteral = parsed.host
|
|
4122
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4123
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
4115
4124
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
4116
4125
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4117
|
-
malformedIPLiteral =
|
|
4126
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4118
4127
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4119
4128
|
if (malformedIPLiteral) {
|
|
4120
4129
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
@@ -4137,14 +4146,17 @@ var require_fast_uri = __commonJS({
|
|
|
4137
4146
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
4138
4147
|
}
|
|
4139
4148
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4149
|
+
if (!malformedIPLiteral) {
|
|
4150
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4151
|
+
}
|
|
4152
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4153
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4154
|
+
if (!isIP) {
|
|
4155
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
4147
4156
|
}
|
|
4157
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4158
|
+
}
|
|
4159
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4148
4160
|
if (parsed.path) {
|
|
4149
4161
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
4150
4162
|
}
|
package/package.json
CHANGED