{"_id":"@boostedts/next-rest","_rev":"10-8643738041ed6cbfb885a689027a7fc3","name":"@boostedts/next-rest","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@boostedts/next-rest","version":"1.0.0","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@hapi/boom":"^9.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","joi":"^17.4.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"peerDependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"dependencies":{"sinon-express-mock":"^2.2.1"},"gitHead":"5acc45eb3f88f4749cf8d49e14ad0ca05e43ad4b","description":"![NPM](https://img.shields.io/npm/l/@gjuchault/typescript-library-starter) ![NPM](https://img.shields.io/npm/v/@gjuchault/typescript-library-starter) ![GitHub Workflow Status](https://github.com/gjuchault/typescript-library-starter/actions/workflows/types","_id":"@boostedts/next-rest@1.0.0","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-rOVPKKRSQdH7k/PiRA+0p+lnpqGpG2rTK+nQuoCh2lLNL3xrXAj/HRXLQaJmdO/tSs2gdnE8Gg86MvAQqlt4Ww==","shasum":"98108c19d4dcfe89ca3de1f9949caf5d5665c4e6","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.0.tgz","fileCount":38,"unpackedSize":55111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP+fhCRA9TVsSAnZWagAA1mAP/3+Kzh415qHlKlZ+PKy2\n2mksRzupbckncKh3xt9sPWkaIU7aU9HzORXkcEmE0WeskjshgMh7ceXLm6+B\nDDqLdoj9WlqOqhy0gSW1zLRy2EJ5ILxETE9sKfUDD1r/Eq2aQ02zpB83bJ8X\nVLmBnuEw5sac+oiI5wRQnfg1WVTkzI2dJhHvlH7UdXVaEPfN+MSZUSX5Ot6T\nvM/IxpjE6e61LnLyGyjlTTm/oq5GKxCffMtJi53+eSAMKLcExjpn1GhScc0T\nyrSquzL9fu2StRlc81SB19FFPPk4+1wRhrn8GoALzcQIleXIDVL8oKCBBW9P\nJrl9Abn6ecDBMBNBx5laLnrGxIbsBQ0ZYyMSvkKe4daz3dBnPav0srUzsndt\nggsccKUnNhbkgKGdzVu/SfgtRbocsIzlSup/ZoOUo0sU+jJemmjRhgi1lIh7\nYl1jkViXTjY7BoZY1wfY+FnBwEyYtoOHwj81fE+jDMjq2MAJaKHD7rMgC4xN\nuGZ54iJO/M+KEg2DPcpzdPexWDktA0r8pZ3hA2SJGfnYnEjJmA2y722vjN2Z\nWoH0U2MWHIAfVMipZ5sorKE4KOVhzmojT7JXbx04unhAEQxs5/botO6xLOiH\nZIMGE4wr/Iv4Ve4I+CZkJI321MDzgBDqQoKzieTPKDLgmLowDS6nDFobeNnh\n/tjZ\r\n=edAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFe46aA2owbrnpiK5JQ1LoEgVSnjsHw6y2FaW65q0wlgIgW81tRwUFgQ/EGj8EO1hKUkKM0SMheG+4s7ZzK3yr/d0="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.0_1631578081125_0.3180046342046452"},"_hasShrinkwrap":false},"1.0.1":{"name":"@boostedts/next-rest","version":"1.0.1","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@hapi/boom":"^9.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","joi":"^17.4.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","source-map-support":"^0.5.20","typescript":"^4.4.3","sinon-express-mock":"^2.2.1"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"peerDependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"039e620d02dae37e9e4b04706d273db1f20b06ca","description":"![NPM](https://img.shields.io/npm/l/@gjuchault/typescript-library-starter) ![NPM](https://img.shields.io/npm/v/@gjuchault/typescript-library-starter) ![GitHub Workflow Status](https://github.com/gjuchault/typescript-library-starter/actions/workflows/types","_id":"@boostedts/next-rest@1.0.1","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-aIVYnIVKv4ZNyOCawBs1w8EhAtCWafl6itCeZdhlkH9ZoTW8jyyDaEalfBGwTEeSXe7Rc1NZyrT6AYcIZ/QUmw==","shasum":"a3bc3197b660e53aea0c5500a5c0337b308d56fc","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.1.tgz","fileCount":38,"unpackedSize":55177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP+lWCRA9TVsSAnZWagAAY+wQAIdDA0X6sst6BkHRFbLI\nJjMkvtjqsmqYXbtsfQkaICnp2x0zj7yjG3ZIBmNVK80RP2N0R8y3xn+LtJRS\nX5/1QEtVsLgowMuByOLmO7Q34gfcRUDQ8GQgBehx8B11oRIRQ8N+47kkNI7a\nT5TFDW6qhjSv7hpdXW0uu3t/vFokymKXYNjF6MXfi1c1Kl6wbw7vnbtawEql\nnG9lIxTBeQyo+SV10LhvvR15RyPmxEdEtaJfY1/2CaasR6r53eqQgeBUAE0x\nIHL0gS2cnvs69kD/Mm2hLc8hkJ+vb0eUCfaKl7QHdP41zC1VIUi7ggnQyHlM\n1O1LbzZlOnzN/yv8iqHgvS+J+GhAbl/bwLDu40Qs7cvDYqzMYOASBzYxBGRN\nLLgarzBRbTuDNNEXT+kTv7NZppagIntd9kB6lytHsQ5d7My8iYD8BqW0v+JV\nYUj8JYABpidKATl48I2pOLJHr9Hvsit7aRvgYcm4wJQQRFUItootlRbRsGSY\n1EZ8XmfUnfWyT0/K672OJR39ZcY8uAFDHBpRobDnuk0+d7mrBRHZ4Ele8Yl1\nPk8aLGpPeW3ZoBer2HHPufAYpoSRJUFb+u+jU1iR/mWinPtT2WI0LdcBWxM0\niCYvcuzVjdAOHLHXKbsPILjPZyR+AjjObJr7TFbVw3COSKWzFej4xqS4t+0k\n6Zb6\r\n=7b2E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArzCO3hQaLGFEUSFO3bhiviWxKdqhVNrehM/YLv/JrgAiEA0MDyDehv1+kBlt4O/mK0t24Vb/fQitarU+8pwd+nhXg="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.1_1631578454271_0.822599026128205"},"_hasShrinkwrap":false},"1.0.2":{"name":"@boostedts/next-rest","version":"1.0.2","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@hapi/boom":"^9.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","joi":"^17.4.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","source-map-support":"^0.5.20","typescript":"^4.4.3","sinon-express-mock":"^2.2.1"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"peerDependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"5824daf0901343bd3456ffa3e1739fb2cdfa2306","description":"[![NPM](https://img.shields.io/npm/v/@boostedts/next-rest)](https://www.npmjs.com/package/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","_id":"@boostedts/next-rest@1.0.2","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-bulNcoyGjDsFh27TqYk2FaOacyicrQK3nf7th0LbNHF+60Qob23yzzWohYB4juQMMnJFkPLsUfpcXyhkMVrDQQ==","shasum":"b552fd0a33b30f42851798f920f6c853be3e356a","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.2.tgz","fileCount":38,"unpackedSize":59427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP++uCRA9TVsSAnZWagAAj9oP+wYLJ67i2xDsxdSlMJqj\nTW1tBaO+O8xzoO8p9/jLzAtV1zxIkKqlj3bN0lI+NeRc3CoOmhmEWR9OmMat\n29+WWtfix524Nxhm2FzRRNiPLtuag77va9BmktYPNwBlNIUxXKdIp8g0XF5F\nYx9cGJZ5/3k1YROYC45kwXYzK7FwJaXfWmlPmAjRZMmo/Rq125/cbQqamiJ2\nM/FgGxUhP8ane9B+G3Ir7fV2aKs+Okax8ryGsmm7zxOMKT1bNRAm0S4A2+7p\nyoOs7i8dt3EG+cgoJYHdr5lVgRB63RFo2BnM6EIFdalrOipLyxRf9ipQkOE6\nfbtbj07F+D/xKr1WLFQG1HYshLBfpK7Zwh1fBuACKioewqpOSaKa7LbHDnzn\nZxjeKuHjYkOQ+MmTOwWhtgrAnAoijtM1rb23cR8gzRIwNXe28R4o70xBu2Ks\ngJO/LV9MTXqCO7BcveMHGBGNJeWm2EAE6Y3wjziZVUfd9GIU8+Do1ywzucGO\noxmogapO59PEmK0bfWskv2TuZik90WMwgKq/S6gvF9Co2lLIwi4Mi1sB8WOv\nur11D7DZxCbsD+8EXvci8kRRNReC3b3GtQVpnTMZlNdq4JIpbmb+fhp0uIHv\nudzZBFyxoZu7Yyj/sJJKTstGb3FG+daMK3hy0eroQjTcMXqmFTA3utH0/5VO\nkeer\r\n=7O0c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBALbn8/YIizglqrCwgcWeOxRxMW5OujkolivvDApvuDAiEAv8GW4+n4WMN7gUcP3rjsbHDaoUXmxEpkFWrkppiR2Fg="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.2_1631580077821_0.5957277145975473"},"_hasShrinkwrap":false},"1.0.3":{"name":"@boostedts/next-rest","version":"1.0.3","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@hapi/boom":"^9.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","joi":"^17.4.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","source-map-support":"^0.5.20","typescript":"^4.4.3","sinon-express-mock":"^2.2.1"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"peerDependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"44595b3e945788fb9aa6f79db1c9a8cdccb2a758","description":"[![NPM](https://img.shields.io/npm/v/@boostedts/next-rest)](https://www.npmjs.com/package/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","_id":"@boostedts/next-rest@1.0.3","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-hxMnLK/8sV+WDBC+SDUFycLEA0F4Uh9XT7XTmokYdfovyeaOfuH0TNqQvvw4L+hpqkTI+2/YQ7HbjR4GE3jqQQ==","shasum":"47eca4e07109b2985c882d44ec608db5f58385a9","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.3.tgz","fileCount":38,"unpackedSize":58042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQKsRCRA9TVsSAnZWagAAP/gP/0icJ/ddUoR4Z7TzygVi\nk5/2B27M5XDuEopwSxoiY0EWIS6ZmuCnjz5NxBWW42PzvyTFSW+IlPWCAJQ6\nwViSvoj6Kt004WHkrk7C0SDUnHE1xUHVfMbNgn3Ujtzn+Lz35GUkNdeHLOQB\ng0kEZ8Xyj2zyuxX8wq3We7nBxxD6nOp/ygj7YxgPyuG1f+2+EQX8eDUFeGQZ\nvlh56cAoHk7lfXYhD56anJRsWpKVhJ0bKxJhjX2ZzBg7d0zBvgHFEHDEAgy1\nBmW0vjtj9cS30QFffhKh9ZQcafPdp6i6he1iTwXzyumD3kmWnC7qTfd9SQ0g\nJs04dqZBey7DDPmhZ0P1/H+fKh2nh5Lf6Qmrb0Tcc5FMxbLYgIx+TrmQ3tgu\nRBdvDbb0YV1QlfVgN+QRyKcjn/gHehVEWJivSASOTuNsIDtrkerkgd9qBfWD\n/YuyY/pxCDN+9stQSakCujw/g2lQ24kEcRCoD4X5VtF5CdAZd/b5nnCpyupx\nhrwOsOc32eXjtfAD0nHHAw7NigMTd88ecaweJri558DnaPKiyKl32gjA6qLX\nOCg2RMWTCVWRLQVkyPPE0JWrTUoni6brl5442laH/48r3q8XEEhC11SrIbcH\nUbdMjsVzOMklPxLgYurqES/ruUzsajLVn051aEmPufMLRsP7b4J/Xb9gqPIT\ntLu0\r\n=wMtJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNBlOUSOz6QWkXRJMAh0Z/FX50kLYMt2wfvV9SRcl3AwIhAKATS2CPgoInu7uC8ql0Drs1wFbk7ybyEKy/1FmgzaPh"}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.3_1631628048714_0.8468884072793519"},"_hasShrinkwrap":false},"1.0.4":{"name":"@boostedts/next-rest","version":"1.0.4","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","esbuild-plugin-glob":"^1.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","sinon-express-mock":"^2.2.1","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"dependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"0f5a59d4e85151eef7b9fcdec3c68cb3b289bd56","description":"[![NPM](https://img.shields.io/npm/v/@boostedts/next-rest)](https://www.npmjs.com/package/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","_id":"@boostedts/next-rest@1.0.4","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-taFLo15UC+b50bf4VgCikf6RsGW+6ChOmZTmszOWY6BxErD0Lq8ZhPd/5AhWdLZSIdCf5xuEvgtvlInB8abd6Q==","shasum":"7d46e72cf4dade28fbb25ab6fdab713bf9a03458","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.4.tgz","fileCount":68,"unpackedSize":102378,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQi/iCRA9TVsSAnZWagAAaeIP+QFN9l93HrNBXDURLnWN\nFIFTBN9Iux69E3JirRZfLnT1someAZIMUpPWBchvvW6tRMzcJ2M0kgESzYcW\nH0PzIAA5qEBrTKcrO1YXgS3KnlIChL4G3d8wwAl2CSv7GmkX744YYUpnDbMt\nx4pPekJVkrwlIOx8XqTRtJQ9QuI44cuDlHY+4T7xPclP8SXqPzyFwSyEBRIP\ncHM0QG4HNOwRcKYUWuPMPI1NxsynLbQzSJTBegCId4Q66i5LMiH2WSTnuNnr\n78bgZl0rERxE8x3yc5tCZ+pCciakeJOZrJVfSj2tdwOtln9jkpWztpy7yhNG\nwyajwtoqdb69ItkT6FG3DJmjeI9/Bdpdt2p1dqk5rJtaSW/0XpaRaajZhTou\n2BxCYYORirK4zU32tPfiv0qCiMF1U04U81NobLNytBwhlXsB6lulc1Q0nOhW\n7MjEBrYWGUYe3uwfnDH42SXxYiPnO30q+hX4drq3WB1EAVOaajKukQMRALOB\nIjMoqyA9s6XUWgYT4mPLEiIk30zn4LUfZWz77So5V7T6jcD9R7BkL5zuh4pT\noYQIKZRA5Wm8I8jb+VVpJRlCzlQzIUuKd2fli0bFaS03/clAmLLjuENX7rCr\nP2THploZ0q+TVtVXlp0RB+K1VYvtI3t8zNrgCvQmjjUAtnnMizskGnbLSZN7\nrHur\r\n=v5xu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUsvPf/JdYRJ8X4wnCAcLBBlJbnePJ03+b8LmABYHuYAiEAuAP/9Oj/EHw9mT6YicFNDN9aZHVi/oz3WTpCABFKjd0="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.4_1631727585991_0.5690773190795213"},"_hasShrinkwrap":false},"1.0.5":{"name":"@boostedts/next-rest","version":"1.0.5","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"repository":{"type":"git","url":"git+https://github.com/sannajammeh/next-rest.git"},"homepage":"https://github.com/sannajammeh/next-rest","publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","esbuild-plugin-glob":"^1.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","sinon-express-mock":"^2.2.1","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"dependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"459ab396940df7f13fd0d398e66aaccbf245367b","description":"![NPM](https://img.shields.io/npm/v/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","bugs":{"url":"https://github.com/sannajammeh/next-rest/issues"},"_id":"@boostedts/next-rest@1.0.5","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-udq7TeBK43EqwpxYQKsaqVihQxMpzmWiVUt92OQChGs3mb1/rKs2LhQr35TJ44JDVSvlX82LdDZafZYQEiEhdg==","shasum":"2ec85a302d4e939ea10cb3b26ba60e391d9001f3","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.5.tgz","fileCount":68,"unpackedSize":102455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQjRlCRA9TVsSAnZWagAAiHsP/1A7IplcAsBG759Th56P\n3FW4gMr7jhAwJEQymMic9RY2kXvwotAA675mnHIRz58jaQM6xWWXSeL2yBi2\n3+QkEBQA4mDf/YZEaKYJ+H6Kzgooz0N7dyjUC9zNqinUvRL1E+Y6shClgVMl\nJPIro514er3BwBX15M4RYvltA944IkS8gIL2YvgYQ59C/O20PcO/cu0sJCiC\nPKDVnVcTNcIMuPxU6LZA4BWGKPlmydSU9fKbMkAzRlRq5oLRtrm2Cz0RRhve\n7p7mq/bOdhpczBZcR0DfFcNzn0f08r020A9Ai1ZZaqAmKR2S2vp0avGvkNme\nFzn+1VOHur5XhIwnrbQoBqJYt54EajZgqMzTNcIvP9Aa1zjwVhtC+iNxZHef\nNfiuEL0OKgDFa1f+QdH+3QYevfc7r9bKH3GHbQfxVhfVae3vL7BnEVp5H5SS\nFwZ7KzkffKKOwzHRGXqQ17fABRV2lecQMvM/2BFEgW9fhpJURJYZIeTakUhM\n7H6qLERBsCpxD9x8uMBfsQj4mApdMLNH+CKVerj4tjh0Sb8shslGE8JrtSRc\nl4GnFVN5JYa9TKjnVJtpexK1TvcHm74OmfGiu1yD2bBybF6PHVSxvJseGjjK\no6g1ZStzsZ34KSKAifLN8CJ+fCrOr/lJgsnMJ9Cxc0DEKy2Mogr0vtzwdOCG\nK6WO\r\n=IFrP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCa8E5GYgrhiFOZqadNoSVt5NgVxruMSAuCx/vGCnNnCQIga5xAl7bSKXKbkSmPwJlnWnIXpbFeiNDleZE1z2TfNVo="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.5_1631728740993_0.10717696651897701"},"_hasShrinkwrap":false},"1.0.6":{"name":"@boostedts/next-rest","version":"1.0.6","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"repository":{"type":"git","url":"git+https://github.com/sannajammeh/next-rest.git"},"homepage":"https://github.com/sannajammeh/next-rest","publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","esbuild-plugin-glob":"^1.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","sinon-express-mock":"^2.2.1","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"dependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"7c5a7961c1c3e8d53f83626123908da3e901d3fe","description":"![NPM](https://img.shields.io/npm/v/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","bugs":{"url":"https://github.com/sannajammeh/next-rest/issues"},"_id":"@boostedts/next-rest@1.0.6","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-KPgPY1Jtw8vrRwraE0xi40TrA4wdSQ1KzOXaspuCluEKg5z6uHnm7/uM55QnD1FFTPC941Ct/3DzOIv5ok2TWg==","shasum":"086f4ffe5185dcc47685323f50bd8419e02905c6","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.6.tgz","fileCount":68,"unpackedSize":126090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQjleCRA9TVsSAnZWagAA2eEP/iHJnde5y1XPAn/0MkSc\nwgW6BlCLKLMz3nr8HHjj8XXaDMf1gyxybqn+NkUDbaezOkdwDWb6difQ1kIS\nJrOMTNNAY30/DCFfpoiczNsG7WloBRkzJxnh1Nhcnl5nV4uxyc87oBJYwusW\nzY+9kUyu5Z/epDJlAPxD166rFfh5+uCpWpg0MkIkEv9h15/4WLdNbySrr46H\nyxCBbgrU0A05xh5zm+u+0OyxVnp2yP66k5RKM/yAg/TbmrQzp/vmIJKuqfrk\nO4NZrA0e6ouQfL5Xl8LaFOlidu4BodcOJIQZwwHj5nktort0UjtHpIeJJnRj\n1ES5ykBQBDF8NcFj2dKYx6IwD6r9fUHZn4qT3Uj1Jwe9kaRIRAiWiLGz9wL4\nQfz/UVJfSxjNRc2hSmjBacGAWJ0n5sRNEXoaB42CVMNF92YHp9eOQPpTJVBD\nrCcXVDbQfkT8sBcK6KfYR+lFIM3uEZ9emY1XMbb1a5xgnzsPGrzsNG1YZeuK\nMc13jf2GJ0sTXsNwrJJI7Z6uiomBR2MFeFfGwBpdge8c4zmocfjo7fR3rcTv\nwV5ya2sSNQ2wo/yj/OTwWAF0Hp5giL2mS12WwDcgcpl+fh9bcBLvQ0SbFB6z\nXfLJp8pV2lvXES2L49PymOpE7NpdAlwTMRIxwgr8mR9vZjlPaZb/KjsdwCaT\nWKVv\r\n=//lc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0+IFoB0g1Tlvbc21lcWj1uwKWTaBd++xRRQvEduSQOAiEA21e70zKw29iJhKZBGiWhX5PT7SCSUr4wz6OtY0ZCE30="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.6_1631730014175_0.9642440263555601"},"_hasShrinkwrap":false},"1.0.7":{"name":"@boostedts/next-rest","version":"1.0.7","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","engines":{"node":"> 14"},"repository":{"type":"git","url":"git+https://github.com/sannajammeh/next-rest.git"},"homepage":"https://github.com/sannajammeh/next-rest","publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","esbuild-plugin-glob":"^1.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","sinon-express-mock":"^2.2.1","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"dependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"33f2b08f9f4daa16a663a5a42dadb6e9cb0d83d8","description":"![NPM](https://img.shields.io/npm/v/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","bugs":{"url":"https://github.com/sannajammeh/next-rest/issues"},"_id":"@boostedts/next-rest@1.0.7","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-KujqkElSX5wg1MR7mPNP6/ddC5s+maZll6oJ4AK0R0fw5fo8Ln9vvKVSpi+fV6e5zv0XP1QPha4Tk+5mcOSngQ==","shasum":"e75a3e8165d3131db5ffccd997bc83ac8ae371ff","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.7.tgz","fileCount":66,"unpackedSize":156042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQjwHCRA9TVsSAnZWagAAB80P/2kdUhp+S5TWMvQuXzmt\nnuk8cQRBxeAFFNJD2+oyWq3ZWR6oTCKjIBw537wg67L1/kC36P/APnIPy4zS\nmJJnxb6U8Y34rnfgpE9rE8gugpAJx6FRuP7wVhGzrV9Z5i5+AvnW0SSj6MZ6\nrTpjm3LOdKeN78Yh3vXvztfHWNVfZYY4Dh1z47PMTQlprEl7rN+5hZTmerA2\nDs/bKpOAry82wrWDYHyyYrtJMINoKtV8VpnORi64UNNYCN2O/F01xdVz6u4n\n5aksul4YEtnteexAi7s1e3jCxgmjwKw3nDDyKoc2jecUdOsKV+fvtyfkhM25\nOlxMgCq/hJ7tw86OWAK4UjNmuZT0iV/O6+u83O3GKm5u64Gsyz2BhV9bTipN\nmkkS7Q92p/gQ8dvk22+Ocf9UeGRdPE8lj75wCVLBUCMbvZbhQbbvf7gwKAay\nRdkXI9OlvgAVHFJyO3KbQN2/2fTZZjXTZa2I4Ba8seVfH87Rf7GYpbJKPrHY\n+zITEiofbxQSyldu9/3rPB8tlCPtcr+WRZr1XleS2PrkU+/O9Xw/HfaZ3xMD\nXQD1BkKvsDN9FyQKQaDfAN2yNGIfp3FFbEyrTotvPJ6bYxebJorzsx5ThFIN\nGFfXNPDpOZNUP0G8gAM/bNUc7s6WT1UZU65OifikJRyVnT7SKVxfwKb+pC9V\nLqWh\r\n=moin\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWQZVjKYxzeGp6n8oEIcfpZJAsHhtcyWNjQJV1sZAPTAiEA7T3Ii3PCfWGAALYW0pVgKzzenhAERH98mIGw45zh8NU="}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.7_1631730695492_0.5552407585432864"},"_hasShrinkwrap":false},"1.0.8":{"name":"@boostedts/next-rest","version":"1.0.8","main":"./build/cjs/index.js","module":"./build/esm/index.js","types":"./build/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sannajammeh/next-rest.git"},"homepage":"https://github.com/sannajammeh/next-rest","publishConfig":{"access":"public"},"scripts":{"build":"yarn clean && yarn type:dts && yarn type:build","clean":"node -r ./esbuild-hook ./scripts/clean","type:dts":"tsc --emitDeclarationOnly","type:check":"tsc --noEmit","type:build":"node -r ./esbuild-hook ./scripts/build","format":"prettier \"src/**/*.ts\" --write","format:check":"prettier \"src/**/*.ts\" --check","lint":"eslint src --ext .ts --fix","lint:check":"eslint src --ext .ts","test":"ava","test:coverage":"nyc ava && nyc report --reporter=html","cov":"yarn test:coverage","spell:check":"cspell \"{README.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,.github/*.md,src/**/*.ts}\"","cz":"cz","semantic-release":"semantic-release"},"devDependencies":{"@esbuild-plugins/node-resolve":"^0.1.4","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.2.3","@semantic-release/npm":"^7.1.3","@semantic-release/release-notes-generator":"^9.0.3","@types/chai":"^4.2.21","@types/node":"^16.9.1","@types/prompts":"^2.0.14","@types/sinon-chai":"^3.2.5","@types/sinon-express-mock":"^1.3.9","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","ava":"^3.15.0","chai":"^4.3.4","commitizen":"^4.2.4","cspell":"^5.9.0","cz-conventional-changelog":"^3.3.0","esbuild":"^0.12.26","esbuild-plugin-glob":"^1.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"^2.24.2","next":"^11.1.2","nyc":"^15.1.0","prettier":"^2.4.0","semantic-release":"^17.4.7","sinon":"^11.1.2","sinon-chai":"^3.7.0","sinon-express-mock":"^2.2.1","source-map-support":"^0.5.20","typescript":"^4.4.3"},"volta":{"node":"16.4.1","yarn":"1.22.10","npm":"7.19.1"},"dependencies":{"@hapi/boom":"^9.1.4","joi":"^17.4.2"},"gitHead":"14fecef6715c4644c41d152fb3a43cac809e535e","description":"![NPM](https://img.shields.io/npm/v/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","bugs":{"url":"https://github.com/sannajammeh/next-rest/issues"},"_id":"@boostedts/next-rest@1.0.8","_nodeVersion":"16.4.1","_npmVersion":"7.19.1","dist":{"integrity":"sha512-Z7ie0Kn1iEIQ9UrcGKQzz9R0RUCtgVpsgbjiRRweHDxkB8P/k9KCYef+Qs7DE/0C7rNvUNN1MJv5sA0m8Y9ncA==","shasum":"abe15dfe49a0cb9ce39e8f083aefbfe65595fed1","tarball":"https://registry.npmjs.org/@boostedts/next-rest/-/next-rest-1.0.8.tgz","fileCount":66,"unpackedSize":155998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzZejCRA9TVsSAnZWagAA6NMP/3nqp5z4Quns2/yXd1Mk\nc+wRFaOdQlHs8GpMmg4rNOi4vqFEpl/42SjAtPtYjCIH/P7lZgKlyfQwxVLl\nT6sP0z54ACa8ZyZxY8bPxrpjG0QmVPgP0SL8pbTjKPjV3KQnF74H6uo536K/\nkyqflGWv3MyEXGsOuQJuthvQdzkummBHteE/Mim2/AM6Mdp6L4icEa2gogao\ng/vSoSOcX0y6MxEhyUzCCMHuDVGPQWpvhKztBh80kNNANoC9CPPM4QTqgGNu\nTKpk4s2wI/VBSDqPAPm7XMKaZM1wu2Dn/7CzugkIYbejGM/PfQLQExp2tFB7\nu6PE6KVDib3LQmPbYjBTQ74wQCtvQl15uETa07lVzA5aQiwXbi3Mi9ka2z+O\nlqshsQFnRihDl7Hz0kEyAEr279uj/8d/aiRSIwWgVatdgh8A6B74gqdoHrSI\nKEeAHDoGZYk4bJBbeo+SbFveWp5JjwhsBsp1+xo/xjPGLl2HUpsI6yY5BZuW\nOZaEnJe2zj7oj0eKM9wvN3fPou1BFnJZWwiMQvt8EAXWSqZ2nteMUKZbMTC+\nORmonAHRuB68YRiDfTJF6qDCcCSxHGlAAdsLw2IA6S3w56HBdvrn/XDg19YN\nk6eHURBBNiT/t5seVuYBgBN3fAFrOM9HImwrZ8OGHKi9gEho3/RifLbYOXkp\nKT44\r\n=degq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCliKYExXZ9JJe2GmWOpp1iZY/b1BWQd58xt3l/YxaHxgIhAKZD7q3uN7terEAf/PZRaE7z5TfuRZJVBzxembIbvtng"}]},"_npmUser":{"name":"chiefkoshi","email":"sannajam@outlook.com"},"directories":{},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-rest_1.0.8_1634689392085_0.5004875204789418"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-14T00:08:01.081Z","1.0.0":"2021-09-14T00:08:01.255Z","modified":"2022-04-04T20:09:19.965Z","1.0.1":"2021-09-14T00:14:14.407Z","1.0.2":"2021-09-14T00:41:18.197Z","1.0.3":"2021-09-14T14:00:49.259Z","1.0.4":"2021-09-15T17:39:46.276Z","1.0.5":"2021-09-15T17:59:01.165Z","1.0.6":"2021-09-15T18:20:14.309Z","1.0.7":"2021-09-15T18:31:35.679Z","1.0.8":"2021-10-20T00:23:12.208Z"},"maintainers":[{"name":"chiefkoshi","email":"sannajam@outlook.com"}],"description":"![NPM](https://img.shields.io/npm/v/@boostedts/next-rest) ![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)","license":"MIT","readme":"# Boosted | Next Rest\n\n![NPM](https://img.shields.io/npm/v/@boostedts/next-rest)\n![GitHub Workflow Status](https://github.com/sannajammeh/next-rest/actions/workflows/next-rest.yml/badge.svg?branch=master)\n\n## Motivation\n\nThis is a a full TS implementation of [`Moxy´s Next Rest Api`](https://github.com/moxystudio/next-rest)\n\nNext.js brought API routes support in v9, but you have to provide your own implementation for handling different HTTP methods, validation, error handling and so on. So in short, this library provides a standard way to:\n\n- Detect HTTP methods (GET, POST, PUT, PATCH, DELETE, etc).\n- Validate the request (headers, query, body).\n- Handle errors, including how their responses look like.\n- Log errors, by printing them to `stderr` by default.\n\n## Installation\n\n<!-- ```sh\n$ npm install @boostedts/next-rest joi @hapi/boom\n``` -->\n\n```sh\nnpm i @boostedts/next-rest\n```\n\nOr\n\n```sh\nyarn add @boostedts/next-rest\n```\n\nThis library has a peer-dependency on [`joi`](https://github.com/sideway/joi) and [`@hapi/boom`](https://github.com/hapijs/boom) to perform validation and to output errors in a standard format.\n\n## Usage\n\n### Simple get endpoint:\n\nIn `/pages/api/products.js` (or `/pages/api/products/index.js`)\n\n```js\nimport withRest from \"@boostedts/next-rest\";\n\nexport default withRest({\n  GET: async (req, res) => {\n    const products = await listProducts();\n\n    // You may do some post-processing of `products` here...\n\n    return products;\n  },\n});\n```\n\n### Simple get & post endpoint, with validation:\n\nIn `/pages/api/products.js` (or `/pages/api/products/index.js`)\n\n```js\nimport withRest, { withJoi } from \"@boostedts/next-rest\";\nimport Joi from \"joi\";\nimport Boom from \"@hapi/boom\";\n\nconst getSchema = {\n  query: Joi.object({\n    q: Joi.string(),\n    sortBy: Joi.valid(\"price:asc\", \"price:desc\"),\n  }),\n};\n\nconst postSchema = {\n  body: Joi.object({\n    name: Joi.string().max(200).required(),\n    description: Joi.string().max(2000),\n    price: Joi.number().min(0).required(),\n  }),\n};\n\nexport default withRest({\n  GET: withJoi(getSchema)(async (req, res) => {\n    const products = await listProducts(req.query);\n\n    return products;\n  }),\n  POST: withJoi(postSchema)(async (req, res) => {\n    const product = await createProduct(req.body);\n\n    return product;\n  }),\n});\n```\n\nℹ️ You may use [`p-compose`](https://github.com/JasonPollman/p-compose) to compose your \"middlewares\" to be more readable, like so:\n\n```js\nimport withRest, { withJoi } from \"@boostedts/next-rest\";\nimport compose from \"p-compose\";\n\nexport default withRest({\n  GET: compose(withJoi(getSchema), async (req, res) => {\n    const products = await listProducts(req.query);\n\n    return products;\n  }),\n});\n```\n\n### Simple get, put and delete endpoints, with validation:\n\nIn `/pages/api/products/[id].js`\n\nℹ️ In Next.js, dynamic parameters are assigned to the request query (`req.query.id` in this case).\n\n```js\nimport withRest, { withJoi } from '@boostedts/next-rest';\nimport Joi from 'joi';\nimport Boom from '@hapi/boom';\n\nconst getSchema = {\n    query: Joi.object({\n        id: Joi.string().required(),\n    }),\n};\n\nconst putSchema = {\n    query: getSchema.query,\n    body: Joi.object({\n        name: Joi.string().max(200).required(),\n        description: Joi.string().max(2000),\n        price: Joi.number().min(0).required(),\n    }),\n};\n\nconst deleteSchema = {\n    query: getSchema.query,\n};\n\nexport default withRest({\n    GET: withJoi(getSchema)(async (req, res) => {\n        let product;\n\n        try {\n            product = await getProduct(req.query.id);\n        } catch (err) {\n            if (err.code === 'NOT_FOUND') {\n                throw Boom.notFound(`Product with id ${req.query.id} does not exist`);\n            }\n\n            throw err;\n        }\n\n        return product;\n    }),\n    PUT: withJoi(putSchema)(async (req, res) => {\n        let product;\n\n        try {\n            product = await updateProduct(req.query.id, req.body);\n        } catch (err) {\n            if (err.code === 'NOT_FOUND') {\n                throw Boom.notFound(`Product with id ${req.query.id} does not exist`);\n            }\n\n            throw err;\n        }\n\n        return product;\n    }),\n    DELETE: withJoi(deleteSchema)(async (req, res) => {\n        try {\n            product = await deleteProduct(req.query.id);\n        } catch (err) {\n            if (err.code === 'NOT_FOUND') {\n                return;\n            }\n\n            throw err;\n        }\n    },\n});\n```\n\nℹ️ A lot of schemas in the above examples are being repeated. To keep things DRY, it's advisable to reuse them, perhaps in a `schemas.js` file.\n\n## API\n\n### withRest(methods, [options])\n\nMatches handlers defined in `methods` against the HTTP method, like `GET` or `POST`.\n\nHandlers may return any valid JSON as per the [RFC7159](https://tools.ietf.org/html/rfc7159), which includes objects, arrays, booleans and null (undefined is coerced to null). The return value will be sent automatically as a JSON response.\n\nExceptions thrown within handlers will be caught automatically and sent to the client. You may either throw a [Boom](https://github.com/hapijs/boom) error or a standard error object. If a standard error object is thrown, it will be converted to a Boom error instance automatically (`500`).\n\nIn case you throw a Boom error, you may optionally pass the original error inside [`data.originalError`](https://github.com/hapijs/boom/blob/master/API.md#boombadrequestmessage-data), making the default error logger print that error instead of the Boom wrapper (when within the `5xx` range). In fact, this is already done automatically for you when you throw a standard error object inside handlers.\n\nHere's an example on how to pass the original error:\n\n```js\ntry {\n  await deleteProduct(req.query.id);\n} catch (err) {\n  throw Boom.internal(\"Unable to delete product\", { originalError: err });\n}\n```\n\n#### methods\n\nType: `object`\n\nAn object mapping HTTP methods to their handlers with the following signature: `async (req, res) => {}`.\n\n#### options\n\nType: `object`\n\n##### sendError\n\nType: `function`  \nDefault: _see `defaultSendError` in [index.js](index.js)_\n\nA function responsible to send Boom errors back to the client. Has the following signature: `(res, err) => {}`.\n\nThe default implementation uses the `output` property of the Boom error to set the response headers, status code and payload.\n\n##### logError\n\nType: `function`  \nDefault: _see `defaultLogError` in [index.js](index.js)_\n\nA function that logs errors. Has the following signature: `(err) => {}`.\n\nThe default implementation ignores any non `5xx` and simply prints the error stack to `stderr`. If the error contains `data.originalError`, that error's stack is printed instead.\n\n### withJoi(schemas)\n\nWraps a handler with validation against [Joi](https://github.com/hapijs/joi) schemas.\n\nIf validation fails, a `400 Bad Request` response will be sent back to the client.\n\n#### schemas\n\nType: `object`\n\nAn object with `query`, `body` or `headers` keys and their associated Joi schemas. Each of these schemas will be matched against the incoming request.\n\n⚠️ Generally you only want to validate a subset of headers. In such situations, your `headers` schema should allow unknown keys with `.unknown(true)`.\n","readmeFilename":"README.md","homepage":"https://github.com/sannajammeh/next-rest","repository":{"type":"git","url":"git+https://github.com/sannajammeh/next-rest.git"},"bugs":{"url":"https://github.com/sannajammeh/next-rest/issues"}}