apple-mail-mcp 2.9.0 → 2.9.1
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 +276 -167
- package/package.json +1 -5
package/build/index.js
CHANGED
|
@@ -23204,9 +23204,9 @@ var require_pino = __commonJS({
|
|
|
23204
23204
|
}
|
|
23205
23205
|
});
|
|
23206
23206
|
|
|
23207
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
23207
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/logger.js
|
|
23208
23208
|
var require_logger = __commonJS({
|
|
23209
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
23209
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/logger.js"(exports, module) {
|
|
23210
23210
|
"use strict";
|
|
23211
23211
|
var logger = require_pino()();
|
|
23212
23212
|
logger.level = "trace";
|
|
@@ -48399,9 +48399,9 @@ var require_mailsplit = __commonJS({
|
|
|
48399
48399
|
}
|
|
48400
48400
|
});
|
|
48401
48401
|
|
|
48402
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48402
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/limited-passthrough.js
|
|
48403
48403
|
var require_limited_passthrough = __commonJS({
|
|
48404
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48404
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/limited-passthrough.js"(exports, module) {
|
|
48405
48405
|
"use strict";
|
|
48406
48406
|
var { Transform } = __require("stream");
|
|
48407
48407
|
var LimitedPassthrough = class extends Transform {
|
|
@@ -48435,9 +48435,9 @@ var require_limited_passthrough = __commonJS({
|
|
|
48435
48435
|
}
|
|
48436
48436
|
});
|
|
48437
48437
|
|
|
48438
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48438
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-stream.js
|
|
48439
48439
|
var require_imap_stream = __commonJS({
|
|
48440
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48440
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-stream.js"(exports, module) {
|
|
48441
48441
|
"use strict";
|
|
48442
48442
|
var Transform = __require("stream").Transform;
|
|
48443
48443
|
var logger = require_logger();
|
|
@@ -48715,9 +48715,9 @@ var require_imap_stream = __commonJS({
|
|
|
48715
48715
|
}
|
|
48716
48716
|
});
|
|
48717
48717
|
|
|
48718
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48718
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-formal-syntax.js
|
|
48719
48719
|
var require_imap_formal_syntax = __commonJS({
|
|
48720
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48720
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-formal-syntax.js"(exports, module) {
|
|
48721
48721
|
"use strict";
|
|
48722
48722
|
function expandRange(start, end) {
|
|
48723
48723
|
let chars = [];
|
|
@@ -48861,9 +48861,9 @@ var require_imap_formal_syntax = __commonJS({
|
|
|
48861
48861
|
}
|
|
48862
48862
|
});
|
|
48863
48863
|
|
|
48864
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48864
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/token-parser.js
|
|
48865
48865
|
var require_token_parser = __commonJS({
|
|
48866
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48866
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/token-parser.js"(exports, module) {
|
|
48867
48867
|
"use strict";
|
|
48868
48868
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
48869
48869
|
var STATE_ATOM = 1;
|
|
@@ -49411,9 +49411,9 @@ var require_token_parser = __commonJS({
|
|
|
49411
49411
|
}
|
|
49412
49412
|
});
|
|
49413
49413
|
|
|
49414
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49414
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/parser-instance.js
|
|
49415
49415
|
var require_parser_instance = __commonJS({
|
|
49416
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49416
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/parser-instance.js"(exports, module) {
|
|
49417
49417
|
"use strict";
|
|
49418
49418
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49419
49419
|
var { TokenParser } = require_token_parser();
|
|
@@ -49600,9 +49600,9 @@ var require_parser_instance = __commonJS({
|
|
|
49600
49600
|
}
|
|
49601
49601
|
});
|
|
49602
49602
|
|
|
49603
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49603
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-parser.js
|
|
49604
49604
|
var require_imap_parser = __commonJS({
|
|
49605
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49605
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-parser.js"(exports, module) {
|
|
49606
49606
|
"use strict";
|
|
49607
49607
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49608
49608
|
var { ParserInstance } = require_parser_instance();
|
|
@@ -49657,9 +49657,9 @@ var require_imap_parser = __commonJS({
|
|
|
49657
49657
|
}
|
|
49658
49658
|
});
|
|
49659
49659
|
|
|
49660
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49660
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-compiler.js
|
|
49661
49661
|
var require_imap_compiler = __commonJS({
|
|
49662
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49662
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-compiler.js"(exports, module) {
|
|
49663
49663
|
"use strict";
|
|
49664
49664
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49665
49665
|
var formatRespEntry = (entry, returnEmpty) => {
|
|
@@ -49807,9 +49807,9 @@ var require_imap_compiler = __commonJS({
|
|
|
49807
49807
|
}
|
|
49808
49808
|
});
|
|
49809
49809
|
|
|
49810
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49810
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-handler.js
|
|
49811
49811
|
var require_imap_handler = __commonJS({
|
|
49812
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49812
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/handler/imap-handler.js"(exports, module) {
|
|
49813
49813
|
"use strict";
|
|
49814
49814
|
var parser = require_imap_parser();
|
|
49815
49815
|
var compiler = require_imap_compiler();
|
|
@@ -49820,12 +49820,12 @@ var require_imap_handler = __commonJS({
|
|
|
49820
49820
|
}
|
|
49821
49821
|
});
|
|
49822
49822
|
|
|
49823
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49823
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/package.json
|
|
49824
49824
|
var require_package4 = __commonJS({
|
|
49825
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49825
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/package.json"(exports, module) {
|
|
49826
49826
|
module.exports = {
|
|
49827
49827
|
name: "imapflow",
|
|
49828
|
-
version: "1.4.
|
|
49828
|
+
version: "1.4.8",
|
|
49829
49829
|
description: "IMAP Client for Node",
|
|
49830
49830
|
main: "lib/imap-flow.js",
|
|
49831
49831
|
types: "lib/imap-flow.d.ts",
|
|
@@ -49853,18 +49853,18 @@ var require_package4 = __commonJS({
|
|
|
49853
49853
|
homepage: "https://imapflow.com/",
|
|
49854
49854
|
devDependencies: {
|
|
49855
49855
|
"@eslint/js": "10.0.1",
|
|
49856
|
-
"@types/node": "26.1.
|
|
49857
|
-
c8: "
|
|
49858
|
-
eslint: "10.
|
|
49856
|
+
"@types/node": "26.1.1",
|
|
49857
|
+
c8: "12.0.0",
|
|
49858
|
+
eslint: "10.7.0",
|
|
49859
49859
|
"eslint-config-nodemailer": "1.2.0",
|
|
49860
49860
|
"eslint-config-prettier": "10.1.8",
|
|
49861
49861
|
grunt: "1.6.2",
|
|
49862
49862
|
"grunt-cli": "1.5.0",
|
|
49863
49863
|
"grunt-contrib-nodeunit": "5.0.0",
|
|
49864
49864
|
"grunt-eslint": "26.0.0",
|
|
49865
|
-
prettier: "3.9.
|
|
49865
|
+
prettier: "3.9.5",
|
|
49866
49866
|
proxyquire: "^2.1.3",
|
|
49867
|
-
typescript: "
|
|
49867
|
+
typescript: "7.0.2"
|
|
49868
49868
|
},
|
|
49869
49869
|
dependencies: {
|
|
49870
49870
|
"@zone-eu/mailsplit": "5.4.14",
|
|
@@ -51248,9 +51248,9 @@ var require_util3 = __commonJS({
|
|
|
51248
51248
|
}
|
|
51249
51249
|
});
|
|
51250
51250
|
|
|
51251
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51251
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/address-error.js
|
|
51252
51252
|
var require_address_error = __commonJS({
|
|
51253
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51253
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/address-error.js"(exports) {
|
|
51254
51254
|
"use strict";
|
|
51255
51255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51256
51256
|
exports.AddressError = void 0;
|
|
@@ -51265,12 +51265,13 @@ var require_address_error = __commonJS({
|
|
|
51265
51265
|
}
|
|
51266
51266
|
});
|
|
51267
51267
|
|
|
51268
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51268
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/common.js
|
|
51269
51269
|
var require_common = __commonJS({
|
|
51270
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51270
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/common.js"(exports) {
|
|
51271
51271
|
"use strict";
|
|
51272
51272
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51273
51273
|
exports.isInSubnet = isInSubnet;
|
|
51274
|
+
exports.isHostInSubnet = isHostInSubnet;
|
|
51274
51275
|
exports.isCorrect = isCorrect;
|
|
51275
51276
|
exports.prefixLengthFromMask = prefixLengthFromMask;
|
|
51276
51277
|
exports.numberToPaddedHex = numberToPaddedHex;
|
|
@@ -51281,10 +51282,10 @@ var require_common = __commonJS({
|
|
|
51281
51282
|
if (this.subnetMask < address.subnetMask) {
|
|
51282
51283
|
return false;
|
|
51283
51284
|
}
|
|
51284
|
-
|
|
51285
|
-
|
|
51286
|
-
|
|
51287
|
-
return
|
|
51285
|
+
return isHostInSubnet.call(this, address);
|
|
51286
|
+
}
|
|
51287
|
+
function isHostInSubnet(address) {
|
|
51288
|
+
return this.mask(address.subnetMask) === address.mask();
|
|
51288
51289
|
}
|
|
51289
51290
|
function isCorrect(defaultBits) {
|
|
51290
51291
|
return function() {
|
|
@@ -51328,22 +51329,22 @@ var require_common = __commonJS({
|
|
|
51328
51329
|
}
|
|
51329
51330
|
});
|
|
51330
51331
|
|
|
51331
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51332
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v4/constants.js
|
|
51332
51333
|
var require_constants3 = __commonJS({
|
|
51333
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51334
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v4/constants.js"(exports) {
|
|
51334
51335
|
"use strict";
|
|
51335
51336
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51336
51337
|
exports.RE_SUBNET_STRING = exports.RE_ADDRESS = exports.GROUPS = exports.BITS = void 0;
|
|
51337
51338
|
exports.BITS = 32;
|
|
51338
51339
|
exports.GROUPS = 4;
|
|
51339
|
-
exports.RE_ADDRESS = /^(25[0-5]|2[0-4][0-9]|[
|
|
51340
|
+
exports.RE_ADDRESS = /^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/g;
|
|
51340
51341
|
exports.RE_SUBNET_STRING = /\/\d{1,2}$/;
|
|
51341
51342
|
}
|
|
51342
51343
|
});
|
|
51343
51344
|
|
|
51344
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51345
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ipv4.js
|
|
51345
51346
|
var require_ipv4 = __commonJS({
|
|
51346
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51347
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ipv4.js"(exports) {
|
|
51347
51348
|
"use strict";
|
|
51348
51349
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
51349
51350
|
if (k2 === void 0) k2 = k;
|
|
@@ -51380,6 +51381,7 @@ var require_ipv4 = __commonJS({
|
|
|
51380
51381
|
var isCorrect4 = common.isCorrect(constants.BITS);
|
|
51381
51382
|
var Address4 = class _Address4 {
|
|
51382
51383
|
constructor(address) {
|
|
51384
|
+
this.addressMinusSuffix = "";
|
|
51383
51385
|
this.groups = constants.GROUPS;
|
|
51384
51386
|
this.parsedAddress = [];
|
|
51385
51387
|
this.parsedSubnet = "";
|
|
@@ -51388,6 +51390,7 @@ var require_ipv4 = __commonJS({
|
|
|
51388
51390
|
this.v4 = true;
|
|
51389
51391
|
this.isCorrect = isCorrect4;
|
|
51390
51392
|
this.isInSubnet = common.isInSubnet;
|
|
51393
|
+
this.isHostInSubnet = common.isHostInSubnet;
|
|
51391
51394
|
this.address = address;
|
|
51392
51395
|
const subnet = constants.RE_SUBNET_STRING.exec(address);
|
|
51393
51396
|
if (subnet) {
|
|
@@ -51425,6 +51428,9 @@ var require_ipv4 = __commonJS({
|
|
|
51425
51428
|
*/
|
|
51426
51429
|
parse(address) {
|
|
51427
51430
|
const groups = address.split(".");
|
|
51431
|
+
if (groups.some((group) => /^0\d/.test(group))) {
|
|
51432
|
+
throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.");
|
|
51433
|
+
}
|
|
51428
51434
|
if (!address.match(constants.RE_ADDRESS)) {
|
|
51429
51435
|
throw new address_error_1.AddressError("Invalid IPv4 address.");
|
|
51430
51436
|
}
|
|
@@ -51734,49 +51740,49 @@ var require_ipv4 = __commonJS({
|
|
|
51734
51740
|
* @returns {boolean}
|
|
51735
51741
|
*/
|
|
51736
51742
|
isMulticast() {
|
|
51737
|
-
return this.
|
|
51743
|
+
return this.isHostInSubnet(MULTICAST_V4);
|
|
51738
51744
|
}
|
|
51739
51745
|
/**
|
|
51740
51746
|
* Returns true if the address is in one of the [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private address ranges (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`).
|
|
51741
51747
|
* @returns {boolean}
|
|
51742
51748
|
*/
|
|
51743
51749
|
isPrivate() {
|
|
51744
|
-
return PRIVATE_V4.some((subnet) => this.
|
|
51750
|
+
return PRIVATE_V4.some((subnet) => this.isHostInSubnet(subnet));
|
|
51745
51751
|
}
|
|
51746
51752
|
/**
|
|
51747
51753
|
* Returns true if the address is in the loopback range `127.0.0.0/8` ([RFC 1122](https://datatracker.ietf.org/doc/html/rfc1122)).
|
|
51748
51754
|
* @returns {boolean}
|
|
51749
51755
|
*/
|
|
51750
51756
|
isLoopback() {
|
|
51751
|
-
return this.
|
|
51757
|
+
return this.isHostInSubnet(LOOPBACK_V4);
|
|
51752
51758
|
}
|
|
51753
51759
|
/**
|
|
51754
51760
|
* Returns true if the address is in the link-local range `169.254.0.0/16` ([RFC 3927](https://datatracker.ietf.org/doc/html/rfc3927)).
|
|
51755
51761
|
* @returns {boolean}
|
|
51756
51762
|
*/
|
|
51757
51763
|
isLinkLocal() {
|
|
51758
|
-
return this.
|
|
51764
|
+
return this.isHostInSubnet(LINK_LOCAL_V4);
|
|
51759
51765
|
}
|
|
51760
51766
|
/**
|
|
51761
51767
|
* Returns true if the address is the unspecified address `0.0.0.0`.
|
|
51762
51768
|
* @returns {boolean}
|
|
51763
51769
|
*/
|
|
51764
51770
|
isUnspecified() {
|
|
51765
|
-
return this.
|
|
51771
|
+
return this.isHostInSubnet(UNSPECIFIED_V4);
|
|
51766
51772
|
}
|
|
51767
51773
|
/**
|
|
51768
51774
|
* Returns true if the address is the limited broadcast address `255.255.255.255` ([RFC 919](https://datatracker.ietf.org/doc/html/rfc919)).
|
|
51769
51775
|
* @returns {boolean}
|
|
51770
51776
|
*/
|
|
51771
51777
|
isBroadcast() {
|
|
51772
|
-
return this.
|
|
51778
|
+
return this.isHostInSubnet(BROADCAST_V4);
|
|
51773
51779
|
}
|
|
51774
51780
|
/**
|
|
51775
51781
|
* Returns true if the address is in the carrier-grade NAT range `100.64.0.0/10` ([RFC 6598](https://datatracker.ietf.org/doc/html/rfc6598)).
|
|
51776
51782
|
* @returns {boolean}
|
|
51777
51783
|
*/
|
|
51778
51784
|
isCGNAT() {
|
|
51779
|
-
return this.
|
|
51785
|
+
return this.isHostInSubnet(CGNAT_V4);
|
|
51780
51786
|
}
|
|
51781
51787
|
/**
|
|
51782
51788
|
* Returns a zero-padded base-2 string representation of the address
|
|
@@ -51794,7 +51800,7 @@ var require_ipv4 = __commonJS({
|
|
|
51794
51800
|
*/
|
|
51795
51801
|
groupForV6() {
|
|
51796
51802
|
const segments = this.parsedAddress;
|
|
51797
|
-
return this.
|
|
51803
|
+
return this.correctForm().replace(constants.RE_ADDRESS, `<span class="hover-group group-v4 group-6">${segments.slice(0, 2).join(".")}</span>.<span class="hover-group group-v4 group-7">${segments.slice(2, 4).join(".")}</span>`);
|
|
51798
51804
|
}
|
|
51799
51805
|
};
|
|
51800
51806
|
exports.Address4 = Address4;
|
|
@@ -51812,9 +51818,9 @@ var require_ipv4 = __commonJS({
|
|
|
51812
51818
|
}
|
|
51813
51819
|
});
|
|
51814
51820
|
|
|
51815
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51821
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/constants.js
|
|
51816
51822
|
var require_constants4 = __commonJS({
|
|
51817
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51823
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/constants.js"(exports) {
|
|
51818
51824
|
"use strict";
|
|
51819
51825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51820
51826
|
exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
|
|
@@ -51851,6 +51857,7 @@ var require_constants4 = __commonJS({
|
|
|
51851
51857
|
"ff05::1:3/128": "Multicast (All DHCP servers in this site)",
|
|
51852
51858
|
"::/128": "Unspecified",
|
|
51853
51859
|
"::1/128": "Loopback",
|
|
51860
|
+
"::ffff:0:0/96": "IPv4-mapped",
|
|
51854
51861
|
"ff00::/8": "Multicast",
|
|
51855
51862
|
"fe80::/10": "Link-local unicast",
|
|
51856
51863
|
"fc00::/7": "Unique local",
|
|
@@ -51863,14 +51870,14 @@ var require_constants4 = __commonJS({
|
|
|
51863
51870
|
exports.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;
|
|
51864
51871
|
exports.RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/;
|
|
51865
51872
|
exports.RE_ZONE_STRING = /%.*$/;
|
|
51866
|
-
exports.RE_URL =
|
|
51867
|
-
exports.RE_URL_WITH_PORT =
|
|
51873
|
+
exports.RE_URL = /^(?:\[([0-9a-f:.]+)\]|([0-9a-f:.]+))(?:[/?#].*)?$/i;
|
|
51874
|
+
exports.RE_URL_WITH_PORT = /^\[([0-9a-f:.]+)\]:([0-9]{1,5})(?:[/?#].*)?$/i;
|
|
51868
51875
|
}
|
|
51869
51876
|
});
|
|
51870
51877
|
|
|
51871
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51878
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/helpers.js
|
|
51872
51879
|
var require_helpers = __commonJS({
|
|
51873
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51880
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/helpers.js"(exports) {
|
|
51874
51881
|
"use strict";
|
|
51875
51882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51876
51883
|
exports.escapeHtml = escapeHtml;
|
|
@@ -51907,9 +51914,9 @@ var require_helpers = __commonJS({
|
|
|
51907
51914
|
}
|
|
51908
51915
|
});
|
|
51909
51916
|
|
|
51910
|
-
// node_modules/.pnpm/ip-address@10.
|
|
51917
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/regular-expressions.js
|
|
51911
51918
|
var require_regular_expressions = __commonJS({
|
|
51912
|
-
"node_modules/.pnpm/ip-address@10.
|
|
51919
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/v6/regular-expressions.js"(exports) {
|
|
51913
51920
|
"use strict";
|
|
51914
51921
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
51915
51922
|
if (k2 === void 0) k2 = k;
|
|
@@ -51999,9 +52006,9 @@ var require_regular_expressions = __commonJS({
|
|
|
51999
52006
|
}
|
|
52000
52007
|
});
|
|
52001
52008
|
|
|
52002
|
-
// node_modules/.pnpm/ip-address@10.
|
|
52009
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ipv6.js
|
|
52003
52010
|
var require_ipv6 = __commonJS({
|
|
52004
|
-
"node_modules/.pnpm/ip-address@10.
|
|
52011
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ipv6.js"(exports) {
|
|
52005
52012
|
"use strict";
|
|
52006
52013
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
52007
52014
|
if (k2 === void 0) k2 = k;
|
|
@@ -52086,6 +52093,7 @@ var require_ipv6 = __commonJS({
|
|
|
52086
52093
|
this.v4 = false;
|
|
52087
52094
|
this.zone = "";
|
|
52088
52095
|
this.isInSubnet = common.isInSubnet;
|
|
52096
|
+
this.isHostInSubnet = common.isHostInSubnet;
|
|
52089
52097
|
this.isCorrect = isCorrect6;
|
|
52090
52098
|
if (optionalGroups === void 0) {
|
|
52091
52099
|
this.groups = constants6.GROUPS;
|
|
@@ -52102,7 +52110,8 @@ var require_ipv6 = __commonJS({
|
|
|
52102
52110
|
throw new address_error_1.AddressError("Invalid subnet mask.");
|
|
52103
52111
|
}
|
|
52104
52112
|
address = address.replace(constants6.RE_SUBNET_STRING, "");
|
|
52105
|
-
}
|
|
52113
|
+
}
|
|
52114
|
+
if (/\//.test(address)) {
|
|
52106
52115
|
throw new address_error_1.AddressError("Invalid subnet mask.");
|
|
52107
52116
|
}
|
|
52108
52117
|
const zone = constants6.RE_ZONE_STRING.exec(address);
|
|
@@ -52163,8 +52172,9 @@ var require_ipv6 = __commonJS({
|
|
|
52163
52172
|
let host;
|
|
52164
52173
|
let port = null;
|
|
52165
52174
|
let result;
|
|
52166
|
-
|
|
52167
|
-
|
|
52175
|
+
const stripped = url.replace(/^[a-z][a-z0-9+.-]*:\/\//i, "");
|
|
52176
|
+
if (stripped.indexOf("[") !== -1 && stripped.indexOf("]:") !== -1) {
|
|
52177
|
+
result = constants6.RE_URL_WITH_PORT.exec(stripped);
|
|
52168
52178
|
if (result === null) {
|
|
52169
52179
|
return {
|
|
52170
52180
|
error: "failed to parse address with port",
|
|
@@ -52174,9 +52184,8 @@ var require_ipv6 = __commonJS({
|
|
|
52174
52184
|
}
|
|
52175
52185
|
host = result[1];
|
|
52176
52186
|
port = result[2];
|
|
52177
|
-
} else
|
|
52178
|
-
|
|
52179
|
-
result = constants6.RE_URL.exec(url);
|
|
52187
|
+
} else {
|
|
52188
|
+
result = constants6.RE_URL.exec(stripped);
|
|
52180
52189
|
if (result === null) {
|
|
52181
52190
|
return {
|
|
52182
52191
|
error: "failed to parse address from URL",
|
|
@@ -52184,13 +52193,11 @@ var require_ipv6 = __commonJS({
|
|
|
52184
52193
|
port: null
|
|
52185
52194
|
};
|
|
52186
52195
|
}
|
|
52187
|
-
host = result[1];
|
|
52188
|
-
} else {
|
|
52189
|
-
host = url;
|
|
52196
|
+
host = result[1] ?? result[2];
|
|
52190
52197
|
}
|
|
52191
52198
|
if (port) {
|
|
52192
52199
|
port = parseInt(port, 10);
|
|
52193
|
-
if (port < 0 || port >
|
|
52200
|
+
if (port < 0 || port > 65535) {
|
|
52194
52201
|
port = null;
|
|
52195
52202
|
}
|
|
52196
52203
|
} else {
|
|
@@ -52452,7 +52459,7 @@ var require_ipv6 = __commonJS({
|
|
|
52452
52459
|
getType() {
|
|
52453
52460
|
for (let i = 0; i < TYPE_SUBNETS.length; i++) {
|
|
52454
52461
|
const entry = TYPE_SUBNETS[i];
|
|
52455
|
-
if (this.
|
|
52462
|
+
if (this.isHostInSubnet(entry[0])) {
|
|
52456
52463
|
return entry[1];
|
|
52457
52464
|
}
|
|
52458
52465
|
}
|
|
@@ -52585,18 +52592,20 @@ var require_ipv6 = __commonJS({
|
|
|
52585
52592
|
}
|
|
52586
52593
|
const groups = address.split(":");
|
|
52587
52594
|
const lastGroup = groups.slice(-1)[0];
|
|
52595
|
+
const v4Octets = lastGroup.split(".");
|
|
52596
|
+
if (v4Octets.length === constants4.GROUPS && v4Octets.every((octet) => /^\d{1,3}$/.test(octet))) {
|
|
52597
|
+
if (v4Octets.some((octet) => /^0\d/.test(octet))) {
|
|
52598
|
+
const highlighted = v4Octets.map(spanLeadingZeroes4).join(".");
|
|
52599
|
+
const prefix = groups.slice(0, -1).map(helpers.escapeHtml).join(":");
|
|
52600
|
+
const separator = groups.length > 1 ? ":" : "";
|
|
52601
|
+
throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", `${prefix}${separator}${highlighted}`);
|
|
52602
|
+
}
|
|
52603
|
+
}
|
|
52588
52604
|
const address4 = lastGroup.match(constants4.RE_ADDRESS);
|
|
52589
52605
|
if (address4) {
|
|
52590
52606
|
this.parsedAddress4 = address4[0];
|
|
52591
|
-
this.
|
|
52592
|
-
|
|
52593
|
-
if (/^0[0-9]+/.test(this.address4.parsedAddress[i])) {
|
|
52594
|
-
const highlighted = this.address4.parsedAddress.map(spanLeadingZeroes4).join(".");
|
|
52595
|
-
const prefix = groups.slice(0, -1).map(helpers.escapeHtml).join(":");
|
|
52596
|
-
const separator = groups.length > 1 ? ":" : "";
|
|
52597
|
-
throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", `${prefix}${separator}${highlighted}`);
|
|
52598
|
-
}
|
|
52599
|
-
}
|
|
52607
|
+
const v4Suffix = this.subnetMask >= 96 ? `/${this.subnetMask - 96}` : "";
|
|
52608
|
+
this.address4 = new ipv4_1.Address4(`${this.parsedAddress4}${v4Suffix}`);
|
|
52600
52609
|
this.v4 = true;
|
|
52601
52610
|
groups[groups.length - 1] = this.address4.toGroup6();
|
|
52602
52611
|
address = groups.join(":");
|
|
@@ -52680,7 +52689,11 @@ var require_ipv6 = __commonJS({
|
|
|
52680
52689
|
return BigInt(`0x${this.parsedAddress.map(paddedHex).join("")}`);
|
|
52681
52690
|
}
|
|
52682
52691
|
/**
|
|
52683
|
-
* Return the last two groups of this address as an IPv4 address string
|
|
52692
|
+
* Return the last two groups of this address as an IPv4 address string.
|
|
52693
|
+
* If this address carries a CIDR prefix that covers the trailing 32 bits
|
|
52694
|
+
* (i.e. `subnetMask >= 96`), the resulting `Address4` inherits the
|
|
52695
|
+
* corresponding v4 prefix (`subnetMask - 96`); otherwise it defaults to
|
|
52696
|
+
* `/32`.
|
|
52684
52697
|
* @returns {Address4}
|
|
52685
52698
|
* @example
|
|
52686
52699
|
* var address = new Address6('2001:4860:4001::1825:bf11');
|
|
@@ -52688,7 +52701,16 @@ var require_ipv6 = __commonJS({
|
|
|
52688
52701
|
*/
|
|
52689
52702
|
to4() {
|
|
52690
52703
|
const binary = this.binaryZeroPad().split("");
|
|
52691
|
-
|
|
52704
|
+
const hex = BigInt(`0b${binary.slice(96, 128).join("")}`).toString(16).padStart(8, "0");
|
|
52705
|
+
if (this.subnetMask >= 96) {
|
|
52706
|
+
const v4Mask = this.subnetMask - 96;
|
|
52707
|
+
const groups = [];
|
|
52708
|
+
for (let i = 0; i < 8; i += 2) {
|
|
52709
|
+
groups.push(parseInt(hex.slice(i, i + 2), 16));
|
|
52710
|
+
}
|
|
52711
|
+
return new ipv4_1.Address4(`${groups.join(".")}/${v4Mask}`);
|
|
52712
|
+
}
|
|
52713
|
+
return ipv4_1.Address4.fromHex(hex);
|
|
52692
52714
|
}
|
|
52693
52715
|
/**
|
|
52694
52716
|
* Return the v4-in-v6 form of the address
|
|
@@ -52702,7 +52724,7 @@ var require_ipv6 = __commonJS({
|
|
|
52702
52724
|
if (!/:$/.test(correct)) {
|
|
52703
52725
|
infix = ":";
|
|
52704
52726
|
}
|
|
52705
|
-
return correct + infix + address4.
|
|
52727
|
+
return correct + infix + address4.correctForm();
|
|
52706
52728
|
}
|
|
52707
52729
|
/**
|
|
52708
52730
|
* Decodes the Teredo tunneling fields embedded in this address. Returns the
|
|
@@ -52815,7 +52837,7 @@ var require_ipv6 = __commonJS({
|
|
|
52815
52837
|
if (pl !== 32 && pl !== 40 && pl !== 48 && pl !== 56 && pl !== 64 && pl !== 96) {
|
|
52816
52838
|
throw new address_error_1.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");
|
|
52817
52839
|
}
|
|
52818
|
-
if (!this.
|
|
52840
|
+
if (!this.isHostInSubnet(prefix6)) {
|
|
52819
52841
|
return null;
|
|
52820
52842
|
}
|
|
52821
52843
|
const bits = this.binaryZeroPad();
|
|
@@ -52839,9 +52861,7 @@ var require_ipv6 = __commonJS({
|
|
|
52839
52861
|
* @returns {Array}
|
|
52840
52862
|
*/
|
|
52841
52863
|
toByteArray() {
|
|
52842
|
-
const
|
|
52843
|
-
const leadingPad = "0".repeat(valueWithoutPadding.length % 2);
|
|
52844
|
-
const value = `${leadingPad}${valueWithoutPadding}`;
|
|
52864
|
+
const value = this.bigInt().toString(16).padStart(constants6.BITS / 4, "0");
|
|
52845
52865
|
const bytes = [];
|
|
52846
52866
|
for (let i = 0, length = value.length; i < length; i += 2) {
|
|
52847
52867
|
bytes.push(parseInt(value.substring(i, i + 2), 16));
|
|
@@ -52894,6 +52914,10 @@ var require_ipv6 = __commonJS({
|
|
|
52894
52914
|
* @returns {boolean}
|
|
52895
52915
|
*/
|
|
52896
52916
|
isLinkLocal() {
|
|
52917
|
+
const embedded = this.embeddedIPv4();
|
|
52918
|
+
if (embedded) {
|
|
52919
|
+
return embedded.isLinkLocal();
|
|
52920
|
+
}
|
|
52897
52921
|
if (this.getBitsBase2(0, 64) === "1111111010000000000000000000000000000000000000000000000000000000") {
|
|
52898
52922
|
return true;
|
|
52899
52923
|
}
|
|
@@ -52904,6 +52928,10 @@ var require_ipv6 = __commonJS({
|
|
|
52904
52928
|
* @returns {boolean}
|
|
52905
52929
|
*/
|
|
52906
52930
|
isMulticast() {
|
|
52931
|
+
const embedded = this.embeddedIPv4();
|
|
52932
|
+
if (embedded) {
|
|
52933
|
+
return embedded.isMulticast();
|
|
52934
|
+
}
|
|
52907
52935
|
const type = this.getType();
|
|
52908
52936
|
return type === "Multicast" || type.startsWith("Multicast ");
|
|
52909
52937
|
}
|
|
@@ -52926,27 +52954,54 @@ var require_ipv6 = __commonJS({
|
|
|
52926
52954
|
* @returns {boolean}
|
|
52927
52955
|
*/
|
|
52928
52956
|
isMapped4() {
|
|
52929
|
-
return this.
|
|
52957
|
+
return this.isHostInSubnet(IPV4_MAPPED_SUBNET);
|
|
52958
|
+
}
|
|
52959
|
+
/**
|
|
52960
|
+
* If this address embeds a routable IPv4 address — i.e. it is IPv4-mapped
|
|
52961
|
+
* (`::ffff:0:0/96`) or sits in the NAT64 well-known prefix (`64:ff9b::/96`,
|
|
52962
|
+
* [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052)) — return that
|
|
52963
|
+
* embedded address as an {@link Address4}; otherwise return null.
|
|
52964
|
+
*
|
|
52965
|
+
* The special-property checks (`isLoopback`, `isLinkLocal`, `isMulticast`,
|
|
52966
|
+
* `isUnspecified`, `isPrivate`, `isCGNAT`, `isBroadcast`) call this first and
|
|
52967
|
+
* delegate to the embedded {@link Address4} when present, so a literal such as
|
|
52968
|
+
* `::ffff:127.0.0.1` is classified by what it actually reaches (loopback)
|
|
52969
|
+
* rather than by its IPv6 wrapper (which `getType()` reports as IPv4-mapped).
|
|
52970
|
+
* This matters wherever the checks back a trust-boundary decision (e.g. an
|
|
52971
|
+
* SSRF allow/deny filter): without normalization, `::ffff:10.0.0.1`,
|
|
52972
|
+
* `::ffff:169.254.169.254`, `64:ff9b::7f00:1`, etc. would all read as
|
|
52973
|
+
* non-internal.
|
|
52974
|
+
* @returns {Address4 | null}
|
|
52975
|
+
*/
|
|
52976
|
+
embeddedIPv4() {
|
|
52977
|
+
if (this.isMapped4() || this.isHostInSubnet(NAT64_WELL_KNOWN_SUBNET)) {
|
|
52978
|
+
return this.to4();
|
|
52979
|
+
}
|
|
52980
|
+
return null;
|
|
52930
52981
|
}
|
|
52931
52982
|
/**
|
|
52932
52983
|
* Returns true if the address is a Teredo address, false otherwise
|
|
52933
52984
|
* @returns {boolean}
|
|
52934
52985
|
*/
|
|
52935
52986
|
isTeredo() {
|
|
52936
|
-
return this.
|
|
52987
|
+
return this.isHostInSubnet(TEREDO_SUBNET);
|
|
52937
52988
|
}
|
|
52938
52989
|
/**
|
|
52939
52990
|
* Returns true if the address is a 6to4 address, false otherwise
|
|
52940
52991
|
* @returns {boolean}
|
|
52941
52992
|
*/
|
|
52942
52993
|
is6to4() {
|
|
52943
|
-
return this.
|
|
52994
|
+
return this.isHostInSubnet(SIX_TO_FOUR_SUBNET);
|
|
52944
52995
|
}
|
|
52945
52996
|
/**
|
|
52946
52997
|
* Returns true if the address is a loopback address, false otherwise
|
|
52947
52998
|
* @returns {boolean}
|
|
52948
52999
|
*/
|
|
52949
53000
|
isLoopback() {
|
|
53001
|
+
const embedded = this.embeddedIPv4();
|
|
53002
|
+
if (embedded) {
|
|
53003
|
+
return embedded.isLoopback();
|
|
53004
|
+
}
|
|
52950
53005
|
return this.getType() === "Loopback";
|
|
52951
53006
|
}
|
|
52952
53007
|
/**
|
|
@@ -52954,13 +53009,64 @@ var require_ipv6 = __commonJS({
|
|
|
52954
53009
|
* @returns {boolean}
|
|
52955
53010
|
*/
|
|
52956
53011
|
isULA() {
|
|
52957
|
-
return this.
|
|
53012
|
+
return this.isHostInSubnet(ULA_SUBNET);
|
|
53013
|
+
}
|
|
53014
|
+
/**
|
|
53015
|
+
* Returns true if the address is private, i.e. a Unique Local Address in
|
|
53016
|
+
* `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)) or an
|
|
53017
|
+
* IPv4-mapped / NAT64 address whose embedded IPv4 address is in one of the
|
|
53018
|
+
* [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private ranges
|
|
53019
|
+
* (e.g. `::ffff:10.0.0.1`). This is the IPv6 counterpart to
|
|
53020
|
+
* {@link Address4.isPrivate}; use it instead of {@link isULA} when you need to
|
|
53021
|
+
* catch mapped RFC 1918 addresses as well as native ULAs.
|
|
53022
|
+
* @returns {boolean}
|
|
53023
|
+
*/
|
|
53024
|
+
isPrivate() {
|
|
53025
|
+
const embedded = this.embeddedIPv4();
|
|
53026
|
+
if (embedded) {
|
|
53027
|
+
return embedded.isPrivate();
|
|
53028
|
+
}
|
|
53029
|
+
return this.isULA();
|
|
53030
|
+
}
|
|
53031
|
+
/**
|
|
53032
|
+
* Returns true if the address is an IPv4-mapped / NAT64 address whose embedded
|
|
53033
|
+
* IPv4 address is in the carrier-grade NAT range `100.64.0.0/10`
|
|
53034
|
+
* ([RFC 6598](https://datatracker.ietf.org/doc/html/rfc6598)), false
|
|
53035
|
+
* otherwise. There is no native IPv6 CGNAT range, so this only ever returns
|
|
53036
|
+
* true for an embedded IPv4 address (e.g. `::ffff:100.64.0.1`).
|
|
53037
|
+
* @returns {boolean}
|
|
53038
|
+
*/
|
|
53039
|
+
isCGNAT() {
|
|
53040
|
+
const embedded = this.embeddedIPv4();
|
|
53041
|
+
if (embedded) {
|
|
53042
|
+
return embedded.isCGNAT();
|
|
53043
|
+
}
|
|
53044
|
+
return false;
|
|
53045
|
+
}
|
|
53046
|
+
/**
|
|
53047
|
+
* Returns true if the address is an IPv4-mapped / NAT64 address whose embedded
|
|
53048
|
+
* IPv4 address is the limited broadcast address `255.255.255.255`
|
|
53049
|
+
* ([RFC 919](https://datatracker.ietf.org/doc/html/rfc919)), false otherwise.
|
|
53050
|
+
* There is no IPv6 broadcast, so this only ever returns true for an embedded
|
|
53051
|
+
* IPv4 address (e.g. `::ffff:255.255.255.255`).
|
|
53052
|
+
* @returns {boolean}
|
|
53053
|
+
*/
|
|
53054
|
+
isBroadcast() {
|
|
53055
|
+
const embedded = this.embeddedIPv4();
|
|
53056
|
+
if (embedded) {
|
|
53057
|
+
return embedded.isBroadcast();
|
|
53058
|
+
}
|
|
53059
|
+
return false;
|
|
52958
53060
|
}
|
|
52959
53061
|
/**
|
|
52960
53062
|
* Returns true if the address is the unspecified address `::`.
|
|
52961
53063
|
* @returns {boolean}
|
|
52962
53064
|
*/
|
|
52963
53065
|
isUnspecified() {
|
|
53066
|
+
const embedded = this.embeddedIPv4();
|
|
53067
|
+
if (embedded) {
|
|
53068
|
+
return embedded.isUnspecified();
|
|
53069
|
+
}
|
|
52964
53070
|
return this.getType() === "Unspecified";
|
|
52965
53071
|
}
|
|
52966
53072
|
/**
|
|
@@ -52968,7 +53074,7 @@ var require_ipv6 = __commonJS({
|
|
|
52968
53074
|
* @returns {boolean}
|
|
52969
53075
|
*/
|
|
52970
53076
|
isDocumentation() {
|
|
52971
|
-
return this.
|
|
53077
|
+
return this.isHostInSubnet(DOCUMENTATION_SUBNET);
|
|
52972
53078
|
}
|
|
52973
53079
|
// #endregion
|
|
52974
53080
|
// #region HTML
|
|
@@ -53113,12 +53219,13 @@ var require_ipv6 = __commonJS({
|
|
|
53113
53219
|
var ULA_SUBNET = new Address6("fc00::/7");
|
|
53114
53220
|
var DOCUMENTATION_SUBNET = new Address6("2001:db8::/32");
|
|
53115
53221
|
var IPV4_MAPPED_SUBNET = new Address6("::ffff:0:0/96");
|
|
53222
|
+
var NAT64_WELL_KNOWN_SUBNET = new Address6("64:ff9b::/96");
|
|
53116
53223
|
}
|
|
53117
53224
|
});
|
|
53118
53225
|
|
|
53119
|
-
// node_modules/.pnpm/ip-address@10.
|
|
53226
|
+
// node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ip-address.js
|
|
53120
53227
|
var require_ip_address = __commonJS({
|
|
53121
|
-
"node_modules/.pnpm/ip-address@10.
|
|
53228
|
+
"node_modules/.pnpm/ip-address@10.3.1/node_modules/ip-address/dist/ip-address.js"(exports) {
|
|
53122
53229
|
"use strict";
|
|
53123
53230
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
53124
53231
|
if (k2 === void 0) k2 = k;
|
|
@@ -54025,9 +54132,9 @@ var require_build = __commonJS({
|
|
|
54025
54132
|
}
|
|
54026
54133
|
});
|
|
54027
54134
|
|
|
54028
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54135
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/proxy-connection.js
|
|
54029
54136
|
var require_proxy_connection = __commonJS({
|
|
54030
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54137
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/proxy-connection.js"(exports, module) {
|
|
54031
54138
|
"use strict";
|
|
54032
54139
|
var httpProxyClient = require_http_proxy_client();
|
|
54033
54140
|
var { SocksClient } = require_build();
|
|
@@ -54154,9 +54261,9 @@ var require_proxy_connection = __commonJS({
|
|
|
54154
54261
|
}
|
|
54155
54262
|
});
|
|
54156
54263
|
|
|
54157
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54264
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/charsets.js
|
|
54158
54265
|
var require_charsets2 = __commonJS({
|
|
54159
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54266
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/charsets.js"(exports, module) {
|
|
54160
54267
|
"use strict";
|
|
54161
54268
|
var CHARACTER_SETS = [
|
|
54162
54269
|
"US-ASCII",
|
|
@@ -54433,9 +54540,9 @@ var require_charsets2 = __commonJS({
|
|
|
54433
54540
|
}
|
|
54434
54541
|
});
|
|
54435
54542
|
|
|
54436
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54543
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/jp-decoder.js
|
|
54437
54544
|
var require_jp_decoder = __commonJS({
|
|
54438
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54545
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/jp-decoder.js"(exports, module) {
|
|
54439
54546
|
"use strict";
|
|
54440
54547
|
var { Transform } = __require("stream");
|
|
54441
54548
|
var encodingJapanese = require_src();
|
|
@@ -54488,9 +54595,9 @@ var require_jp_decoder = __commonJS({
|
|
|
54488
54595
|
}
|
|
54489
54596
|
});
|
|
54490
54597
|
|
|
54491
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54598
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/tools.js
|
|
54492
54599
|
var require_tools2 = __commonJS({
|
|
54493
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54600
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/tools.js"(exports, module) {
|
|
54494
54601
|
"use strict";
|
|
54495
54602
|
var libmime = require_libmime();
|
|
54496
54603
|
var { resolveCharset } = require_charsets2();
|
|
@@ -55318,9 +55425,9 @@ var require_tools2 = __commonJS({
|
|
|
55318
55425
|
}
|
|
55319
55426
|
});
|
|
55320
55427
|
|
|
55321
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55428
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/id.js
|
|
55322
55429
|
var require_id2 = __commonJS({
|
|
55323
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55430
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/id.js"(exports, module) {
|
|
55324
55431
|
"use strict";
|
|
55325
55432
|
var { formatDateTime } = require_tools2();
|
|
55326
55433
|
module.exports = async (connection, clientInfo) => {
|
|
@@ -55370,9 +55477,9 @@ var require_id2 = __commonJS({
|
|
|
55370
55477
|
}
|
|
55371
55478
|
});
|
|
55372
55479
|
|
|
55373
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55480
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/capability.js
|
|
55374
55481
|
var require_capability = __commonJS({
|
|
55375
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55482
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/capability.js"(exports, module) {
|
|
55376
55483
|
"use strict";
|
|
55377
55484
|
module.exports = async (connection) => {
|
|
55378
55485
|
if (connection.capabilities.size && !connection.expectCapabilityUpdate) {
|
|
@@ -55391,9 +55498,9 @@ var require_capability = __commonJS({
|
|
|
55391
55498
|
}
|
|
55392
55499
|
});
|
|
55393
55500
|
|
|
55394
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55501
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/namespace.js
|
|
55395
55502
|
var require_namespace = __commonJS({
|
|
55396
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55503
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/namespace.js"(exports, module) {
|
|
55397
55504
|
"use strict";
|
|
55398
55505
|
module.exports = async (connection) => {
|
|
55399
55506
|
if (![connection.states.AUTHENTICATED, connection.states.SELECTED].includes(connection.state)) {
|
|
@@ -55498,9 +55605,9 @@ var require_namespace = __commonJS({
|
|
|
55498
55605
|
}
|
|
55499
55606
|
});
|
|
55500
55607
|
|
|
55501
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55608
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/login.js
|
|
55502
55609
|
var require_login = __commonJS({
|
|
55503
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55610
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/login.js"(exports, module) {
|
|
55504
55611
|
"use strict";
|
|
55505
55612
|
var { getStatusCode, getErrorText } = require_tools2();
|
|
55506
55613
|
module.exports = async (connection, username, password) => {
|
|
@@ -55529,9 +55636,9 @@ var require_login = __commonJS({
|
|
|
55529
55636
|
}
|
|
55530
55637
|
});
|
|
55531
55638
|
|
|
55532
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55639
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/logout.js
|
|
55533
55640
|
var require_logout = __commonJS({
|
|
55534
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55641
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/logout.js"(exports, module) {
|
|
55535
55642
|
"use strict";
|
|
55536
55643
|
module.exports = async (connection) => {
|
|
55537
55644
|
if (connection.state === connection.states.LOGOUT) {
|
|
@@ -55563,9 +55670,9 @@ var require_logout = __commonJS({
|
|
|
55563
55670
|
}
|
|
55564
55671
|
});
|
|
55565
55672
|
|
|
55566
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55673
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/starttls.js
|
|
55567
55674
|
var require_starttls = __commonJS({
|
|
55568
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55675
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/starttls.js"(exports, module) {
|
|
55569
55676
|
"use strict";
|
|
55570
55677
|
module.exports = async (connection) => {
|
|
55571
55678
|
if (!connection.capabilities.has("STARTTLS") || connection.secureConnection) {
|
|
@@ -55585,9 +55692,9 @@ var require_starttls = __commonJS({
|
|
|
55585
55692
|
}
|
|
55586
55693
|
});
|
|
55587
55694
|
|
|
55588
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55695
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/special-use.js
|
|
55589
55696
|
var require_special_use = __commonJS({
|
|
55590
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55697
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/special-use.js"(exports, module) {
|
|
55591
55698
|
"use strict";
|
|
55592
55699
|
module.exports = {
|
|
55593
55700
|
flags: ["\\All", "\\Archive", "\\Drafts", "\\Flagged", "\\Junk", "\\Sent", "\\Trash"],
|
|
@@ -55885,9 +55992,9 @@ var require_special_use = __commonJS({
|
|
|
55885
55992
|
}
|
|
55886
55993
|
});
|
|
55887
55994
|
|
|
55888
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55995
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/list.js
|
|
55889
55996
|
var require_list = __commonJS({
|
|
55890
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55997
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/list.js"(exports, module) {
|
|
55891
55998
|
"use strict";
|
|
55892
55999
|
var { decodePath, encodePath, normalizePath } = require_tools2();
|
|
55893
56000
|
var { specialUse } = require_special_use();
|
|
@@ -56146,9 +56253,9 @@ var require_list = __commonJS({
|
|
|
56146
56253
|
}
|
|
56147
56254
|
});
|
|
56148
56255
|
|
|
56149
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56256
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/enable.js
|
|
56150
56257
|
var require_enable = __commonJS({
|
|
56151
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56258
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/enable.js"(exports, module) {
|
|
56152
56259
|
"use strict";
|
|
56153
56260
|
module.exports = async (connection, extensionList) => {
|
|
56154
56261
|
if (!connection.capabilities.has("ENABLE") || connection.state !== connection.states.AUTHENTICATED) {
|
|
@@ -56193,9 +56300,9 @@ var require_enable = __commonJS({
|
|
|
56193
56300
|
}
|
|
56194
56301
|
});
|
|
56195
56302
|
|
|
56196
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56303
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/select.js
|
|
56197
56304
|
var require_select = __commonJS({
|
|
56198
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56305
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/select.js"(exports, module) {
|
|
56199
56306
|
"use strict";
|
|
56200
56307
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56201
56308
|
module.exports = async (connection, path, options) => {
|
|
@@ -56387,9 +56494,9 @@ var require_select = __commonJS({
|
|
|
56387
56494
|
}
|
|
56388
56495
|
});
|
|
56389
56496
|
|
|
56390
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56497
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/fetch.js
|
|
56391
56498
|
var require_fetch2 = __commonJS({
|
|
56392
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56499
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/fetch.js"(exports, module) {
|
|
56393
56500
|
"use strict";
|
|
56394
56501
|
var { formatMessageResponse } = require_tools2();
|
|
56395
56502
|
module.exports = async (connection, range, query, options) => {
|
|
@@ -56575,9 +56682,9 @@ var require_fetch2 = __commonJS({
|
|
|
56575
56682
|
}
|
|
56576
56683
|
});
|
|
56577
56684
|
|
|
56578
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56685
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/create.js
|
|
56579
56686
|
var require_create = __commonJS({
|
|
56580
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56687
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/create.js"(exports, module) {
|
|
56581
56688
|
"use strict";
|
|
56582
56689
|
var { encodePath, normalizePath, getStatusCode, enhanceCommandError } = require_tools2();
|
|
56583
56690
|
module.exports = async (connection, path) => {
|
|
@@ -56634,9 +56741,9 @@ var require_create = __commonJS({
|
|
|
56634
56741
|
}
|
|
56635
56742
|
});
|
|
56636
56743
|
|
|
56637
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56744
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/delete.js
|
|
56638
56745
|
var require_delete = __commonJS({
|
|
56639
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56746
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/delete.js"(exports, module) {
|
|
56640
56747
|
"use strict";
|
|
56641
56748
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56642
56749
|
module.exports = async (connection, path) => {
|
|
@@ -56664,9 +56771,9 @@ var require_delete = __commonJS({
|
|
|
56664
56771
|
}
|
|
56665
56772
|
});
|
|
56666
56773
|
|
|
56667
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56774
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/rename.js
|
|
56668
56775
|
var require_rename = __commonJS({
|
|
56669
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56776
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/rename.js"(exports, module) {
|
|
56670
56777
|
"use strict";
|
|
56671
56778
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56672
56779
|
module.exports = async (connection, path, newPath) => {
|
|
@@ -56699,9 +56806,9 @@ var require_rename = __commonJS({
|
|
|
56699
56806
|
}
|
|
56700
56807
|
});
|
|
56701
56808
|
|
|
56702
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56809
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/close.js
|
|
56703
56810
|
var require_close = __commonJS({
|
|
56704
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56811
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/close.js"(exports, module) {
|
|
56705
56812
|
"use strict";
|
|
56706
56813
|
module.exports = async (connection) => {
|
|
56707
56814
|
if (connection.state !== connection.states.SELECTED) {
|
|
@@ -56727,9 +56834,9 @@ var require_close = __commonJS({
|
|
|
56727
56834
|
}
|
|
56728
56835
|
});
|
|
56729
56836
|
|
|
56730
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56837
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/subscribe.js
|
|
56731
56838
|
var require_subscribe = __commonJS({
|
|
56732
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56839
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/subscribe.js"(exports, module) {
|
|
56733
56840
|
"use strict";
|
|
56734
56841
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56735
56842
|
module.exports = async (connection, path) => {
|
|
@@ -56751,9 +56858,9 @@ var require_subscribe = __commonJS({
|
|
|
56751
56858
|
}
|
|
56752
56859
|
});
|
|
56753
56860
|
|
|
56754
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56861
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/unsubscribe.js
|
|
56755
56862
|
var require_unsubscribe = __commonJS({
|
|
56756
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56863
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/unsubscribe.js"(exports, module) {
|
|
56757
56864
|
"use strict";
|
|
56758
56865
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56759
56866
|
module.exports = async (connection, path) => {
|
|
@@ -56775,9 +56882,9 @@ var require_unsubscribe = __commonJS({
|
|
|
56775
56882
|
}
|
|
56776
56883
|
});
|
|
56777
56884
|
|
|
56778
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56885
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/store.js
|
|
56779
56886
|
var require_store = __commonJS({
|
|
56780
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56887
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/store.js"(exports, module) {
|
|
56781
56888
|
"use strict";
|
|
56782
56889
|
var { formatFlag, canUseFlag, enhanceCommandError } = require_tools2();
|
|
56783
56890
|
module.exports = async (connection, range, flags, options) => {
|
|
@@ -56839,9 +56946,9 @@ var require_store = __commonJS({
|
|
|
56839
56946
|
}
|
|
56840
56947
|
});
|
|
56841
56948
|
|
|
56842
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56949
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/search-compiler.js
|
|
56843
56950
|
var require_search_compiler = __commonJS({
|
|
56844
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56951
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/search-compiler.js"(exports, module) {
|
|
56845
56952
|
"use strict";
|
|
56846
56953
|
var { formatDate, formatFlag, canUseFlag, isDate } = require_tools2();
|
|
56847
56954
|
var setBoolOpt = (attributes, term, value) => {
|
|
@@ -57156,9 +57263,9 @@ var require_search_compiler = __commonJS({
|
|
|
57156
57263
|
}
|
|
57157
57264
|
});
|
|
57158
57265
|
|
|
57159
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57266
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/search.js
|
|
57160
57267
|
var require_search = __commonJS({
|
|
57161
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57268
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/search.js"(exports, module) {
|
|
57162
57269
|
"use strict";
|
|
57163
57270
|
var { enhanceCommandError } = require_tools2();
|
|
57164
57271
|
var { searchCompiler } = require_search_compiler();
|
|
@@ -57295,9 +57402,9 @@ var require_search = __commonJS({
|
|
|
57295
57402
|
}
|
|
57296
57403
|
});
|
|
57297
57404
|
|
|
57298
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57405
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/noop.js
|
|
57299
57406
|
var require_noop = __commonJS({
|
|
57300
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57407
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/noop.js"(exports, module) {
|
|
57301
57408
|
"use strict";
|
|
57302
57409
|
module.exports = async (connection) => {
|
|
57303
57410
|
try {
|
|
@@ -57312,9 +57419,9 @@ var require_noop = __commonJS({
|
|
|
57312
57419
|
}
|
|
57313
57420
|
});
|
|
57314
57421
|
|
|
57315
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57422
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/expunge.js
|
|
57316
57423
|
var require_expunge = __commonJS({
|
|
57317
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57424
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/expunge.js"(exports, module) {
|
|
57318
57425
|
"use strict";
|
|
57319
57426
|
var { enhanceCommandError } = require_tools2();
|
|
57320
57427
|
module.exports = async (connection, range, options) => {
|
|
@@ -57348,9 +57455,9 @@ var require_expunge = __commonJS({
|
|
|
57348
57455
|
}
|
|
57349
57456
|
});
|
|
57350
57457
|
|
|
57351
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57458
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/append.js
|
|
57352
57459
|
var require_append = __commonJS({
|
|
57353
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57460
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/append.js"(exports, module) {
|
|
57354
57461
|
"use strict";
|
|
57355
57462
|
var { formatFlag, canUseFlag, formatDateTime, normalizePath, encodePath, comparePaths, enhanceCommandError } = require_tools2();
|
|
57356
57463
|
module.exports = async (connection, destination, content, flags, idate) => {
|
|
@@ -57450,9 +57557,9 @@ var require_append = __commonJS({
|
|
|
57450
57557
|
}
|
|
57451
57558
|
});
|
|
57452
57559
|
|
|
57453
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57560
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/status.js
|
|
57454
57561
|
var require_status = __commonJS({
|
|
57455
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57562
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/status.js"(exports, module) {
|
|
57456
57563
|
"use strict";
|
|
57457
57564
|
var { encodePath, normalizePath } = require_tools2();
|
|
57458
57565
|
module.exports = async (connection, path, query) => {
|
|
@@ -57573,9 +57680,9 @@ var require_status = __commonJS({
|
|
|
57573
57680
|
}
|
|
57574
57681
|
});
|
|
57575
57682
|
|
|
57576
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57683
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/copyuid-parser.js
|
|
57577
57684
|
var require_copyuid_parser = __commonJS({
|
|
57578
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57685
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/copyuid-parser.js"(exports, module) {
|
|
57579
57686
|
"use strict";
|
|
57580
57687
|
var { expandRange } = require_tools2();
|
|
57581
57688
|
function parseCopyUid(response, map) {
|
|
@@ -57598,9 +57705,9 @@ var require_copyuid_parser = __commonJS({
|
|
|
57598
57705
|
}
|
|
57599
57706
|
});
|
|
57600
57707
|
|
|
57601
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57708
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/copy.js
|
|
57602
57709
|
var require_copy = __commonJS({
|
|
57603
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57710
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/copy.js"(exports, module) {
|
|
57604
57711
|
"use strict";
|
|
57605
57712
|
var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
|
|
57606
57713
|
var { parseCopyUid } = require_copyuid_parser();
|
|
@@ -57630,9 +57737,9 @@ var require_copy = __commonJS({
|
|
|
57630
57737
|
}
|
|
57631
57738
|
});
|
|
57632
57739
|
|
|
57633
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57740
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/move.js
|
|
57634
57741
|
var require_move = __commonJS({
|
|
57635
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57742
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/move.js"(exports, module) {
|
|
57636
57743
|
"use strict";
|
|
57637
57744
|
var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
|
|
57638
57745
|
var { parseCopyUid } = require_copyuid_parser();
|
|
@@ -57673,9 +57780,9 @@ var require_move = __commonJS({
|
|
|
57673
57780
|
}
|
|
57674
57781
|
});
|
|
57675
57782
|
|
|
57676
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57783
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/compress.js
|
|
57677
57784
|
var require_compress = __commonJS({
|
|
57678
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57785
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/compress.js"(exports, module) {
|
|
57679
57786
|
"use strict";
|
|
57680
57787
|
module.exports = async (connection) => {
|
|
57681
57788
|
if (!connection.capabilities.has("COMPRESS=DEFLATE") || connection._inflate) {
|
|
@@ -57694,9 +57801,9 @@ var require_compress = __commonJS({
|
|
|
57694
57801
|
}
|
|
57695
57802
|
});
|
|
57696
57803
|
|
|
57697
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57804
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/quota.js
|
|
57698
57805
|
var require_quota = __commonJS({
|
|
57699
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57806
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/quota.js"(exports, module) {
|
|
57700
57807
|
"use strict";
|
|
57701
57808
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
57702
57809
|
module.exports = async (connection, path) => {
|
|
@@ -57781,9 +57888,9 @@ var require_quota = __commonJS({
|
|
|
57781
57888
|
}
|
|
57782
57889
|
});
|
|
57783
57890
|
|
|
57784
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57891
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/idle.js
|
|
57785
57892
|
var require_idle = __commonJS({
|
|
57786
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57893
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/idle.js"(exports, module) {
|
|
57787
57894
|
"use strict";
|
|
57788
57895
|
var NOOP_INTERVAL = 2 * 60 * 1e3;
|
|
57789
57896
|
async function runIdle(connection) {
|
|
@@ -57964,9 +58071,9 @@ var require_idle = __commonJS({
|
|
|
57964
58071
|
}
|
|
57965
58072
|
});
|
|
57966
58073
|
|
|
57967
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
58074
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/authenticate.js
|
|
57968
58075
|
var require_authenticate = __commonJS({
|
|
57969
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
58076
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/commands/authenticate.js"(exports, module) {
|
|
57970
58077
|
"use strict";
|
|
57971
58078
|
var { getStatusCode, getErrorText } = require_tools2();
|
|
57972
58079
|
async function handleAuthError(err, errorResponse2) {
|
|
@@ -57986,7 +58093,9 @@ var require_authenticate = __commonJS({
|
|
|
57986
58093
|
let command;
|
|
57987
58094
|
let breaker;
|
|
57988
58095
|
if (connection.capabilities.has("AUTH=OAUTHBEARER")) {
|
|
57989
|
-
oauthbearer = [`n,a=${username},`, `host=${connection.servername}`, `port
|
|
58096
|
+
oauthbearer = [`n,a=${username},`, `host=${connection.servername || connection.host}`, `port=${connection.port}`, `auth=Bearer ${accessToken}`, "", ""].join(
|
|
58097
|
+
""
|
|
58098
|
+
);
|
|
57990
58099
|
command = "OAUTHBEARER";
|
|
57991
58100
|
breaker = "AQ==";
|
|
57992
58101
|
} else if (connection.capabilities.has("AUTH=XOAUTH") || connection.capabilities.has("AUTH=XOAUTH2")) {
|
|
@@ -58093,9 +58202,9 @@ var require_authenticate = __commonJS({
|
|
|
58093
58202
|
}
|
|
58094
58203
|
});
|
|
58095
58204
|
|
|
58096
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
58205
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/imap-commands.js
|
|
58097
58206
|
var require_imap_commands = __commonJS({
|
|
58098
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
58207
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/imap-commands.js"(exports, module) {
|
|
58099
58208
|
"use strict";
|
|
58100
58209
|
module.exports = /* @__PURE__ */ new Map([
|
|
58101
58210
|
["ID", require_id2()],
|
|
@@ -58130,9 +58239,9 @@ var require_imap_commands = __commonJS({
|
|
|
58130
58239
|
}
|
|
58131
58240
|
});
|
|
58132
58241
|
|
|
58133
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
58242
|
+
// node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/imap-flow.js
|
|
58134
58243
|
var require_imap_flow = __commonJS({
|
|
58135
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
58244
|
+
"node_modules/.pnpm/imapflow@1.4.8/node_modules/imapflow/lib/imap-flow.js"(exports, module) {
|
|
58136
58245
|
"use strict";
|
|
58137
58246
|
var tls = __require("tls");
|
|
58138
58247
|
var net = __require("net");
|
|
@@ -58315,7 +58424,7 @@ var require_imap_flow = __commonJS({
|
|
|
58315
58424
|
this.serverInfo = null;
|
|
58316
58425
|
this.log = this.getLogger();
|
|
58317
58426
|
this.secureConnection = !!this.options.secure;
|
|
58318
|
-
this.port = Number(this.options.port) || (this.secureConnection ? 993 :
|
|
58427
|
+
this.port = Number(this.options.port) || (this.secureConnection ? 993 : 143);
|
|
58319
58428
|
this.host = this.options.host || "localhost";
|
|
58320
58429
|
this.servername = this.options.servername ? this.options.servername : !net.isIP(this.host) ? this.host : false;
|
|
58321
58430
|
if (typeof this.options.secure === "undefined" && this.port === 993) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-mail-mcp",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1",
|
|
4
4
|
"description": "MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -74,10 +74,6 @@
|
|
|
74
74
|
"prettier --write"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
-
"overrides": {
|
|
78
|
-
"js-yaml": "^4.2.0",
|
|
79
|
-
"postcss": "^8.5.15"
|
|
80
|
-
},
|
|
81
77
|
"scripts": {
|
|
82
78
|
"preinstall": "node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"",
|
|
83
79
|
"build": "tsc --noEmit && esbuild src/index.ts src/cli.ts --bundle --platform=node --format=esm --target=node20 --outdir=build --banner:js=\"import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);\"",
|