{"_id":"@alyvro/api-service","_rev":"35-215779d87d714739a2852e91fe8c6dd6","name":"@alyvro/api-service","dist-tags":{"latest":"1.3.7"},"versions":{"1.2.0":{"name":"@alyvro/api-service","version":"1.2.0","keywords":["api-service","api","alyvro-package","alyvro"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.2.0","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"e7cc9adbbf98d0cd8fc562d45fc07c2820b8ab7e","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.2.0.tgz","fileCount":33,"integrity":"sha512-X1HeZhkGzUcyHEHuNn7aY9GwUhu0r7K+JbV0Ppuv57kzxWMw7UNcTfGiysLIrHCgr0y3Yh0mx8c63jjyu8IbNg==","signatures":[{"sig":"MEYCIQC11ukVC/KuC1hePeTFUkL7cXlvXagOmPx5oeleIdHumAIhAPvSG84rO9q+wLUz/Ze20DwQw3fBUDtIeMj9AkWgrlsD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104863},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\b81f30b7863efaaf78a49875521862d4\\alyvro-api-service-1.2.0.tgz","_integrity":"sha512-X1HeZhkGzUcyHEHuNn7aY9GwUhu0r7K+JbV0Ppuv57kzxWMw7UNcTfGiysLIrHCgr0y3Yh0mx8c63jjyu8IbNg==","repository":{"url":"git+https://github.com/Alyvro/api-service.git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"tsup":"^8.5.0","zlib":"^1.0.5","axios":"^1.11.0","express":"^5.1.0","parse-url":"^10.0.3","jsonwebtoken":"^9.0.2"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/axios":"^0.14.4","whatwg-fetch":"^3.6.20","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.2.0_1759848936043_0.8196863560843644","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@alyvro/api-service","version":"1.2.1","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.2.1","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"7067fdf9743212d765aee25ea9bc40c1a2e17f79","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.2.1.tgz","fileCount":33,"integrity":"sha512-viC2etdOsro+8fG3+rQ77JUsQBpPLUTK/okx++vhdp12WRvzn3BIMr+rDKQ8SH7tFpaKSwJGKOpRzY9Xo7/QfA==","signatures":[{"sig":"MEYCIQCEwhjJDoLLCiZgCDyJCxSE4Y132nhKs3GJ5UqahcugtwIhAMjIjiUz9t5bLrSMyZTwJnQhK0tUpaYMlked/3Zmz7Qw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104787},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"gitHead":"7b6a61220f2b2103ac83d9fe609c6933b4ef7e64","scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"repository":{"url":"git+https://github.com/Alyvro/api-service.git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.11.0","express":"^5.1.0","jsonwebtoken":"^9.0.2"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.1","devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/axios":"^0.14.4","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.2.1_1760217704335_0.6179068482216095","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@alyvro/api-service","version":"1.3.0","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.0","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"a615f2ee5d419b63c0f0e6ae862282b98b967737","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.0.tgz","fileCount":53,"integrity":"sha512-RKRQCmDFDnQjmvAL5mW6K3dhibye7aLPsHdpxMrpYmbTNY6dA2zceGDFVSaR+QmixwncfKFQ6g8MwTawdu1CPw==","signatures":[{"sig":"MEYCIQDON8AoCIetxbOZfFcOw2ybe3etj9VTgkYKqS0z9psTiwIhAK9KNDqcyjtreTbQMyy5RIU5l5oUC9GVnsNjeyWSxR/S","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133274},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\46dd30d7514074b6fea5053a696bfcee\\alyvro-api-service-1.3.0.tgz","_integrity":"sha512-RKRQCmDFDnQjmvAL5mW6K3dhibye7aLPsHdpxMrpYmbTNY6dA2zceGDFVSaR+QmixwncfKFQ6g8MwTawdu1CPw==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.0_1771141910744_0.17385675258651645","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@alyvro/api-service","version":"1.3.1","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.1","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"81754a7f15968c6881a78eec0c14a028b35b8e6c","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.1.tgz","fileCount":53,"integrity":"sha512-PJ4H7VDC4GxBFqC4QBSsQe787FEHc/cr/EE+bxCd1SvS3R/iDD9U3n/Q49CaR/fxZLktr1GYLOGEA0m7rNKoVw==","signatures":[{"sig":"MEYCIQCwy4B73Zv3FHO9HtUvwDlXW9HqWsNUWEZU9yxQGyjW1AIhAOzpVUqod2SwUYQcdoOWGDQPnTj6AbhFqvJM1KHaGrVw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133458},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.1.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\78a61cb96bd3f8fd90fb274de36adc51\\alyvro-api-service-1.3.1.tgz","_integrity":"sha512-PJ4H7VDC4GxBFqC4QBSsQe787FEHc/cr/EE+bxCd1SvS3R/iDD9U3n/Q49CaR/fxZLktr1GYLOGEA0m7rNKoVw==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.1_1771144404321_0.8819336097405086","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"@alyvro/api-service","version":"1.3.3","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.3","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"b9b068aa63c4ab6b946b7c596f90736fa60a7034","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.3.tgz","fileCount":53,"integrity":"sha512-Dw8Y3Ua6GUQPebKF2+J5tjNDyVSBHl7RLSnKq+qK6I3a4d9a3zK2v4GinDIYLIuVmEwBJvFp6rWjv4KgCuOedw==","signatures":[{"sig":"MEUCIGwANRYBhALeizQGxQYEYMYIp6aZFxwmUZQGCgEEzHn4AiEAxltbrn5MPq1Ep1NHFdi8JXszSWFXIEyTrB2p8N4jYjY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136593},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.3.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\65fafec7b32b3350ee5b9ce08ab30c42\\alyvro-api-service-1.3.3.tgz","_integrity":"sha512-Dw8Y3Ua6GUQPebKF2+J5tjNDyVSBHl7RLSnKq+qK6I3a4d9a3zK2v4GinDIYLIuVmEwBJvFp6rWjv4KgCuOedw==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.3_1771145251422_0.4354169662608094","host":"s3://npm-registry-packages-npm-production"}},"1.3.4":{"name":"@alyvro/api-service","version":"1.3.4","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.4","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"38cff63088a5020abe5fa973d1cf876ed1ca9f87","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.4.tgz","fileCount":37,"integrity":"sha512-4lI2IawUHrKhVa/u4jPZNJjun2YD/W4ZLuz+nXYYwkku0sTV9izXNYxVia+ylkQrzFjfrTsTpzvsQoLwd2/7OA==","signatures":[{"sig":"MEYCIQCSQAOteVMdxzgtdWU+zQ9TdDYS2sz8W6mslvScClNCOAIhAKqBr1z8KMpcjISMx4Fos/UtHsRROXrOeY5OFkVGPUsR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84062},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.4.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\ea2e211f4e29dba516983d7d77c7a8d1\\alyvro-api-service-1.3.4.tgz","_integrity":"sha512-4lI2IawUHrKhVa/u4jPZNJjun2YD/W4ZLuz+nXYYwkku0sTV9izXNYxVia+ylkQrzFjfrTsTpzvsQoLwd2/7OA==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.4_1774614922149_0.31473348667662715","host":"s3://npm-registry-packages-npm-production"}},"1.3.5":{"name":"@alyvro/api-service","version":"1.3.5","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.5","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"1930f33ddfac415641ac1d5b51fb0a120c049ee8","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.5.tgz","fileCount":37,"integrity":"sha512-qJoX0tuQ48pu98DYrJUYlawLz0tltYCh05WcB0HxXmAXlMnrcTrTTOJrv7o2oh55ubT90mEAkfoge7qYe92qdQ==","signatures":[{"sig":"MEYCIQC4Y71n/U6nlapTXV6gzXsgVWAr87DA39YEuIutzFCTMAIhAKRpCtoldnYexrx3s1kvFF1zWie7eICr4TuUKZduAhme","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84227},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.5.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\0b0dae78c142d6a3475269acdd7df8e3\\alyvro-api-service-1.3.5.tgz","_integrity":"sha512-qJoX0tuQ48pu98DYrJUYlawLz0tltYCh05WcB0HxXmAXlMnrcTrTTOJrv7o2oh55ubT90mEAkfoge7qYe92qdQ==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.5_1774705935933_0.5253487644526718","host":"s3://npm-registry-packages-npm-production"}},"1.3.6":{"name":"@alyvro/api-service","version":"1.3.6","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","_id":"@alyvro/api-service@1.3.6","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"homepage":"https://github.com/Alyvro/api-service#readme","bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"dist":{"shasum":"185c479f7346eef67a7c80340a50c39b6ec6d215","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.6.tgz","fileCount":37,"integrity":"sha512-iPHPGpAzuS5UaRq4tecZU/2yyWN4s3VsKQbSIC6D8xf8yr0nB3sgTFmiWiys2pGrJ2JgI4u2+2+xuA+CNVvN0Q==","signatures":[{"sig":"MEUCIQDVnRwYyeQ4OI+XFTK6iTj7we6pb1bc5Bg+CMbAcxoiuQIgFLWoWN2iyplQbrYAi5KJqxP7Oj2wWrSv0zzpm4wJPig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84229},"main":"./dist/index.js","_from":"file:alyvro-api-service-1.3.6.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"}},"scripts":{"rel":"pnpm build && pnpm publish","test":"vitest --run","build":"pnpm remove-dist && tsup","release":"release-it","coverage":"vitest run --coverage","changelog":"release-it --only-changelog","remove-dist":"tsx scripts/remove-dist.ts"},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\d17b251f1f91a2513704d8cd3aeec680\\alyvro-api-service-1.3.6.tgz","_integrity":"sha512-iPHPGpAzuS5UaRq4tecZU/2yyWN4s3VsKQbSIC6D8xf8yr0nB3sgTFmiWiys2pGrJ2JgI4u2+2+xuA+CNVvN0Q==","repository":{"url":"git+https://github.com/Alyvro/api-service.git","type":"git"},"_npmVersion":"10.9.2","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"zlib":"^1.0.5","axios":"^1.12.2","jsonwebtoken":"^9.0.2"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"types":["./dist/types.d.ts"],"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.11.3","tsx":"^4.20.3","tsup":"^8.5.0","vitest":"^3.2.4","release-it":"^19.0.5","typescript":"^5.8.3","@types/node":"^24.1.0","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@vitest/coverage-v8":"^3.2.4","vite-tsconfig-paths":"^5.1.4","@release-it/conventional-changelog":"^10.0.1"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/api-service_1.3.6_1774706131475_0.9333298174614306","host":"s3://npm-registry-packages-npm-production"}},"1.3.7":{"name":"@alyvro/api-service","version":"1.3.7","description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","types":"./dist/index.d.ts","main":"./dist/index.js","module":"./dist/esm/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/esm/index.js","require":"./dist/index.js"},"./express":{"types":"./dist/express.d.ts","import":"./dist/esm/express.js","require":"./dist/express.js"},"./fastify":{"types":"./dist/fastify.d.ts","import":"./dist/esm/fastify.js","require":"./dist/fastify.js"},"./plugins":{"types":"./dist/plugins.d.ts","import":"./dist/esm/plugins.js","require":"./dist/plugins.js"},"./types":{"types":"./dist/types.d.ts","import":"./dist/esm/types.js","require":"./dist/types.js"}},"keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"author":{"name":"alyvro"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Alyvro/api-service.git"},"bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"peerDependencies":{"express":"^4.0.0","fastify":"^4.0.0"},"typesVersions":{"*":{"express":["./dist/express.d.ts"],"fastify":["./dist/fastify.d.ts"],"plugins":["./dist/plugins.d.ts"],"types":["./dist/types.d.ts"],"*":["./dist/index.d.ts"]}},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true}},"dependencies":{"axios":"^1.12.2","jsonwebtoken":"^9.0.2","zlib":"^1.0.5"},"devDependencies":{"@release-it/conventional-changelog":"^10.0.1","@types/express":"^5.0.3","@types/jsonwebtoken":"^9.0.10","@types/node":"^24.1.0","@vitest/coverage-v8":"^3.2.4","msw":"^2.11.3","release-it":"^19.0.5","tsup":"^8.5.0","tsx":"^4.20.3","typescript":"^5.8.3","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.4"},"scripts":{"build":"pnpm remove-dist && tsup","remove-dist":"tsx scripts/remove-dist.ts","rel":"pnpm build && pnpm publish","test":"vitest --run","coverage":"vitest run --coverage","release":"release-it","changelog":"release-it --only-changelog"},"_id":"@alyvro/api-service@1.3.7","homepage":"https://github.com/Alyvro/api-service#readme","_integrity":"sha512-1wDs1lvEKoFbbG2g19gpxA+AMncF4XQ0eVk0OVuvJv8xvIICdWrv3W9QepSSovuzw66keJUyJBeZ1rSiM4R5yQ==","_resolved":"C:\\Users\\nimas\\AppData\\Local\\Temp\\4204bf9d03e9c3191fd6065ee68c30f7\\alyvro-api-service-1.3.7.tgz","_from":"file:alyvro-api-service-1.3.7.tgz","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-1wDs1lvEKoFbbG2g19gpxA+AMncF4XQ0eVk0OVuvJv8xvIICdWrv3W9QepSSovuzw66keJUyJBeZ1rSiM4R5yQ==","shasum":"8040dba10b77209d7ff6bf3881c214b728ec04d4","tarball":"https://registry.npmjs.org/@alyvro/api-service/-/api-service-1.3.7.tgz","fileCount":37,"unpackedSize":83993,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDmVvgyhIMTfPlMeWqHiONiG/hb0G9pu69ZuRyfwZa77AiAxrZJ8l40x4Xeb3rPlaFIQwD41fHZNGqqA7cyoP6SD2w=="}]},"_npmUser":{"name":"this_nima","email":"nimastrong852@gmail.com"},"directories":{},"maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/api-service_1.3.7_1774706826847_0.3479354348674204"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-07T14:55:35.964Z","modified":"2026-03-28T14:07:07.125Z","1.0.0":"2025-08-03T12:27:26.708Z","1.0.1":"2025-08-03T12:55:11.471Z","1.0.11":"2025-08-03T12:59:50.941Z","1.0.12":"2025-08-03T13:07:24.824Z","1.0.13":"2025-08-03T13:10:23.765Z","1.0.14":"2025-08-03T13:13:30.060Z","1.0.15":"2025-08-03T13:59:42.618Z","1.0.16":"2025-08-03T14:10:10.957Z","1.0.17":"2025-09-19T09:56:15.067Z","1.0.18":"2025-09-20T12:56:47.384Z","1.0.19":"2025-09-20T13:01:34.740Z","1.0.20":"2025-09-20T17:33:56.567Z","1.0.21":"2025-09-20T17:53:06.944Z","1.0.22":"2025-09-20T19:44:17.494Z","1.0.3":"2025-09-22T12:04:08.282Z","1.0.4":"2025-09-24T21:58:39.115Z","1.0.5":"2025-09-24T22:07:01.412Z","1.0.6":"2025-09-24T22:24:17.001Z","1.0.7":"2025-09-26T13:10:32.330Z","1.0.8":"2025-09-29T23:03:04.177Z","1.0.9":"2025-10-04T03:09:26.715Z","1.0.10":"2025-10-07T14:38:54.320Z","1.2.0":"2025-10-07T14:55:36.231Z","1.2.1":"2025-10-11T21:21:44.532Z","1.3.0":"2026-02-15T07:51:50.893Z","1.3.1":"2026-02-15T08:33:24.476Z","1.3.3":"2026-02-15T08:47:31.565Z","1.3.4":"2026-03-27T12:35:22.310Z","1.3.5":"2026-03-28T13:52:16.082Z","1.3.6":"2026-03-28T13:55:31.610Z","1.3.7":"2026-03-28T14:07:06.992Z"},"bugs":{"url":"https://github.com/Alyvro/api-service/issues","email":"support@alyvro.com"},"author":{"name":"alyvro"},"license":"MIT","homepage":"https://github.com/Alyvro/api-service#readme","keywords":["api-service","api","alyvro-package","alyvro","express","middleware"],"repository":{"type":"git","url":"git+https://github.com/Alyvro/api-service.git"},"description":"A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.","maintainers":[{"name":"this_nima","email":"nimastrong852@gmail.com"}],"readme":"# ⚡ @alyvro/api-service\r\n\r\n[![Socket Badge](https://badge.socket.dev/npm/package/@alyvro/api-service/1.0.3)](https://socket.dev/npm/package/@alyvro/api-service/overview)\r\n![CI](https://github.com/Alyvro/api-service/actions/workflows/ci.yml/badge.svg)\r\n![npm](https://img.shields.io/npm/v/@alyvro/api-service)\r\n\r\n**A minimal yet powerful service for sending HTTP requests on the client and handling them gracefully on the server. No complicated setup. Just plug in your keys — and you're ready to go.**\r\n\r\n### 🚀 Features\r\n\r\n- ✅ **Universal Support** — Works seamlessly on both Client and Server\r\n- ✅ **Modular Middleware** — Dedicated imports for Fastify & Express (Tree-shakable)\r\n- ✅ **Typed Axios** — Full TypeScript inference for your API endpoints\r\n- ✅ **Built-in Plugins** — Cache, Retry, Compressor, and Cancellation\r\n- ✅ **Auto Error Reporting** — Send server errors directly to Telegram\r\n- ✅ **Zero Config Start** — Works out of the box with minimal setup\r\n\r\n---\r\n\r\n### 📦 Installation\r\n\r\nbash\r\npnpm add @alyvro/api-service\r\n\r\n# or\r\n\r\nnpm install @alyvro/api-service\r\n\r\nIf you are using a specific framework, make sure it is installed (e.g., `fastify` or `express`).\r\n\r\n---\r\n\r\n## ✨ Server-Side Usage\r\n\r\nInitialize the service once in your application entry point.\r\n\r\n### ➤ Fastify\r\n\r\nImport the middleware directly from the fastify subpath. This ensures no Express dependencies are loaded.\r\n\r\n```ts\r\nimport Fastify from \"fastify\";\r\nimport { ApiService } from \"@alyvro/api-service\";\r\nimport middleware from \"@alyvro/api-service/fastify\";\r\n\r\nconst fastify = Fastify();\r\n\r\nnew ApiService({\r\n  url: \"http://localhost:3000\",\r\n  setting: { telegram: true }, // Optional: Enable Telegram error logs\r\n  middleware: {\r\n    skip_routers: [\"/health\"],\r\n  },\r\n});\r\n\r\n// Add the hook to handle API security and logging\r\nfastify.addHook(\"preHandler\", middleware);\r\n\r\nfastify.get(\"/\", async (request, reply) => {\r\n  return { hello: \"world\" };\r\n});\r\n\r\nfastify.listen({ port: 3000 });\r\n```\r\n\r\n### ➤ Express\r\n\r\n```ts\r\nimport express from \"express\";\r\nimport { ApiService } from \"@alyvro/api-service\";\r\nimport middleware from \"@alyvro/api-service/express\";\r\n\r\nconst app = express();\r\n\r\nnew ApiService({\r\n  url: \"http://localhost:3000\",\r\n});\r\n\r\napp.use(middleware);\r\n\r\napp.get(\"/\", (req, res) => {\r\n  res.json({ message: \"Hello from Express\" });\r\n});\r\n```\r\n\r\n---\r\n\r\n## ✨ Client-Side Usage\r\n\r\nYou can use either the supercharged Axios client or the native Fetch wrapper.\r\n\r\n### ➤ Using Axios (Recommended)\r\n\r\n```ts\r\nimport { ApiService } from \"@alyvro/api-service\";\r\n\r\nconst api = new ApiService({\r\n  url: \"https://api.alyvro.com\",\r\n});\r\n\r\nconst response = await api.client.axios.request().post(\r\n  \"/user\",\r\n  { name: \"John Doe\" },\r\n  {\r\n    plugins: {\r\n      retry: { retries: 3 },\r\n      compressor: true,\r\n    },\r\n  },\r\n);\r\n```\r\n\r\n### ➤ Using Fetch\r\n\r\n```ts\r\nconst response = await api.client.fetch.request(\"/user\", {\r\n  method: \"GET\",\r\n  headers: {\r\n    \"Content-Type\": \"application/json\",\r\n  },\r\n});\r\n```\r\n\r\n---\r\n\r\n## 💎 Typed API (TypeScript Magic)\r\n\r\nDefine your API schema once and get full auto-completion and type inference for every request.\r\n\r\n```ts\r\nimport { ApiService } from \"@alyvro/api-service\";\r\n\r\ntype ApiSchema = {\r\n  \"/users\": {\r\n    GET: {\r\n      response: { id: number; name: string }[];\r\n      params: { page: number; index: number };\r\n    };\r\n  };\r\n  \"/auth/login\": {\r\n    POST: {\r\n      body: { username: string };\r\n      response: { token: string };\r\n    };\r\n  };\r\n};\r\n\r\nconst api = new ApiService({\r\n  url: \"https://api.example.com\",\r\n}).client.axios.request<ApiSchema>();\r\n\r\n// ✅ TypeScript knows this returns { token: string }\r\napi.post(\"/auth/login\", { username: \"admin\" }).then((res) => {\r\n  console.log(res.data.token);\r\n});\r\n\r\n// ✅ TypeScript knows this returns Array<{ id: number; name: string }>\r\napi.get(\"/users\", { params: { page: 1 } }).then((res) => {\r\n  console.log(res.data[0].name);\r\n});\r\n```\r\n\r\n---\r\n\r\n## 🧩 Plugins (Axios Only)\r\n\r\nPlugins allow extending the functionality of requests per call.\r\n\r\n| Plugin         | Description                                                  |\r\n| :------------- | :----------------------------------------------------------- |\r\n| **Retry**      | Automatically retries failed requests with backoff strategy. |\r\n| **Cache**      | Stores responses to prevent redundant network calls.         |\r\n| **Compressor** | Handles gzip compression/decompression automatically.        |\r\n| **Cancel**     | specific signal to abort requests.                           |\r\n\r\n**Example:**\r\n\r\n```ts\r\nimport { createAbortController } from \"@alyvro/api-service/plugins\";\r\n\r\nconst controller = createAbortController();\r\n\r\napi.client.axios.request().get(\"/large-data\", {\r\n  signal: controller.signal,\r\n  plugins: {\r\n    retry: { retries: 5, retryDelay: 1000 },\r\n    cache: true,\r\n  },\r\n});\r\n\r\n// Cancel the request\r\ncontroller.abort();\r\n```\r\n\r\n---\r\n\r\n## ⚙️ Configuration\r\n\r\n| Key                       | Type                                   | Required                                   | Description                                                    |\r\n| ------------------------- | -------------------------------------- | ------------------------------------------ | -------------------------------------------------------------- |\r\n| `url`                     | `string`                               | ✅                                         | Base URL for sending HTTP requests                             |\r\n| `logger`                  | `boolean`                              | ❌                                         | Enable request/response logging (for debugging)                |\r\n| `auth`                    | `AxiosBasicCredentials`                | ❌                                         | HTTP Basic Auth credentials (`{ username, password }`)         |\r\n| `env`                     | `ConfigEnvType`                        | ❌ _(if no set env variable in .env file)_ | API keys and environment secrets                               |\r\n| `env.PRIVATE_KEY`         | `string`                               | ✅ _(if used)_                             | Your private key (used in secure requests)                     |\r\n| `env.PUBLIC_KEY`          | `string`                               | ✅ _(if used)_                             | Your public key (used in client-side logic)                    |\r\n| `setting`                 | `Partial<ConfigSettingType>`           | ❌                                         | Additional settings for features like Telegram error reporting |\r\n| `setting.telegram`        | `boolean`                              | ✅ _(if Telegram used)_                    | Telegram Bot used for error notifications                      |\r\n| `middleware`              | `Partial<ConfigMiddlewareType>`        | ❌                                         | server **Middleware** settings                                 |\r\n| `middleware.headers`      | `Partial<ConfigMiddlewareHeadersType>` | ❌                                         | headers names                                                  |\r\n| `middleware.errors`       | `Partial<ConfigMiddlewareErrorsType>`  | ❌                                         | handlers errors                                                |\r\n| `middleware.skip_routers` | `Partial<ConfigMiddlewareErrorsType>`  | ❌                                         | add router to not check                                        |\r\n| `middleware.powerd_by`    | `string`                               | ❌                                         | add custom powerd_by                                           |\r\n\r\n---\r\n\r\n## 📫 Telegram Integration\r\n\r\nTo enable error reporting:\r\n\r\n1. Set `TELEGRAM_TOKEN` and `TELEGRAM_CHAT_ID` in your environment variables.\r\n2. Enable it in the config:\r\n\r\nts\r\nnew ApiService({\r\nurl: \"...\",\r\nsetting: { telegram: true }\r\n});\r\n\r\nAny 500/403 errors on the server will now be sent to your Telegram chat instantly.\r\n\r\n---\r\n\r\n## License\r\n\r\nMIT © [Alyvro](https://github.com/Alyvro)\r\n","readmeFilename":"README.md"}