{"_id":"@deot/helper-route","_rev":"14-7236b0852b6d240add0fdca349a32282","name":"@deot/helper-route","dist-tags":{"latest":"1.1.10"},"versions":{"1.0.1":{"name":"@deot/helper-route","version":"1.0.1","license":"MIT","_id":"@deot/helper-route@1.0.1","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"7c983f8701ca87b4cad45ffeccd6448fb7e74cf4","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.0.1.tgz","fileCount":7,"integrity":"sha512-BMNh3eqnpGHIcoFp2uXPM+WhjgSnEUQwwMd5pyE4ZKFKGQybfaCHJMxfMqtIYLBft2hEkdEjdg8yc+hYAAEyjA==","signatures":[{"sig":"MEYCIQC54mQs1j3VlajgkcyuWw5vAYS6yQdIDw6YfH9EDwL/AAIhANf2IOw4WRTVQAC7SOTUpranmotY+VvSPLOJp4+Bs7Vy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13962},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs.js"}},"gitHead":"1715846b4800a29e490550d12e2bc12daac1361e","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"9.5.1","description":"### `Route`","directories":{},"_nodeVersion":"18.16.1","dependencies":{"@deot/helper-utils":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.0.1_1689263249314_0.5939907542581773","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@deot/helper-route","version":"1.0.2","license":"MIT","_id":"@deot/helper-route@1.0.2","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"79518ea3519857a0fa060d628775a284f82249bf","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.0.2.tgz","fileCount":7,"integrity":"sha512-icZ89Ah1v4R4WBT4l6fM1OvbvCK28LSQu+CSdfP67KTr4MVADtLYQ4dCV020fso9IXu11fHSEwJ0SBZFdd+8lg==","signatures":[{"sig":"MEUCIBfx9RXtSkq/Sp0CNh4gvPtlSrI9xkG7J6Gjy7/gs8vmAiEApKlkueNMFSgNW709zMDUoLSIIV3ek1ODmZDUkRx5R88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13002},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs.js"}},"gitHead":"7017592aeb0e10416ad10d51918daaa98d49a8f3","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"9.8.0","description":"### `Route`","directories":{},"_nodeVersion":"20.5.1","dependencies":{"@deot/helper-utils":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.0.2_1692270758867_0.9202054813624654","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@deot/helper-route","version":"1.0.3","license":"MIT","_id":"@deot/helper-route@1.0.3","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"abf45664c1a3e719514138e4e3ec5ae2c1d8188d","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.0.3.tgz","fileCount":7,"integrity":"sha512-CJtedWMRD7toDdESdy2p+bLlYTUFB3b27lDSuZbnDyDAmWQKrhn7WicVfHZ6tevBA+VZ9QDhJ9Hgs8/+SuYcvg==","signatures":[{"sig":"MEUCIBvw1eVM514nbL+ZZdT6x5Xp6v9kaCcvMdtDKRAXRJq3AiEAoFm6QKKwmkIuiRTxTUEEYo/uZqX/oRpGQw9CHcrgqsM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13002},"main":"dist/index.cjs.js","types":"dist/index.d.ts","module":"dist/index.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs.js"}},"gitHead":"c3e5695ef070489c04aa5d092278024e12343e2b","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"9.8.0","description":"### `Route`","directories":{},"_nodeVersion":"20.5.1","dependencies":{"@deot/helper-utils":"^1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.0.3_1692612749589_0.3110162455160175","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@deot/helper-route","version":"1.1.0","license":"MIT","_id":"@deot/helper-route@1.1.0","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"b9d954a5f3c8dcc1e731aedc1a98763b4509e511","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.0.tgz","fileCount":7,"integrity":"sha512-tJJk0yezvtgEkopV3NRJQsecDSx3eg7LyylDzXb0RuXtVBhQPFDSD7b9HjsAgfDAgIY3wvc4+kSlWp0IW5lihw==","signatures":[{"sig":"MEUCICKbGg3bnyzM93XuoViS4r4yfr7ylgIrMPodHmPjPuIyAiEA8reGH8h6MLftO4mY8DR0UNtkEgTupsauVb9ScB8qoWo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12989},"main":"dist/index.es.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs.js"}},"gitHead":"aa9e40ce9edfdf36ab99d6a77571d691acaf03f9","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"9.8.0","description":"### `Route`","directories":{},"_nodeVersion":"20.5.1","dependencies":{"@deot/helper-utils":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.0_1692857131450_0.3991512591068038","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@deot/helper-route","version":"1.1.1","license":"MIT","_id":"@deot/helper-route@1.1.1","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"11bbc36cd241c68e612e58c08d358ce1a3428178","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.1.tgz","fileCount":7,"integrity":"sha512-DDdeSeNiPjF3OOPp9rscX+mdYQB0qFPr+XfOT6pO3/mGHKvKwtX3V3lTTqURm7u9YjTw7i0Q+U4o9HHgsyK70Q==","signatures":[{"sig":"MEUCIHMQLfS/ri6USDu0p7TZOQEOrY9L92EJSJKgMccIDBWiAiEA13HzmesZp/QCMvtdD8NJXwACqA9XaC6wOfkuvHs2Vpg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12986},"main":"dist/index.es.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs"}},"gitHead":"cb85757afa34ff538c72073a6799f866fc40509c","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"9.8.0","description":"### `Route`","directories":{},"_nodeVersion":"20.5.1","dependencies":{"@deot/helper-utils":"^1.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.1_1692930935329_0.3538221931495771","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@deot/helper-route","version":"1.1.2","license":"MIT","_id":"@deot/helper-route@1.1.2","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"05b82a1f8713b52897b06e482526adee7e0fcfb5","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.2.tgz","fileCount":7,"integrity":"sha512-O+69aOIunWaKWBlqCi2t6AOBP98j3XiAhslsHDY9JcgaaJI73FfQkgMyRhh9fOhPa2PLIpFWZw8RbyjkbBg5uw==","signatures":[{"sig":"MEUCIBpIM6yKd/f7vKJ6PG1GJqNtixP5M+MBsPiXUiuc4XLuAiEAmJD9+QUkv54AOiRRk1oHU8t+2mXf0gK/zg5cDIlW1xk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12980},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cebcc891275f0c7c1406c69ea0bfb60ad018c559","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"10.2.3","description":"### `Route`","directories":{},"_nodeVersion":"21.2.0","dependencies":{"@deot/helper-utils":"^1.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.2_1700129373208_0.20226089094211397","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@deot/helper-route","version":"1.1.3","license":"MIT","_id":"@deot/helper-route@1.1.3","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"5cd9bfde55562773b2e42264fc004186a1e1334b","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.3.tgz","fileCount":7,"integrity":"sha512-MdeuWJS8G47U8V13UVYayKjXY7ynzta39nXB0Cn0qNdW8GVRcjHILye2/2s7y8RUKqk7XLqgICQs/zjKTvThFA==","signatures":[{"sig":"MEYCIQCuxxBo3NwJjAP8i5YS38c9GncPksoc5lU96pUsU5vSKwIhAII9LYW5YngUItMccvjFEx9bO8NQQ4SSD0xloiyKYDMC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12980},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"980a65f7e7e40322974c1719f22e4011687b78c1","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"10.2.3","description":"### `Route`","directories":{},"_nodeVersion":"21.2.0","dependencies":{"@deot/helper-utils":"^1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.3_1700642936307_0.9711577418527746","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"@deot/helper-route","version":"1.1.4","license":"MIT","_id":"@deot/helper-route@1.1.4","dist":{"shasum":"a6ad274e8972ffcbe69249bfdb859bc3309e67d4","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.4.tgz","fileCount":7,"integrity":"sha512-1zKNZrKnlq1/eypZaPvo7fqiSTHAIWDZNkmQ5OxTHE2c2FGUkoNjagXBomYezDLaqkuKXgNN3B/236ImVOitww==","signatures":[{"sig":"MEUCIGM0gVrSd+3zUCkippN5Po9SRu0++WmaXN6Mm5MgLhx0AiEAtKyDrp87IcnTwXy1gNe6X/aYquI4AliMg/1dj4G9GIc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13066},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"ff39d165399b4c893f3b6c5c1566abd7d7003354","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"10.8.1","description":"### `Route`","directories":{},"_nodeVersion":"22.3.0","dependencies":{"@deot/helper-utils":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.4_1719456515013_0.7255084606035651","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"@deot/helper-route","version":"1.1.5","license":"MIT","_id":"@deot/helper-route@1.1.5","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"2f77443bbdb7fa11c5b203b029ead5c4bbf9b759","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.5.tgz","fileCount":7,"integrity":"sha512-sGr7uFw7E1gsuFGYGMsO3DjLLpzIxFmz/rXKsnpzAJpse0aXir+Ij9IarAjYIN+y1EOnchS/mUbIo5aAWKWr4g==","signatures":[{"sig":"MEQCIGFpIUoWSHlLN4G2RkHaKEHOo0Y4EuUa82bPwloxdB0KAiA4ZCkRYF2Zpnx+NG711wbm7sjpt0y6SWUDL3FOY+KHvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13442},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"26bae55b114d0f66efc71dd73b2a5b17d70cf0b3","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"10.9.2","description":"### `Route`","directories":{},"_nodeVersion":"23.6.0","dependencies":{"@deot/helper-utils":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.5_1736495901442_0.9808050042243968","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@deot/helper-route","version":"1.1.6","license":"MIT","_id":"@deot/helper-route@1.1.6","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"d5d55574b0472864c387ab29fa32f92dd8a06ee8","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.6.tgz","fileCount":7,"integrity":"sha512-5n1SeDLPvuAFVXhEQd8ZurraCUzK/56ozSvkn/oNhr4Z41tzfjwlIGOJTIMN1G1NLXWTzvesOF+VtFuxXZmC0g==","signatures":[{"sig":"MEQCIBZHLkP6hhB5HDk+IjcV6JCgo85/S2rAXIptB8YrZ51pAiBAAzB4IHjUnEdlkF7q5FlFW15NI4EfNfNuKGfcRIwFWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13510},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4ab42dc7b4a76bf9c355c98aa26492306011c375","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"11.6.0","description":"```js import * as Route from '@deot/helper-route'; ```","directories":{},"_nodeVersion":"24.9.0","dependencies":{"@deot/helper-utils":"^1.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.6_1759911214234_0.23099435340395158","host":"s3://npm-registry-packages-npm-production"}},"1.1.7":{"name":"@deot/helper-route","version":"1.1.7","license":"MIT","_id":"@deot/helper-route@1.1.7","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"420e02543b6bea366b6e438751c5589b66582e4c","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.7.tgz","fileCount":7,"integrity":"sha512-mtiAYFBqvuv15En7x9T7Eb3gQlwJFDuEVicsKocpUz3MnCI9/VGgojBFNSBVtMFaF5APjThZjXUYDILwHZk3LA==","signatures":[{"sig":"MEQCIHtKqQ5yctIMcm7Xhc3Hz7ziokpIJx5CVusvBxnl2ybuAiAD0kowqnILk9ZH8RM2SRBMvWio5sszFw350DxND0hUJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13510},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"38be6084663cbab83b4ca64f919a373d05c776bd","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"11.10.1","description":"```js import * as Route from '@deot/helper-route'; ```","directories":{},"_nodeVersion":"25.7.0","dependencies":{"@deot/helper-utils":"^1.1.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.7_1772436160364_0.9396382625543032","host":"s3://npm-registry-packages-npm-production"}},"1.1.8":{"name":"@deot/helper-route","version":"1.1.8","license":"MIT","_id":"@deot/helper-route@1.1.8","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"a6b112fc3a794338139d3365a9bb508820fd427d","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.8.tgz","fileCount":7,"integrity":"sha512-/5+tLnDerpij6ep2e3MDnQKBL93RZD6mbVPXrxU1UjKxPkRVVYJsrmngWO15IQB/NQbmBPuFhRmccx3EXNSTyQ==","signatures":[{"sig":"MEUCICqbMUVKsiD34kiqFVEKlPRR0QiCzapDgRx/VB7bAs9XAiEA6OUoq9VCzHX+SH3+eW6bDNVytwlIMyFq8Y4QnmQb8TA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13510},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b8fdc0c34621a9237c99be10013aa2a98727c603","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"11.11.0","description":"```js import * as Route from '@deot/helper-route'; ```","directories":{},"_nodeVersion":"25.8.0","dependencies":{"@deot/helper-utils":"^1.1.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.8_1772754528363_0.15953657802648546","host":"s3://npm-registry-packages-npm-production"}},"1.1.9":{"name":"@deot/helper-route","version":"1.1.9","license":"MIT","_id":"@deot/helper-route@1.1.9","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"dist":{"shasum":"bea6dfed7e45949f46d5c9afcd8195942c8152da","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.9.tgz","fileCount":7,"integrity":"sha512-FxsvPW1wyx0HzkyzvvbJ3xwkE7D8droNN5+Xl90U1dHz6SyX+Jv/KKgGjNush0qFiaGKFcnjiyKVwjTnE1EiYA==","signatures":[{"sig":"MEYCIQDQPwAZlL671rdBRgvZzT41O1tkeJJeVMiJ9WDFPcMshgIhAOenxm3SuSiIFKRNmvtQ1oIwURHoSGWQqi4FrNjea6sq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14703},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"07a3aa182caa229bead57866d25e88683d7abcfc","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"11.12.1","description":"```js import * as Route from '@deot/helper-route'; ```","directories":{},"_nodeVersion":"25.9.0","dependencies":{"@deot/helper-utils":"^1.1.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/helper-route_1.1.9_1775549758698_0.370695570828961","host":"s3://npm-registry-packages-npm-production"}},"1.1.10":{"_id":"@deot/helper-route@1.1.10","dist":{"shasum":"d27dc817d7c80baab770080d07dd292eda8d42b0","tarball":"https://registry.npmjs.org/@deot/helper-route/-/helper-route-1.1.10.tgz","fileCount":7,"integrity":"sha512-aKN90K4ZN/6V8xT97CImWh8GELBY1K8UD43L0uY91dSBphK22dXNcup8RkpVApoZRbjW7FrjU2hqf0eonfNwMQ==","signatures":[{"sig":"MEYCIQC96X2LwTdHwdLZq37M3dDSyM5qlUlH+/3ZnsL0gwL9LwIhAJMjYzmfQbSqnzW2HZRnodNnmLC1tDNd962Qtgxab46k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDNfzIXHge2K90w3VvmWjRseM/dJm5W4KS7tNd9V1O0mwIhAK5I3zLRrccxybgiYoS4GGKAPuRzPjZQ+1lDaPuPMkM7"}],"unpackedSize":19178},"main":"dist/index.js","name":"@deot/helper-route","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"75e2a1d6a00104aeaca20f0b4ad93b2baece4209","license":"MIT","version":"1.1.10","_npmUser":{"name":"deot","email":"zrd0921@qq.com"},"_npmVersion":"11.19.0","description":"处理 URL origin、path 和 query 的小型工具集，不依赖浏览器原生 `URL` 或 `URLSearchParams` 实例。","directories":{},"maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"_nodeVersion":"24.21.0","dependencies":{"@deot/helper-utils":"^1.1.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/helper-route_1.1.10_1790257327634_0.5793156942015574"}}},"time":{"created":"2023-07-13T15:47:29.249Z","modified":"2026-09-24T13:42:07.947Z","1.0.1":"2023-07-13T15:47:29.467Z","1.0.2":"2023-08-17T11:12:39.039Z","1.0.3":"2023-08-21T10:12:29.770Z","1.1.0":"2023-08-24T06:05:31.654Z","1.1.1":"2023-08-25T02:35:35.501Z","1.1.2":"2023-11-16T10:09:33.414Z","1.1.3":"2023-11-22T08:48:56.518Z","1.1.4":"2024-06-27T02:48:35.254Z","1.1.5":"2025-01-10T07:58:21.631Z","1.1.6":"2025-10-08T08:13:34.412Z","1.1.7":"2026-03-02T07:22:40.531Z","1.1.8":"2026-03-05T23:48:48.503Z","1.1.9":"2026-04-07T08:15:58.876Z","1.1.10":"2026-09-24T13:42:07.724Z"},"license":"MIT","description":"处理 URL origin、path 和 query 的小型工具集，不依赖浏览器原生 `URL` 或 `URLSearchParams` 实例。","maintainers":[{"name":"deot","email":"zrd0921@qq.com"}],"readme":"# @deot/helper-route\n\n处理 URL origin、path 和 query 的小型工具集，不依赖浏览器原生 `URL` 或 `URLSearchParams` 实例。\n\n## 安装\n\n```bash\npnpm add @deot/helper-route\n```\n\n## 使用\n\n```ts\nimport { merge, parse, get } from '@deot/helper-route';\n\nconst url = merge({\n\torigin: 'https://example.com',\n\tpath: ['users', '1'],\n\tquery: { tab: 'profile', enabled: false }\n});\n\nparse(url);\nget('tab', url);\n```\n\n聚合包以 `Route` 命名空间提供相同函数。\n\n## API\n\n#### `merge(route)`\n\n合并 origin、path 和 query\n\n| 参数 | 类型 | 返回值 |\n| --- | --- | --- |\n| `route` | `Route` | `string` |\n\n修改路径和查询值，查看合并后的 URL：\n\n:::playground\n<!--\n<config lang=\"json5\">\n{ views: ['runtime', 'files'] }\n</config>\n-->\n```vue\n<script setup>\nimport { computed, ref } from 'vue';\nimport { merge } from '@deot/helper-route';\n\nconst path = ref('/users/1');\nconst query = ref('helper');\n// Template 中直接使用。\n// eslint-disable-next-line no-useless-assignment\nconst output = computed(() => merge({\n\torigin: 'https://example.com',\n\tpath: path.value,\n\tquery: { q: query.value, enabled: false, page: 1 }\n}));\n</script>\n\n<template>\n\t<div class=\"demo\">\n\t\t<label>路径 <input v-model=\"path\"></label>\n\t\t<label>查询值 <input v-model=\"query\"></label>\n\t\t<strong>输出</strong><code>{{ output }}</code>\n\t</div>\n</template>\n\n<style>\n.demo { display: grid; width: min(100%, 640px); gap: 10px; padding: 12px; box-sizing: border-box; font: 14px/1.5 sans-serif; }\nlabel { display: grid; grid-template-columns: 64px minmax(0, 280px); align-items: center; gap: 8px; }\ninput, code { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }\ncode { overflow-wrap: anywhere; background: #f8fafc; }\n</style>\n```\n:::\n\n#### `parse(url?, options?)`\n\n解析完整 URL 或相对地址\n\n| 参数 | 类型 | 默认值 | 返回值 |\n| --- | --- | --- | --- |\n| `url`、`options` | `string \\| ParseOptions`、`ParseOptions` | 当前页面路径与查询串 | `{ origin: string; path: string; query: Record<string, any> }` |\n\n编辑 URL，实时查看结构化解析结果：\n\n:::playground\n<!--\n<config lang=\"json5\">\n{ views: ['runtime', 'files'] }\n</config>\n-->\n```vue\n<script setup>\nimport { computed, ref } from 'vue';\nimport { parse } from '@deot/helper-route';\n\nconst input = ref('https://example.com/users/1?q=helper&page=2');\n// Template 中直接使用。\n// eslint-disable-next-line no-useless-assignment\nconst output = computed(() => parse(input.value));\n</script>\n\n<template>\n\t<div class=\"demo\">\n\t\t<label>URL 输入 <input v-model=\"input\"></label>\n\t\t<strong>输出</strong><pre>{{ JSON.stringify(output, null, 2) }}</pre>\n\t</div>\n</template>\n\n<style>\n.demo { display: grid; width: min(100%, 640px); gap: 10px; padding: 12px; box-sizing: border-box; font: 14px/1.5 sans-serif; }\nlabel { display: grid; gap: 6px; }\ninput, pre { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }\ninput { width: 100%; max-width: 480px; box-sizing: border-box; }\npre { margin: 0; background: #f8fafc; }\n</style>\n```\n:::\n\n#### `get(key, url?, options?)`\n\n读取单个查询参数\n\n| 参数 | 类型 | 默认值 | 返回值 |\n| --- | --- | --- | --- |\n| `key`、`url`、`options` | `string`、`string \\| GetOptions`、`GetOptions` | 当前 `location.search` | `any \\| null` |\n\n编辑 URL 和参数名，实时查看单个查询参数：\n\n:::playground\n<!--\n<config lang=\"json5\">\n{\n\tviews: ['runtime', 'files']\n}\n</config>\n-->\n```vue\n<script setup>\nimport { computed, ref } from 'vue';\nimport { get } from '@deot/helper-route';\n\nconst input = ref('https://example.com/users/1?q=helper&page=2');\nconst key = ref('q');\n// Template 中直接使用。\n// eslint-disable-next-line no-useless-assignment\nconst output = computed(() => get(key.value, input.value));\n</script>\n\n<template>\n\t<div class=\"demo\">\n\t\t<label>URL 输入 <input v-model=\"input\"></label>\n\t\t<label>参数名 <input v-model=\"key\"></label>\n\t\t<strong>输出</strong>\n\t\t<pre>{{ output }}</pre>\n\t</div>\n</template>\n\n<style>\n.demo { display: grid; width: min(100%, 640px); gap: 12px; padding: 12px; box-sizing: border-box; font: 14px/1.5 sans-serif; }\n.demo label { display: grid; gap: 6px; }\n.demo input, .demo pre { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }\n.demo input { width: 100%; max-width: 480px; box-sizing: border-box; }\n.demo pre { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; background: #f8fafc; }\n</style>\n```\n:::\n\n#### `Route`\n\n描述 `merge()` 接收的 URL 组成部分。`Route` 是文档中的结构名称，并非可单独导入的类型。\n\n##### 字段\n\n| 字段 | 类型 | 默认值 | 说明 |\n| --- | --- | --- | --- |\n| `origin` | `string` | `''` | 协议与域名部分 |\n| `path` | `string \\| string[]` | `''` | 路径字符串或路径片段数组 |\n| `query` | `Record<string, any>` | — | 查询参数；忽略 `null`、`undefined`、空字符串，保留 `false`、`0` |\n\n#### `ParseOptions` / `GetOptions`\n\n控制 `parse()` 和 `get()` 的输入与查询值转换方式。这两个名称用于文档表达，源码中的接口未从包入口导出。\n\n##### 字段\n\n| 字段 | 类型 | 默认值 | 说明 |\n| --- | --- | --- | --- |\n| `url` | `string` | 当前页面 URL | 待解析的 URL 或查询串 |\n| `parse` | `boolean \\| ((value: string) => any)` | `flattenJSONParse` | 函数时转换参数；`false` 时保留字符串 |\n\n## 编码约定\n\n实现只对 query 的值执行 `decodeURIComponent`，不会先解码整条 URL，以避免 `%26` 被提前转换成 `&` 后破坏参数边界：\n\n```ts\nget('a', '?a=%26'); // '&'\nmerge({ query: { a: '&' } }); // '?a=%26'\nparse('?a=%26').query.a === '&'; // true\n```\n","readmeFilename":"README.md"}