nexus-agents 14.0.0 → 14.0.2
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/dist/{ast-rule-runner-3PYXOOLH.js → ast-rule-runner-2PEUHSHO.js} +5 -5
- package/dist/{child-mcp-config-AKQYBMMC.js → child-mcp-config-AYVMLJDV.js} +4 -4
- package/dist/{chunk-YKCJJP5X.js → chunk-236T3AOZ.js} +4 -4
- package/dist/{chunk-GCD3OFFM.js → chunk-5QNWRC7B.js} +2 -2
- package/dist/{chunk-LD6QCSHT.js → chunk-B5RDZLU3.js} +4 -4
- package/dist/{chunk-UZZHLCYW.js → chunk-CZSEUZFE.js} +2 -2
- package/dist/{chunk-6FBREJER.js → chunk-DCPN7F5J.js} +2 -2
- package/dist/{chunk-XRMP4PP4.js → chunk-DXDKAVWV.js} +5 -5
- package/dist/{chunk-K5MAYIHL.js → chunk-FEAWCZ7E.js} +2 -2
- package/dist/{chunk-FLIBWADL.js → chunk-GDCIDLUF.js} +36 -25
- package/dist/chunk-GDCIDLUF.js.map +1 -0
- package/dist/{chunk-CUPOUBBN.js → chunk-GPZQVYKV.js} +2 -2
- package/dist/{chunk-IBGLJEW7.js → chunk-GR4BMQAS.js} +9 -7
- package/dist/chunk-GR4BMQAS.js.map +1 -0
- package/dist/{chunk-MB2UUFF7.js → chunk-H6SGSQJM.js} +2 -2
- package/dist/{chunk-KVFNI2UZ.js → chunk-HJJRUYNR.js} +7 -6
- package/dist/chunk-HJJRUYNR.js.map +1 -0
- package/dist/{chunk-AJBRMUGK.js → chunk-IZSJWIHK.js} +40 -9
- package/dist/chunk-IZSJWIHK.js.map +1 -0
- package/dist/{chunk-K6CUB3IV.js → chunk-JV3UBRRA.js} +2 -2
- package/dist/{chunk-6EUYMTVU.js → chunk-KXWLZDQR.js} +5 -5
- package/dist/{chunk-CQ6FAAOO.js → chunk-LBVPKHHU.js} +3 -3
- package/dist/{chunk-EFE6ORME.js → chunk-LC34UPDQ.js} +2 -2
- package/dist/{chunk-NA55VLER.js → chunk-LE6TQVXF.js} +2 -2
- package/dist/{chunk-KZ5R5HL7.js → chunk-MFUJU7RO.js} +3 -3
- package/dist/{chunk-7S6ANELD.js → chunk-MQSSTTZU.js} +4 -4
- package/dist/{chunk-CP73UYNV.js → chunk-OQR2C64M.js} +5 -5
- package/dist/{chunk-UBCGX47E.js → chunk-P3CFDAW5.js} +2 -2
- package/dist/{chunk-G2MC6WXA.js → chunk-PG6NTUTS.js} +8 -8
- package/dist/{chunk-HQMIDROO.js → chunk-PQ3V2SYP.js} +2 -2
- package/dist/{chunk-36B7J7CZ.js → chunk-Q6R3JTXH.js} +3 -3
- package/dist/{chunk-PI54VS4I.js → chunk-SNSV6GGV.js} +10 -10
- package/dist/{chunk-BSGMAUA4.js → chunk-SQPFJLCI.js} +3 -3
- package/dist/{chunk-7VMEUGNV.js → chunk-TV6RX3ZL.js} +4 -4
- package/dist/{chunk-7BKOWPKX.js → chunk-TYIIAIXA.js} +7 -7
- package/dist/{chunk-2A4P2DX3.js → chunk-VH4T4O5L.js} +2 -2
- package/dist/{chunk-ABTRD52Y.js → chunk-WWBYNWYB.js} +4 -4
- package/dist/{chunk-BELY4VU4.js → chunk-YE3T4X2U.js} +4 -4
- package/dist/{chunk-XU6N5OKA.js → chunk-YSEMHACQ.js} +36 -37
- package/dist/{chunk-XU6N5OKA.js.map → chunk-YSEMHACQ.js.map} +1 -1
- package/dist/{cli-circuit-breaker-37UQWOAA.js → cli-circuit-breaker-HWMTEEYI.js} +5 -5
- package/dist/{cli-readiness-RSBS6FN3.js → cli-readiness-6C6E2T2O.js} +9 -9
- package/dist/{cli-server-gateway-C5QPDUWS.js → cli-server-gateway-HHRF22EB.js} +14 -14
- package/dist/cli.js +505 -409
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-WERJYE7X.js → composite-router-CX2W7RVA.js} +4 -4
- package/dist/{consensus-vote-G2MKNTMW.js → consensus-vote-CQGIWMYY.js} +17 -17
- package/dist/{context-retriever-H34LHPWB.js → context-retriever-G4LMWEN5.js} +10 -10
- package/dist/{doctor-deep-XBUWYYXO.js → doctor-deep-VOX7KVGK.js} +5 -5
- package/dist/{doctor-gateway-report-JRENPRNM.js → doctor-gateway-report-GMYX62JU.js} +7 -7
- package/dist/{doctor-live-CFUUN5K4.js → doctor-live-AES3PON5.js} +14 -14
- package/dist/{expert-bridge-FPFMGB3W.js → expert-bridge-WEZXYIGA.js} +6 -6
- package/dist/{factory-RQ5Q2TMY.js → factory-L2DIM3PM.js} +7 -7
- package/dist/{factory-HYRMAIGW.js → factory-L6CLXVPW.js} +13 -13
- package/dist/{gemini-adapter-EHQUG5QP.js → gemini-adapter-CL7YW7UZ.js} +8 -8
- package/dist/{improvement-review-SMUO5UVF.js → improvement-review-EBC3I55P.js} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -27
- package/dist/{init-opencode-56GNUSHL.js → init-opencode-F6FV63VR.js} +6 -6
- package/dist/{issue-triage-LPX3EU4I.js → issue-triage-3EJ5DSGG.js} +7 -7
- package/dist/{model-config-helpers-XBHRUWIC.js → model-config-helpers-27GO3OEU.js} +3 -3
- package/dist/{openai-compat-adapter-WEHE5LKH.js → openai-compat-adapter-JJD7VWZC.js} +6 -6
- package/dist/{pr-reviewer-helpers-XPT57QHF.js → pr-reviewer-helpers-KGGKESLT.js} +5 -5
- package/dist/{registry-command-D5TA6433.js → registry-command-SQQNXDGS.js} +2 -2
- package/dist/{repo-security-plan-OH7IPPQU.js → repo-security-plan-CIGD7QBY.js} +4 -4
- package/dist/{research-helpers-synthesize-UYICMMMM.js → research-helpers-synthesize-HAQSK2RL.js} +6 -6
- package/dist/{routing-memory-PKD2T674.js → routing-memory-AFHV5NDT.js} +4 -4
- package/dist/{session-memory-IRR7GLZT.js → session-memory-RBY5SHFK.js} +5 -5
- package/dist/{setup-config-N4OYZSCY.js → setup-config-47NNRD4E.js} +5 -5
- package/dist/{setup-custom-api-4VLHKKBF.js → setup-custom-api-H74QY7EM.js} +5 -5
- package/dist/{tool-memory-MSOEUVUX.js → tool-memory-QESESDGS.js} +7 -7
- package/dist/{unified-registry-W2DCYXUT.js → unified-registry-HWZRXFQ6.js} +13 -13
- package/dist/{weather-report-FANVIPXZ.js → weather-report-QZLXDT5L.js} +4 -4
- package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/{protobufjs/src/util/aspromise.d.ts → @protobufjs/aspromise/index.d.ts} +13 -13
- package/node_modules/{protobufjs/src/util/aspromise.js → @protobufjs/aspromise/index.js} +52 -52
- package/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/{protobufjs/src/util/base64.d.ts → @protobufjs/base64/index.d.ts} +32 -32
- package/node_modules/{protobufjs/src/util/base64.js → @protobufjs/base64/index.js} +139 -146
- package/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/{protobufjs/src/util/codegen.d.ts → @protobufjs/codegen/index.d.ts} +31 -31
- package/node_modules/{protobufjs/src/util/codegen.js → @protobufjs/codegen/index.js} +112 -120
- package/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/{protobufjs/src/util/eventemitter.d.ts → @protobufjs/eventemitter/index.d.ts} +45 -45
- package/node_modules/{protobufjs/src/util/eventemitter.js → @protobufjs/eventemitter/index.js} +86 -86
- package/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
- package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/{protobufjs/src/util/fetch.d.ts → @protobufjs/fetch/index.d.ts} +56 -56
- package/node_modules/{protobufjs/src/util/fetch.js → @protobufjs/fetch/index.js} +112 -112
- package/node_modules/@protobufjs/fetch/package.json +27 -0
- package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
- package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
- package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/{protobufjs/src/util/float.js → @protobufjs/float/index.js} +335 -335
- package/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/{protobufjs/src/util/path.d.ts → @protobufjs/path/index.d.ts} +22 -22
- package/node_modules/{protobufjs/src/util/path.js → @protobufjs/path/index.js} +65 -100
- package/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/{protobufjs/src/util/pool.d.ts → @protobufjs/pool/index.d.ts} +32 -32
- package/node_modules/{protobufjs/src/util/pool.js → @protobufjs/pool/index.js} +48 -48
- package/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/{protobufjs/src/util/utf8.d.ts → @protobufjs/utf8/index.d.ts} +24 -24
- package/node_modules/@protobufjs/utf8/index.js +115 -0
- package/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@protobufjs/utf8/tests/index.js +79 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +68 -0
- package/node_modules/@types/node/assert.d.ts +1077 -0
- package/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/node_modules/@types/node/buffer.d.ts +1800 -0
- package/node_modules/@types/node/child_process.d.ts +1361 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@types/node/crypto.d.ts +3964 -0
- package/node_modules/@types/node/dgram.d.ts +652 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
- package/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@types/node/ffi.d.ts +500 -0
- package/node_modules/@types/node/fs/promises.d.ts +1477 -0
- package/node_modules/@types/node/fs.d.ts +4803 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2218 -0
- package/node_modules/@types/node/http2.d.ts +2498 -0
- package/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@types/node/index.d.ts +116 -0
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +265 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@types/node/module.d.ts +726 -0
- package/node_modules/@types/node/net.d.ts +1074 -0
- package/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@types/node/package.json +140 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@types/node/perf_hooks.d.ts +617 -0
- package/node_modules/@types/node/process.d.ts +2269 -0
- package/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@types/node/quic.d.ts +2191 -0
- package/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@types/node/readline.d.ts +508 -0
- package/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@types/node/sqlite.d.ts +1140 -0
- package/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@types/node/stream/iter.d.ts +449 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +320 -0
- package/node_modules/@types/node/stream.d.ts +1806 -0
- package/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@types/node/test/reporters.d.ts +60 -0
- package/node_modules/@types/node/test.d.ts +2558 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@types/node/tls.d.ts +1232 -0
- package/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +226 -0
- package/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1680 -0
- package/node_modules/@types/node/v8.d.ts +1059 -0
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +1137 -0
- package/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +119 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +672 -0
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +612 -0
- package/node_modules/fast-uri/.github/dependabot.yml +2 -42
- package/node_modules/fast-uri/.github/workflows/ci.yml +6 -54
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +1 -1
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/.github/workflows/release.yml +2 -1
- package/node_modules/fast-uri/README.md +10 -12
- package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -71
- package/node_modules/fast-uri/index.js +20 -94
- package/node_modules/fast-uri/lib/schemes.js +4 -439
- package/node_modules/fast-uri/lib/utils.js +113 -230
- package/node_modules/fast-uri/package.json +5 -5
- package/node_modules/fast-uri/test/equal.test.js +0 -63
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +1 -23
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +1 -23
- package/node_modules/fast-uri/test/ipv6-validation.test.js +0 -160
- package/node_modules/fast-uri/test/parse.test.js +5 -150
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +4 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +5 -3
- package/node_modules/fast-uri/test/security.test.js +2 -2
- package/node_modules/fast-uri/test/serialize.test.js +0 -144
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +3 -0
- package/node_modules/fast-uri/test/uri-js.test.js +9 -11
- package/node_modules/fast-uri/test/urn-full-input.test.js +0 -18
- package/node_modules/fast-uri/test/util.test.js +0 -9
- package/node_modules/fast-uri/tsconfig.json +7 -8
- package/node_modules/fast-uri/types/index.d.ts +9 -20
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/hono/README.md +2 -3
- package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
- package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
- package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/cjs/utils/url.js +11 -6
- package/node_modules/hono/dist/helper/css/common.js +8 -3
- package/node_modules/hono/dist/helper/css/index.js +1 -1
- package/node_modules/hono/dist/helper/route/index.js +3 -1
- package/node_modules/hono/dist/jsx/base.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
- package/node_modules/hono/dist/types/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
- package/node_modules/hono/dist/utils/url.js +11 -6
- package/node_modules/hono/package.json +1 -1
- package/node_modules/ip-address/dist/common.js +2 -2
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/package.json +2 -2
- package/node_modules/path-to-regexp/Readme.md +7 -1
- package/node_modules/path-to-regexp/dist/index.d.ts +12 -7
- package/node_modules/path-to-regexp/dist/index.js +99 -99
- package/node_modules/path-to-regexp/dist/index.js.map +1 -1
- package/node_modules/path-to-regexp/package.json +8 -9
- package/node_modules/protobufjs/README.md +562 -259
- package/node_modules/protobufjs/dist/light/protobuf.js +1915 -3267
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1173 -2018
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +1982 -3483
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/descriptor/README.md +70 -3
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
- package/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/protobufjs/google/api/annotations.json +1 -3
- package/node_modules/protobufjs/google/api/http.json +1 -2
- package/node_modules/protobufjs/google/protobuf/api.json +6 -12
- package/node_modules/protobufjs/google/protobuf/descriptor.json +88 -194
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +9 -15
- package/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
- package/node_modules/protobufjs/google/protobuf/type.json +7 -14
- package/node_modules/protobufjs/index.d.ts +685 -1077
- package/node_modules/protobufjs/package.json +51 -25
- package/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/protobufjs/src/common.js +8 -14
- package/node_modules/protobufjs/src/converter.js +52 -90
- package/node_modules/protobufjs/src/decoder.js +67 -211
- package/node_modules/protobufjs/src/encoder.js +7 -27
- package/node_modules/protobufjs/src/enum.js +7 -33
- package/node_modules/protobufjs/src/field.js +20 -77
- package/node_modules/protobufjs/src/index-light.js +29 -29
- package/node_modules/protobufjs/src/index-minimal.js +13 -12
- package/node_modules/protobufjs/src/index.js +6 -6
- package/node_modules/protobufjs/src/mapfield.js +8 -26
- package/node_modules/protobufjs/src/message.js +11 -5
- package/node_modules/protobufjs/src/method.js +7 -30
- package/node_modules/protobufjs/src/namespace.js +10 -26
- package/node_modules/protobufjs/src/object.js +31 -44
- package/node_modules/protobufjs/src/oneof.js +1 -12
- package/node_modules/protobufjs/src/parse.js +67 -194
- package/node_modules/protobufjs/src/reader.js +58 -520
- package/node_modules/protobufjs/src/reader_buffer.js +5 -31
- package/node_modules/protobufjs/src/root.js +4 -16
- package/node_modules/protobufjs/src/rpc/service.js +5 -18
- package/node_modules/protobufjs/src/service.js +2 -15
- package/node_modules/protobufjs/src/tokenize.js +4 -20
- package/node_modules/protobufjs/src/type.js +37 -91
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/protobufjs/src/util/longbits.js +6 -10
- package/node_modules/protobufjs/src/util/minimal.js +51 -71
- package/node_modules/protobufjs/src/util.js +17 -51
- package/node_modules/protobufjs/src/verifier.js +14 -19
- package/node_modules/protobufjs/src/wrappers.js +3 -2
- package/node_modules/protobufjs/src/writer.js +189 -428
- package/node_modules/protobufjs/src/writer_buffer.js +26 -41
- package/node_modules/protobufjs/tsconfig.json +5 -3
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +30 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +134 -0
- package/node_modules/undici-types/connector.d.ts +37 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +253 -0
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +187 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +235 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +16 -0
- package/node_modules/undici-types/header.d.ts +165 -0
- package/node_modules/undici-types/index.d.ts +93 -0
- package/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +98 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +36 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +346 -0
- package/node_modules/undici-types/websocket.d.ts +188 -0
- package/package.json +19 -7
- package/dist/chunk-AJBRMUGK.js.map +0 -1
- package/dist/chunk-FLIBWADL.js.map +0 -1
- package/dist/chunk-IBGLJEW7.js.map +0 -1
- package/dist/chunk-KVFNI2UZ.js.map +0 -1
- package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +0 -45
- package/node_modules/fast-uri/SECURITY.md +0 -222
- package/node_modules/fast-uri/benchmark/encoder.mjs +0 -54
- package/node_modules/fast-uri/test/c0-reference-security.test.js +0 -137
- package/node_modules/fast-uri/test/host-encoding.test.js +0 -60
- package/node_modules/fast-uri/test/mailto-authority-security.test.js +0 -125
- package/node_modules/fast-uri/test/mailto-field-name-security.test.js +0 -151
- package/node_modules/fast-uri/test/scheme-normalization.test.js +0 -16
- package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
- package/node_modules/fast-uri/types/index.tst.ts +0 -31
- package/node_modules/protobufjs/ext/README.md +0 -70
- package/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
- package/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -424
- package/node_modules/protobufjs/ext/descriptor.js +0 -1405
- package/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
- package/node_modules/protobufjs/ext/protojson.d.ts +0 -20
- package/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
- package/node_modules/protobufjs/ext/protojson.js +0 -972
- package/node_modules/protobufjs/ext/textformat.d.ts +0 -19
- package/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
- package/node_modules/protobufjs/ext/textformat.js +0 -1280
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
- package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.json +0 -56
- package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.proto +0 -31
- package/node_modules/protobufjs/src/typescript.js +0 -25
- package/node_modules/protobufjs/src/util/utf8.js +0 -164
- /package/dist/{ast-rule-runner-3PYXOOLH.js.map → ast-rule-runner-2PEUHSHO.js.map} +0 -0
- /package/dist/{child-mcp-config-AKQYBMMC.js.map → child-mcp-config-AYVMLJDV.js.map} +0 -0
- /package/dist/{chunk-YKCJJP5X.js.map → chunk-236T3AOZ.js.map} +0 -0
- /package/dist/{chunk-GCD3OFFM.js.map → chunk-5QNWRC7B.js.map} +0 -0
- /package/dist/{chunk-LD6QCSHT.js.map → chunk-B5RDZLU3.js.map} +0 -0
- /package/dist/{chunk-UZZHLCYW.js.map → chunk-CZSEUZFE.js.map} +0 -0
- /package/dist/{chunk-6FBREJER.js.map → chunk-DCPN7F5J.js.map} +0 -0
- /package/dist/{chunk-XRMP4PP4.js.map → chunk-DXDKAVWV.js.map} +0 -0
- /package/dist/{chunk-K5MAYIHL.js.map → chunk-FEAWCZ7E.js.map} +0 -0
- /package/dist/{chunk-CUPOUBBN.js.map → chunk-GPZQVYKV.js.map} +0 -0
- /package/dist/{chunk-MB2UUFF7.js.map → chunk-H6SGSQJM.js.map} +0 -0
- /package/dist/{chunk-K6CUB3IV.js.map → chunk-JV3UBRRA.js.map} +0 -0
- /package/dist/{chunk-6EUYMTVU.js.map → chunk-KXWLZDQR.js.map} +0 -0
- /package/dist/{chunk-CQ6FAAOO.js.map → chunk-LBVPKHHU.js.map} +0 -0
- /package/dist/{chunk-EFE6ORME.js.map → chunk-LC34UPDQ.js.map} +0 -0
- /package/dist/{chunk-NA55VLER.js.map → chunk-LE6TQVXF.js.map} +0 -0
- /package/dist/{chunk-KZ5R5HL7.js.map → chunk-MFUJU7RO.js.map} +0 -0
- /package/dist/{chunk-7S6ANELD.js.map → chunk-MQSSTTZU.js.map} +0 -0
- /package/dist/{chunk-CP73UYNV.js.map → chunk-OQR2C64M.js.map} +0 -0
- /package/dist/{chunk-UBCGX47E.js.map → chunk-P3CFDAW5.js.map} +0 -0
- /package/dist/{chunk-G2MC6WXA.js.map → chunk-PG6NTUTS.js.map} +0 -0
- /package/dist/{chunk-HQMIDROO.js.map → chunk-PQ3V2SYP.js.map} +0 -0
- /package/dist/{chunk-36B7J7CZ.js.map → chunk-Q6R3JTXH.js.map} +0 -0
- /package/dist/{chunk-PI54VS4I.js.map → chunk-SNSV6GGV.js.map} +0 -0
- /package/dist/{chunk-BSGMAUA4.js.map → chunk-SQPFJLCI.js.map} +0 -0
- /package/dist/{chunk-7VMEUGNV.js.map → chunk-TV6RX3ZL.js.map} +0 -0
- /package/dist/{chunk-7BKOWPKX.js.map → chunk-TYIIAIXA.js.map} +0 -0
- /package/dist/{chunk-2A4P2DX3.js.map → chunk-VH4T4O5L.js.map} +0 -0
- /package/dist/{chunk-ABTRD52Y.js.map → chunk-WWBYNWYB.js.map} +0 -0
- /package/dist/{chunk-BELY4VU4.js.map → chunk-YE3T4X2U.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-37UQWOAA.js.map → cli-circuit-breaker-HWMTEEYI.js.map} +0 -0
- /package/dist/{cli-readiness-RSBS6FN3.js.map → cli-readiness-6C6E2T2O.js.map} +0 -0
- /package/dist/{cli-server-gateway-C5QPDUWS.js.map → cli-server-gateway-HHRF22EB.js.map} +0 -0
- /package/dist/{composite-router-WERJYE7X.js.map → composite-router-CX2W7RVA.js.map} +0 -0
- /package/dist/{consensus-vote-G2MKNTMW.js.map → consensus-vote-CQGIWMYY.js.map} +0 -0
- /package/dist/{context-retriever-H34LHPWB.js.map → context-retriever-G4LMWEN5.js.map} +0 -0
- /package/dist/{doctor-deep-XBUWYYXO.js.map → doctor-deep-VOX7KVGK.js.map} +0 -0
- /package/dist/{doctor-gateway-report-JRENPRNM.js.map → doctor-gateway-report-GMYX62JU.js.map} +0 -0
- /package/dist/{doctor-live-CFUUN5K4.js.map → doctor-live-AES3PON5.js.map} +0 -0
- /package/dist/{expert-bridge-FPFMGB3W.js.map → expert-bridge-WEZXYIGA.js.map} +0 -0
- /package/dist/{factory-HYRMAIGW.js.map → factory-L2DIM3PM.js.map} +0 -0
- /package/dist/{factory-RQ5Q2TMY.js.map → factory-L6CLXVPW.js.map} +0 -0
- /package/dist/{gemini-adapter-EHQUG5QP.js.map → gemini-adapter-CL7YW7UZ.js.map} +0 -0
- /package/dist/{improvement-review-SMUO5UVF.js.map → improvement-review-EBC3I55P.js.map} +0 -0
- /package/dist/{init-opencode-56GNUSHL.js.map → init-opencode-F6FV63VR.js.map} +0 -0
- /package/dist/{issue-triage-LPX3EU4I.js.map → issue-triage-3EJ5DSGG.js.map} +0 -0
- /package/dist/{model-config-helpers-XBHRUWIC.js.map → model-config-helpers-27GO3OEU.js.map} +0 -0
- /package/dist/{openai-compat-adapter-WEHE5LKH.js.map → openai-compat-adapter-JJD7VWZC.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-XPT57QHF.js.map → pr-reviewer-helpers-KGGKESLT.js.map} +0 -0
- /package/dist/{registry-command-D5TA6433.js.map → registry-command-SQQNXDGS.js.map} +0 -0
- /package/dist/{repo-security-plan-OH7IPPQU.js.map → repo-security-plan-CIGD7QBY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-UYICMMMM.js.map → research-helpers-synthesize-HAQSK2RL.js.map} +0 -0
- /package/dist/{routing-memory-PKD2T674.js.map → routing-memory-AFHV5NDT.js.map} +0 -0
- /package/dist/{session-memory-IRR7GLZT.js.map → session-memory-RBY5SHFK.js.map} +0 -0
- /package/dist/{setup-config-N4OYZSCY.js.map → setup-config-47NNRD4E.js.map} +0 -0
- /package/dist/{setup-custom-api-4VLHKKBF.js.map → setup-custom-api-H74QY7EM.js.map} +0 -0
- /package/dist/{tool-memory-MSOEUVUX.js.map → tool-memory-QESESDGS.js.map} +0 -0
- /package/dist/{unified-registry-W2DCYXUT.js.map → unified-registry-HWZRXFQ6.js.map} +0 -0
- /package/dist/{weather-report-FANVIPXZ.js.map → weather-report-QZLXDT5L.js.map} +0 -0
- /package/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
|
@@ -24,11 +24,28 @@ const isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&
|
|
|
24
24
|
/** @type {(value: string) => boolean} */
|
|
25
25
|
const isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u)
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
const BYTE_HEX = new Array(256)
|
|
28
|
+
{
|
|
29
|
+
const HEX_DIGITS = '0123456789ABCDEF'
|
|
30
|
+
for (let i = 0; i < 256; i++) {
|
|
31
|
+
BYTE_HEX[i] = '%' + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 0xF]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function percentEncodeNonAscii (cp) {
|
|
35
|
+
if (cp < 0x800) {
|
|
36
|
+
return BYTE_HEX[0xC0 | (cp >> 6)] +
|
|
37
|
+
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
38
|
+
}
|
|
39
|
+
if (cp < 0x10000) {
|
|
40
|
+
return BYTE_HEX[0xE0 | (cp >> 12)] +
|
|
41
|
+
BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +
|
|
42
|
+
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
43
|
+
}
|
|
44
|
+
return BYTE_HEX[0xF0 | (cp >> 18)] +
|
|
45
|
+
BYTE_HEX[0x80 | ((cp >> 12) & 0x3F)] +
|
|
46
|
+
BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +
|
|
47
|
+
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
48
|
+
}
|
|
32
49
|
|
|
33
50
|
/**
|
|
34
51
|
* @param {Array<string>} input
|
|
@@ -76,30 +93,6 @@ const isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/)
|
|
|
76
93
|
*/
|
|
77
94
|
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u)
|
|
78
95
|
|
|
79
|
-
/** @type {(value: string) => boolean} */
|
|
80
|
-
const nonSimpleDomainChars = RegExp.prototype.test.bind(/[^\d!"$&'()*+,\-.;=_`a-z{}~]/u)
|
|
81
|
-
|
|
82
|
-
/** @type {(value: string) => boolean} */
|
|
83
|
-
const numericLastLabel = RegExp.prototype.test.bind(/(?:^|\.)\d+$/u)
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* True when `new URL('http://' + domain).hostname` may differ from `domain`,
|
|
87
|
-
* i.e. when the caller must fall back to the WHATWG parser.
|
|
88
|
-
*
|
|
89
|
-
* Same purpose as `nonSimpleDomain`, but digits are allowed: for this character
|
|
90
|
-
* set `hostname` is the identity, *except* that an all-numeric final label is
|
|
91
|
-
* read as IPv4 shorthand ("1.2.3" -> "1.2.0.3", "127.1" -> "127.0.0.1",
|
|
92
|
-
* "a.b.1" throws), which is why `nonSimpleDomain` excludes digits outright.
|
|
93
|
-
* Rejecting that one shape lets the common `mail2.example.org` case stay on the
|
|
94
|
-
* fast path.
|
|
95
|
-
*
|
|
96
|
-
* @param {string} domain - must already be lowercased
|
|
97
|
-
* @returns {boolean}
|
|
98
|
-
*/
|
|
99
|
-
function nonSimpleMailtoDomain (domain) {
|
|
100
|
-
return nonSimpleDomainChars(domain) || numericLastLabel(domain)
|
|
101
|
-
}
|
|
102
|
-
|
|
103
96
|
/**
|
|
104
97
|
* @param {string} zone
|
|
105
98
|
* @returns {boolean}
|
|
@@ -298,7 +291,7 @@ function removeDotSegments (path) {
|
|
|
298
291
|
continue
|
|
299
292
|
}
|
|
300
293
|
} else if (input[0] === '/') {
|
|
301
|
-
if (input[1] === '.') {
|
|
294
|
+
if (input[1] === '.' || input[1] === '/') {
|
|
302
295
|
output.push('/')
|
|
303
296
|
break
|
|
304
297
|
}
|
|
@@ -404,27 +397,23 @@ function removeDotSegmentsRelative (path) {
|
|
|
404
397
|
}
|
|
405
398
|
|
|
406
399
|
/**
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
400
|
+
* Re-escape RFC 3986 gen-delims that must not appear literally in the host.
|
|
401
|
+
* After the URI regex parses, these characters cannot be literal in the host
|
|
402
|
+
* field, so any that appear after decoding came from percent-encoding and
|
|
403
|
+
* must be restored to prevent authority structure changes.
|
|
411
404
|
*
|
|
412
405
|
* @param {string} host
|
|
413
|
-
* @param {boolean} isIP - true for
|
|
414
|
-
* @param {boolean} [allowNonAscii=false] - preserve non-ASCII IRI characters
|
|
406
|
+
* @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)
|
|
415
407
|
* @returns {string}
|
|
416
408
|
*/
|
|
417
|
-
const
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
IP_HOST_DELIM_RE.lastIndex = 0
|
|
427
|
-
return host.replace(IP_HOST_DELIM_RE, (ch) => IP_HOST_DELIMS[ch])
|
|
409
|
+
const HOST_DELIMS = { '@': '%40', '/': '%2F', '?': '%3F', '#': '%23', ':': '%3A' }
|
|
410
|
+
const HOST_DELIM_RE = /[@/?#:]/g
|
|
411
|
+
const HOST_DELIM_NO_COLON_RE = /[@/?#]/g
|
|
412
|
+
|
|
413
|
+
function reescapeHostDelimiters (host, isIP) {
|
|
414
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE
|
|
415
|
+
re.lastIndex = 0
|
|
416
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch])
|
|
428
417
|
}
|
|
429
418
|
|
|
430
419
|
/**
|
|
@@ -466,55 +455,6 @@ function normalizePercentEncoding (input, decodeUnreserved = false) {
|
|
|
466
455
|
return output
|
|
467
456
|
}
|
|
468
457
|
|
|
469
|
-
/** Pre-built `%XX` strings for every byte. Avoids per-call hex math/concat. */
|
|
470
|
-
const BYTE_HEX = new Array(256)
|
|
471
|
-
{
|
|
472
|
-
const HEX_DIGITS = '0123456789ABCDEF'
|
|
473
|
-
for (let i = 0; i < 256; i++) {
|
|
474
|
-
BYTE_HEX[i] = '%' + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 0xF]
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* Mirrors the pass-through set of the deprecated `escape()` global:
|
|
480
|
-
* `A-Z a-z 0-9 * + - . / @ _`. Keeps drop-in semantics for ASCII input.
|
|
481
|
-
*
|
|
482
|
-
* @param {number} cp
|
|
483
|
-
* @returns {boolean}
|
|
484
|
-
*/
|
|
485
|
-
function isEscapeSafe (cp) {
|
|
486
|
-
return (
|
|
487
|
-
(cp >= 0x30 && cp <= 0x39) ||
|
|
488
|
-
(cp >= 0x41 && cp <= 0x5A) ||
|
|
489
|
-
(cp >= 0x61 && cp <= 0x7A) ||
|
|
490
|
-
cp === 0x2A || cp === 0x2B || cp === 0x2D || cp === 0x2E ||
|
|
491
|
-
cp === 0x2F || cp === 0x40 || cp === 0x5F
|
|
492
|
-
)
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* RFC 3986 percent-encode a non-ASCII Unicode code point as UTF-8 bytes.
|
|
497
|
-
* Caller handles the ASCII branch inline for speed.
|
|
498
|
-
*
|
|
499
|
-
* @param {number} cp - Unicode code point (>= 0x80, <= 0x10FFFF)
|
|
500
|
-
* @returns {string}
|
|
501
|
-
*/
|
|
502
|
-
function percentEncodeNonAscii (cp) {
|
|
503
|
-
if (cp < 0x800) {
|
|
504
|
-
return BYTE_HEX[0xC0 | (cp >> 6)] +
|
|
505
|
-
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
506
|
-
}
|
|
507
|
-
if (cp < 0x10000) {
|
|
508
|
-
return BYTE_HEX[0xE0 | (cp >> 12)] +
|
|
509
|
-
BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +
|
|
510
|
-
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
511
|
-
}
|
|
512
|
-
return BYTE_HEX[0xF0 | (cp >> 18)] +
|
|
513
|
-
BYTE_HEX[0x80 | ((cp >> 12) & 0x3F)] +
|
|
514
|
-
BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +
|
|
515
|
-
BYTE_HEX[0x80 | (cp & 0x3F)]
|
|
516
|
-
}
|
|
517
|
-
|
|
518
458
|
/**
|
|
519
459
|
* Normalizes path data without turning reserved escapes into live path syntax.
|
|
520
460
|
* Valid escapes are uppercased, raw unsafe characters are escaped, and only
|
|
@@ -624,73 +564,15 @@ function serializePathEncoding (input, pathNoScheme = false) {
|
|
|
624
564
|
return output
|
|
625
565
|
}
|
|
626
566
|
|
|
627
|
-
/**
|
|
628
|
-
* Normalizes the percent-encoding of a query or fragment component.
|
|
629
|
-
*
|
|
630
|
-
* Like `normalizePathEncoding`, but uses the query/fragment character set
|
|
631
|
-
* (which additionally allows `?`) and decodes `.` since it has no dot-segment
|
|
632
|
-
* meaning outside of a path.
|
|
633
|
-
*
|
|
634
|
-
* @param {string} input
|
|
635
|
-
* @returns {string}
|
|
636
|
-
*/
|
|
637
|
-
function normalizeQueryFragmentEncoding (input) {
|
|
638
|
-
let output = ''
|
|
639
|
-
|
|
640
|
-
for (let i = 0; i < input.length; i++) {
|
|
641
|
-
const ch = input[i]
|
|
642
|
-
if (ch === '%' && i + 2 < input.length) {
|
|
643
|
-
const hex = input.slice(i + 1, i + 3)
|
|
644
|
-
if (isHexPair(hex)) {
|
|
645
|
-
const normalizedHex = hex.toUpperCase()
|
|
646
|
-
const decoded = String.fromCharCode(parseInt(normalizedHex, 16))
|
|
647
|
-
|
|
648
|
-
if (isUnreserved(decoded)) {
|
|
649
|
-
output += decoded
|
|
650
|
-
} else {
|
|
651
|
-
output += '%' + normalizedHex
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
i += 2
|
|
655
|
-
continue
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
if (isQueryFragmentCharacter(ch)) {
|
|
660
|
-
output += ch
|
|
661
|
-
} else {
|
|
662
|
-
const code = input.charCodeAt(i)
|
|
663
|
-
if (code < 0x80) {
|
|
664
|
-
output += isEscapeSafe(code) ? ch : BYTE_HEX[code]
|
|
665
|
-
} else if (code < 0xD800 || code > 0xDFFF) {
|
|
666
|
-
output += percentEncodeNonAscii(code)
|
|
667
|
-
} else if (code <= 0xDBFF && i + 1 < input.length) {
|
|
668
|
-
const low = input.charCodeAt(i + 1)
|
|
669
|
-
if (low >= 0xDC00 && low <= 0xDFFF) {
|
|
670
|
-
output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))
|
|
671
|
-
i++
|
|
672
|
-
} else {
|
|
673
|
-
output += percentEncodeNonAscii(0xFFFD)
|
|
674
|
-
}
|
|
675
|
-
} else {
|
|
676
|
-
output += percentEncodeNonAscii(0xFFFD)
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
return output
|
|
682
|
-
}
|
|
683
|
-
|
|
684
567
|
/**
|
|
685
568
|
* Percent-encodes a URI component using its RFC 3986 literal character set.
|
|
686
569
|
* Existing valid escapes are preserved and normalized to uppercase hex.
|
|
687
570
|
*
|
|
688
571
|
* @param {string} input
|
|
689
572
|
* @param {(value: string) => boolean} isAllowed
|
|
690
|
-
* @param {boolean} [allowNonAscii=false]
|
|
691
573
|
* @returns {string}
|
|
692
574
|
*/
|
|
693
|
-
function encodeComponent (input, isAllowed
|
|
575
|
+
function encodeComponent (input, isAllowed) {
|
|
694
576
|
let output = ''
|
|
695
577
|
|
|
696
578
|
for (let i = 0; i < input.length; i++) {
|
|
@@ -711,19 +593,17 @@ function encodeComponent (input, isAllowed, allowNonAscii = false) {
|
|
|
711
593
|
if (code < 0x80) {
|
|
712
594
|
output += BYTE_HEX[code]
|
|
713
595
|
} else if (code < 0xD800 || code > 0xDFFF) {
|
|
714
|
-
output +=
|
|
596
|
+
output += percentEncodeNonAscii(code)
|
|
715
597
|
} else if (code <= 0xDBFF && i + 1 < input.length) {
|
|
716
598
|
const low = input.charCodeAt(i + 1)
|
|
717
599
|
if (low >= 0xDC00 && low <= 0xDFFF) {
|
|
718
|
-
output +=
|
|
719
|
-
? ch + input[i + 1]
|
|
720
|
-
: percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))
|
|
600
|
+
output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))
|
|
721
601
|
i++
|
|
722
602
|
} else {
|
|
723
|
-
output +=
|
|
603
|
+
output += percentEncodeNonAscii(0xFFFD)
|
|
724
604
|
}
|
|
725
605
|
} else {
|
|
726
|
-
output +=
|
|
606
|
+
output += percentEncodeNonAscii(0xFFFD)
|
|
727
607
|
}
|
|
728
608
|
}
|
|
729
609
|
}
|
|
@@ -763,13 +643,27 @@ function encodeFragment (input) {
|
|
|
763
643
|
return encodeComponent(input, isQueryFragmentCharacter)
|
|
764
644
|
}
|
|
765
645
|
|
|
646
|
+
function isEscapeSafe (cp) {
|
|
647
|
+
return (
|
|
648
|
+
(cp >= 0x30 && cp <= 0x39) ||
|
|
649
|
+
(cp >= 0x41 && cp <= 0x5A) ||
|
|
650
|
+
(cp >= 0x61 && cp <= 0x7A) ||
|
|
651
|
+
cp === 0x2A || cp === 0x2B || cp === 0x2D || cp === 0x2E ||
|
|
652
|
+
cp === 0x2F || cp === 0x40 || cp === 0x5F
|
|
653
|
+
)
|
|
654
|
+
}
|
|
655
|
+
|
|
766
656
|
/**
|
|
767
|
-
*
|
|
657
|
+
* Normalizes the percent-encoding of a query or fragment component.
|
|
658
|
+
*
|
|
659
|
+
* Like `normalizePathEncoding`, but uses the query/fragment character set
|
|
660
|
+
* (which additionally allows `?`) and decodes `.` since it has no dot-segment
|
|
661
|
+
* meaning outside of a path.
|
|
768
662
|
*
|
|
769
663
|
* @param {string} input
|
|
770
664
|
* @returns {string}
|
|
771
665
|
*/
|
|
772
|
-
function
|
|
666
|
+
function normalizeQueryFragmentEncoding (input) {
|
|
773
667
|
let output = ''
|
|
774
668
|
|
|
775
669
|
for (let i = 0; i < input.length; i++) {
|
|
@@ -777,27 +671,39 @@ function escapePreservingEscapes (input) {
|
|
|
777
671
|
if (ch === '%' && i + 2 < input.length) {
|
|
778
672
|
const hex = input.slice(i + 1, i + 3)
|
|
779
673
|
if (isHexPair(hex)) {
|
|
780
|
-
|
|
674
|
+
const normalizedHex = hex.toUpperCase()
|
|
675
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16))
|
|
676
|
+
|
|
677
|
+
if (isUnreserved(decoded)) {
|
|
678
|
+
output += decoded
|
|
679
|
+
} else {
|
|
680
|
+
output += '%' + normalizedHex
|
|
681
|
+
}
|
|
682
|
+
|
|
781
683
|
i += 2
|
|
782
684
|
continue
|
|
783
685
|
}
|
|
784
686
|
}
|
|
785
687
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
i
|
|
688
|
+
if (isQueryFragmentCharacter(ch)) {
|
|
689
|
+
output += ch
|
|
690
|
+
} else {
|
|
691
|
+
const code = input.charCodeAt(i)
|
|
692
|
+
if (code < 0x80) {
|
|
693
|
+
output += isEscapeSafe(code) ? ch : BYTE_HEX[code]
|
|
694
|
+
} else if (code < 0xD800 || code > 0xDFFF) {
|
|
695
|
+
output += percentEncodeNonAscii(code)
|
|
696
|
+
} else if (code <= 0xDBFF && i + 1 < input.length) {
|
|
697
|
+
const low = input.charCodeAt(i + 1)
|
|
698
|
+
if (low >= 0xDC00 && low <= 0xDFFF) {
|
|
699
|
+
output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))
|
|
700
|
+
i++
|
|
701
|
+
} else {
|
|
702
|
+
output += percentEncodeNonAscii(0xFFFD)
|
|
703
|
+
}
|
|
796
704
|
} else {
|
|
797
705
|
output += percentEncodeNonAscii(0xFFFD)
|
|
798
706
|
}
|
|
799
|
-
} else {
|
|
800
|
-
output += percentEncodeNonAscii(0xFFFD)
|
|
801
707
|
}
|
|
802
708
|
}
|
|
803
709
|
|
|
@@ -805,42 +711,35 @@ function escapePreservingEscapes (input) {
|
|
|
805
711
|
}
|
|
806
712
|
|
|
807
713
|
/**
|
|
808
|
-
*
|
|
809
|
-
* `component.host` and its zone identifier (`component.ipv6Zone`), but only
|
|
810
|
-
* when they are consistent and describe a real zoned IPv6 literal that
|
|
811
|
-
* normalizes back to `component.host`. This validates the zone on use, so a
|
|
812
|
-
* caller-supplied `ipv6Zone` that does not match the host (or a host
|
|
813
|
-
* reassigned after `parse`) is never trusted and recomposition falls back to
|
|
814
|
-
* the normal path.
|
|
714
|
+
* Escapes a component while preserving existing valid percent escapes.
|
|
815
715
|
*
|
|
816
|
-
* @param {
|
|
817
|
-
* @returns {string
|
|
716
|
+
* @param {string} input
|
|
717
|
+
* @returns {string}
|
|
818
718
|
*/
|
|
819
|
-
function
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
return '[' + escaped + ']'
|
|
719
|
+
function escapePreservingEscapes (input) {
|
|
720
|
+
let output = ''
|
|
721
|
+
|
|
722
|
+
for (let i = 0; i < input.length; i++) {
|
|
723
|
+
if (input[i] === '%' && i + 2 < input.length) {
|
|
724
|
+
const hex = input.slice(i + 1, i + 3)
|
|
725
|
+
if (isHexPair(hex)) {
|
|
726
|
+
output += '%' + hex.toUpperCase()
|
|
727
|
+
i += 2
|
|
728
|
+
continue
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
output += escape(input[i])
|
|
834
733
|
}
|
|
835
|
-
|
|
734
|
+
|
|
735
|
+
return output
|
|
836
736
|
}
|
|
837
737
|
|
|
838
738
|
/**
|
|
839
739
|
* @param {import('../types/index').URIComponent} component
|
|
840
|
-
* @param {boolean} [allowNonAscii=false] - preserve non-ASCII IRI characters
|
|
841
740
|
* @returns {string|undefined}
|
|
842
741
|
*/
|
|
843
|
-
function recomposeAuthority (component
|
|
742
|
+
function recomposeAuthority (component) {
|
|
844
743
|
const uriTokens = []
|
|
845
744
|
|
|
846
745
|
if (component.userinfo !== undefined) {
|
|
@@ -851,30 +750,17 @@ function recomposeAuthority (component, allowNonAscii = false) {
|
|
|
851
750
|
if (component.host !== undefined) {
|
|
852
751
|
let host = component.host
|
|
853
752
|
if (!isIPv4(host)) {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
host = zonedHost
|
|
753
|
+
let ipV6res = normalizeIPv6(host)
|
|
754
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
755
|
+
// Decode only unreserved bytes, once. In particular, keep %25 encoded
|
|
756
|
+
// so it cannot introduce a second escape during recomposition.
|
|
757
|
+
host = normalizePercentEncoding(host, true)
|
|
758
|
+
ipV6res = normalizeIPv6(host)
|
|
759
|
+
}
|
|
760
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
761
|
+
host = `[${ipV6res.escapedHost}]`
|
|
864
762
|
} else {
|
|
865
|
-
|
|
866
|
-
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
867
|
-
// Decode only unreserved bytes, once. In particular, keep %25
|
|
868
|
-
// encoded so it cannot introduce a second escape during
|
|
869
|
-
// recomposition.
|
|
870
|
-
host = normalizePercentEncoding(host, true)
|
|
871
|
-
ipV6res = normalizeIPv6(host)
|
|
872
|
-
}
|
|
873
|
-
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
874
|
-
host = `[${ipV6res.escapedHost}]`
|
|
875
|
-
} else {
|
|
876
|
-
host = encodeHost(host, false, allowNonAscii)
|
|
877
|
-
}
|
|
763
|
+
host = reescapeHostDelimiters(host, false)
|
|
878
764
|
}
|
|
879
765
|
}
|
|
880
766
|
uriTokens.push(host)
|
|
@@ -893,12 +779,9 @@ function recomposeAuthority (component, allowNonAscii = false) {
|
|
|
893
779
|
};
|
|
894
780
|
|
|
895
781
|
module.exports = {
|
|
896
|
-
BYTE_HEX,
|
|
897
|
-
percentEncodeNonAscii,
|
|
898
782
|
nonSimpleDomain,
|
|
899
|
-
nonSimpleMailtoDomain,
|
|
900
783
|
recomposeAuthority,
|
|
901
|
-
|
|
784
|
+
reescapeHostDelimiters,
|
|
902
785
|
normalizePercentEncoding,
|
|
903
786
|
normalizePathEncoding,
|
|
904
787
|
serializePathEncoding,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-uri",
|
|
3
3
|
"description": "Dependency-free RFC 3986 URI toolbox",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.1.9",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"lint": "eslint",
|
|
50
50
|
"lint:fix": "eslint --fix",
|
|
51
|
-
"test": "npm run test:unit",
|
|
51
|
+
"test": "npm run test:unit && npm run test:typescript",
|
|
52
52
|
"test:browser:chromium": "playwright-test ./test/* --runner tape --browser=chromium",
|
|
53
53
|
"test:browser:firefox": "playwright-test ./test/* --runner tape --browser=firefox",
|
|
54
54
|
"test:browser:webkit": "playwright-test ./test/* --runner tape --browser=webkit",
|
|
55
55
|
"test:browser": "npm run test:browser:chromium && npm run test:browser:firefox && npm run test:browser:webkit",
|
|
56
56
|
"test:unit": "tape test/**/*.js",
|
|
57
57
|
"test:unit:dev": "npm run test:unit -- --coverage-report=html",
|
|
58
|
-
"test:typescript": "
|
|
58
|
+
"test:typescript": "tsd"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"ajv": "^8.16.0",
|
|
62
62
|
"eslint": "^9.17.0",
|
|
63
63
|
"neostandard": "^0.13.0",
|
|
64
|
-
"playwright-test": "^
|
|
64
|
+
"playwright-test": "^14.1.12",
|
|
65
65
|
"tape": "^5.8.1",
|
|
66
|
-
"
|
|
66
|
+
"tsd": "^0.33.0"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -135,18 +135,6 @@ test('WSS Equal', (t) => {
|
|
|
135
135
|
t.end()
|
|
136
136
|
})
|
|
137
137
|
|
|
138
|
-
test('Mailto Equal normalizes domains without folding message data', (t) => {
|
|
139
|
-
const suite = [
|
|
140
|
-
{ pair: ['mailto:user@EXAMPLE.ORG', 'mailto:user@example.org'], result: true },
|
|
141
|
-
{ pair: ['mailto:User@example.org', 'mailto:user@example.org'], result: false },
|
|
142
|
-
{ pair: ['mailto:user@example.org?subject=Hello', 'mailto:user@example.org?subject=hello'], result: false },
|
|
143
|
-
{ pair: ['mailto:user@example.org?body=Hello', 'mailto:user@example.org?body=hello'], result: false },
|
|
144
|
-
{ pair: ['mailto:user@example.org?x=Hello', 'mailto:user@example.org?x=hello'], result: false }
|
|
145
|
-
]
|
|
146
|
-
runTest(t, suite)
|
|
147
|
-
t.end()
|
|
148
|
-
})
|
|
149
|
-
|
|
150
138
|
test('URI Equals tolerates malformed fragments', (t) => {
|
|
151
139
|
t.equal(
|
|
152
140
|
fastURI.equal('http://example.com/#%E0%A4A', 'http://example.com/#%E0%A4A'),
|
|
@@ -155,54 +143,3 @@ test('URI Equals tolerates malformed fragments', (t) => {
|
|
|
155
143
|
)
|
|
156
144
|
t.end()
|
|
157
145
|
})
|
|
158
|
-
|
|
159
|
-
test('URI Equals — raw UTF-8 char equals its percent-encoded UTF-8 form', (t) => {
|
|
160
|
-
const suite = [
|
|
161
|
-
// BMP characters
|
|
162
|
-
{ pair: ['http://example.com/日本', 'http://example.com/%E6%97%A5%E6%9C%AC'], result: true },
|
|
163
|
-
{ pair: ['http://example.com/café', 'http://example.com/caf%C3%A9'], result: true },
|
|
164
|
-
{ pair: ['http://example.com/€', 'http://example.com/%E2%82%AC'], result: true },
|
|
165
|
-
{ pair: ['http://example.com/中文', 'http://example.com/%E4%B8%AD%E6%96%87'], result: true },
|
|
166
|
-
// supplementary plane (emoji, surrogate pairs)
|
|
167
|
-
{ pair: ['http://example.com/🚀', 'http://example.com/%F0%9F%9A%80'], result: true },
|
|
168
|
-
{ pair: ['http://example.com/😀', 'http://example.com/%F0%9F%98%80'], result: true },
|
|
169
|
-
// mixed encoded + raw in same path
|
|
170
|
-
{ pair: ['http://example.com/users/日本/profile', 'http://example.com/users/%E6%97%A5%E6%9C%AC/profile'], result: true },
|
|
171
|
-
{ pair: ['http://example.com/a/€/b', 'http://example.com/a/%E2%82%AC/b'], result: true }
|
|
172
|
-
]
|
|
173
|
-
runTest(t, suite)
|
|
174
|
-
t.end()
|
|
175
|
-
})
|
|
176
|
-
|
|
177
|
-
test('URI Equals — percent-encoded UTF-8 is case-insensitive in hex digits', (t) => {
|
|
178
|
-
const suite = [
|
|
179
|
-
{ pair: ['http://example.com/caf%C3%A9', 'http://example.com/caf%c3%a9'], result: true },
|
|
180
|
-
{ pair: ['http://example.com/%E6%97%A5', 'http://example.com/%e6%97%a5'], result: true },
|
|
181
|
-
{ pair: ['http://example.com/%F0%9F%9A%80', 'http://example.com/%f0%9f%9a%80'], result: true }
|
|
182
|
-
]
|
|
183
|
-
runTest(t, suite)
|
|
184
|
-
t.end()
|
|
185
|
-
})
|
|
186
|
-
|
|
187
|
-
test('URI Equals — different Unicode code points are not equal', (t) => {
|
|
188
|
-
const suite = [
|
|
189
|
-
{ pair: ['http://example.com/日本', 'http://example.com/中文'], result: false },
|
|
190
|
-
{ pair: ['http://example.com/café', 'http://example.com/cafe'], result: false },
|
|
191
|
-
{ pair: ['http://example.com/🚀', 'http://example.com/🎉'], result: false }
|
|
192
|
-
]
|
|
193
|
-
runTest(t, suite)
|
|
194
|
-
t.end()
|
|
195
|
-
})
|
|
196
|
-
|
|
197
|
-
test('URI Equals — Latin-1 byte is not equal to UTF-8 multi-byte encoding', (t) => {
|
|
198
|
-
// Parser-differential guard: %C3%A9 (UTF-8 for "é") must NOT equal %E9
|
|
199
|
-
// (raw Latin-1 byte). The old escape() emitted single Latin-1 bytes for
|
|
200
|
-
// non-ASCII, which would have made these incorrectly compare equal in a
|
|
201
|
-
// round-tripped URI.
|
|
202
|
-
const suite = [
|
|
203
|
-
{ pair: ['http://example.com/caf%C3%A9', 'http://example.com/caf%E9'], result: false },
|
|
204
|
-
{ pair: ['http://example.com/%E6%97%A5', 'http://example.com/%E6'], result: false }
|
|
205
|
-
]
|
|
206
|
-
runTest(t, suite)
|
|
207
|
-
t.end()
|
|
208
|
-
})
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"//[2001:db8::7%en0]",
|
|
44
44
|
{
|
|
45
45
|
"host": "2001:db8::7%en0",
|
|
46
|
-
"ipv6Zone": "en0",
|
|
47
46
|
"path": "",
|
|
48
47
|
"reference": "relative"
|
|
49
48
|
}
|
|
@@ -500,26 +499,5 @@
|
|
|
500
499
|
"subject": "Test",
|
|
501
500
|
"body": "NATTO"
|
|
502
501
|
}
|
|
503
|
-
],
|
|
504
|
-
[
|
|
505
|
-
"mailto:addr1@an.example,addr2@an.example",
|
|
506
|
-
{
|
|
507
|
-
"scheme": "mailto",
|
|
508
|
-
"reference": "absolute",
|
|
509
|
-
"to": [
|
|
510
|
-
"addr1@an.example",
|
|
511
|
-
"addr2@an.example"
|
|
512
|
-
]
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
[
|
|
516
|
-
"mailto:user@example.org?",
|
|
517
|
-
{
|
|
518
|
-
"scheme": "mailto",
|
|
519
|
-
"reference": "absolute",
|
|
520
|
-
"to": [
|
|
521
|
-
"user@example.org"
|
|
522
|
-
]
|
|
523
|
-
}
|
|
524
502
|
]
|
|
525
|
-
]
|
|
503
|
+
]
|
|
@@ -116,27 +116,5 @@
|
|
|
116
116
|
"path": "with:colon"
|
|
117
117
|
},
|
|
118
118
|
"scheme:with:colon"
|
|
119
|
-
],
|
|
120
|
-
[
|
|
121
|
-
{
|
|
122
|
-
"scheme": "mailto",
|
|
123
|
-
"to": [
|
|
124
|
-
"chris@example.com"
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"mailto:chris@example.com"
|
|
128
|
-
],
|
|
129
|
-
[
|
|
130
|
-
{
|
|
131
|
-
"scheme": "mailto",
|
|
132
|
-
"to": [
|
|
133
|
-
"joe@example.com"
|
|
134
|
-
],
|
|
135
|
-
"headers": {
|
|
136
|
-
"cc": "bob@example.com"
|
|
137
|
-
},
|
|
138
|
-
"body": "hello"
|
|
139
|
-
},
|
|
140
|
-
"mailto:joe@example.com?cc=bob@example.com&body=hello"
|
|
141
119
|
]
|
|
142
|
-
]
|
|
120
|
+
]
|