From 4b1dfa20be3831b11d47af0c4c05d83a47b85716 Mon Sep 17 00:00:00 2001 From: Sven Date: Sun, 22 Mar 2026 17:26:12 +0100 Subject: [PATCH] fix(patches): update federation-diag silence patch for new fork version The fork added an Accept-header upgrade block between the diagnostic log and the return statement, breaking the OLD_SNIPPET match. Patch now handles both the original form and the updated form. Co-Authored-By: Claude Sonnet 4.6 --- package-lock.json | 616 +++++++++++--------- scripts/patch-ap-remove-federation-diag.mjs | 32 +- 2 files changed, 363 insertions(+), 285 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9fa30ec2..60469e1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,15 +62,15 @@ } }, "node_modules/@atproto/api": { - "version": "0.14.22", - "resolved": "https://registry.npmjs.org/@atproto/api/-/api-0.14.22.tgz", - "integrity": "sha512-ziXPau+sUdFovObSnsoN7JbOmUw1C5e5L28/yXf3P8vbEnSS3HVVGD1jYcscBYY34xQqi4bVDpwMYx/4yRsTuQ==", + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@atproto/api/-/api-0.19.4.tgz", + "integrity": "sha512-fYNM62vdXxer0h8a9Jzl4/ag9uFIe0nTO+LkC6KTlx1yUDigrAoQMMbllIiCWj62GhUMxAkHabk/BZjjVAfKng==", "license": "MIT", "dependencies": { - "@atproto/common-web": "^0.4.1", - "@atproto/lexicon": "^0.4.10", - "@atproto/syntax": "^0.4.0", - "@atproto/xrpc": "^0.6.12", + "@atproto/common-web": "^0.4.18", + "@atproto/lexicon": "^0.6.2", + "@atproto/syntax": "^0.5.1", + "@atproto/xrpc": "^0.7.7", "await-lock": "^2.2.2", "multiformats": "^9.9.0", "tlds": "^1.234.0", @@ -78,30 +78,21 @@ } }, "node_modules/@atproto/common-web": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/@atproto/common-web/-/common-web-0.4.18.tgz", - "integrity": "sha512-ilImzP+9N/mtse440kN60pGrEzG7wi4xsV13nGeLrS+Zocybc/ISOpKlbZM13o+twPJ+Q7veGLw9CtGg0GAFoQ==", + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/@atproto/common-web/-/common-web-0.4.19.tgz", + "integrity": "sha512-3BTi58p5WpT+9/zb6UZrdsXcfPo5P45UJm0E4iwHLILr+jc37CuBj9JReDSZ4U0i9RTrI3ZkfySyZ9bd+LnMsw==", "license": "MIT", "dependencies": { - "@atproto/lex-data": "^0.0.13", - "@atproto/lex-json": "^0.0.13", - "@atproto/syntax": "^0.5.0", + "@atproto/lex-data": "^0.0.14", + "@atproto/lex-json": "^0.0.14", + "@atproto/syntax": "^0.5.1", "zod": "^3.23.8" } }, - "node_modules/@atproto/common-web/node_modules/@atproto/syntax": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.5.0.tgz", - "integrity": "sha512-UA2DSpGdOQzUQ4gi5SH+NEJz/YR3a3Fg3y2oh+xETDSiTRmA4VhHRCojhXAVsBxUT6EnItw190C/KN+DWW90kw==", - "license": "MIT", - "dependencies": { - "tslib": "^2.8.1" - } - }, "node_modules/@atproto/lex-data": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/@atproto/lex-data/-/lex-data-0.0.13.tgz", - "integrity": "sha512-7Z7RwZ1Y/JzBF/Tcn/I4UJ/vIGfh5zn1zjv0KX+flke2JtgFkSE8uh2hOtqgBQMNqE3zdJFM+dcSWln86hR3MQ==", + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@atproto/lex-data/-/lex-data-0.0.14.tgz", + "integrity": "sha512-53DUa9664SS76nGAMYopWsO10OH0AAdf7P/HSKB6Wzx3iqe6lk/K61QZnKxOG1LreYl5CfvIJU6eNf4txI6GlQ==", "license": "MIT", "dependencies": { "multiformats": "^9.9.0", @@ -111,44 +102,44 @@ } }, "node_modules/@atproto/lex-json": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/@atproto/lex-json/-/lex-json-0.0.13.tgz", - "integrity": "sha512-hwLhkKaIHulGJpt0EfXAEWdrxqM2L1tV/tvilzhMp3QxPqYgXchFnrfVmLsyFDx6P6qkH1GsX/XC2V36U0UlPQ==", + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@atproto/lex-json/-/lex-json-0.0.14.tgz", + "integrity": "sha512-6lPkDKqe7teEu4WrN5q7400cvZKgYS3uwUMvzG3F9XkgVYhOwSDCtouV/nSLBbpvo3l9OP0kiigtclcNcyekww==", "license": "MIT", "dependencies": { - "@atproto/lex-data": "^0.0.13", + "@atproto/lex-data": "^0.0.14", "tslib": "^2.8.1" } }, "node_modules/@atproto/lexicon": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.4.14.tgz", - "integrity": "sha512-jiKpmH1QER3Gvc7JVY5brwrfo+etFoe57tKPQX/SmPwjvUsFnJAow5xLIryuBaJgFAhnTZViXKs41t//pahGHQ==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.6.2.tgz", + "integrity": "sha512-p3Ly6hinVZW0ETuAXZMeUGwuMm3g8HvQMQ41yyEE6AL0hAkfeKFaZKos6BdBrr6CjkpbrDZqE8M+5+QOceysMw==", "license": "MIT", "dependencies": { - "@atproto/common-web": "^0.4.2", - "@atproto/syntax": "^0.4.0", + "@atproto/common-web": "^0.4.18", + "@atproto/syntax": "^0.5.0", "iso-datestring-validator": "^2.2.2", "multiformats": "^9.9.0", "zod": "^3.23.8" } }, "node_modules/@atproto/syntax": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.4.3.tgz", - "integrity": "sha512-YoZUz40YAJr5nPwvCDWgodEOlt5IftZqPJvA0JDWjuZKD8yXddTwSzXSaKQAzGOpuM+/A3uXRtPzJJqlScc+iA==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.5.1.tgz", + "integrity": "sha512-J8DJjgKgACIyCTbpfvoTnf7+ofTx1kxTGO7KAftkC+jczaMdQhKdgIBAg2DaYy+80cvYGTHy5q/HI9qMAwGbWw==", "license": "MIT", "dependencies": { "tslib": "^2.8.1" } }, "node_modules/@atproto/xrpc": { - "version": "0.6.12", - "resolved": "https://registry.npmjs.org/@atproto/xrpc/-/xrpc-0.6.12.tgz", - "integrity": "sha512-Ut3iISNLujlmY9Gu8sNU+SPDJDvqlVzWddU8qUr0Yae5oD4SguaUFjjhireMGhQ3M5E0KljQgDbTmnBo1kIZ3w==", + "version": "0.7.7", + "resolved": "https://registry.npmjs.org/@atproto/xrpc/-/xrpc-0.7.7.tgz", + "integrity": "sha512-K1ZyO/BU8JNtXX5dmPp7b5UrkLMMqpsIa/Lrj5D3Su+j1Xwq1m6QJ2XJ1AgjEjkI1v4Muzm7klianLE6XGxtmA==", "license": "MIT", "dependencies": { - "@atproto/lexicon": "^0.4.10", + "@atproto/lexicon": "^0.6.0", "zod": "^3.23.8" } }, @@ -176,9 +167,9 @@ } }, "node_modules/@borewit/text-codec": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.1.tgz", - "integrity": "sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.2.tgz", + "integrity": "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==", "license": "MIT", "funding": { "type": "github", @@ -330,9 +321,9 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", - "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz", + "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==", "license": "MIT", "optional": true, "dependencies": { @@ -772,9 +763,9 @@ "license": "MIT" }, "node_modules/@fedify/debugger": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/debugger/-/debugger-2.0.3.tgz", - "integrity": "sha512-Crs9ibtJ1kWUDAetZ9GtoATSj3Hu+KRhgwQuTW3sb+kqgXJhhKNoXFteC3T713A+f7ZFaWfy1rMSrp5HSlrIHA==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/debugger/-/debugger-2.0.7.tgz", + "integrity": "sha512-439rX7f6zxXuBfLCQefP5JSv1osdjG4IimuRrIQgb5xaG1VlSaixHn4eN94ii64TGD+6PUGbTFYZhRmnnYlwAA==", "dependencies": { "@js-temporal/polyfill": "^0.5.1", "@logtape/logtape": "^2.0.0", @@ -785,22 +776,22 @@ "hono": "^4.0.0" }, "peerDependencies": { - "@fedify/fedify": "^2.0.3" + "@fedify/fedify": "^2.0.7" } }, "node_modules/@fedify/fedify": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/fedify/-/fedify-2.0.3.tgz", - "integrity": "sha512-XQ9NevJz/Ch7vKVPU+sEn5ybRllQULcX8gkNUS+F2LoPyq4b1qqRwvcLXcWA+RNXH551jyWJFGo36ufEo4Xuyw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/fedify/-/fedify-2.0.7.tgz", + "integrity": "sha512-2/GYm/ukjg4t3+HXBgfxkoq1KUCGPJTxxmanmd+B4aGOmHX5PNfteSxpQxrHYzUGQNk46KFKnDF3+t6v2JKCfA==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" ], "license": "MIT", "dependencies": { - "@fedify/vocab": "2.0.3", - "@fedify/vocab-runtime": "2.0.3", - "@fedify/webfinger": "2.0.3", + "@fedify/vocab": "2.0.7", + "@fedify/vocab-runtime": "2.0.7", + "@fedify/webfinger": "2.0.7", "@js-temporal/polyfill": "^0.5.1", "@logtape/logtape": "^2.0.0", "@opentelemetry/api": "^1.9.0", @@ -811,7 +802,6 @@ "es-toolkit": "1.43.0", "json-canon": "^1.0.1", "jsonld": "^9.0.0", - "multicodec": "^3.2.1", "structured-field-values": "^2.0.4", "uri-template-router": "^1.0.0", "url-template": "^3.1.1", @@ -824,9 +814,9 @@ } }, "node_modules/@fedify/redis": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/redis/-/redis-2.0.3.tgz", - "integrity": "sha512-viTE9tDPZl0+3tHOG0eNKxXVDCoJDvK1u1WfcTDC9bVtNe9NsbVRshCc/r01/YfTxuoS9aHSNWUzgpm1nV21Fg==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/redis/-/redis-2.0.7.tgz", + "integrity": "sha512-e9YfkDJxItaWibslo+D0+FAq+eEFG3t7GxjE51FRjQwKZj7+FK2BhGD5lOtlTwq00StRqmf2WYcjMC03lcE3cg==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" @@ -837,23 +827,23 @@ "@logtape/logtape": "^2.0.0" }, "peerDependencies": { - "@fedify/fedify": "^2.0.3", + "@fedify/fedify": "^2.0.7", "ioredis": "^5.8.2" } }, "node_modules/@fedify/vocab": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/vocab/-/vocab-2.0.3.tgz", - "integrity": "sha512-dfIsU9+2YHYLk9jBGspFyWBGzkwfxXf/d2da3yc/oT4ZaZiPt7KZjKeTuws0xsiBCAewwz/4v5ASoTa/aVHAeA==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/vocab/-/vocab-2.0.7.tgz", + "integrity": "sha512-jg1KpI2Yke26NcHrK8HS/OUeTYiCgcj98IvynBxgfzZY2MeZ1Bc7wg4VDRdHfz+TEMe9GwkF47Flj6DVcar0Zw==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" ], "license": "MIT", "dependencies": { - "@fedify/vocab-runtime": "2.0.3", - "@fedify/vocab-tools": "2.0.3", - "@fedify/webfinger": "2.0.3", + "@fedify/vocab-runtime": "2.0.7", + "@fedify/vocab-tools": "2.0.7", + "@fedify/webfinger": "2.0.7", "@js-temporal/polyfill": "^0.5.1", "@logtape/logtape": "^2.0.0", "@multiformats/base-x": "^4.0.1", @@ -861,7 +851,6 @@ "asn1js": "^3.0.6", "es-toolkit": "1.43.0", "jsonld": "^9.0.0", - "multicodec": "^3.2.1", "pkijs": "^3.3.3" }, "engines": { @@ -871,9 +860,9 @@ } }, "node_modules/@fedify/vocab-runtime": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/vocab-runtime/-/vocab-runtime-2.0.3.tgz", - "integrity": "sha512-1JHyWPVo0PF1XzZfr5bumw9OjR88ElYrM5/9/m2vpgSsJB6lSPXpbc53s79UVsAkavi1yNNgpnPTgSvhW3DFcA==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/vocab-runtime/-/vocab-runtime-2.0.7.tgz", + "integrity": "sha512-6YKAC1/Xk5GYUuWwX6BwhmMjLmSEiyJWZuu+u25aJ+0i9b93Cw2aGCuorTndvFZcpZ+TDGiEQfA0qVe6knJWcg==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" @@ -885,7 +874,7 @@ "@opentelemetry/api": "^1.9.0", "asn1js": "^3.0.6", "byte-encodings": "^1.0.11", - "multicodec": "^3.2.1", + "jsonld": "^9.0.0", "pkijs": "^3.3.3" }, "engines": { @@ -895,9 +884,9 @@ } }, "node_modules/@fedify/vocab-tools": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/vocab-tools/-/vocab-tools-2.0.3.tgz", - "integrity": "sha512-H3a0j+1STsfn7Ccgjd4CcKl5mwgVevYFZaXUcbBhXTRv72MrrzWPi9K33kuZSpr1ULh4pXapoeXOidE2hxz33A==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/vocab-tools/-/vocab-tools-2.0.7.tgz", + "integrity": "sha512-4jz6b0keXab6kjRCnr8oSLnHgdir30xPWV4HkQhVMIQROW6SVyUPMjRxr1+iuzUx70DqHuNdkDJPXX+1gPezNg==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" @@ -916,16 +905,16 @@ } }, "node_modules/@fedify/webfinger": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@fedify/webfinger/-/webfinger-2.0.3.tgz", - "integrity": "sha512-KjCDtGXFBY+iAgrPpKhBHV7/gfJ9MoIu4x95Ukd0pCwxzXAfFqC4nTRINivJ2OuN2QKdqDgtATG2VrCRM+teVg==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@fedify/webfinger/-/webfinger-2.0.7.tgz", + "integrity": "sha512-JNSBGQHekvvGNWbIRaI05WDNh4xO13SWa/WG6JMxaabQKnnerXVyy1M36zKbEEaXASvANk3qGkXLPZCae3dJmg==", "funding": [ "https://opencollective.com/fedify", "https://github.com/sponsors/dahlia" ], "license": "MIT", "dependencies": { - "@fedify/vocab-runtime": "2.0.3", + "@fedify/vocab-runtime": "2.0.7", "@logtape/logtape": "^2.0.0", "@opentelemetry/api": "^1.9.0", "es-toolkit": "1.43.0" @@ -937,13 +926,10 @@ } }, "node_modules/@gar/promise-retry": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.2.tgz", - "integrity": "sha512-Lm/ZLhDZcBECta3TmCQSngiQykFdfw+QtI1/GYMsZd4l3nG+P8WLB16XuS7WaBGLQ+9E+cOcWQsth9cayuGt8g==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.3.tgz", + "integrity": "sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA==", "license": "MIT", - "dependencies": { - "retry": "^0.13.1" - }, "engines": { "node": "^20.17.0 || >=22.9.0" } @@ -1040,6 +1026,9 @@ "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1056,6 +1045,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1072,6 +1064,9 @@ "cpu": [ "ppc64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1088,6 +1083,9 @@ "cpu": [ "riscv64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1104,6 +1102,9 @@ "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1120,6 +1121,9 @@ "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1136,6 +1140,9 @@ "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1152,6 +1159,9 @@ "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1168,6 +1178,9 @@ "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1190,6 +1203,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1212,6 +1228,9 @@ "cpu": [ "ppc64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1234,6 +1253,9 @@ "cpu": [ "riscv64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1256,6 +1278,9 @@ "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1278,6 +1303,9 @@ "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1300,6 +1328,9 @@ "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1322,6 +1353,9 @@ "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -1415,12 +1449,12 @@ }, "node_modules/@indiekit/endpoint-auth": { "name": "@rmdes/indiekit-endpoint-auth", - "version": "1.0.0-beta.29", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-auth/-/indiekit-endpoint-auth-1.0.0-beta.29.tgz", - "integrity": "sha512-NeFqwuYWhkKxvStaDnQQNTAoTl4c4aS7uzrIuos/b2lSA7rJLmGanhzVWzZ2Pr9jH6L4CSI3rPhY5BOhEwbSOQ==", + "version": "1.0.0-beta.30", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-auth/-/indiekit-endpoint-auth-1.0.0-beta.30.tgz", + "integrity": "sha512-uP5LdoDxU6qwoPuuPAqfO0S3M6JJDFC0V+OYJOkuMNp7Xo8GeITfXnHRjNOGAzgaWk/WAXDzK2uOEcwxis/vgw==", "license": "MIT", "dependencies": { - "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/error": "^1.0.0-beta.27", "@indiekit/util": "^1.0.0-beta.25", "bcrypt": "^6.0.0", "express": "^5.0.0", @@ -1434,12 +1468,12 @@ }, "node_modules/@indiekit/endpoint-files": { "name": "@rmdes/indiekit-endpoint-files", - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-files/-/indiekit-endpoint-files-1.0.0.tgz", - "integrity": "sha512-RAKg+ZSxEHEwCgtyRlLelsNe6TqHtpDUi/wx7qEpiFQ2OeHyJvQ2uQcVRLra9hiD8OsFFF6syUs42dX0C8Slkg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-files/-/indiekit-endpoint-files-1.0.2.tgz", + "integrity": "sha512-m6l7HDyM9WPBDG1OsP8aGNShjyOv3ipaXPMJZjM2XZbLz91UHwV9NCwlzjaxJhMnDC+9ZLfkA0b9kagdm8uhZQ==", "license": "MIT", "dependencies": { - "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/error": "^1.0.0-beta.27", "express": "^5.0.0", "express-validator": "^7.0.0" }, @@ -1515,9 +1549,9 @@ }, "node_modules/@indiekit/endpoint-posts": { "name": "@rmdes/indiekit-endpoint-posts", - "version": "1.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-posts/-/indiekit-endpoint-posts-1.0.0-beta.44.tgz", - "integrity": "sha512-xGvsmqIOiQU0tpocDmNJw0CRvdj98zOVzpX+qzpPHBcYXSUZmbhRHd9/OaOD4dOWsmNT4dHYhmJ0OjTdUMTtUw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-posts/-/indiekit-endpoint-posts-1.0.0.tgz", + "integrity": "sha512-AHJgiG3pRpMZNZD+hF3QuwBbVoJecHL+9bWl6o8zpdVw0WtW0U+pnP0ArgcuGqiuJIYlI9z8oFeOp5Csy0WOfw==", "license": "MIT", "dependencies": { "@indiekit/endpoint-micropub": "^1.0.0-beta.27", @@ -1535,12 +1569,12 @@ }, "node_modules/@indiekit/endpoint-share": { "name": "@rmdes/indiekit-endpoint-share", - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-share/-/indiekit-endpoint-share-1.0.2.tgz", - "integrity": "sha512-rIjdvto0k97zEwDxExsXBCkusbSP/Dbn9CEHYh2675XWFZuzCdZtq+oO9SrMui5dLVl4MuGIxfGnhinCgE+n0A==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-share/-/indiekit-endpoint-share-1.0.3.tgz", + "integrity": "sha512-xAB8U2rLAK8RHhp8rgmqeJGrUKjLBdtcvvhV4QbF7H6zfZIvy9zA7k+sU0oGRqkCGAvhqIMkD2ZaUpepGLMm/A==", "license": "MIT", "dependencies": { - "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/error": "^1.0.0-beta.27", "express": "^5.0.0", "express-validator": "^7.0.0" }, @@ -1577,13 +1611,13 @@ }, "node_modules/@indiekit/frontend": { "name": "@rmdes/indiekit-frontend", - "version": "1.0.0-beta.38", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-frontend/-/indiekit-frontend-1.0.0-beta.38.tgz", - "integrity": "sha512-rgk9412YbomBYsp2a1l3vs9Mvbn2ZPMSlG+mpEQJJixYeq+Zeec9eftsYqiGfF4KiMoJWQu9QFg2rqj3uv0V+A==", + "version": "1.0.0-beta.39", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-frontend/-/indiekit-frontend-1.0.0-beta.39.tgz", + "integrity": "sha512-ObqgNIsVzNn1Hg2TzSwe5Amt4cHbMpmDyhfyUmGPYf6w2vhMQ/MnDQa+oLZXozIenpOKHXO0XyUFzlyxq4kS7w==", "license": "MIT", "dependencies": { "@accessible-components/tag-input": "^0.2.0", - "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/error": "^1.0.0-beta.27", "@indiekit/util": "^1.0.0-beta.25", "color": "^5.0.0", "easymde": "^2.18.0", @@ -1918,9 +1952,9 @@ } }, "node_modules/@npmcli/agent/node_modules/lru-cache": { - "version": "11.2.6", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", - "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "version": "11.2.7", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz", + "integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==", "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" @@ -1938,6 +1972,15 @@ "node": "^20.17.0 || >=22.9.0" } }, + "node_modules/@npmcli/redact": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-4.0.0.tgz", + "integrity": "sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, "node_modules/@opentelemetry/api": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", @@ -2138,6 +2181,9 @@ "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -2158,6 +2204,9 @@ "cpu": [ "arm" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -2178,6 +2227,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -2198,6 +2250,9 @@ "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -2218,6 +2273,9 @@ "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -2238,6 +2296,9 @@ "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -2398,7 +2459,7 @@ }, "node_modules/@rmdes/indiekit-endpoint-blogroll": { "version": "1.0.23", - "resolved": "git+ssh://git@github.com/svemagie/indiekit-endpoint-blogroll.git#381b0397a55f75747af28c7221af31af3cc32c3f", + "resolved": "git+ssh://git@github.com/svemagie/indiekit-endpoint-blogroll.git#f5a62b966d1881df58014505b410547a38b3a5fb", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2416,9 +2477,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-comments": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-comments/-/indiekit-endpoint-comments-1.0.11.tgz", - "integrity": "sha512-qUy0wr4Vc6pSnQmSLsBacm/MO3qZL02Ezg1uQiz9uM2fIUEx1dxv/G3i864ZyaCf7oW2pSOoUNtpyI3YybG+PQ==", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-comments/-/indiekit-endpoint-comments-1.0.13.tgz", + "integrity": "sha512-TvWKSMsx4oRLnboQpHFzrwIif+mjKxr/2xEnQwFdnpMKiq8ED/8Hwu0UJiBu7GjSqL2EHS3J5LDbEu+5FT0twA==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2430,9 +2491,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-conversations": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-conversations/-/indiekit-endpoint-conversations-2.2.0.tgz", - "integrity": "sha512-o5ZiKMjcqAB1TDIvdzxPBH8Pai0vTEefyKJWhNEGt0da3ooZ9fkAuBg10vFyhMYFIVRLjRxkzKZKvrhb2e6MhQ==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-conversations/-/indiekit-endpoint-conversations-2.3.1.tgz", + "integrity": "sha512-/9wpbL/WcSNtJ6YVIk+2nzcgY2XVMdUA+BqYLEQIG13V4W1d80ujqEOXbZhV+bVqENGYwZtfHLx8EA9lXTNhxA==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2443,9 +2504,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-cv": { - "version": "1.0.24", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-cv/-/indiekit-endpoint-cv-1.0.24.tgz", - "integrity": "sha512-S6af420v6FYZspTMVr4yU6pjiyY+TszlcktMn3/Wpj4xW7vlFqGR/LC4RKhH0zRHI2A5koMVXVfl30bu1/POPw==", + "version": "1.0.25", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-cv/-/indiekit-endpoint-cv-1.0.25.tgz", + "integrity": "sha512-cg/JtTQRE/g/ce7svGvfvhBo3br+TvBxw4f/sUcIWAIGw1me12ldk5RBxq4OCwjN7W6LRkXYlAIphhdD8+lKvQ==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2460,9 +2521,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-funkwhale": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-funkwhale/-/indiekit-endpoint-funkwhale-1.0.11.tgz", - "integrity": "sha512-AbPobqh5P/2SG8l+fJ4IGJmelGr0u0lfNsNHOxkOfhEckC5iIELssj/1e/E+eW42y58StpzsdQ+xqPIT5ur9PA==", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-funkwhale/-/indiekit-endpoint-funkwhale-1.0.12.tgz", + "integrity": "sha512-B/dnnIRljD54mVN8CCBpcsNC02U2i/DtM+0O6V2YizTkWVV8kFG/JzQYGedV3EDDpFckCrSq+KAi5OcQGfbdLg==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2476,9 +2537,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-github": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-github/-/indiekit-endpoint-github-1.2.3.tgz", - "integrity": "sha512-HTKEcwvR21u/LOJD5e3iEbeAnm3OLkxok8TG3/32DxdVdTtN4MBOgtZP58bM7IAvIBIobEVyyp0Rpyn7EG0odQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-github/-/indiekit-endpoint-github-1.2.5.tgz", + "integrity": "sha512-LxACv/uMUQHEFItW4JqlgjqEUCeW9FnVYfVTesPbPTu0d7SwM0eh0q3XzvgsGhDc6luCwbJYaxa6wbkbfI/Mbw==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2492,9 +2553,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-homepage": { - "version": "1.0.22", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-homepage/-/indiekit-endpoint-homepage-1.0.22.tgz", - "integrity": "sha512-lvOJOL/OK7VfibutCaHosP8Sk3kPChavHuo4ufYmigsxSI62lHsAUZbkpKrdEY6qbxJv0dr/b9Yax6Hw1jZqIA==", + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-homepage/-/indiekit-endpoint-homepage-1.0.23.tgz", + "integrity": "sha512-J9wpfnLIuJ74fUV212cM11RexDrQPMRPxDfbC9C6nWWy1hZTuzSqKoEOstykuALZvRlC7xHwPfyLBf842oROlg==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2525,8 +2586,8 @@ } }, "node_modules/@rmdes/indiekit-endpoint-microsub": { - "version": "1.0.45", - "resolved": "git+ssh://git@github.com/svemagie/indiekit-endpoint-microsub.git#1bb80588fdd154e9c74628d69aa3118ff9620422", + "version": "1.0.49", + "resolved": "git+ssh://git@github.com/svemagie/indiekit-endpoint-microsub.git#f3e8648fedfc3fa6a66a5d24c4635ab96bbc414d", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2546,9 +2607,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-podroll": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-podroll/-/indiekit-endpoint-podroll-1.0.11.tgz", - "integrity": "sha512-ShCVRfeGntKhXUtCDOIKbAAWBHM+ssj+QVCCGNq7rFL5tSdFEKFtwVCIYS/nvrQztzN1tCxT5AjjGGrXc9Xz9g==", + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-podroll/-/indiekit-endpoint-podroll-1.0.13.tgz", + "integrity": "sha512-FyQyhCPRnjpCh5xu+sWocrO8NuuJ5NNmWyIhdrpQWlM49QX6mDfSXCoAFmfrETSnPZa+WQ0EsDFk9BTra4B/2A==", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2564,9 +2625,9 @@ } }, "node_modules/@rmdes/indiekit-endpoint-posts": { - "version": "1.0.0-beta.44", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-posts/-/indiekit-endpoint-posts-1.0.0-beta.44.tgz", - "integrity": "sha512-xGvsmqIOiQU0tpocDmNJw0CRvdj98zOVzpX+qzpPHBcYXSUZmbhRHd9/OaOD4dOWsmNT4dHYhmJ0OjTdUMTtUw==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-posts/-/indiekit-endpoint-posts-1.0.0.tgz", + "integrity": "sha512-AHJgiG3pRpMZNZD+hF3QuwBbVoJecHL+9bWl6o8zpdVw0WtW0U+pnP0ArgcuGqiuJIYlI9z8oFeOp5Csy0WOfw==", "license": "MIT", "dependencies": { "@indiekit/endpoint-micropub": "^1.0.0-beta.27", @@ -2583,8 +2644,8 @@ } }, "node_modules/@rmdes/indiekit-endpoint-readlater": { - "version": "1.0.5", - "resolved": "git+ssh://git@github.com/rmdes/indiekit-endpoint-readlater.git#ee09c683a3c1ff91357cfd0b17d4151299583290", + "version": "1.0.6", + "resolved": "git+ssh://git@github.com/rmdes/indiekit-endpoint-readlater.git#2d1493c14cbb0e0a437ddc2b98ab03cab57d6342", "license": "MIT", "dependencies": { "@indiekit/error": "^1.0.0-beta.25", @@ -2705,18 +2766,18 @@ } }, "node_modules/@rmdes/indiekit-syndicator-bluesky": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/@rmdes/indiekit-syndicator-bluesky/-/indiekit-syndicator-bluesky-1.0.19.tgz", - "integrity": "sha512-+vbiA+B20TJqQumd+591Xb1lip1LbuE1jXwcjx2bQ6ZrZcgd8jeFIbeZ3IRkQ0Yg6ru7gYsYV+byTbmusu3eIQ==", + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-syndicator-bluesky/-/indiekit-syndicator-bluesky-1.0.20.tgz", + "integrity": "sha512-YlNDgVK1GamUAe40nUPxfdpeBibuUZrAL5fN0v2n4jtoWUrlpJnIfdRdDDG2B7O4DFPNSs4PtBJ6wY5Y+xhpjg==", "license": "MIT", "dependencies": { - "@atproto/api": "^0.14.0", + "@atproto/api": "^0.19.3", "html-to-text": "^9.0.0", "jsdom": "^24.0.0", "sharp": "^0.33.0" }, "peerDependencies": { - "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/error": "^1.0.0-beta.27", "@indiekit/indiekit": "1.x", "@indiekit/util": "^1.0.0-beta.25" } @@ -2804,6 +2865,9 @@ "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2820,6 +2884,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2836,6 +2903,9 @@ "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2852,6 +2922,9 @@ "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2868,6 +2941,9 @@ "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2884,6 +2960,9 @@ "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2900,6 +2979,9 @@ "cpu": [ "arm" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2922,6 +3004,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2944,6 +3029,9 @@ "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2966,6 +3054,9 @@ "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2988,6 +3079,9 @@ "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -3010,6 +3104,9 @@ "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ @@ -3548,9 +3645,9 @@ } }, "node_modules/cacache": { - "version": "20.0.3", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-20.0.3.tgz", - "integrity": "sha512-3pUp4e8hv07k1QlijZu6Kn7c9+ZpWWk4j3F8N3xPuCExULobqJydKYOTj1FTq58srkJsXvO7LbGAH4C0ZU3WGw==", + "version": "20.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-20.0.4.tgz", + "integrity": "sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA==", "license": "ISC", "dependencies": { "@npmcli/fs": "^5.0.0", @@ -3562,17 +3659,16 @@ "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", "p-map": "^7.0.2", - "ssri": "^13.0.0", - "unique-filename": "^5.0.0" + "ssri": "^13.0.0" }, "engines": { "node": "^20.17.0 || >=22.9.0" } }, "node_modules/cacache/node_modules/lru-cache": { - "version": "11.2.6", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", - "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "version": "11.2.7", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz", + "integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==", "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" @@ -3655,6 +3751,12 @@ "canonicalize": "bin/canonicalize.js" } }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "license": "MIT" + }, "node_modules/cheerio": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz", @@ -4739,9 +4841,9 @@ } }, "node_modules/feedparser": { - "version": "2.2.10", - "resolved": "https://registry.npmjs.org/feedparser/-/feedparser-2.2.10.tgz", - "integrity": "sha512-WoAOooa61V8/xuKMi2pEtK86qQ3ZH/M72EEGdqlOTxxb3m6ve1NPvZcmPFs3wEDfcBbFLId2GqZ4YjsYi+h1xA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/feedparser/-/feedparser-2.3.0.tgz", + "integrity": "sha512-vLmlMV/7pLWpsPmzfvmtYxo+kmkQgjCZPDmB/H+0eMXG29NNssvlxSbpLzJ0LHRyLsGW8ewFOpfRInHjMUgX1g==", "license": "MIT", "dependencies": { "addressparser": "^1.0.1", @@ -4752,7 +4854,7 @@ "lodash.uniq": "^4.5.0", "mri": "^1.1.5", "readable-stream": "^2.3.7", - "sax": "^1.2.4" + "sax": ">=1.2.4 <1.4.4" }, "bin": { "feedparser": "bin/feedparser.js" @@ -4785,9 +4887,9 @@ } }, "node_modules/file-type": { - "version": "21.3.2", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.2.tgz", - "integrity": "sha512-DLkUvGwep3poOV2wpzbHCOnSKGk1LzyXTv+aHFgN2VFl96wnp8YA9YjO2qPzg5PuL8q/SW9Pdi6WTkYOIh995w==", + "version": "21.3.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.4.tgz", + "integrity": "sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==", "license": "MIT", "dependencies": { "@tokenizer/inflate": "^0.4.1", @@ -5008,9 +5110,9 @@ "license": "ISC" }, "node_modules/h3": { - "version": "1.15.6", - "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.6.tgz", - "integrity": "sha512-oi15ESLW5LRthZ+qPCi5GNasY/gvynSKUQxgiovrY63bPAtG59wtM+LSrlcwvOHAXzGrXVLnI97brbkdPF9WoQ==", + "version": "1.15.10", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.10.tgz", + "integrity": "sha512-YzJeWSkDZxAhvmp8dexjRK5hxziRO7I9m0N53WhvYL5NiWfkUkzssVzY9jvGu0HBoLFW6+duYmNSn6MaZBCCtg==", "license": "MIT", "dependencies": { "cookie-es": "^1.2.2", @@ -5073,9 +5175,9 @@ } }, "node_modules/hono": { - "version": "4.12.7", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.7.tgz", - "integrity": "sha512-jq9l1DM0zVIvsm3lv9Nw9nlJnMNPOcAtsbsgiUhWcFzPE99Gvo6yRTlszSLLYacMeQ6quHD6hMfId8crVHvexw==", + "version": "4.12.8", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.8.tgz", + "integrity": "sha512-VJCEvtrezO1IAR+kqEYnxUOoStaQPGrCmX3j4wDTNOcD1uRPFpGlwQUIW8niPuvHXaTUxeOUl5MMDGrl+tmO9A==", "license": "MIT", "engines": { "node": ">=16.9.0" @@ -5292,15 +5394,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -5308,9 +5401,9 @@ "license": "ISC" }, "node_modules/ioredis": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.10.0.tgz", - "integrity": "sha512-HVBe9OFuqs+Z6n64q09PQvP1/R4Bm+30PAyyD4wIEqssh3v9L21QjCVk4kRLucMBcDokJTcLjsGeVRlq/nH6DA==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.10.1.tgz", + "integrity": "sha512-HuEDBTI70aYdx1v6U97SbNx9F1+svQKBDo30o0b9fw055LMepzpOOd0Ccg9Q6tbqmBSJaMuY0fB7yw9/vjBYCA==", "license": "MIT", "dependencies": { "@ioredis/commands": "1.5.1", @@ -6163,13 +6256,14 @@ } }, "node_modules/make-fetch-happen": { - "version": "15.0.4", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-15.0.4.tgz", - "integrity": "sha512-vM2sG+wbVeVGYcCm16mM3d5fuem9oC28n436HjsGO3LcxoTI8LNVa4rwZDn3f76+cWyT4GGJDxjTYU1I2nr6zw==", + "version": "15.0.5", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-15.0.5.tgz", + "integrity": "sha512-uCbIa8jWWmQZt4dSnEStkVC6gdakiinAm4PiGsywIkguF0eWMdcjDz0ECYhUolFU3pFLOev9VNPCEygydXnddg==", "license": "ISC", "dependencies": { "@gar/promise-retry": "^1.0.0", "@npmcli/agent": "^4.0.0", + "@npmcli/redact": "^4.0.0", "cacache": "^20.0.1", "http-cache-semantics": "^4.1.1", "minipass": "^7.0.2", @@ -6552,9 +6646,9 @@ } }, "node_modules/mlly": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.1.tgz", - "integrity": "sha512-SnL6sNutTwRWWR/vcmCYHSADjiEesp5TGQQ0pXyLhW5IoeibRlF/CbSLailbB3CNqJUk9cVJ9dUDnbD7GrcHBQ==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", "license": "MIT", "dependencies": { "acorn": "^8.16.0", @@ -6643,17 +6737,6 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, - "node_modules/multicodec": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-3.2.1.tgz", - "integrity": "sha512-+expTPftro8VAW8kfvcuNNNBgb9gPeNYV9dn+z1kJRWF2vih+/S79f2RVeIwmrJBUJ6NT9IUPWnZDQvegEh5pw==", - "deprecated": "This module has been superseded by the multiformats module", - "license": "MIT", - "dependencies": { - "uint8arrays": "^3.0.0", - "varint": "^6.0.0" - } - }, "node_modules/multiformats": { "version": "9.9.0", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz", @@ -7144,9 +7227,9 @@ } }, "node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.2.6", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", - "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "version": "11.2.7", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz", + "integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==", "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" @@ -7207,9 +7290,9 @@ } }, "node_modules/pkijs": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.3.3.tgz", - "integrity": "sha512-+KD8hJtqQMYoTuL1bbGOqxb4z+nZkTAwVdNtWwe8Tc2xNbEmdJYIYoc6Qt0uF55e6YW6KuTHw1DjQ18gMhzepw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.0.tgz", + "integrity": "sha512-emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==", "license": "BSD-3-Clause", "dependencies": { "@noble/hashes": "1.4.0", @@ -7512,15 +7595,6 @@ "node": ">=4" } }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, "node_modules/router": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", @@ -7608,19 +7682,31 @@ "license": "MIT" }, "node_modules/sanitize-html": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.17.1.tgz", - "integrity": "sha512-ehFCW+q1a4CSOWRAdX97BX/6/PDEkCqw7/0JXZAGQV57FQB3YOkTa/rrzHPeJ+Aghy4vZAFfWMYyfxIiB7F/gw==", + "version": "2.17.2", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.17.2.tgz", + "integrity": "sha512-EnffJUl46VE9uvZ0XeWzObHLurClLlT12gsOk1cHyP2Ol1P0BnBnsXmShlBmWVJM+dKieQI68R0tsPY5m/B+Jg==", "license": "MIT", "dependencies": { "deepmerge": "^4.2.2", "escape-string-regexp": "^4.0.0", - "htmlparser2": "^8.0.0", + "htmlparser2": "^10.1.0", "is-plain-object": "^5.0.0", "parse-srcset": "^1.0.2", "postcss": "^8.3.11" } }, + "node_modules/sanitize-html/node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/sanitize-html/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -7634,9 +7720,9 @@ } }, "node_modules/sanitize-html/node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz", + "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -7648,18 +7734,15 @@ "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.2.2", + "entities": "^7.0.1" } }, "node_modules/sax": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.5.0.tgz", - "integrity": "sha512-21IYA3Q5cQf089Z6tgaUTr7lDAyzoTPx5HRtbhsME8Udispad8dC/+sziTNugOEx54ilvatQ9YCzl4KQLPcRHA==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=11.0.0" - } + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.3.tgz", + "integrity": "sha512-yqYn1JhPczigF94DMS+shiDMjDowYO6y9+wB/4WgO0Y19jWYk0lQ4tuG5KI7kj4FTp1wxPj5IFfcrz/s1c3jjQ==", + "license": "BlueOak-1.0.0" }, "node_modules/saxes": { "version": "6.0.0", @@ -7942,12 +8025,6 @@ "node": ">=22" } }, - "node_modules/snakecase-keys/node_modules/change-case": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", - "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", - "license": "MIT" - }, "node_modules/snakecase-keys/node_modules/map-obj": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-5.0.2.tgz", @@ -8087,9 +8164,9 @@ } }, "node_modules/strtok3": { - "version": "10.3.4", - "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.4.tgz", - "integrity": "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==", + "version": "10.3.5", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.5.tgz", + "integrity": "sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==", "license": "MIT", "dependencies": { "@tokenizer/token": "^0.3.0" @@ -8142,6 +8219,15 @@ "node": ">=16" } }, + "node_modules/svgo/node_modules/sax": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", + "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -8173,9 +8259,9 @@ } }, "node_modules/tar": { - "version": "7.5.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.11.tgz", - "integrity": "sha512-ChjMH33/KetonMTAtpYdgUFr0tbz69Fp2v7zWxQfYZX4g5ZN2nOBXm1R2xyA+lMIKrLKIoKAwFj93jE/avX9cQ==", + "version": "7.5.12", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.12.tgz", + "integrity": "sha512-9TsuLcdhOn4XztcQqhNyq1KOwOOED/3k58JAvtULiYqbO8B/0IBAAIE1hj0Svmm58k27TmcigyDI0deMlgG3uw==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", @@ -8292,9 +8378,9 @@ } }, "node_modules/type-fest": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.4.4.tgz", - "integrity": "sha512-JnTrzGu+zPV3aXIUhnyWJj4z/wigMsdYajGLIYakqyOW1nPllzXEJee0QQbHj+CTIQtXGlAjuK0UY+2xTyjVAw==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.5.0.tgz", + "integrity": "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g==", "license": "(MIT OR CC0-1.0)", "dependencies": { "tagged-tag": "^1.0.0" @@ -8366,9 +8452,9 @@ "license": "MIT" }, "node_modules/undici": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.2.tgz", - "integrity": "sha512-P9J1HWYV/ajFr8uCqk5QixwiRKmB1wOamgS0e+o2Z4A44Ej2+thFVRLG/eA7qprx88XXhnV5Bl8LHXTURpzB3Q==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.5.tgz", + "integrity": "sha512-3IWdCpjgxp15CbJnsi/Y9TCDE7HWVN19j1hmzVhoAkY/+CJx449tVxT5wZc1Gwg8J+P0LWvzlBzxYRnHJ+1i7Q==", "license": "MIT", "engines": { "node": ">=20.18.1" @@ -8478,30 +8564,6 @@ "integrity": "sha512-jHGmj2LUuqDcX3hqY12Ql+uhUTn8huuxNZGq7GvtF6bSybzH3aFgedYu/KTzQStEgt1Ra2F3HxadNXsNjb3m3g==", "license": "MIT" }, - "node_modules/unique-filename": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-5.0.0.tgz", - "integrity": "sha512-2RaJTAvAb4owyjllTfXzFClJ7WsGxlykkPvCr9pA//LD9goVq+m4PPAeBgNodGZ7nSrntT/auWpJ6Y5IFXcfjg==", - "license": "ISC", - "dependencies": { - "unique-slug": "^6.0.0" - }, - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/unique-slug": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-6.0.0.tgz", - "integrity": "sha512-4Lup7Ezn8W3d52/xBhZBVdx323ckxa7DEvd9kPQHppTkLoJXw6ltrBCyj5pnrxj0qKDxYMJ56CoxNuFCscdTiw==", - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, "node_modules/universalify": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", @@ -8617,9 +8679,9 @@ } }, "node_modules/unstorage/node_modules/lru-cache": { - "version": "11.2.6", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", - "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "version": "11.2.7", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz", + "integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==", "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" @@ -8709,12 +8771,6 @@ "node": ">= 0.10" } }, - "node_modules/varint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", - "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==", - "license": "MIT" - }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -8811,9 +8867,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz", - "integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==", + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz", + "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -8900,9 +8956,9 @@ } }, "node_modules/yaml": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", - "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz", + "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==", "license": "ISC", "bin": { "yaml": "bin.mjs" diff --git a/scripts/patch-ap-remove-federation-diag.mjs b/scripts/patch-ap-remove-federation-diag.mjs index 0d4b82f0..3b21fcb0 100644 --- a/scripts/patch-ap-remove-federation-diag.mjs +++ b/scripts/patch-ap-remove-federation-diag.mjs @@ -14,7 +14,8 @@ const candidates = [ const MARKER = "// ap-remove-federation-diag patch"; -const OLD_SNIPPET = ` // Diagnostic: log inbox POSTs to detect federation stalls +// Matches the original form (diag block immediately before the return) +const OLD_SNIPPET_V1 = ` // Diagnostic: log inbox POSTs to detect federation stalls if (req.method === "POST" && req.path.includes("inbox")) { const ua = req.get("user-agent") || "unknown"; const bodyParsed = req.body !== undefined && Object.keys(req.body || {}).length > 0; @@ -23,9 +24,23 @@ const OLD_SNIPPET = ` // Diagnostic: log inbox POSTs to detect federation s return self._fedifyMiddleware(req, res, next);`; -const NEW_SNIPPET = ` // ap-remove-federation-diag patch +const NEW_SNIPPET_V1 = ` // ap-remove-federation-diag patch return self._fedifyMiddleware(req, res, next);`; +// Matches the updated form (diag block followed by Accept-upgrade block before the return) +const OLD_SNIPPET_V2 = ` // Diagnostic: log inbox POSTs to detect federation stalls + if (req.method === "POST" && req.path.includes("inbox")) { + const ua = req.get("user-agent") || "unknown"; + const bodyParsed = req.body !== undefined && Object.keys(req.body || {}).length > 0; + console.info(\`[federation-diag] POST \${req.path} from=\${ua.slice(0, 60)} bodyParsed=\${bodyParsed} readable=\${req.readable}\`); + } + + // Fedify's`; + +const NEW_SNIPPET_V2 = ` // ap-remove-federation-diag patch + + // Fedify's`; + async function exists(filePath) { try { await access(filePath); @@ -50,12 +65,19 @@ for (const filePath of candidates) { continue; // already patched } - if (!source.includes(OLD_SNIPPET)) { + let matched = false; + if (source.includes(OLD_SNIPPET_V1)) { + source = source.replace(OLD_SNIPPET_V1, NEW_SNIPPET_V1); + matched = true; + } else if (source.includes(OLD_SNIPPET_V2)) { + source = source.replace(OLD_SNIPPET_V2, NEW_SNIPPET_V2); + matched = true; + } + + if (!matched) { console.log(`[postinstall] patch-ap-remove-federation-diag: snippet not found in ${filePath}`); continue; } - - source = source.replace(OLD_SNIPPET, NEW_SNIPPET); await writeFile(filePath, source, "utf8"); patched += 1; console.log(`[postinstall] Applied patch-ap-remove-federation-diag to ${filePath}`);