{"_id":"@c0ldra1n/svero","_rev":"5-74924f5ea038f2792571502f5a0b7609","name":"@c0ldra1n/svero","dist-tags":{"latest":"1.0.0-4"},"versions":{"1.0.0":{"name":"@c0ldra1n/svero","version":"1.0.0","description":"Simple Router for Svelte 3","main":"dist/svero.js","svelte":"src/main.js","module":"dist/svero.es.js","browser":"dist/svero.min.js","peerDependencies":{"svelte":"3.x"},"devDependencies":{"chromedriver":"^78.0.1","http-server":"^0.11.1","kill-port":"^1.3.2","nightwatch":"^1.0.19","rollup":"^1.14.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-svelte":"^5.0.3","rollup-plugin-terser":"^5.0.0","svelte":"^3.4.4"},"dependencies":{"abstract-nested-router":"^0.1.3"},"scripts":{"test":"kill-port 5001 && npm run test:server & npm run test:build && npm run test:run","debug":"kill-port 5001 && npm run test:build && npm run test:server","test:server":"http-server test/public -s -p 5001","test:build":"NODE_ENV=test rollup -c","test:run":"nightwatch","build":"NODE_ENV=production rollup -c"},"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"keywords":["router","svelte","svelte3"],"author":{"name":"Claudio Holanda"},"license":"MIT","bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"homepage":"https://github.com/kazzkiq/svero","gitHead":"12a20932ba92c1a178fa3dd5d0ab995f23672801","_id":"@c0ldra1n/svero@1.0.0","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-BOXNZT2HJBOZCg108f+POy1VNbzIJ7jpA0LltnM/fOGRLdRSQw6QxWViJlhjXoSAJrUs8lCYLHY/2m7pIN6c/g==","shasum":"3ef3372cbc60b6d0c9288052679ac2e4bc5584f4","tarball":"https://registry.npmjs.org/@c0ldra1n/svero/-/svero-1.0.0.tgz","fileCount":12,"unpackedSize":57971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdx7XKCRA9TVsSAnZWagAATQsP/2llhgfLIVZFUnZKjq9G\nIhB7G4G//knzvP/zgqT0+OeIar+UgIL/bpKTqWq9HRYO7T98AKB8EFZWjLlz\nZC4NUTdL+fcwxy1+XxSzp0/MQSx6rEWmfn6Hc4z3kmKP0a1dST6SKTL9fVY/\nUo0uyyFvBNDkqZUH9+VMQQyX+B9NwSCkwcXvVsjxPhSNajwDUER/22EaXZKe\nvEeTDzNCk+h0AgaHwtUCS4bI0bFfGed4cX154CUEM1x5+m8Q0eRvTdseEmIx\nuth7DxBzCUCwTv7pdUh4iWbUxNgGMgfCf8BUMDdouAgoUOrGqTwBfygnA39R\nLq3CmKQsvE3zBkclx3bYWk91HnlGNCTO5csIJO5aE8J3BszUi+Z6wiWQzzum\ndJfRiSEVDB9SQxZp/6XzmnD/SBY96JBK4Fuzl9oX7RGezciD96dp/AD0L04C\njNN3rKyp6V+PziI9VPMA9MbbxC36Tgcby0PkixnNoarSVumHZeEmgN+6YWxV\nf0yuFyhxxguObB135QHPZH+XGLZdRI7qchWz39zviOzDuOjgZWwYchnFZTNp\nNAFOTFEPl/tQTDEAVT7zNiJs1QCZXbfnAgzOOorM76Ahb+10CheAaqiRZif2\nIDNv0uNyD7mtWZ2IG9cEJTX8QUvHr9kkOJLJod4ngwKge+oP5ElPs2oWPQYH\neuG6\r\n=DawO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAOevhDyaD6DHqi9KYp36MyndvaD6lCtKPahT9VJ6BwRAiEAkNApTeAJXR67wX1xW/33lrMQutx/nEyO71KIEKmtWOE="}]},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"_npmUser":{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svero_1.0.0_1573369290347_0.13200868111985264"},"_hasShrinkwrap":false},"1.0.0-1":{"name":"@c0ldra1n/svero","version":"1.0.0-1","description":"Simple Router for Svelte 3","main":"dist/svero.js","svelte":"src/main.js","module":"dist/svero.es.js","browser":"dist/svero.min.js","peerDependencies":{"svelte":"3.x"},"devDependencies":{"chromedriver":"^78.0.1","http-server":"^0.11.1","kill-port":"^1.3.2","nightwatch":"^1.0.19","rollup":"^1.14.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-svelte":"^5.0.3","rollup-plugin-terser":"^5.0.0","svelte":"^3.4.4"},"dependencies":{"abstract-nested-router":"^0.1.3"},"scripts":{"test":"kill-port 5001 && npm run test:server & npm run test:build && npm run test:run","debug":"kill-port 5001 && npm run test:build && npm run test:server","test:server":"http-server test/public -s -p 5001","test:build":"NODE_ENV=test rollup -c","test:run":"nightwatch","build":"NODE_ENV=production rollup -c"},"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"keywords":["router","svelte","svelte3"],"author":{"name":"Claudio Holanda"},"license":"MIT","bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"homepage":"https://github.com/kazzkiq/svero","gitHead":"7bbaff6d5eaba33eec813569612ae0ff9b40b3c1","_id":"@c0ldra1n/svero@1.0.0-1","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-uoIV0AfouEKP1UhNBIFhNg0ZaQJMnb65UzA9EJf/VPTA0X+xx/yIjtqLSLkc/AO286PbNamTI58tvASo4o7z+w==","shasum":"27e8e453d6286f7274d5bc693c0cbc3a3688d765","tarball":"https://registry.npmjs.org/@c0ldra1n/svero/-/svero-1.0.0-1.tgz","fileCount":12,"unpackedSize":58001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdx7iyCRA9TVsSAnZWagAA058P/iiGfA1GLam9Do9ujSIi\nUAemkcK0LaMr6W6jeBqmV0ivWvmX4spEkyT88E0Wr1lQFoMkAmAdZqr4BwL8\nC3fjiGBBL5mDfnS3WTCqe1TEhLmVBb39bo7mwL9LqZur48QOObWoTODVkZp5\nw0GgL9EG2saOfturS5/AY0wxPTtCz+CD+C3j8TsK9Iawa8PhdZS7Pg7hiwlM\nFTiyc8wvkVuDydWZ1s+axuq3PyeKWIxlhBJMfkXSmE3q2zB2CVut9sAGfhhn\np2IvkvhxmeGsCF5RBAm9H+/Jnw1LzQE8dJ9mXSMvY73M9WLxX8qvzruMRCTv\no8YcJyJtJXmKtA4CqTfcOwZxYy8H3RbtAxYamk/EPefdwzgFjDXaOfp2NpFg\n16OfwObHr9fwVoL8kJCdCO7FafGfytdRd5oe1C8KdDbcq6Q+iaxXDbp+FNKn\nrCNn5TUjLcm/ApU8cReO7Lq2MrA5YDihPaLKulk9zN+PJUwouSH5JjkRMJUo\nynUNUIXpJtWcvCIYSIj/xjqizSB00dAaYdCrPgX0NZw4YjKbcwx+iNUoyI31\n89xmRrHCuUaex2XwuLFQihs2rbGc4MkXShnJwGYXZ683g8ZISZoXVpjN6HdJ\nKFWDP2a7XtXBgGuU10i2/oGuwmlFok42s1mB7fOGtGhRUn1+2LCDs9n9qJxd\nd/5x\r\n=ryUv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYD4pjKHUsTfLJ9KmtgjofCt1aHXBQ5A3DktpUx+/VkAIhAK9Jr5bi/tw7NdQRBqkqcJm2Jrsrw7jgTVM1WV+OdEjS"}]},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"_npmUser":{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svero_1.0.0-1_1573370033886_0.056473390270927126"},"_hasShrinkwrap":false},"1.0.0-2":{"name":"@c0ldra1n/svero","version":"1.0.0-2","description":"Simple Router for Svelte 3","main":"dist/svero.js","svelte":"src/main.js","module":"dist/svero.es.js","browser":"dist/svero.min.js","peerDependencies":{"svelte":"3.x"},"devDependencies":{"chromedriver":"^78.0.1","http-server":"^0.11.1","kill-port":"^1.3.2","nightwatch":"^1.0.19","rollup":"^1.14.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-svelte":"^5.0.3","rollup-plugin-terser":"^5.0.0","svelte":"^3.4.4"},"dependencies":{"abstract-nested-router":"^0.1.3"},"scripts":{"test":"kill-port 5001 && npm run test:server & npm run test:build && npm run test:run","debug":"kill-port 5001 && npm run test:build && npm run test:server","test:server":"http-server test/public -s -p 5001","test:build":"NODE_ENV=test rollup -c","test:run":"nightwatch","build":"NODE_ENV=production rollup -c","prepublishOnly":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"keywords":["router","svelte","svelte3"],"author":{"name":"Claudio Holanda"},"license":"MIT","bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"homepage":"https://github.com/kazzkiq/svero","gitHead":"fcabf47050e60d9e57803344a7e16026efc6fb36","_id":"@c0ldra1n/svero@1.0.0-2","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-tRB/lk6Ur2Fhbyygoc4bqYgJRzQP0fCkoluCaQAgfLWonv7n2jLZfgJSgxZsSTVxO/Gnx3T2TWTUQ+3TfKB2Sg==","shasum":"7362a346cddb927fa3afafed1cbe7c73272e0b1f","tarball":"https://registry.npmjs.org/@c0ldra1n/svero/-/svero-1.0.0-2.tgz","fileCount":12,"unpackedSize":58227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdx7llCRA9TVsSAnZWagAAeLkP/iiGiu8UmZoAwKTOQX1w\nB00D0Y4ZJDXjJ/3lhQnLU1dSqbt42dVn55REfTgtFb5q6VI1N1ZHR3zrGyBP\nCUVQy2y8UoytjQF+o0bnoYKCEjaEjsUUGKbz6gk5wh2sl3erEC1ydKzCcNtW\n2acYFKPuDRFQYZxLJJA+YT+rx4cY24MVCEsTyKVFdpyU5eVKdZ8wCIVwwc8K\n81GYUeONR5t+kaP2GOneN7+tKOIzpCY0eatg9iWp+emCZitb/nB4Jwo8VJlF\n+heUbWqKF6ABFADiFuDfkAfERX5ECghxt6KNuXTHmJ+4ZGulNiu9XpC4AxOi\njSq3QLy6UE/uWJ7K3xlfZu6B8RjfGzfw5Zx4ZGu04d3l9Vu4Y+p/hO7sZvHJ\nkhoFPu8Eeh4XgN+RFR3CXeBEarCM7gFFhKAj2HF7lT5ZWIcyYkblSBA8ii4Q\ncxn7IHog9b01x0Ts4FTDvKrDLamPGw0G7sRheInvJrNRe/Lzf/5sUlgNCNTq\nxlYK4F1Kn3Q0tJi5ZyLlLemHnTYTk/mdTvhjfgulmYipTjMUb0LDBM8qjm7r\nlJkPni44lIxguuvBHWeCc9hh56XR25eS9jlxXPJP8hL2t2yr00UGOkZDBJP/\nYUxFjMNCYuQQe8WjJs/2YxtSau5nA4xQ2Ep42FVRgefnYisnxmSE6YByXauy\ndsLh\r\n=mEtg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXZwFrjcq3CZtpwXjEliHgNxdMTGMP41C0RIxO9vpz2gIgZkvksnyqP5ZpGbS0t7HAcNUUi3NUNFG4I/3JOBPTvZ0="}]},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"_npmUser":{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svero_1.0.0-2_1573370212840_0.8382286725615302"},"_hasShrinkwrap":false},"1.0.0-3":{"name":"@c0ldra1n/svero","version":"1.0.0-3","description":"Simple Router for Svelte 3","main":"dist/svero.js","svelte":"src/main.js","module":"dist/svero.es.js","browser":"dist/svero.min.js","peerDependencies":{"svelte":"3.x"},"devDependencies":{"chromedriver":"^78.0.1","http-server":"^0.11.1","kill-port":"^1.3.2","nightwatch":"^1.0.19","rollup":"^1.14.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-svelte":"^5.0.3","rollup-plugin-terser":"^5.0.0","svelte":"^3.0.0"},"dependencies":{"abstract-nested-router":"^0.1.3"},"scripts":{"test":"kill-port 5001 && npm run test:server & npm run test:build && npm run test:run","debug":"kill-port 5001 && npm run test:build && npm run test:server","test:server":"http-server test/public -s -p 5001","test:build":"NODE_ENV=test rollup -c","test:run":"nightwatch","build":"NODE_ENV=production rollup -c","prepublishOnly":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"keywords":["router","svelte","svelte3"],"author":{"name":"Claudio Holanda"},"license":"MIT","bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"homepage":"https://github.com/kazzkiq/svero","gitHead":"87c8c2d3639a6e4841dec2002bfa6c2d16d81105","_id":"@c0ldra1n/svero@1.0.0-3","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CRWaI7pQXdgqC/MLFQxZx9ErlKhoihrQMpeE6Oc5h/wvnUujo94+5RP7/JVvBsb9O57GLCv1urkTeeqqe5hlGg==","shasum":"acbf9ab1684811d3783a9931e562dadafde1b28a","tarball":"https://registry.npmjs.org/@c0ldra1n/svero/-/svero-1.0.0-3.tgz","fileCount":11,"unpackedSize":52131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzsbTCRA9TVsSAnZWagAABV4P/jFttV4ftIBdwSp0WvLD\nuOHSovuAnO1000g0TMUqEQISLaqvaCyClO+aYIr+jJw23r0X7D3VEjr71AP8\nGjPZCkoT90oU6gkZAxLhmfdB7DH7GQWIM0qpiEijN2L+nj1+R1iPm8Br14jU\n5N1Bn0UNnaj755bJUsB37p8R4/rXVySYoa/sgu5W11ybfmsKksDTaomrzcNe\nO9G+al4HaWbTL2hHdQFZC1oG2R8VRTFrdbS4mKODZV4f8xZiyGtFfOLAYYqp\n06/UT2iqIX8pmzDc/1QZG1KUT3v+qYuW8/dtCILixTQaFFYrL4/4CG9C4YtQ\nBZz4Xmox+3m67/ChT5+9VuvfiUDv9/WTqOS4DHqfTmLBAVHVsWF5DkrTk1bI\n/ubv/Ub3/7FEmG6ej2ruHwN4Fnp58UJ05cVkindfai0KVw14L4ytb62PF91f\naoWd5ibONGCj7hRVp33ijOseR0hae5IfOBOY5I9LyGGI5DTm4OByQq+fgCZz\ncpq91oo8rmfBYFtNR0NDgUYL3nE+ANSlBFEE+JUtS4OCUUNGPdWmWZ+Nc5sm\nY10If++Z+GWfnMfyeR4iozlkn+S8tQXKqhLhXWoXQ7wFAMPtlqZ5PEUKkHUJ\nItVwC9aOM9qiMTxNS+JEzASrK1o2TI0iKh1Q+ClgB2kznxBlsiCfJK7zzVqE\nlPoO\r\n=HWwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3RvGz4tqsbOvZfcvC9qSBRZEUeTZEg62QarqEigHdJAiAxxb8WHJj0xuln3B8aD1z+oappFJMp6avgSBw+qVwRbQ=="}]},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"_npmUser":{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svero_1.0.0-3_1573832402731_0.6476657974257547"},"_hasShrinkwrap":false},"1.0.0-4":{"name":"@c0ldra1n/svero","version":"1.0.0-4","description":"Simple Router for Svelte 3","main":"dist/svero.js","svelte":"src/main.js","module":"dist/svero.es.js","browser":"dist/svero.min.js","peerDependencies":{"svelte":"3.x"},"devDependencies":{"chromedriver":"^78.0.1","http-server":"^0.11.1","kill-port":"^1.3.2","nightwatch":"^1.0.19","rollup":"^1.14.4","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.1","rollup-plugin-svelte":"^5.0.3","rollup-plugin-terser":"^5.0.0","svelte":"^3.0.0"},"dependencies":{"abstract-nested-router":"^0.1.3"},"scripts":{"test":"kill-port 5001 && npm run test:server & npm run test:build && npm run test:run","debug":"kill-port 5001 && npm run test:build && npm run test:server","test:server":"http-server test/public -s -p 5001","test:build":"NODE_ENV=test rollup -c","test:run":"nightwatch","build":"NODE_ENV=production rollup -c","prepublishOnly":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"keywords":["router","svelte","svelte3"],"author":{"name":"Claudio Holanda"},"license":"MIT","bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"homepage":"https://github.com/kazzkiq/svero","gitHead":"a03696091d6b70a1d1f36b07013b5e318329df62","_id":"@c0ldra1n/svero@1.0.0-4","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-gTLN6P5HsUMQugKaIdMJYBdkMS8x5u9YFD90k5RL0o+vGpJtKaxlhE1h6IdJGl6OxEB2NWXqwxUCtA4oLZqYFA==","shasum":"2a559083853cd9d81ef9f5d2fe837b216ab22663","tarball":"https://registry.npmjs.org/@c0ldra1n/svero/-/svero-1.0.0-4.tgz","fileCount":12,"unpackedSize":58278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdz2fNCRA9TVsSAnZWagAA7mgP/A6M+paSPCiSznDkB0lY\nY0c5cQTjnyw7loI4Y7eg9FRerTLPnQBUrpzjhnLTUNN2c+/fyTDc6P9RYom+\nHoA2KsXLSV3D85Ye5lOupsF4aOnlBpMj+VXmJRPI3Pdu7radsRsxRxp9Qol9\nMQUt0V+ifkGjbfSe8dLh1mQ3hSX2BThOM0Y9v0f0pR6f0OqD2Tg5FulPeQqq\nKPiXqQMO8P+1fcKEPE9q8q2yiwXq2Fdo8PIyNoX2O0XFI7nb6z9nuK1Ie84J\nWqFLUFYHjjw8H7ouX5V52lq852xeydSpO6csaIVEY/zqChn1Nyxjd93J8b4H\nW+7pE970TS+fRld1PCKVdQmoIUFqdUv5LV5KQvgDiPuJWeh3LbeuDV88WbdM\nXoQQ59H4JXUxx3nHrGMPBEyHSHfqCA29wMyDgBijhZdHnabuALR00et9yCek\nq+MEc0Xx9Ya7aB4mSZwxOfUMs/9OpYRCx7l+jc6Os4iLrKv260jMCEcnWnvx\nsAZkqJEMeMc0KoL525JT9FsKMKj8vRAgHmMhju5+cAuxTjtO6URyCzVig31N\nuDkhm62D1ZhSDLc+/7e0Pf4b69jZjqgdyqG34hGMN2sHYPoFdoiFcoM15++7\nY9zdD9EogEtwqxgwcwv7JABhR+0McSKOsWrBuc0cM1OffNaFaOtTYV1SfxJy\n8OL1\r\n=MD7k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8FIAIxb4sJueNihq+2tSo/TMkVmNbitciCZtwIx+xcAIgS1oUV/azx48QvE72aOhukvV/5xCFubBQN800tgS3HLE="}]},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"_npmUser":{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svero_1.0.0-4_1573873613188_0.8975889038258766"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-10T07:01:30.116Z","1.0.0":"2019-11-10T07:01:30.506Z","modified":"2022-04-04T21:23:59.861Z","1.0.0-1":"2019-11-10T07:13:54.069Z","1.0.0-2":"2019-11-10T07:16:53.001Z","1.0.0-3":"2019-11-15T15:40:02.862Z","1.0.0-4":"2019-11-16T03:06:53.356Z"},"maintainers":[{"name":"c0ldra1n","email":"c0ldra1n.dev@gmail.com"}],"description":"Simple Router for Svelte 3","homepage":"https://github.com/kazzkiq/svero","keywords":["router","svelte","svelte3"],"repository":{"type":"git","url":"git+https://github.com/kazzkiq/svero.git"},"author":{"name":"Claudio Holanda"},"bugs":{"url":"https://github.com/kazzkiq/svero/issues"},"license":"MIT","readme":"[![npm version](https://badge.fury.io/js/svero.svg)](https://www.npmjs.com/package/svero)\n[![Build Status](https://travis-ci.org/kazzkiq/svero.svg?branch=master)](https://travis-ci.org/kazzkiq/svero)\n\n<p align=\"center\">\n  svero (<b>Sve</b>lte <b>Ro</b>uter): A simple router for Svelte 3.\n</p>\n\n## First things first\n\nsvero is intented to be used in SPA (Single Page Applications) making usage of `pushState` and History API. We're assuming that you already know how to configure your front-end server (being it dev or production) to serve all path requests to `index.html`.\n\nIf you're not familiar with the terms SPA, `pushState` or History API, you should probably be reading these first:\n\n<small>http://krasimirtsonev.com/blog/article/deep-dive-into-client-side-routing-navigo-pushstate-hash</small><br>\n<small>https://css-tricks.com/using-the-html5-history-api/</small><br>\n<small>https://diveinto.html5doctor.com/history.html</small><br>\n<small>https://developer.mozilla.org/pt-BR/docs/Web/API/History</small><br>\n\n## Installation\n\nSince it's exported in CommonJS format, you should be using it with a module bundler such as [Rollup](https://github.com/sveltejs/template/tree/v3) or Webpack.\n\nYou can install svero via npm:\n\n```\nnpm install --save svero\n```\n\n## Usage\n\nThe usage is super simple:\n\n```html\n<!-- ./App.svelte -->\n<script>\n  import { Router, Route } from 'svero';\n\n  import Index from './pages/Index.svelte';\n  import About from './pages/About.svelte';\n  import Employees from './pages/Employees.svelte';\n\n  let employees = [{ id: 1, name: 'Bill'}, { id:2, name: 'Sven' }];\n</script>\n\n<Router>\n  <Route path=\"*\" component={Index} />\n  <Route path=\"/about\" component={About} />\n  <Route path=\"/about/:who/123/:where\" component={About} />\n  <Route path=\"/employees\">\n    <Employees {employees}/>\n  </Route>\n</Router>\n```\n\nThe `*` wildcard simply works as a fallback. If a route fails to meet any other path, it then loads the path with the `*`. If there is no wildcard route and the route did not meet any other path, nothing is loaded.\n\nYour custom props can be passed by putting your component in the Route `slot` (Employees example above).\n\nPaths with parameters (`:param`) are passed to components via props: `router.params`.\n\n> Parameters like `*param` will capture the rest of segments. You can access them as `router.params._` like other params.\n\nA component loaded by `<Route>` receives a property with route details:\n\n```html\n<!-- ./pages/About.svelte -->\n<script>\n  export let router = {};\n\n  // Those contains useful information about current route status\n  router.path; // /test\n  router.route; // Route Object\n  router.params; // /about/bill/123/kansas { who: 'bill', where: 'kansas' }\n</script>\n```\n\nAdditional properties are passed to the mounted component, e.g.\n\n```html\n<Route component={Test} title=\"Some description\" />\n```\n\nAlso, you can pass an object:\n\n```html\n<Route component={Test} props={myProps} />\n```\n\n> `Route` props are omitted, but all remaining ones are passed to `Test`.\n\nRoutes can also render any given markup when they're active, e.g.\n\n```html\n<Route path=\"/static-path\">\n  <h1>It works!</h1>\n</Route>\n```\n\n> You can access `router` within `<slot />` renders by declaring `let:router` on `<Router />` or `<Route />` components (see below).\n\nIf you're building an SPA or simply want to leverage on hash-based routing for certain components try the following:\n\n```html\n<Route path=\"#g/:gistId/*filePath\" let:router>\n  <p>Info: {JSON.stringify(router.params)}</p>\n</Route>\n```\n\nStandard anchors and `<Link />` components will work as usual:\n\n```html\n<a href=\"#g/1acf21/path/to/README.md\">View README.md</a>\n```\n\nDeclaring a component `<Route path=\"#\" />` will serve as fallback when `location.hash` is empty.\n\n### Nesting\n\nYou can render `svero` components inside anything, e.g.\n\n```html\n<Router nofallback path=\"/sub\">\n  <Route>\n    <fieldset>\n      <legend>Routing:</legend>\n      <Router nofallback path=\"/sub/:bar\">\n        <Route let:router>{router.params.bar}!</Route>\n      </Router>\n      <Route path=\"/foo\">Foo</Route>\n      <Route fallback path=\"*\" let:router>\n        <summary>\n          <p>Not found: {router.params._}</p>\n          <details>{router.failure}</details>\n        </summary>\n      </Route>\n      <Router nofallback path=\"/sub/nested\">\n        <Route>\n          [...]\n          <Route fallback path=\"*\">not found?</Route>\n          <Route path=\"/a\">A</Route>\n          <Route path=\"/b/:c\">C</Route>\n          <Route path=\"/:value\" let:router>{JSON.stringify(router.params)}</Route>\n        </Route>\n      </Router>\n    </fieldset>\n  </Route>\n</Router>\n```\n\nProperties determine how routing will match and render routes:\n\n- Use the `nofallback` prop for telling `<Router />` to disable the _fallback_ mechanism by default\n- Any route using the `fallback` prop will catch unmatched routes or potential look-up errors\n- Use the `exact` prop to skip this route from render just in case it does not matches\n- A `<Route />` without `path` will render only if `<Router path=\"...\" />` is active!\n\n> Note that all `<Router />` paths MUST begin from the root as `/sub` and `/sub/nested` in the example.\n\n### Redirects\n\nSometimes you just want a route to send user to another place. You can use the `redirect` attribute for that.\n\nA redirect should always be a string with a path. It uses the same pattern as `path` attribute. For a redirect to run, there must be a Route with the equivalent path.\n\n```html\n<Router>\n  <Route path=\"/company\" redirect=\"/about-us\">\n  <Route path=\"/about-us\" component={AboutUs}>\n</Router>\n```\n\n### Conditions\n\nIf you need to meet a condition in order to run a route, you can use the `condition` attribute. Conditions can also be used with `redirect` for graceful route fallback.\n\nA condition should be either `boolean` or a function returning `boolean`. There is no support for asynchronous conditions at the moment (so keep it simple).\n\n```html\n<Router>\n  <Route path=\"/admin/settings\" condition={isAdminLogged} redirect=\"/admin/login\">\n</Router>\n```\n\nThink of it as a simpler middleware. A condition will run *before* the route loads your component, so there is no wasteful component mounting, and no screen blinking the unwanted view.\n\n### Link Component\n\nThere is also an useful `<Link>` component that overrides `<a>` elements:\n\n```html\n<Link href=\"path/here\" className=\"btn\">Hello!</Link>\n```\n\nThe difference between `<Link>` and `<a>` is that it uses `pushState` whenever possible, with fallback to `<a>` behavior. This means that when you use `<Link>`, svero can update the view based on your URL trigger, without reloading the entire page.\n\n> Given `href` values will be normalized (on-click) if they don't start with a slash, e.g. when `location.pathname === '/foo'` then `#bar` would become `/foo#bar` as result.\n\n### navigateTo()\n\nIn some cases you want to navigate to routes programatically instead of letting user click on links. For this scenario we have `navigateto()` which takes a route as parameter and navigates imediatelly to said route.\n\n`navigateTo()` receives the same treatment as `<Link>`: It will always try to use `pushState` for better performance, fallbacking to a full page redirect if it isn't supported.\n\nUsage:\n\n```html\n<script>\n  import { onMount } from 'svelte';\n  import { navigateTo } from 'svero';\n\n  onMount(() => {\n    if (localStorage.getItem('logged')) {\n      navigateTo('/admin');\n    }\n  });\n</script>\n```\n\n### Webpack issues\n\nIf you're having trouble with Webpack failing to load svero, please replace the following rule (in Svelte rule):\n\n```js\nexclude: /node_modules/,\n```\n\nwith:\n\n```js\nexclude: /node_modules\\/(?!(svero)\\/).*/,\n```\n\nMore information [here](https://github.com/kazzkiq/svero/issues/23).\n","readmeFilename":"README.md"}