{"_id":"@cgutierrezpa/aws4-axios","_rev":"2-7a0cfceba48904016a4465f346324318","name":"@cgutierrezpa/aws4-axios","dist-tags":{"latest":"1.12.2"},"versions":{"1.12.1":{"name":"@cgutierrezpa/aws4-axios","version":"1.12.1","description":"Axios request interceptor for signing requests with AWSv4. It includes a fix regarding webpack compilations. Forked from https://github.com/jamesmbourne/aws4-axios.git","author":{"name":"James Bourne"},"repository":{"type":"git","url":"git+https://github.com/jamesmbourne/aws4-axios.git"},"license":"MIT","homepage":"https://github.com/jamesmbourne/aws4-axios","bugs":{"url":"https://github.com/jamesmbourne/aws4-axios/issues"},"keywords":["aws4","awsv4","signature","axios","interceptor"],"resolutions":{"lodash":"4.17.15","mixin-deep":"2.0.1","set-value":"3.0.1"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"tsc","test":"jest","test-ci":"jest --config jest.config.ci.js","test-it":"jest --config jest.config.it.js"},"devDependencies":{"@types/jest":"^25.2.1","@types/moxios":"^0.4.9","@types/node":"^13.13.4","eslint":"^6.8.0","jest":"^25.4.0","jest-junit":"^10.0.0","moxios":"^0.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"dependencies":{"@types/aws4":"^1.5.1","aws4":"^1.9.1","axios":"^0.19.2"},"gitHead":"e8edb9bc4e73cac61e3377bca6aa99364ae78fa8","_id":"@cgutierrezpa/aws4-axios@1.12.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-K4QodVZ+fUKnf5dLW0KOoQcmYhkXPVVOyXueqU0k7xX1PAjF859frNDOtJ03cwFrHIVW+DOw5JtbUki7IOAlHA==","shasum":"c3603e922f5ef0583113a951ea2783bebea724ca","tarball":"https://registry.npmjs.org/@cgutierrezpa/aws4-axios/-/aws4-axios-1.12.1.tgz","fileCount":21,"unpackedSize":35938,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewmvHCRA9TVsSAnZWagAA0cwQAIR40s4KUrqwWM/V7nqL\nYmqrZqnQZg42kBW/1vUvqPD9HXi8bXIo+lPnPqNnBSZKGFcec2xqx3PDdtGA\nkauODGH15slq8aJOa0Wl/RsKGq+zIf8ygqKlO0SsskzeQBQYqLqJIK8XWQqq\n1Cv20gWfOTSX8aRGerNIMrS4CsXXFofFuZ82Utoe+C90wG4akYJmUAOPHIxt\nkCi4WOIliFIjNeMCdfHzJfa1yWXEoHasSWtGPQ9KDGfpoAYC+uGpTrdrijze\nePH+pWfbbJMKR/CJXM0EfUkLUexPd9qmPwttI8E8zpQ1YHbFFdqivv/LnSDK\n6YbCR4pW4wtBm0HwEQ9jvD0awf582FGWIm3txRhWNNvVWEqJ576IgZ73wHwK\n0hbk8xXndl/mFwyWaNMK4qyxhQEwQI/U9xFtMCz8PL2GpAF/QHBUzMJ3av6m\nlUt+3zwNUhiAUzYmJC8Z2pjQCc/DntOZSKzSRRidsSBfRi8RHQ2FOeYQfeLx\n8nIcZ+weMx1/erTyrJ11y36rUJAogAIoCAxK21RgNhDu7xTek+dtd0CsSYsR\nLJ+VIHeKQP7huTYycQQJawZ9Y7w+wifXcPRjsLMt0tb38jkhWMWaU2OQBTAQ\nHFUAevUpbTPppxe7FapPEv/r4+u4mRvvMc66Yfg/PY8uTp7+zo5+fw0Sy07a\nV3ZI\r\n=jzsA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH3tWZ31uVRkyFbjvuDJICYj3zT4hgi5R1b/2WI0yv1gIhAMgbsWEBu8QCj42UvIEmsWv11z9Ow2bH1nbUo1BH9RUu"}]},"maintainers":[{"name":"cgutierrezpa","email":"cgutierrezparadela@gmail.com"}],"_npmUser":{"name":"cgutierrezpa","email":"cgutierrezparadela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws4-axios_1.12.1_1589799878719_0.7471498646006731"},"_hasShrinkwrap":false},"1.12.2":{"name":"@cgutierrezpa/aws4-axios","version":"1.12.2","description":"Axios request interceptor for signing requests with AWSv4. It includes a fix regarding webpack compilations. Forked from https://github.com/jamesmbourne/aws4-axios.git","author":{"name":"James Bourne"},"repository":{"type":"git","url":"git+https://github.com/jamesmbourne/aws4-axios.git"},"license":"MIT","homepage":"https://github.com/jamesmbourne/aws4-axios","bugs":{"url":"https://github.com/jamesmbourne/aws4-axios/issues"},"keywords":["aws4","awsv4","signature","axios","interceptor"],"resolutions":{"lodash":"4.17.15","mixin-deep":"2.0.1","set-value":"3.0.1"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"tsc","test":"jest","test-ci":"jest --config jest.config.ci.js","test-it":"jest --config jest.config.it.js"},"devDependencies":{"@types/jest":"^25.2.1","@types/moxios":"^0.4.9","@types/node":"^13.13.4","eslint":"^6.8.0","jest":"^25.4.0","jest-junit":"^10.0.0","moxios":"^0.4.0","ts-jest":"^25.4.0","typescript":"^3.8.3"},"dependencies":{"@types/aws4":"^1.5.1","aws4":"^1.9.1","axios":"^0.19.2"},"gitHead":"7175f72019489242d57c01a9dc4daa7062e829c7","_id":"@cgutierrezpa/aws4-axios@1.12.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jT1Cd+kOdsANd/IqIdTRBEZaZBATyIcfsnJOtrhdo2sqIh9o1uCuj57/EtAcgNDg8cNguwwlCRl5kTP7QYj00Q==","shasum":"abb07bf1a6923b8decd34ea7fbed0d9547d7b957","tarball":"https://registry.npmjs.org/@cgutierrezpa/aws4-axios/-/aws4-axios-1.12.2.tgz","fileCount":21,"unpackedSize":36065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewnLlCRA9TVsSAnZWagAAcSAQAIr3+isRzIe04zMiTckD\ns9BzMYFUwUNc1zwEW2H+yLJGXYobmM+q+/cemuSaqDrRfNwNmsmgEiMxuVZ7\nmLiMLMXQ+taqLBTLkD7Ph3z9pqbaQcKI4PNGLqIc9DcHrfZOYm694RATZ/Cz\nw5ZSg7nuWUP/kLAPL7E0+s2h4yDv/fk6ekEL+NA78Dv2uKtzyZYEDg2kC9py\n0/DbXh0eyT9TTlDeySxJ8tvgwcCOm+mBFogW3kLLCMpAVQEEYx8MXWIm3UPJ\nh91PSoxCxI5gRlJe61LN9aFlp97IKfi6U3b/xJgWEI8Yz9GxD8eZqeNhABZ7\nXvt/9E8QGBn2ba2aPBRKggu9J9l/iQDdN1swWIgd0aTMgwFsaI2numC8rF+v\n6YcXGEdqfvddpzedoqK1D8GUe8xd7KT7xooIOQtvwO6oILQnzKFeQL8m65eX\nfPgF3o0m+z3QEKGX9B25UwQoGQomJ4huITh8a4f01JEdhRbeVhHnWX4USTTm\ntjGYx7SdU0CgSJg/OMgTpqJiw301JSVXThDneSXX2hyulFcwLmvPdJmjsTBZ\n7M+NJnd6lNotWiRNmYcNdufl8D3d0AcI0If0NUD8a5vwmOeUiK14qd5snW2m\nHoPOa4kXXPr9sdnk2O+QX30BbPnovbrFLonSGFl75DtO4/3qO4zKoZqI0GG1\nwuyt\r\n=2QWn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH1e58AhC+/2yGVciPFsQxXYn/P7oGYGTZ9QOpdjmRqICIEOlC/yJaj+fp8SZysq163cUhOngdp1TU+4jzfhyGEaW"}]},"maintainers":[{"name":"cgutierrezpa","email":"cgutierrezparadela@gmail.com"}],"_npmUser":{"name":"cgutierrezpa","email":"cgutierrezparadela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws4-axios_1.12.2_1589801700698_0.7224725348580283"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-18T11:04:38.674Z","1.12.1":"2020-05-18T11:04:38.839Z","modified":"2022-04-04T22:25:55.724Z","1.12.2":"2020-05-18T11:35:00.865Z"},"maintainers":[{"name":"cgutierrezpa","email":"cgutierrezparadela@gmail.com"}],"description":"Axios request interceptor for signing requests with AWSv4. It includes a fix regarding webpack compilations. Forked from https://github.com/jamesmbourne/aws4-axios.git","homepage":"https://github.com/jamesmbourne/aws4-axios","keywords":["aws4","awsv4","signature","axios","interceptor"],"repository":{"type":"git","url":"git+https://github.com/jamesmbourne/aws4-axios.git"},"author":{"name":"James Bourne"},"bugs":{"url":"https://github.com/jamesmbourne/aws4-axios/issues"},"license":"MIT","readme":"# aws4-axios\n\n[![npm version](https://img.shields.io/npm/v/aws4-axios.svg?style=flat-square)](https://www.npmjs.org/package/aws4-axios)\n[![npm downloads](https://img.shields.io/npm/dm/aws4-axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=aws4-axios)\n[![circleci build](https://img.shields.io/circleci/build/github/jamesmbourne/aws4-axios.svg?style=flat-square)](https://circleci.com/gh/jamesmbourne/aws4-axios)\n\nThis is a request interceptor for the Axios HTTP request library to allow requests to be signed with an AWSv4 signature.\n\nThis may be useful for accessing AWS services protected with IAM auth such as an API Gateway.\n\n# Installation\n\n| yarn                                | npm                                           |\n| ----------------------------------- | --------------------------------------------- |\n| `yarn add @cgutierrezpa/aws4-axios` | `npm install --save @cgutierrezpa/aws4-axios` |\n\n# Usage\n\nTo add an interceptor to the default Axios client:\n\n```typescript\nimport axios from \"axios\";\nimport { aws4Interceptor } from \"aws4-axios\";\n\nconst interceptor = aws4Interceptor({\n  region: \"eu-west-2\",\n  service: \"execute-api\",\n});\n\naxios.interceptors.request.use(interceptor);\n\n// Requests made using Axios will now be signed\naxios.get(\"https://example.com/foo\").then((res) => {\n  // ...\n});\n```\n\nOr you can add the interceptor to a specific instance of an Axios client:\n\n```typescript\nimport axios from \"axios\";\nimport { aws4Interceptor } from \"aws4-axios\";\n\nconst client = axios.create();\n\nconst interceptor = aws4Interceptor({\n  region: \"eu-west-2\",\n  service: \"execute-api\",\n});\n\nclient.interceptors.request.use(interceptor);\n\n// Requests made using Axios will now be signed\nclient.get(\"https://example.com/foo\").then((res) => {\n  // ...\n});\n```\n\nYou can also pass AWS credentials in explicitly (otherwise taken from process.env)\n\n```typescript\nconst interceptor = aws4Interceptor(\n  {\n    region: \"eu-west-2\",\n    service: \"execute-api\",\n  },\n  {\n    accessKeyId: \"\",\n    secretAccessKey: \"\",\n  }\n);\n```\n","readmeFilename":"README.md"}