{"_id":"@delgadotrueba/http","_rev":"9-1b6253f974422b516ff9be37d7231d4b","name":"@delgadotrueba/http","dist-tags":{"latest":"1.0.7"},"versions":{"0.0.9":{"name":"@delgadotrueba/http","version":"0.0.9","keywords":["http"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@0.0.9","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"7d870600b6db3d3526fa80ec5dfff581e75a1852","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-0.0.9.tgz","fileCount":29,"integrity":"sha512-4N7FxtZMXg8+a2WTvxHxnqa3ltKM5pez+vSSvZ73J2Lr9Ro1+s0F95jXLrE1tJc2TWzIeQaE83guqw8s3DcYlA==","signatures":[{"sig":"MEQCIEGXfbLUEjCzwkTTng1ADeSsckhHEhF8QO2/waJ5I5lsAiAgcOvesPDldXidK/bXZ+snO1yPl0uL8tNCujnmrUnL3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10625},"main":"./dist.cjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"b8c7d7c206f8a362b76989235d54bfd8041cdeee","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js","test:mjs":"npx jest -c jest.mjs.config.js","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"httpService and httpMockService","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.4.1","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.4.1","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_0.0.9_1722752889478_0.8969686046057936","host":"s3://npm-registry-packages"}},"0.0.10":{"name":"@delgadotrueba/http","version":"0.0.10","keywords":["http"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@0.0.10","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"f88add1fa36f22a5aa8438fb28461e4c7e68a5c1","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-0.0.10.tgz","fileCount":38,"integrity":"sha512-8PvlHfKGXiQ9jJU51xMnHYnSown/SNzSbdJFB4JUUqB8DqR8Yu6FT0iYlm3ceWrsBAKzaeoLfJ+cGcQxR1ojdw==","signatures":[{"sig":"MEYCIQCwgPM48BQK2Nmlwx7nvw8ECN+hsnWapf+oEO6ACtbCqwIhAP38GWbM3rx595NOmV4C8oZdZxJP6U/UEcLYp6TXrnKM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49948},"main":"./dist.cjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"be4cb6c6e5980746f0f1881200a5190ec755640b","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js","test:mjs":"npx jest -c jest.mjs.config.js","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"httpService and httpMockService","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.4.1","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.4.1","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_0.0.10_1722753558117_0.9108940563359011","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@delgadotrueba/http","version":"1.0.0","keywords":["http"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.0","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"ecc6eaeb39ee85947d1d152b32ce54574df62129","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.0.tgz","fileCount":104,"integrity":"sha512-AG8BskQ2ArezV9zkNMiAGMzOMZKzqubKJAb907RYvrYxENQByKwXqzXtY0F1+Ar6DJgTZBOqQ07zIAYKtRR4mg==","signatures":[{"sig":"MEUCIBytzuTyDwj+BSPqVUzCHJJ2qItg3urEwdQx3vI5NJHjAiEAnF0IztCQzLnJmtO7Ry+J/PfX5LBeSoVqgAiUYYPULyg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":136417},"main":"./dist.cjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"e1b78d645aaf880a8a290466d1870780466b8dc0","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"httpService and httpMockService","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.0_1722950725108_0.08497768548869167","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@delgadotrueba/http","version":"1.0.1","keywords":["http"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.1","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"18eda10b73d917e07a86618ea9a497daff445e8e","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.1.tgz","fileCount":104,"integrity":"sha512-Y566xiVYoyNJ0LnElwOPo60PYG9Bji/6moiPrXclH/Rbk2+ARmgBI9UiXwGOa0pS9fWviWDhVc4ruNYBJRQcig==","signatures":[{"sig":"MEUCIQCnqBTWtPeBG1FSmzoqqiq/FF73IIy4CgS2IfRSKwDz5wIgWq5Kw7LZkfCFZUCucYWdwAw6cspupvNur/sLkEIVF4w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":136960},"main":"./dist.cjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"975ff46ca9e737363c246448dce9a54ea5cd2991","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"httpService and httpMockService","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.1_1723005161826_0.2564060891841733","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@delgadotrueba/http","version":"1.0.2","keywords":["http"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.2","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"bfb5a68fc571168c88ef1a66524f928651e71a15","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.2.tgz","fileCount":104,"integrity":"sha512-rzejPfdtPnEdj8IhTXBVNkSuL/DVBnlV9qy0afMYalrF3CQtl8BumpMfhFLeyEdyPt1bGa/tFR5Fcb8BvGpFDA==","signatures":[{"sig":"MEUCIQD51CncKfIrYNIWpYHk+RKUF+29yKTftfKKu9cHDeC8XwIgZ/VXztRpq4MEWkw6G3r09RI9F7GgxJRJgjRkvh0TKFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":137524},"main":"./dist.cjs/src/index.js","types":"./interfaces/src/index.d.ts","module":"./dist.mjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"4f3d4c80fdea0dfdb984c63804abb835d8a3ea57","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"httpService and httpMockService","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.2_1723007415723_0.2849131630030637","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@delgadotrueba/http","version":"1.0.3","keywords":["http","httpMock","httpMockService","httpService"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.3","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"05300f62b47bd840810011e21643e296fc7e3a19","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.3.tgz","fileCount":106,"integrity":"sha512-hSlODz8nZL+hAORNQ563gPWmCHEO8GMdM8BwCbLQk95n6PQcEEAOA6aU7P2esUAGPuoEunG+Mu1hfrY8IRXNdA==","signatures":[{"sig":"MEYCIQDwCzHb0/VxYGL8YKZ6JZG9fuM7E4vc0KWeBPJXmy9IUAIhAMw88BAkdVt+cZOMoFjLsm2Vl1L0vyGmSi1Q4E0eSJHL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":147146},"main":"./dist.cjs/src/index.js","types":"./interfaces/src/index.d.ts","module":"./dist.mjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"606b6204235667cddbcad316025373918e725a57","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"^2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.3_1723705809415_0.4165984260506139","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@delgadotrueba/http","version":"1.0.4","keywords":["http","httpMock","httpMockService","httpService"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.4","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"a15404083e678ae3e89ed18bbc56a65929799f6e","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.4.tgz","fileCount":106,"integrity":"sha512-iPRLMuEnK9rpW+hvBjvnR2Qs2mkS9ZhhnlZdYDMuaAIBWL7er1gf/qsL9sGKvFa1qa47LmcCs4PaDFzcM38Zuw==","signatures":[{"sig":"MEQCIBIEr32gaOWPoIRzeh6pRf/qu3YtG6vYURhMFidfftcZAiAmWBBEoGpJqzJ5bp7hJyVI1qHFgO4xMPcUdlch9cr8bg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":148533},"main":"./dist.cjs/src/index.js","types":"./interfaces/src/index.d.ts","module":"./dist.mjs/src/index.js","exports":{".":{"types":"./interfaces/src/index.d.ts","import":"./dist.mjs/src/index.js","default":"./dist.cjs/src/index.js","require":"./dist.cjs/src/index.js"},"./public-api":{"types":"./interfaces/src/public-api.d.ts","import":"./dist.mjs/src/public-api.js","default":"./dist.cjs/src/public-api.js","require":"./dist.cjs/src/public-api.js"}},"gitHead":"9bb1026e05db2d50e99351a3aa4eddb65726fa11","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.4_1723730413493_0.8523538959128003","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@delgadotrueba/http","version":"1.0.5","keywords":["http","httpMock","httpMockService","httpService"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.5","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"6c0b6310b1d7f914c64cc27fdc84612e04aee3ba","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.5.tgz","fileCount":125,"integrity":"sha512-smwq1DMdjY8AsLNOo/HaO9Y0A0127cETPNf7189Xz04B/yzqnBNtL+6I90ByCRR4wM3NXV66yGOpMXPrvtcWwA==","signatures":[{"sig":"MEUCIQCAck9glYSmVBBBLnOHv5pSR8jeoQ45QStNbzonsSyHqAIgdggWvbne5I9DPo44fDYabknzZBUzq3UBEqmNqchU22k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":158903},"main":"./dist/src/index.cjs.js","types":"./dist/src/index.mjs.d.ts","module":"./dist/src/index.mjs.js","exports":{".":{"import":{"types":"./dist/src/index.mjs.d.ts","default":"./dist/src/index.mjs.js"},"require":{"types":"./dist/src/index.cjs.d.ts","default":"./dist/src/index.cjs.js"}},"./public-api":{"import":{"types":"./dist/src/public-api.mjs.d.ts","default":"./dist/src/public-api.mjs.js"},"require":{"types":"./dist/src/public-api.cjs.d.ts","default":"./dist/src/public-api.cjs.js"}}},"gitHead":"9a6a750605807626ddb2bbb6e2eefc3ec046b2b8","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json && node scripts/rename-files.js cjs","build:mjs":"npx tsc -p tsconfig.mjs.json && node scripts/rename-files.js mjs","test:coverage":"npm run test -- --coverage","prepublishOnly":"npm run test && npm run build"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.5_1726773118779_0.3609744512434383","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@delgadotrueba/http","version":"1.0.6","keywords":["http","httpMock","httpMockService","httpService"],"author":{"name":"delgadotrueba"},"license":"MIT","_id":"@delgadotrueba/http@1.0.6","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"homepage":"https://github.com/DelgadoTrueba/http#readme","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"dist":{"shasum":"bfc60e047167cfc2618e9e8b9e33c5aa511d4a4c","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.6.tgz","fileCount":125,"integrity":"sha512-S7ECAEuowAx+9zHvzR4gb2ZSEAbzpO6omN0CzpYxmyQPpY4QywQ7Cnrxupgy+KS5/awPUjONlx8hUhn2sqMKyw==","signatures":[{"sig":"MEYCIQCpvyqkk1tGVnPDblxpo+/RIKJpnxk9mikBzQU4n6zSKQIhAMk8WVKcuk0LWAzl7FqNOjMB0KFHmcxs9cfWa15u3jm4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":159958},"types":"./dist/mjs/src/index.d.ts","exports":{".":{"import":{"types":"./dist/mjs/src/index.d.ts","default":"./dist/mjs/src/index.js"},"require":{"types":"./dist/cjs/src/index.d.ts","default":"./dist/cjs/src/index.js"}},"./public-api":{"import":{"types":"./dist/mjs/src/public-api.d.ts","default":"./dist/mjs/src/public-api.js"},"require":{"types":"./dist/cjs/src/public-api.d.ts","default":"./dist/cjs/src/public-api.js"}}},"gitHead":"e574ff3951545b66a72e816734213337da375ee0","scripts":{"lint":"npx eslint  -c .eslintrc.json src/**/*.ts","test":"npm run test:cjs && npm run test:mjs","build":"npm run build:cjs && npm run build:mjs","prepare":"husky","lint:fix":"npm run lint -- --fix","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","test:coverage":"npm run test -- --coverage","prepublishOnly":"npm run test && npm run build"},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"repository":{"url":"git+https://github.com/DelgadoTrueba/http.git","type":"git"},"_npmVersion":"10.5.0","description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","directories":{},"sideEffects":false,"_nodeVersion":"21.7.3","dependencies":{"tslib":"2.6.3","path-to-regexp":"6.2.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","husky":"9.1.4","eslint":"8.57.0","ts-jest":"29.2.4","prettier":"3.3.3","commitlint":"19.3.0","typescript":"5.5.4","@types/jest":"29.5.12","lint-staged":"15.2.8","@commitlint/cli":"19.3.0","eslint-plugin-import":"2.29.1","jest-environment-node":"29.7.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.2.1","jest-environment-jsdom":"29.7.0","@typescript-eslint/parser":"7.18.0","eslint-config-airbnb-base":"15.0.0","@commitlint/config-conventional":"19.2.2","eslint-config-airbnb-typescript":"18.0.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/http_1.0.6_1726811842506_0.9755910350290096","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@delgadotrueba/http","version":"1.0.7","description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","author":{"name":"delgadotrueba"},"keywords":["http","httpMock","httpMockService","httpService"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/DelgadoTrueba/http.git"},"scripts":{"build":"npm run build:cjs && npm run build:mjs","build:cjs":"npx tsc -p tsconfig.cjs.json","build:mjs":"npx tsc -p tsconfig.mjs.json","lint":"npx eslint  -c .eslintrc.json src/**/*.ts","lint:fix":"npm run lint -- --fix","test":"npm run test:cjs && npm run test:mjs","test:cjs":"npx jest -c jest.cjs.config.js --verbose","test:mjs":"npx jest -c jest.mjs.config.js --verbose","test:coverage":"npm run test -- --coverage","prepare":"husky","prepublishOnly":"npm run test && npm run build"},"devDependencies":{"@commitlint/cli":"19.3.0","@commitlint/config-conventional":"19.2.2","@types/jest":"29.5.12","@typescript-eslint/eslint-plugin":"7.18.0","@typescript-eslint/parser":"7.18.0","commitlint":"19.3.0","eslint":"8.57.0","eslint-config-airbnb-base":"15.0.0","eslint-config-airbnb-typescript":"18.0.0","eslint-config-prettier":"9.1.0","eslint-plugin-import":"2.29.1","eslint-plugin-prettier":"5.2.1","husky":"9.1.4","jest":"29.7.0","jest-environment-jsdom":"29.7.0","jest-environment-node":"29.7.0","lint-staged":"15.2.8","prettier":"3.3.3","ts-jest":"29.2.4","typescript":"5.5.4"},"dependencies":{"path-to-regexp":"6.2.1","tslib":"2.6.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/cjs/src/index.js","module":"./dist/mjs/src/index.js","types":"./dist/mjs/src/index.d.ts","exports":{".":{"require":{"default":"./dist/cjs/src/index.js","types":"./dist/cjs/src/index.d.ts"},"import":{"default":"./dist/mjs/src/index.js","types":"./dist/mjs/src/index.d.ts"}},"./public-api":{"require":{"default":"./dist/cjs/src/public-api.js","types":"./dist/cjs/src/public-api.d.ts"},"import":{"default":"./dist/mjs/src/public-api.js","types":"./dist/mjs/src/public-api.d.ts"}}},"sideEffects":false,"_id":"@delgadotrueba/http@1.0.7","gitHead":"d38105dab0568cba5a0157ee7da2514801ceadd7","bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"homepage":"https://github.com/DelgadoTrueba/http#readme","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-e9ORx4/zlDanv0hU9AxblLJqt1Opek2qmC8QJCbPkksJV33NMoRAZnSAZIJXs7nWYWqIX7IQpxHdW2lnHqTn9g==","shasum":"7f4650b1b56a08e4421fbdbaff742d73fbd0bca2","tarball":"https://registry.npmjs.org/@delgadotrueba/http/-/http-1.0.7.tgz","fileCount":125,"unpackedSize":160034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBWVl9wJGswFn3UQ1twpW0LSVh4DUc7vIN5x5hvrvGhAiApAQcZ+z027RlCRwb9B/PWAvTuN529f6U5bvhe2lOlmg=="}]},"_npmUser":{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"},"directories":{},"maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http_1.0.7_1726812740872_0.9181689965577629"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-04T06:28:09.380Z","modified":"2024-09-20T06:12:21.354Z","0.0.9":"2024-08-04T06:28:09.665Z","0.0.10":"2024-08-04T06:39:18.294Z","1.0.0":"2024-08-06T13:25:25.330Z","1.0.1":"2024-08-07T04:32:41.962Z","1.0.2":"2024-08-07T05:10:15.914Z","1.0.3":"2024-08-15T07:10:09.598Z","1.0.4":"2024-08-15T14:00:13.717Z","1.0.5":"2024-09-19T19:11:58.983Z","1.0.6":"2024-09-20T05:57:22.726Z","1.0.7":"2024-09-20T06:12:21.156Z"},"bugs":{"url":"https://github.com/DelgadoTrueba/http/issues"},"author":{"name":"delgadotrueba"},"license":"MIT","homepage":"https://github.com/DelgadoTrueba/http#readme","keywords":["http","httpMock","httpMockService","httpService"],"repository":{"type":"git","url":"git+https://github.com/DelgadoTrueba/http.git"},"description":"A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.","maintainers":[{"name":"delgadotrueba","email":"delgadotrueba@outlook.es"}],"readme":"# @delgadotrueba/http\n\n> A personal HTTP service library featuring both httpService for real-world API interactions and httpMockService for testing and mock API simulations.\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![License][license-image]][license-url]\n\n## Build\n\nGuide to Developing the Library\n\n```\nnvm use v21.7.3\nnpm i\n\n# Available Scripts\nnpm run build\nnpm run lint\nnpm run test\n```\n\nHow to Manually Publish the Libray\n\n```\nnvm use v21.7.3\nnpm i\n\nnpm publish\n```\n\n## Installation\n\nGuide to use the Library\n\n```\nnpm install @delgadotrueba/http --save\n```\n\n## Import\n\n### Commonjs\n\n```js\nconst {\n  HttpInterfaceService,\n  HttpService,\n  HttpMockService,\n} = require('@delgadotrueba/http');\n\nconst http: HttpInterfaceService = env.production ? new HttpService() : new HttpMockService();\n```\n\n### ESM\n\n```js\nimport { HttpInterfaceService, HttpService, HttpMockService } from '@delgadotrueba/http';\n\nconst http: HttpInterfaceService = env.production ? new HttpService() : new HttpMockService();\n```\n\n## Usage\n\n### HttpService API\n\n```js\n// env.production = true\n\nconst http: HttpInterfaceService = env.production ? new HttpService() : new HttpMockService();\n\nhttp.get<any>({ endpoint: url }).then(async (response: any) => {\n      switch (response.status) {\n        case 200:\n          console.log(await response.json());\n          break;\n\n        default:\n          break;\n      }\n}).catch((error) => {\n    switch (error.response.status) {\n        case 400:\n          console.log(await response.json());\n          break;\n\n        case 500:\n          console.log(await response.json());\n          break;\n\n        default:\n          break;\n      }\n});\n```\n\n### HttpMockService API\n\n### Success Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\n\nhttpMock.onGet(url, () => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n      id: 1,\n      name: 'Shena',\n      type: 'Dog',\n    },\n  });\n});\n\n\nhttp.get<any>({ endpoint: url }).then(async (response: any) => {\n      switch (response.status) {\n        case 200:\n          console.log(await response.json());\n          break;\n\n        default:\n          break;\n      }\n});\n```\n\n### Error Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\n\nhttpMock.onGet(url, () => {\n  return Promise.reject({\n    status: 500,\n    response: {\n      description: \"Internal Server Error\"\n    },\n  });\n});\n\n\nhttp.get<any>({ endpoint: url }).then(async (response: any) => {\n      switch (response.status) {\n        case 200:\n          console.log(await response.json());\n          break;\n\n        default:\n          break;\n      }\n}).catch((error: unknown) => {\n    if (error instanceof HttpResponseError) {\n       switch (error.response.status) {\n        case 400:\n          console.log(await response.json());\n          break;\n\n        case 500:\n          console.log(await response.json());\n          break;\n\n        default:\n          break;\n      }\n    } else {\n      console.error(\"An unexpected error occurred:\", error);\n    }\n});\n```\n\n### Mock Response With Body Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\nhttpMock.onPost(url, ({body}) => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n      id: body.id, // <-----\n      name: body.name, // <-----\n      type: body.type, // <-----\n    },\n  });\n});\n\n\nhttp.post<any>({\n    endpoint: url,\n    body: { // <-----\n      id: 1,\n      name: 'Shena',\n      type: 'Dog',\n    }\n})\n.then(async (response: any) => {\n    switch (response.status) {\n        case 200:\n        console.log(await response.json());\n        break;\n\n        default:\n        break;\n    }\n});\n```\n\n### Mock Response With Headers Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\nhttpMock.onGet(url, ({headers}) => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n        filters: {\n            sort: headers['X-APP-SORT'] // <-----\n        },\n        data: [\n            id: 1,\n            name: 'Shena',\n            type: 'Dog',\n        ]\n    },\n  });\n});\n\n\nhttp.get<any>({\n    endpoint: url,\n    headers: {\n        'X-APP-SORT': \"ASC\" // <-----\n    }\n})\n.then(async (response: any) => {\n    switch (response.status) {\n        case 200:\n        console.log(await response.json());\n        break;\n\n        default:\n        break;\n    }\n});\n```\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\nhttpMock.onGet(url, ({headers}) => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n      id: params.id, // <-----\n      name: 'Shena',\n      type: 'Dog',\n    },\n  });\n});\n\n\nhttp.get<any>({ endpoint: url.replace(':id', '1') }) // <-----\n    .then(async (response: any) => {\n        switch (response.status) {\n            case 200:\n            console.log(await response.json());\n            break;\n\n            default:\n            break;\n        }\n    });\n```\n\n### Mock Response With Path Params Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\nconst url = 'http://localhost:3001/test/:id', // <-----\n\nhttpMock.onGet(url, ({params}) => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n      id: params.id, // <-----\n      name: 'Shena',\n      type: 'Dog',\n    },\n  });\n});\n\n\nhttp.get<any>({ endpoint: url.replace(':id', '1') }) // <-----\n    .then(async (response: any) => {\n        switch (response.status) {\n            case 200:\n            console.log(await response.json());\n            break;\n\n            default:\n            break;\n        }\n    });\n```\n\n### Mock Response With Query Params Response\n\n```js\n// env.production = false\n\nconst httpMock = new HttpMockService();\nconst http: HttpInterfaceService = env.production ? new HttpService() : httpMock;\n\nconst url = 'http://localhost:3001/test?sort=:sort', // <-----\n\nhttpMock.onGet(url, ({params}) => {\n  return Promise.resolve({\n    status: 200,\n    response: {\n        filters: {\n            sort: params.sort // <-----\n        },\n        data: [\n            id: 1,\n            name: 'Shena',\n            type: 'Dog',\n        ]\n    },\n  });\n});\n\n\nhttp.get<any>({ endpoint: url.replace(':sort', 'ASC') }) // <-----\n    .then(async (response: any) => {\n        switch (response.status) {\n            case 200:\n            console.log(await response.json());\n            break;\n\n            default:\n            break;\n        }\n    });\n```\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/%40delgadotrueba%2Fhttp\n[npm-url]: https://www.npmjs.com/package/@delgadotrueba/http\n[downloads-image]: https://img.shields.io/npm/dy/%40delgadotrueba%2Fhttp\n[downloads-url]: https://www.npmjs.com/package/@delgadotrueba/http\n[license-image]: http://img.shields.io/npm/l/%40delgadotrueba%2Fhttp.svg?style=flat\n[license-url]: LICENSE.md\n","readmeFilename":"README.md"}