{"_id":"@americanexpress/one-app-dev-proxy","_rev":"4-cfc3052d9b20ec71081d967db3bb7557","name":"@americanexpress/one-app-dev-proxy","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@americanexpress/one-app-dev-proxy","version":"1.0.0","description":"Proxy requests to remote servers locally while also allowing for an express middleware to be provided and applied to all requests","main":"lib/index.js","scripts":{"test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:unit":"jest","test":"npm run test:unit && npm run test:lint","build":"babel src --out-dir lib","prepack":"npm run test && npm run build"},"jest":{"preset":"amex-jest-preset","coveragePathIgnorePatterns":["<rootDir>/lib","<rootDir>/bin/set-middleware.js","<rootDir>/commitlint.config.js"]},"bin":{"set-middleware":"./bin/set-middleware.js"},"repository":{"type":"git","url":"git+https://github.com/americanexpress/one-app-dev-proxy.git"},"keywords":["proxy","mock","api","One Amex","one-app","amex"],"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com"},{"name":"Jimmy King","email":"Jimmy.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"license":"Apache-2.0","dependencies":{"body-parser":"^1.18.2","chalk":"^1.1.3","cors":"^2.8.3","express":"^4.15.2","request":"^2.81.0","rimraf":"^2.6.1","yargs":"^7.0.2"},"devDependencies":{"@semantic-release/changelog":"^3.0.5","@semantic-release/commit-analyzer":"^6.3.2","@semantic-release/git":"^7.0.18","@semantic-release/npm":"^5.3.4","@semantic-release/release-notes-generator":"^7.3.2","@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","amex-jest-preset":"^3.0.0","babel-cli":"^6.24.1","babel-preset-amex":"^1.0.0","eslint":"^6.5.0","eslint-config-amex":"^11.1.0","husky":"^3.0.9","jest":"^19.0.2","semantic-release":"^15.13.31"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/git","@semantic-release/npm"],"branch":"master"},"husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"homepage":"https://github.com/americanexpress/one-app-dev-proxy","bugs":{"url":"https://github.com/americanexpress/one-app-dev-proxy/issues"},"gitHead":"e0eba878fa839431e8216159baee228e50b4f2d9","_id":"@americanexpress/one-app-dev-proxy@1.0.0","_nodeVersion":"10.13.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-/ieo/zqCEHOku44kTk3BGldnbFsS+xxrhEeDMS3nWOjZazkaEuXHiic1bI80Z5ZXDnT5i34Yz+iQP6miv1kBEA==","shasum":"55550d520cc04b7a3b8c45173d47bfced98077ab","tarball":"https://registry.npmjs.org/@americanexpress/one-app-dev-proxy/-/one-app-dev-proxy-1.0.0.tgz","fileCount":13,"unpackedSize":32862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2GMZCRA9TVsSAnZWagAA3BgP/1iN/UB0+6W71e+kejuo\nh764T1ZwFhPwdi5E0/CWWL1G3mMf89i2LopiFCVrTsTUs3WL+i84/VZ8qA7d\nKQFa2D10Wq6SgBt6eN622cfwvbXQqAqKP1K2Pt8maZCEAW9VfVab4uxuanXs\n0BD/KqnC29n9i+AUqjSz0QaFvoN1hfefss4XGN2NefOV9SXIi325s/yrzW82\nzBOe2cUdPH0K6jQfplp6DKfdkeFlg4Vy62wjLdF0JHY6fw5CA8cWsXMI6szQ\nEctxr0CLwpdqGd0Y3wVIa7EAVcbrZyN0alNOFjgAQy3KdgbqEAKTIMxsvidL\nZYjB+b8CY2IoZfAH5QXFN7BxcbgfR8mGs/QmDHuaItPewaUuaErkTmQuHZCU\nlM86CFeRL/RtXAxPakoGQVy3t8F9HVcDJ0HFhm4KzuRO3cT60OX7chj4sSmA\nsdlsNuM6YsD0SXHcIDi2eowZSSv4b8aWiigACVwmrL1WHsuGJYTTlKxqrBKO\nJxA4MRsIa6gANFzKL5jDRjQBW8F+QsEv4j2LawFOtgXcsJXbXyyFvX6gtaPK\nIOhA3g4EmTOUv7b43yheI0J/cCtStZ5fGHSaVc1TkuEJk2F8wZNnEhWbc+Op\nPnxtCxjeZDtSLZERc5EReRPN5IrCtN2uKwJ9smZCUbfEYpzh8Iv1oAQP7kIU\nQL6m\r\n=wF+7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOtH9TgnTqMOCsJ+GmdIraYlTHSMfvTA/Yw9VA0eNkfAiEAuaNhV4w9DmrVSqpCQd694Osrv/VTR8l/ZPoFQS1ILgM="}]},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jimmyking","email":"hello@jimmyking.me"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"}],"_npmUser":{"name":"jimmyking","email":"hello@jimmyking.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-app-dev-proxy_1.0.0_1574462232618_0.19154638630065368"},"_hasShrinkwrap":false},"2.0.0":{"name":"@americanexpress/one-app-dev-proxy","version":"2.0.0","description":"Proxy requests to remote servers locally while also allowing for an express middleware to be provided and applied to all requests","main":"lib/index.js","scripts":{"test:lint":"eslint --ignore-path .eslintignore --ext .js,.snap .","test:unit":"jest","test":"npm run test:unit && npm run test:lint && npm run test:git-history","test:git-history":"commitlint --from origin/main --to HEAD","test:lockfile":"lockfile-lint --path yarn.lock --allowed-hosts registry.yarnpkg.com --validate-https","build":"babel src --out-dir lib","prepack":"npm run test && npm run build","posttest":"npm run test:lockfile"},"jest":{"preset":"amex-jest-preset","coveragePathIgnorePatterns":["<rootDir>/lib","<rootDir>/bin/set-middleware.js","<rootDir>/commitlint.config.js"]},"bin":{"set-middleware":"bin/set-middleware.js"},"repository":{"type":"git","url":"git+https://github.com/americanexpress/one-app-dev-proxy.git"},"keywords":["proxy","mock","api","One Amex","one-app","amex"],"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com","url":"https://github.com/JamesSingleton"},{"name":"Jamie King","email":"Jamie.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"license":"Apache-2.0","dependencies":{"body-parser":"^1.18.2","chalk":"^3.0.0","cors":"^2.8.3","express":"^4.15.2","node-fetch":"2.6.7","rimraf":"^2.6.1","yargs":"^15.4.1"},"devDependencies":{"@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.2","@semantic-release/changelog":"^6.0.0","@semantic-release/commit-analyzer":"^9.0.0","@semantic-release/git":"^10.0.0","@semantic-release/github":"^8.0.0","@semantic-release/npm":"^9.0.0","@semantic-release/release-notes-generator":"^10.0.0","amex-jest-preset":"^3.0.0","@babel/cli":"^7.0.0","babel-preset-amex":"^4.0.0","eslint":"^6.5.0","eslint-config-amex":"^13.1.0","husky":"^3.0.9","jest":"^29.0.0","lockfile-lint":"^4.3.7","semantic-release":"^19.0.0"},"release":{"branches":["+([0-9])?(.{+([0-9]),x}).x","main","next","next-major",{"name":"beta","prerelease":true},{"name":"alpha","prerelease":true}],"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/github"]},"husky":{"hooks":{"pre-commit":"npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"homepage":"https://github.com/americanexpress/one-app-dev-proxy","bugs":{"url":"https://github.com/americanexpress/one-app-dev-proxy/issues"},"gitHead":"94a1fd7514abcd88e30ed549a05ce83aaa37b5a3","_id":"@americanexpress/one-app-dev-proxy@2.0.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-S4MghjmnpRrSnMWXnXbEyzsaXD+1vFqJJpEQ2EDsdppWIFPdW1PtCBrlPdQkdWEeFVrPqqAc/hFUn1esxicjyg==","shasum":"ad0218f2541d84e47e2b0d4c415ea9005a8250f3","tarball":"https://registry.npmjs.org/@americanexpress/one-app-dev-proxy/-/one-app-dev-proxy-2.0.0.tgz","fileCount":13,"unpackedSize":32397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqio0Wr33MnZJBfb2/5Fss+1lEiOXadzqZiVyZ5MW0IAiBAbCVFIYtegkh4QQ/cXikCjqiZ4GuJ4pJh3rF+LYEekw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0DoMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoP1hAAkKVBLUoO0GEJ6132qhWL4X9V+Uix+QCcyzI1Qqangtii4Kfk\r\n9QpooNXJ4d9xhs+evy9pGiHiIzHgaKPTB0nN34NyiXE/eehXTahF/7P7dXx7\r\nzCN+KHlnBqYaOi+SZBOVmseSRGzHTbttRcvyYuJ37sBIsxmiawjwkNAHgRjd\r\nY38x0ywJ1nzaSIQk4cc+ApzkpKQJgpdjPeiC1e8DyjXz7cz4rLCguP0kSP8B\r\nak9boDMkC7BlGk5GHL/Hp1L1i3fDkmN8rvgWYtGYDrawB/YnuujPUixpRrsW\r\nrvV/JickcxBPIW6oQB9q5I/ShHeWm7opZ/1ZyWXEN9hOoYZJy7TqascVFS9A\r\noLb3I16pN8brurrpRP09yCTGjCoHWEMVopba0u+vgia1H0Rr3c9bQRSFpAer\r\ncb1iXbIjqt8kCKVqIBnqCu2e0NY90tXzhIEWZ3yY52+DY/ZsV2U5QhrWoV5s\r\nxTVClXlx8Kk6WxEl/snf7jW8jQA/0QjGsn0mxsraDahxDtjz1dItMXLxaMM7\r\nbHNpNz801XWJeInFzebAJiS00YZI5kXfwUKy5TdcQFcKFuyAEgO6hiZmo+Uu\r\nahwgw8oGu028zotORBe06WZW9FeOAkb59HiCOj12X0N6VIeslrn8z8ZmGN1B\r\nuFT/XaiFGiiuI5aMEhV0g6RO0r/aDRXk/Q8=\r\n=4MX2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"amexopensource","email":"open-source-ops@aexp.com"},"directories":{},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"},{"name":"amexopensource","email":"open-source-ops@aexp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-app-dev-proxy_2.0.0_1674590732203_0.7084046319256201"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-22T22:37:12.369Z","1.0.0":"2019-11-22T22:37:12.771Z","modified":"2023-01-24T20:05:32.462Z","2.0.0":"2023-01-24T20:05:32.346Z"},"maintainers":[{"name":"pixnbits","email":"i@pixnbits.org"},{"name":"anescobar1991","email":"anescobar1991@gmail.com"},{"name":"jsmartfo","email":"j_smart_foster@hotmail.com"},{"name":"amexopensource","email":"open-source-ops@aexp.com"}],"description":"Proxy requests to remote servers locally while also allowing for an express middleware to be provided and applied to all requests","homepage":"https://github.com/americanexpress/one-app-dev-proxy","keywords":["proxy","mock","api","One Amex","one-app","amex"],"repository":{"type":"git","url":"git+https://github.com/americanexpress/one-app-dev-proxy.git"},"contributors":[{"name":"Andres Escobar","email":"Andres.Escobar@aexp.com","url":"https://github.com/anescobar1991"},{"name":"James Singleton","email":"James.Singleton1@aexp.com","url":"https://github.com/JamesSingleton"},{"name":"Jamie King","email":"Jamie.King@aexp.com","url":"https://github.com/10xLaCroixDrinker"},{"name":"Jonathan Adshead","email":"Jonathan.Adshead@aexp.com","url":"https://github.com/JAdshead"},{"name":"Michael Tobia","email":"Michael.M.Tobia@aexp.com","url":"https://github.com/Francois-Esquire"},{"name":"Michael Tomcal","email":"Michael.A.Tomcal@aexp.com","url":"https://github.com/mtomcal"},{"name":"Stephanie Coates","email":"Stephanie.Coates1@aexp.com","url":"https://github.com/stephaniecoates"},{"name":"Nelly Kiboi","email":"Nelly.J.Kiboi@aexp.com","url":"https://github.com/nellyk"},{"name":"Nickolas Oliver","email":"nickolas.oliver@aexp.com","url":"https://github.com/PixnBits"}],"bugs":{"url":"https://github.com/americanexpress/one-app-dev-proxy/issues"},"license":"Apache-2.0","readme":"<h1 align=\"center\">\n  <img src='https://github.com/americanexpress/one-app-dev-proxy/raw/main/one-app-dev-proxy.png' alt=\"One App Dev Proxy - One Amex\" width='50%'/>\n</h1>\n\n[![npm](https://img.shields.io/npm/v/@americanexpress/one-app-dev-proxy)](https://www.npmjs.com/package/@americanexpress/one-app-dev-proxy)\n![Health Check](https://github.com/americanexpress/one-app-dev-proxy/workflows/Health%20Check/badge.svg)\n\n> Proxy requests to remote servers locally while also allowing for an [express](https://expressjs.com) middleware to be provided and applied to all requests.\n\n\n## 👩‍💻 Hiring 👨‍💻\n\nWant to get paid for your contributions to `one-app-dev-proxy`?\n> Send your resume to oneamex.careers@aexp.com\n\n\n## 📖 Table of Contents\n\n* [Features](#-features)\n* [Usage](#-usage)\n* [API](#-api)\n* [contributing](#-contributing)\n\n## ✨ Features\n\n* Proxy requests to remote servers locally.\n* Add an [express](https://expressjs.com) middleware applied to all requests.\n\n## 🤹‍ Usage\n\n### Installation\n\n```bash\nnpm i @americanexpress/one-app-dev-proxy -D\n```\n\nLook at the different `options` you can use under the [API](#API) section.\n\n```js\nimport oneAppDevProxy from '@americanexpress/one-app-dev-proxy';\n\noneAppDevProxy({\n  useMiddleware: true,\n  pathToMiddleware: path.join(__dirname, '../../.dev/middleware'),\n  remotes: { api: 'https://api.com' },\n});\n```\n\n## 🎛️ API\n\n## oneAppDevProxy( [options] )\n\n### options\n\nType: `object`\n\nprovide the options below to start the mock services.\n\n#### useMiddleware\n\nType: `boolean`\n\nDefault: `false`<br>\nprovides the option of whether to apply provided middleware to `one-app-dev-proxy` server.\n\n#### pathToMiddleware\n\nType: `string`\npath to a file exporting an express middleware function by the HTTP_PROXY environment variable.\n\n#### remotes\n\nType: `object`\n\nDefault: `{}`<br>\nConfiguration object containing paths `one-app-dev-proxy` should serve and where requests coming to those paths should be proxied to. Used if `pathToMiddleware` is not provided.\n\n**Note**: one-app-dev-proxy respects the `HTTP_PROXY` / `http_proxy`,  `HTTPS_PROXY` / `https_proxy`,\nand `NO_PROXY` / `no_proxy` environment variables and will use those accordingly when making\nrequests to remotes provided in the `remotes` option.\n\n\n## 🏆 Contributing\n\nWe welcome Your interest in the American Express Open Source Community on Github.\nAny Contributor to any Open Source Project managed by the American Express Open\nSource Community must accept and sign an Agreement indicating agreement to the\nterms below. Except for the rights granted in this Agreement to American Express\nand to recipients of software distributed by American Express, You reserve all\nright, title, and interest, if any, in and to Your Contributions. Please [fill\nout the Agreement](https://cla-assistant.io/americanexpress/one-app-dev-proxy).\n\nPlease feel free to open pull requests and see [CONTRIBUTING.md](./CONTRIBUTING.md) to learn how to get started contributing.\n\n## 🗝️ License\n\nAny contributions made under this project will be governed by the [Apache License\n2.0](https://github.com/americanexpress/one-app-dev-proxy/blob/main/LICENSE.txt).\n\n## 🗣️ Code of Conduct\n\nThis project adheres to the [American Express Community Guidelines](./CODE_OF_CONDUCT.md).\nBy participating, you are expected to honor these guidelines.\n","readmeFilename":"README.md"}