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
|
@@ -23,65 +23,17 @@ permissions:
|
|
|
23
23
|
contents: read
|
|
24
24
|
|
|
25
25
|
jobs:
|
|
26
|
-
type-tests:
|
|
27
|
-
name: Type Tests
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
strategy:
|
|
30
|
-
matrix:
|
|
31
|
-
node-version: ['20', '22', '24', '26']
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
34
|
-
with:
|
|
35
|
-
persist-credentials: false
|
|
36
|
-
|
|
37
|
-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
38
|
-
with:
|
|
39
|
-
node-version: ${{ matrix.node-version }}
|
|
40
|
-
cache: 'npm'
|
|
41
|
-
cache-dependency-path: package.json
|
|
42
|
-
check-latest: true
|
|
43
|
-
|
|
44
|
-
- name: Install dependencies
|
|
45
|
-
run: npm install --ignore-scripts
|
|
46
|
-
|
|
47
|
-
- name: Run type tests
|
|
48
|
-
run: npm run test:typescript
|
|
49
|
-
|
|
50
|
-
unit-tests:
|
|
51
|
-
name: Unit Tests
|
|
52
|
-
runs-on: ubuntu-latest
|
|
53
|
-
strategy:
|
|
54
|
-
matrix:
|
|
55
|
-
node-version: ['16', '18', '20', '22', '24', '26']
|
|
56
|
-
steps:
|
|
57
|
-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
58
|
-
with:
|
|
59
|
-
persist-credentials: false
|
|
60
|
-
|
|
61
|
-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
62
|
-
with:
|
|
63
|
-
node-version: ${{ matrix.node-version }}
|
|
64
|
-
cache: 'npm'
|
|
65
|
-
cache-dependency-path: package.json
|
|
66
|
-
check-latest: true
|
|
67
|
-
|
|
68
|
-
- name: Install dependencies
|
|
69
|
-
run: npm install --ignore-scripts
|
|
70
|
-
|
|
71
|
-
- name: Run unit tests
|
|
72
|
-
run: npm test
|
|
73
|
-
|
|
74
26
|
test-regression-check-node10:
|
|
75
27
|
name: Test compatibility with Node.js 10
|
|
76
28
|
runs-on: ubuntu-latest
|
|
77
29
|
permissions:
|
|
78
30
|
contents: read
|
|
79
31
|
steps:
|
|
80
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v6
|
|
81
33
|
with:
|
|
82
34
|
persist-credentials: false
|
|
83
35
|
|
|
84
|
-
- uses: actions/setup-node@
|
|
36
|
+
- uses: actions/setup-node@v6
|
|
85
37
|
with:
|
|
86
38
|
node-version: '10'
|
|
87
39
|
cache: 'npm'
|
|
@@ -119,11 +71,11 @@ jobs:
|
|
|
119
71
|
permissions:
|
|
120
72
|
contents: read
|
|
121
73
|
steps:
|
|
122
|
-
- uses: actions/checkout@
|
|
74
|
+
- uses: actions/checkout@v6
|
|
123
75
|
with:
|
|
124
76
|
persist-credentials: false
|
|
125
77
|
|
|
126
|
-
- uses: actions/setup-node@
|
|
78
|
+
- uses: actions/setup-node@v6
|
|
127
79
|
with:
|
|
128
80
|
node-version: '24'
|
|
129
81
|
cache: 'npm'
|
|
@@ -147,8 +99,8 @@ jobs:
|
|
|
147
99
|
permissions:
|
|
148
100
|
contents: write
|
|
149
101
|
pull-requests: write
|
|
150
|
-
uses: fastify/workflows/.github/workflows/plugins-ci.yml@
|
|
102
|
+
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v6
|
|
151
103
|
with:
|
|
152
104
|
license-check: true
|
|
153
105
|
lint: true
|
|
154
|
-
node-versions: '["16", "18", "20", "22", "24"
|
|
106
|
+
node-versions: '["16", "18", "20", "22", "24"]'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: package-manager-ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- next
|
|
8
|
+
- 'v*'
|
|
9
|
+
paths-ignore:
|
|
10
|
+
- 'docs/**'
|
|
11
|
+
- '*.md'
|
|
12
|
+
pull_request:
|
|
13
|
+
paths-ignore:
|
|
14
|
+
- 'docs/**'
|
|
15
|
+
- '*.md'
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
test:
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v6
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/fast-uri)
|
|
4
4
|
[](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
|
|
5
5
|
[](https://github.com/neostandard/neostandard)
|
|
6
|
-
[](https://scorecard.dev/viewer/?uri=github.com/fastify/fast-uri)
|
|
7
6
|
|
|
8
7
|
Dependency-free RFC 3986 URI toolbox.
|
|
9
8
|
|
|
@@ -13,7 +12,7 @@ Dependency-free RFC 3986 URI toolbox.
|
|
|
13
12
|
|
|
14
13
|
All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties:
|
|
15
14
|
|
|
16
|
-
Malformed authorities
|
|
15
|
+
Malformed authorities and out-of-range ports are reported through the parsed component's `error` field. `normalize()` leaves malformed string inputs unchanged, and `equal()` returns `false` when either string input is malformed.
|
|
17
16
|
|
|
18
17
|
Schemes are never percent-decoded. RFC 3986 does not allow percent-encoding in a scheme, so an input such as `%6Aavascript:alert(1)` is reported as malformed (`error: 'URI scheme is malformed.'`) instead of being parsed as `javascript:`. `normalize()` leaves it unchanged, `equal()` returns `false`, and `resolve()` and `serialize()` throw.
|
|
19
18
|
|
|
@@ -34,10 +33,10 @@ For schemes with domain hosts (`http`, `https`, `ws`, `wss`, or any scheme with
|
|
|
34
33
|
If set to `true`, the serializer will not resolve a relative `path` component.
|
|
35
34
|
|
|
36
35
|
* `unicodeSupport` (boolean, false)
|
|
37
|
-
If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](
|
|
36
|
+
If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt).
|
|
38
37
|
|
|
39
38
|
* `domainHost` (boolean, false)
|
|
40
|
-
If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](
|
|
39
|
+
If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt).
|
|
41
40
|
|
|
42
41
|
### Parse
|
|
43
42
|
|
|
@@ -99,15 +98,14 @@ true
|
|
|
99
98
|
|
|
100
99
|
## Scheme supports
|
|
101
100
|
|
|
102
|
-
fast-uri supports inserting custom [scheme](
|
|
101
|
+
fast-uri supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme)-dependent processing rules. Currently, fast-uri has built-in support for the following schemes:
|
|
103
102
|
|
|
104
|
-
* http \[[RFC 2616](
|
|
105
|
-
* https \[[RFC 2818](
|
|
106
|
-
* ws \[[RFC 6455](
|
|
107
|
-
* wss \[[RFC 6455](
|
|
108
|
-
* urn \[[RFC 2141](
|
|
109
|
-
* urn:uuid \[[RFC 4122](
|
|
110
|
-
* mailto \[[RFC 6068](https://www.rfc-editor.org/rfc/rfc6068)\]
|
|
103
|
+
* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\]
|
|
104
|
+
* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\]
|
|
105
|
+
* ws \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\]
|
|
106
|
+
* wss \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\]
|
|
107
|
+
* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\]
|
|
108
|
+
* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\]
|
|
111
109
|
|
|
112
110
|
|
|
113
111
|
## Benchmarks
|
|
@@ -10,21 +10,6 @@ const ipv6 = '//[2001:db8::7]'
|
|
|
10
10
|
const urn = 'urn:foo:a123,456'
|
|
11
11
|
const urnuuid = 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'
|
|
12
12
|
|
|
13
|
-
const mailtoSimple = 'mailto:chris@example.com'
|
|
14
|
-
const mailtoWithSubject = 'mailto:infobot@example.com?subject=current-issue'
|
|
15
|
-
const mailtoWithBody = 'mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index'
|
|
16
|
-
const mailtoWithHeaders = 'mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E'
|
|
17
|
-
const mailtoMultiple = 'mailto:joe@example.com,alice@example.org?subject=Test&body=NATTO'
|
|
18
|
-
const mailtoEncoded = 'mailto:%22oh%5C%5Cno%22@example.org'
|
|
19
|
-
|
|
20
|
-
const mailtoComponent = {
|
|
21
|
-
scheme: 'mailto',
|
|
22
|
-
to: ['chris@example.com'],
|
|
23
|
-
subject: 'current-issue',
|
|
24
|
-
body: 'send current-issue\r\nsend index',
|
|
25
|
-
headers: { 'In-Reply-To': '<3469A91.D10AF4C@example.com>' }
|
|
26
|
-
}
|
|
27
|
-
|
|
28
13
|
const urnuuidComponent = {
|
|
29
14
|
scheme: 'urn',
|
|
30
15
|
nid: 'uuid',
|
|
@@ -161,62 +146,6 @@ benchUriJs.add('urijs: equal', function () {
|
|
|
161
146
|
uriJsEqual('example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d')
|
|
162
147
|
})
|
|
163
148
|
|
|
164
|
-
benchFastUri.add('fast-uri: parse mailto simple', function () {
|
|
165
|
-
fastUriParse(mailtoSimple)
|
|
166
|
-
})
|
|
167
|
-
benchUriJs.add('urijs: parse mailto simple', function () {
|
|
168
|
-
uriJsParse(mailtoSimple)
|
|
169
|
-
})
|
|
170
|
-
|
|
171
|
-
benchFastUri.add('fast-uri: parse mailto subject', function () {
|
|
172
|
-
fastUriParse(mailtoWithSubject)
|
|
173
|
-
})
|
|
174
|
-
benchUriJs.add('urijs: parse mailto subject', function () {
|
|
175
|
-
uriJsParse(mailtoWithSubject)
|
|
176
|
-
})
|
|
177
|
-
|
|
178
|
-
benchFastUri.add('fast-uri: parse mailto body CRLF', function () {
|
|
179
|
-
fastUriParse(mailtoWithBody)
|
|
180
|
-
})
|
|
181
|
-
benchUriJs.add('urijs: parse mailto body CRLF', function () {
|
|
182
|
-
uriJsParse(mailtoWithBody)
|
|
183
|
-
})
|
|
184
|
-
|
|
185
|
-
benchFastUri.add('fast-uri: parse mailto headers', function () {
|
|
186
|
-
fastUriParse(mailtoWithHeaders)
|
|
187
|
-
})
|
|
188
|
-
benchUriJs.add('urijs: parse mailto headers', function () {
|
|
189
|
-
uriJsParse(mailtoWithHeaders)
|
|
190
|
-
})
|
|
191
|
-
|
|
192
|
-
benchFastUri.add('fast-uri: parse mailto multi recipient', function () {
|
|
193
|
-
fastUriParse(mailtoMultiple)
|
|
194
|
-
})
|
|
195
|
-
benchUriJs.add('urijs: parse mailto multi recipient', function () {
|
|
196
|
-
uriJsParse(mailtoMultiple)
|
|
197
|
-
})
|
|
198
|
-
|
|
199
|
-
benchFastUri.add('fast-uri: parse mailto encoded local', function () {
|
|
200
|
-
fastUriParse(mailtoEncoded)
|
|
201
|
-
})
|
|
202
|
-
benchUriJs.add('urijs: parse mailto encoded local', function () {
|
|
203
|
-
uriJsParse(mailtoEncoded)
|
|
204
|
-
})
|
|
205
|
-
|
|
206
|
-
benchFastUri.add('fast-uri: serialize mailto', function () {
|
|
207
|
-
fastUriSerialize(mailtoComponent)
|
|
208
|
-
})
|
|
209
|
-
benchUriJs.add('urijs: serialize mailto', function () {
|
|
210
|
-
uriJsSerialize(mailtoComponent)
|
|
211
|
-
})
|
|
212
|
-
|
|
213
|
-
benchFastUri.add('fast-uri: serialize+parse mailto round-trip', function () {
|
|
214
|
-
fastUriSerialize(fastUriParse(mailtoWithBody))
|
|
215
|
-
})
|
|
216
|
-
benchUriJs.add('urijs: serialize+parse mailto round-trip', function () {
|
|
217
|
-
uriJsSerialize(uriJsParse(mailtoWithBody))
|
|
218
|
-
})
|
|
219
|
-
|
|
220
149
|
await benchFastUri.run()
|
|
221
150
|
console.log(benchFastUri.name)
|
|
222
151
|
console.table(benchFastUri.table())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment,
|
|
3
|
+
const { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require('./lib/utils')
|
|
4
4
|
const { SCHEMES, getSchemeHandler } = require('./lib/schemes')
|
|
5
5
|
|
|
6
6
|
const VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u
|
|
@@ -52,7 +52,6 @@ function resolve (baseURI, relativeURI, options) {
|
|
|
52
52
|
const {
|
|
53
53
|
parsed: baseParsed,
|
|
54
54
|
malformedAuthorityOrPort: baseMalformed,
|
|
55
|
-
malformedReferenceEdge: baseMalformedReferenceEdge,
|
|
56
55
|
malformedPercentEncoding: baseMalformedPercentEncoding,
|
|
57
56
|
malformedSchemeSpecific: baseMalformedSchemeSpecific,
|
|
58
57
|
malformedHost: baseMalformedHost,
|
|
@@ -61,7 +60,6 @@ function resolve (baseURI, relativeURI, options) {
|
|
|
61
60
|
const {
|
|
62
61
|
parsed: relativeParsed,
|
|
63
62
|
malformedAuthorityOrPort: relativeMalformed,
|
|
64
|
-
malformedReferenceEdge: relativeMalformedReferenceEdge,
|
|
65
63
|
malformedPercentEncoding: relativeMalformedPercentEncoding,
|
|
66
64
|
malformedSchemeSpecific: relativeMalformedSchemeSpecific,
|
|
67
65
|
malformedHost: relativeMalformedHost,
|
|
@@ -70,8 +68,6 @@ function resolve (baseURI, relativeURI, options) {
|
|
|
70
68
|
if (
|
|
71
69
|
baseMalformed ||
|
|
72
70
|
relativeMalformed ||
|
|
73
|
-
baseMalformedReferenceEdge ||
|
|
74
|
-
relativeMalformedReferenceEdge ||
|
|
75
71
|
baseMalformedPercentEncoding ||
|
|
76
72
|
relativeMalformedPercentEncoding ||
|
|
77
73
|
baseMalformedSchemeSpecific ||
|
|
@@ -86,14 +82,6 @@ function resolve (baseURI, relativeURI, options) {
|
|
|
86
82
|
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true)
|
|
87
83
|
const resolvedSchemeHandler = getSchemeHandler((options && options.scheme) || resolved.scheme)
|
|
88
84
|
const resolvedHost = resolved.host
|
|
89
|
-
// Inputs are parsed scheme-neutrally during resolution, so enforce the final
|
|
90
|
-
// HTTP scheme's required host before serializing an invalid HTTP URI.
|
|
91
|
-
if (
|
|
92
|
-
(resolved.scheme === 'http' || resolved.scheme === 'https') &&
|
|
93
|
-
!resolvedHost
|
|
94
|
-
) {
|
|
95
|
-
throw new Error('HTTP URIs must have a host.')
|
|
96
|
-
}
|
|
97
85
|
const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== '' &&
|
|
98
86
|
(isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6)
|
|
99
87
|
// Inputs are parsed scheme-neutrally, so delimiters and controls in a domain
|
|
@@ -112,28 +100,9 @@ function resolve (baseURI, relativeURI, options) {
|
|
|
112
100
|
throw new Error(resolved.error)
|
|
113
101
|
}
|
|
114
102
|
schemelessOptions.skipEscape = true
|
|
115
|
-
if (resolvedSchemeHandler && resolvedSchemeHandler.absolutePath) {
|
|
116
|
-
schemelessOptions.absolutePath = true
|
|
117
|
-
}
|
|
118
103
|
return serialize(resolved, schemelessOptions)
|
|
119
104
|
}
|
|
120
105
|
|
|
121
|
-
/**
|
|
122
|
-
* Copies a host component together with its parse-time zone identifier (if
|
|
123
|
-
* any), so downstream recomposition does not re-derive an IPv6 zone from the
|
|
124
|
-
* ambiguous single-"%" component form. The zone is validated on use by
|
|
125
|
-
* `recomposeAuthority` rather than blindly trusted.
|
|
126
|
-
*
|
|
127
|
-
* @param {import('./types/index').URIComponent} target
|
|
128
|
-
* @param {import('./types/index').URIComponent} source
|
|
129
|
-
*/
|
|
130
|
-
function copyHost (target, source) {
|
|
131
|
-
target.host = source.host
|
|
132
|
-
if (source.ipv6Zone !== undefined) {
|
|
133
|
-
target.ipv6Zone = source.ipv6Zone
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
106
|
/**
|
|
138
107
|
* @param {import ('./types/index').URIComponent} base
|
|
139
108
|
* @param {import ('./types/index').URIComponent} relative
|
|
@@ -154,18 +123,15 @@ function resolveComponent (base, relative, options, skipNormalization) {
|
|
|
154
123
|
target.scheme = relative.scheme
|
|
155
124
|
// target.authority = relative.authority;
|
|
156
125
|
target.userinfo = relative.userinfo
|
|
157
|
-
|
|
126
|
+
target.host = relative.host
|
|
158
127
|
target.port = relative.port
|
|
159
|
-
|
|
160
|
-
target.path = relativeSchemeHandler && relativeSchemeHandler.absolutePath
|
|
161
|
-
? relative.path || ''
|
|
162
|
-
: removeDotSegments(relative.path || '')
|
|
128
|
+
target.path = removeDotSegments(relative.path || '')
|
|
163
129
|
target.query = relative.query
|
|
164
130
|
} else {
|
|
165
131
|
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
166
132
|
// target.authority = relative.authority;
|
|
167
133
|
target.userinfo = relative.userinfo
|
|
168
|
-
|
|
134
|
+
target.host = relative.host
|
|
169
135
|
target.port = relative.port
|
|
170
136
|
target.path = removeDotSegments(relative.path || '')
|
|
171
137
|
target.query = relative.query
|
|
@@ -197,7 +163,7 @@ function resolveComponent (base, relative, options, skipNormalization) {
|
|
|
197
163
|
}
|
|
198
164
|
// target.authority = base.authority;
|
|
199
165
|
target.userinfo = base.userinfo
|
|
200
|
-
|
|
166
|
+
target.host = base.host
|
|
201
167
|
target.port = base.port
|
|
202
168
|
}
|
|
203
169
|
target.scheme = base.scheme
|
|
@@ -229,7 +195,6 @@ function equal (uriA, uriB, options) {
|
|
|
229
195
|
function serialize (cmpts, opts) {
|
|
230
196
|
const component = {
|
|
231
197
|
host: cmpts.host,
|
|
232
|
-
ipv6Zone: cmpts.ipv6Zone,
|
|
233
198
|
scheme: cmpts.scheme,
|
|
234
199
|
userinfo: cmpts.userinfo,
|
|
235
200
|
port: cmpts.port,
|
|
@@ -242,10 +207,6 @@ function serialize (cmpts, opts) {
|
|
|
242
207
|
reference: cmpts.reference,
|
|
243
208
|
resourceName: cmpts.resourceName,
|
|
244
209
|
secure: cmpts.secure,
|
|
245
|
-
to: cmpts.to,
|
|
246
|
-
subject: cmpts.subject,
|
|
247
|
-
body: cmpts.body,
|
|
248
|
-
headers: cmpts.headers,
|
|
249
210
|
error: ''
|
|
250
211
|
}
|
|
251
212
|
const options = Object.assign({}, opts)
|
|
@@ -282,8 +243,7 @@ function serialize (cmpts, opts) {
|
|
|
282
243
|
uriTokens.push(component.scheme, ':')
|
|
283
244
|
}
|
|
284
245
|
|
|
285
|
-
const
|
|
286
|
-
const authority = recomposeAuthority(component, allowNonAsciiHost)
|
|
246
|
+
const authority = recomposeAuthority(component)
|
|
287
247
|
if (authority !== undefined) {
|
|
288
248
|
if (options.reference !== 'suffix') {
|
|
289
249
|
uriTokens.push('//')
|
|
@@ -425,11 +385,6 @@ function hasMalformedComponentPercentEncoding (matches) {
|
|
|
425
385
|
* @returns {boolean} whether host conversion failed
|
|
426
386
|
*/
|
|
427
387
|
function canonicalizeHost (parsed, options, schemeHandler, isIP) {
|
|
428
|
-
const bracketedIPLiteral =
|
|
429
|
-
parsed.host &&
|
|
430
|
-
parsed.host[0] === '[' &&
|
|
431
|
-
parsed.host[parsed.host.length - 1] === ']'
|
|
432
|
-
|
|
433
388
|
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
434
389
|
parsed.error = parsed.error || MALFORMED_HOST_ERROR
|
|
435
390
|
return true
|
|
@@ -442,7 +397,6 @@ function canonicalizeHost (parsed, options, schemeHandler, isIP) {
|
|
|
442
397
|
!isIPLiteral(parsed.host) &&
|
|
443
398
|
(options.domainHost || (schemeHandler && schemeHandler.domainHost)) &&
|
|
444
399
|
isIP === false &&
|
|
445
|
-
!bracketedIPLiteral &&
|
|
446
400
|
nonSimpleDomain(parsed.host)
|
|
447
401
|
) {
|
|
448
402
|
let url
|
|
@@ -461,7 +415,6 @@ function canonicalizeHost (parsed, options, schemeHandler, isIP) {
|
|
|
461
415
|
}
|
|
462
416
|
parsed.host = url.hostname
|
|
463
417
|
}
|
|
464
|
-
|
|
465
418
|
return false
|
|
466
419
|
}
|
|
467
420
|
|
|
@@ -505,7 +458,7 @@ function isHostOnlyURL (url) {
|
|
|
505
458
|
/**
|
|
506
459
|
* @param {string} uri
|
|
507
460
|
* @param {import('./types/index').Options} [opts]
|
|
508
|
-
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean,
|
|
461
|
+
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean, malformedPercentEncoding: boolean, malformedSchemeSpecific: boolean, malformedHost: boolean, malformedScheme: boolean }}
|
|
509
462
|
*/
|
|
510
463
|
function parseWithStatus (uri, opts) {
|
|
511
464
|
const options = Object.assign({}, opts)
|
|
@@ -521,12 +474,6 @@ function parseWithStatus (uri, opts) {
|
|
|
521
474
|
}
|
|
522
475
|
|
|
523
476
|
let malformedAuthorityOrPort = false
|
|
524
|
-
// Check the caller's original reference before suffix mode prepends a scheme
|
|
525
|
-
// or authority marker and turns its leading edge into interior data.
|
|
526
|
-
const malformedReferenceEdge = uri.length !== 0 && (
|
|
527
|
-
uri.charCodeAt(0) <= 0x20 ||
|
|
528
|
-
uri.charCodeAt(uri.length - 1) <= 0x20
|
|
529
|
-
)
|
|
530
477
|
let malformedPercentEncoding = false
|
|
531
478
|
let malformedSchemeSpecific = false
|
|
532
479
|
let malformedHost = false
|
|
@@ -577,10 +524,6 @@ function parseWithStatus (uri, opts) {
|
|
|
577
524
|
}
|
|
578
525
|
}
|
|
579
526
|
|
|
580
|
-
if (malformedReferenceEdge) {
|
|
581
|
-
parsed.error = parsed.error || 'URI must not contain leading or trailing C0 controls or spaces.'
|
|
582
|
-
}
|
|
583
|
-
|
|
584
527
|
const matches = uri.match(URI_PARSE)
|
|
585
528
|
|
|
586
529
|
if (matches) {
|
|
@@ -628,16 +571,6 @@ function parseWithStatus (uri, opts) {
|
|
|
628
571
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true)
|
|
629
572
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase()
|
|
630
573
|
|
|
631
|
-
if (isIP && ipv6result.isIPV6 === true && parsed.host.indexOf('%') !== -1) {
|
|
632
|
-
// Persist the zone identifier so recomposition never has to re-derive
|
|
633
|
-
// it from the ambiguous single-"%" component form, which misreads a
|
|
634
|
-
// zone that begins with "25" as a %25 separator. It is validated on
|
|
635
|
-
// use during recomposition, so a host reassigned after parse or an
|
|
636
|
-
// input zone that does not describe the host is ignored. Only zoned
|
|
637
|
-
// literals are ambiguous; plain IPv6 addresses round-trip without it.
|
|
638
|
-
parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf('%') + 1)
|
|
639
|
-
}
|
|
640
|
-
|
|
641
574
|
if (malformedIPLiteral) {
|
|
642
575
|
parsed.error = parsed.error || MALFORMED_HOST_ERROR
|
|
643
576
|
malformedAuthorityOrPort = true
|
|
@@ -669,24 +602,18 @@ function parseWithStatus (uri, opts) {
|
|
|
669
602
|
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP)
|
|
670
603
|
}
|
|
671
604
|
|
|
672
|
-
if (parsed.host !== undefined && !malformedIPLiteral) {
|
|
673
|
-
let host = parsed.host
|
|
674
|
-
if (
|
|
675
|
-
host = normalizePercentEncoding(host, true)
|
|
605
|
+
if (uri.indexOf('%') !== -1 && parsed.host !== undefined && !malformedIPLiteral) {
|
|
606
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true)
|
|
607
|
+
if (!isIP) {
|
|
676
608
|
// Fold reg-name case after decoding unreserved octets. The second
|
|
677
609
|
// pass only restores uppercase hex in escapes that remain encoded.
|
|
678
610
|
host = normalizePercentEncoding(host.toLowerCase())
|
|
679
611
|
}
|
|
680
612
|
// Resolution parses both inputs with the internal `null` scheme before
|
|
681
|
-
// the effective scheme is known.
|
|
682
|
-
//
|
|
683
|
-
//
|
|
684
|
-
|
|
685
|
-
const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport)
|
|
686
|
-
parsed.host = encodeHost(host, isIP, allowNonAsciiHost)
|
|
687
|
-
} else {
|
|
688
|
-
parsed.host = host
|
|
689
|
-
}
|
|
613
|
+
// the effective scheme is known. Keep raw host delimiters for that step
|
|
614
|
+
// so resolve() can reject them for domain-host schemes; the resolved
|
|
615
|
+
// authority is encoded when it is serialized.
|
|
616
|
+
parsed.host = isIP || options.scheme !== 'null' ? reescapeHostDelimiters(host, isIP) : host
|
|
690
617
|
}
|
|
691
618
|
|
|
692
619
|
if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
|
|
@@ -711,7 +638,7 @@ function parseWithStatus (uri, opts) {
|
|
|
711
638
|
} else {
|
|
712
639
|
parsed.error = parsed.error || 'URI can not be parsed.'
|
|
713
640
|
}
|
|
714
|
-
return { parsed, malformedAuthorityOrPort,
|
|
641
|
+
return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme }
|
|
715
642
|
}
|
|
716
643
|
|
|
717
644
|
/**
|
|
@@ -735,14 +662,13 @@ function normalizeString (uri, opts) {
|
|
|
735
662
|
/**
|
|
736
663
|
* @param {string} uri
|
|
737
664
|
* @param {import('./types/index').Options} [opts]
|
|
738
|
-
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean,
|
|
665
|
+
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean, malformedPercentEncoding: boolean, malformedSchemeSpecific: boolean, malformedHost: boolean, malformedScheme: boolean }}
|
|
739
666
|
*/
|
|
740
667
|
function normalizeStringWithStatus (uri, opts) {
|
|
741
|
-
const { parsed, malformedAuthorityOrPort,
|
|
668
|
+
const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts)
|
|
742
669
|
return {
|
|
743
|
-
normalized: malformedAuthorityOrPort ||
|
|
670
|
+
normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
744
671
|
malformedAuthorityOrPort,
|
|
745
|
-
malformedReferenceEdge,
|
|
746
672
|
malformedPercentEncoding,
|
|
747
673
|
malformedSchemeSpecific,
|
|
748
674
|
malformedHost,
|
|
@@ -766,8 +692,8 @@ function normalizeComparableURI (uri, opts) {
|
|
|
766
692
|
} catch {
|
|
767
693
|
return undefined
|
|
768
694
|
}
|
|
769
|
-
const { normalized, malformedAuthorityOrPort,
|
|
770
|
-
return malformedAuthorityOrPort ||
|
|
695
|
+
const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts)
|
|
696
|
+
return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized
|
|
771
697
|
}
|
|
772
698
|
|
|
773
699
|
const fastUri = {
|