apple-notes-mcp 2.9.31 → 2.9.32
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
|
@@ -3110,12 +3110,13 @@ var require_data = __commonJS({
|
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
3112
|
|
|
3113
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3113
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
|
|
3114
3114
|
var require_utils = __commonJS({
|
|
3115
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3115
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3116
3116
|
"use strict";
|
|
3117
3117
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3118
3118
|
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);
|
|
3119
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3119
3120
|
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3120
3121
|
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3121
3122
|
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
@@ -3581,8 +3582,12 @@ var require_utils = __commonJS({
|
|
|
3581
3582
|
uriTokens.push(host);
|
|
3582
3583
|
}
|
|
3583
3584
|
if (typeof component2.port === "number" || typeof component2.port === "string") {
|
|
3585
|
+
const port = String(component2.port);
|
|
3586
|
+
if (!isPort(port)) {
|
|
3587
|
+
throw new TypeError("URI port is malformed.");
|
|
3588
|
+
}
|
|
3584
3589
|
uriTokens.push(":");
|
|
3585
|
-
uriTokens.push(
|
|
3590
|
+
uriTokens.push(port);
|
|
3586
3591
|
}
|
|
3587
3592
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3588
3593
|
}
|
|
@@ -3607,9 +3612,9 @@ var require_utils = __commonJS({
|
|
|
3607
3612
|
}
|
|
3608
3613
|
});
|
|
3609
3614
|
|
|
3610
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3615
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
|
|
3611
3616
|
var require_schemes = __commonJS({
|
|
3612
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3617
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3613
3618
|
"use strict";
|
|
3614
3619
|
var { isUUID } = require_utils();
|
|
3615
3620
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3818,9 +3823,9 @@ var require_schemes = __commonJS({
|
|
|
3818
3823
|
}
|
|
3819
3824
|
});
|
|
3820
3825
|
|
|
3821
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3826
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
|
|
3822
3827
|
var require_fast_uri = __commonJS({
|
|
3823
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3828
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
|
|
3824
3829
|
"use strict";
|
|
3825
3830
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3826
3831
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -4025,12 +4030,15 @@ var require_fast_uri = __commonJS({
|
|
|
4025
4030
|
}
|
|
4026
4031
|
return false;
|
|
4027
4032
|
}
|
|
4033
|
+
function isIPLiteral(host) {
|
|
4034
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4035
|
+
}
|
|
4028
4036
|
function hasMalformedComponentPercentEncoding(matches) {
|
|
4029
4037
|
const host = matches[4];
|
|
4030
|
-
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host
|
|
4038
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4031
4039
|
}
|
|
4032
4040
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4033
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host
|
|
4041
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4034
4042
|
try {
|
|
4035
4043
|
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4036
4044
|
} catch (e) {
|
|
@@ -4117,10 +4125,11 @@ var require_fast_uri = __commonJS({
|
|
|
4117
4125
|
if (parsed.host) {
|
|
4118
4126
|
const ipv4result = isIPv4(parsed.host);
|
|
4119
4127
|
if (ipv4result === false) {
|
|
4120
|
-
const bracketedIPLiteral = parsed.host
|
|
4128
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4129
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
4121
4130
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
4122
4131
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4123
|
-
malformedIPLiteral =
|
|
4132
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4124
4133
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4125
4134
|
if (malformedIPLiteral) {
|
|
4126
4135
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
@@ -4143,14 +4152,17 @@ var require_fast_uri = __commonJS({
|
|
|
4143
4152
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
4144
4153
|
}
|
|
4145
4154
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4155
|
+
if (!malformedIPLiteral) {
|
|
4156
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4157
|
+
}
|
|
4158
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4159
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4160
|
+
if (!isIP) {
|
|
4161
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
4153
4162
|
}
|
|
4163
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4164
|
+
}
|
|
4165
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4154
4166
|
if (parsed.path) {
|
|
4155
4167
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
4156
4168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-notes-mcp",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.32",
|
|
4
4
|
"description": "MCP server for Apple Notes - read, search, create, edit, organize, and export notes on macOS via Claude and other AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|