{"name":"swagger-client","version":"3.16.1","keywords":["oai","swagger","js","spec","resolver","json-refs"],"license":"Apache-2.0","_id":"swagger-client@3.16.1","maintainers":[{"name":"swagger-api","email":"apiteam@swagger.io"},{"name":"fehguy","email":"fehguy@gmail.com"},{"name":"kyleshockey","email":"kyleshockey@gmail.com"}],"contributors":[{"url":"in alphabetical order"},{"name":"Anna Bodnia","email":"anna.bodnia@gmail.com"},{"name":"Buu Nguyen","email":"buunguyen@gmail.com"},{"name":"Josh Ponelat","email":"jponelat@gmail.com"},{"name":"Kyle Shockey","email":"kyleshockey1@gmail.com"},{"name":"Sahar Jafari","email":"shr.jafari@gmail.com"}],"homepage":"https://github.com/swagger-api/swagger-js#readme","bugs":{"url":"https://github.com/swagger-api/swagger-js/issues"},"dist":{"shasum":"df86c9d407ab52c00cb356e714b0ec732bb3ad40","tarball":"http://registry-npm.ywwl.com/swagger-client/download/swagger-client-3.16.1.tgz","fileCount":58,"integrity":"sha512-BcNRQzXHRGuXfhN0f80ptlr+bSaPvXwo8+gWbpmTnbKdAjcWOKAWwUx7rgGHjTKZh0qROr/GX9xOZIY8LrBuTg==","signatures":[{"sig":"MEUCIQDpDf7NMIXNMgvuBMez+iWdwbHe43JEYkOSuaK/j4IHuQIgI+v3BKnUrPaH8O5z+IGhks6HVV/BVVTcdH449BhUlfU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2523136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOv/1CRA9TVsSAnZWagAAGCgP/3hjbtUXMLImKYk4FA6J\nqNua4Xk30xcb2mLf74i+jHjpGVZp40AfpNTE5SYT8qzJza6D2rxujYDtegSp\ndGE7tXCRCvF7yhM0Zp7KVdK7M5nVgug+CEPdDjeuNcXG0pqPMBYu+ol6nf0+\nSkC4QdOoyMnOHBSVRt12eHbhqAPpBhlRi8ByMCESveHOT+P+7PjZeRgs6rBp\n7jYeh6AezVMGi6OKK1r7oFG4yJpodSf05QIUGktfDWAC0GfPGSIBxBa21aPa\n4Oj6V4bhi1z154zmNJPcNhj4YcyTm7UzYZ+inpqqblccuKLDlWe+/7i7fdT0\nhVKCIOhHI7376Y1bGGRJlAxAul1TsFdL/eNFYMd/4D/uCshD4ZSozZWQxFI7\nSvTJTAreTirhyui+O/JUg5JnwotwyQCGkbrwYFyg4cUsUA+t/d+4YA4BsQ7p\n45OUQf0D9AtnZ/BDMrD29TqSi+aQdsE3Mae6Ei8XKHvt3innMbwdi3/dSrpT\nGDnLXNAe4ObZ7Kqwz6cGeAMXpdFVNXw9WQPSWg0bbxuBr7fjYbAlY0GuqR57\nUb6U/xvInK81YnzTBMYw2y3/7bsGiIAm2FxujMGsEZp1m/N6sXfvgTkaK4d0\nXGClABa1OZIhzfju3/XtzC+hYpkPNOlPGsYDqWVcwf8KG+y9/mls0MOyj1Jk\nnfdc\r\n=szOv\r\n-----END PGP SIGNATURE-----\r\n","size":618079,"noattachment":false,"key":"/swagger-client/-/swagger-client-3.16.1.tgz"},"main":"lib/commonjs.js","unpkg":"dist/swagger-client.browser.min.js","config":{"deps_check_dir":".deps_check"},"module":"es/index.js","browser":{"./es/http/fold-formdata-to-request.node.js":"./es/http/fold-formdata-to-request.browser.js","./lib/http/fold-formdata-to-request.node.js":"./lib/http/fold-formdata-to-request.browser.js","./src/http/fold-formdata-to-request.node.js":"./src/http/fold-formdata-to-request.browser.js"},"gitHead":"dc08d90ab779b4077320509e53fbe8d7d36faa86","scripts":{"lint":"eslint src/ test/","test":"run-s test:unit:coverage test:artifact","build":"run-s build:umd:browser build:commonjs build:es","clean":"rimraf ./dist ./lib ./es ./.deps_check ./coverage","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","lint:fix":"npm run lint -- --fix","test:unit":"cross-env BABEL_ENV=commonjs jest --runInBand --config ./config/jest/jest.unit.config.js","deps:license":"license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv","test:artifact":"run-s test:artifact:umd:browser test:artifact:es test:artifact:commonjs","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","prepublishOnly":"npm run clean && npm run lint && npm run test && npm run build","security-audit":"run-s -sc security-audit:prod security-audit:dev","test:unit:watch":"cross-env BABEL_ENV=commonjs jest --runInBand --watch --config ./config/jest/jest.unit.config.js","test:artifact:es":"npm run build:es && cross-env BABEL_ENV=commonjs jest --config ./config/jest/jest.artifact-es.config.js","build:umd:browser":"cross-env BABEL_ENV=browser webpack --progress --config config/webpack/browser.config.babel.js","security-audit:dev":"npm-audit --only=dev --audit-level=moderate","test:unit:coverage":"cross-env BABEL_ENV=commonjs jest --runInBand --config ./config/jest/jest.unit.coverage.config.js","security-audit:prod":"npm-audit --production --only=prod --audit-level=low","test:artifact:commonjs":"npm run build:commonjs && cross-env BABEL_ENV=commonjs jest --config ./config/jest/jest.artifact-commonjs.config.js","test:artifact:umd:browser":"npm run build:umd:browser && cross-env BABEL_ENV=browser jest --config ./config/jest/jest.artifact-umd-browser.config.js"},"_npmUser":{"name":"swagger-api","email":"apiteam@swagger.io"},"repository":{"url":"git+ssh://git@github.com/swagger-api/swagger-js.git","type":"git"},"_npmVersion":"6.14.15","description":"SwaggerJS - a collection of interfaces for OAI specs","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"14.17.6","dependencies":{"qs":"^6.9.4","url":"~0.11.0","btoa":"^1.2.1","buffer":"^6.0.3","cookie":"~0.4.1","lodash":"^4.17.21","js-yaml":"^4.1.0","traverse":"~0.6.6","cross-fetch":"^3.1.4","deep-extend":"~0.6.0","formdata-node":"^4.0.0","fast-json-patch":"^3.0.0-1","form-data-encoder":"^1.4.3","querystring-browser":"^1.0.4","@babel/runtime-corejs3":"^7.11.2"},"_hasShrinkwrap":false,"devDependencies":{"glob":"=7.1.7","jest":"^27.0.1","nock":"=13.1.3","husky":"^7.0.1","xmock":"=0.3.0","eslint":"=7.32.0","expect":"=27.1.1","rimraf":"=3.0.2","install":"=0.13.0","webpack":"=5.52.0","prettier":"^2.3.0","cross-env":"=7.0.3","@babel/cli":"=7.15.4","fetch-mock":"=9.11.0","node-fetch":"=2.6.1","@babel/core":"=7.15.5","inspectpack":"=4.7.1","json-loader":"=0.5.7","lint-staged":"=11.1.2","npm-run-all":"=4.1.5","webpack-cli":"=4.8.0","babel-loader":"=8.2.2","@babel/register":"=7.15.3","@commitlint/cli":"^13.1.0","license-checker":"=25.0.1","@babel/preset-env":"=7.15.6","@char0n/npm-audit":"gist:2964395223d7943c10396f59df9a8ea0","babel-plugin-lodash":"=3.3.4","eslint-plugin-import":"=2.24.2","webpack-stats-plugin":"=1.0.3","lodash-webpack-plugin":"=0.11.6","terser-webpack-plugin":"^5.0.3","eslint-config-prettier":"=8.3.0","eslint-plugin-prettier":"=4.0.0","eslint-config-airbnb-base":"=14.2.1","webpack-bundle-size-analyzer":"=3.1.0","@babel/plugin-transform-runtime":"=7.15.0","@commitlint/config-conventional":"^13.1.0","@babel/plugin-proposal-class-properties":"=7.14.5","@babel/plugin-proposal-object-rest-spread":"=7.15.6"},"_npmOperationalInternal":{"tmp":"tmp/swagger-client_3.16.1_1631256565458_0.8895270753269999","host":"s3://npm-registry-packages"},"readme":"# Swagger Client <img src=\"https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SW-logo-clr.png\" height=\"50\" align=\"right\">\n\n[![Build Status](https://github.com/swagger-api/swagger-js/actions/workflows/nodejs.yml/badge.svg)](https://github.com/swagger-api/swagger-js/actions)\n\n**Swagger Client** is a JavaScript module that allows you to fetch, resolve, and interact with Swagger/OpenAPI documents.\n\n## New!\n\n**This is the new version of swagger-js, 3.x.** The new version supports Swagger 2.0 as well as OpenAPI 3.\n\nWant to learn more? Check out our [FAQ](docs/migration/migration-2-x-to-3-x.md).\n\nFor features known to be missing from 3.x please see the [Graveyard](docs/migration/graveyard-3-x.md).\n\n\nFor the older version of swagger-js, refer to the [*2.x branch*](https://github.com/swagger-api/swagger-js/tree/2.x).\n\n> *The npm package is called `swagger-client` and the GitHub repository is `swagger-js`.\nWe'll be consolidating that soon. Just giving you the heads-up. You may see references to both names.*\n\n## Compatibility\nThe OpenAPI Specification has undergone multiple revisions since initial creation in 2010. \nCompatibility between Swagger Client and the OpenAPI Specification is as follows:\n\nSwagger Client Version | Release Date | OpenAPI Spec compatibility             | Notes\n------------------ |--------------|----------------------------------------| -----\n3.19.x | 2023-01-23   | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0 | [tag v3.19.0-alpha.3](https://github.com/swagger-api/swagger-js/releases/tag/v3.19.0-alpha.3)\n3.10.x | 2020-01-17   | 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3        | [tag v3.10.0](https://github.com/swagger-api/swagger-js/tree/v3.10.0)\n2.1.32 | 2017-01-12   | 1.0, 1.1, 1.2                          | [tag v2.1.32](https://github.com/swagger-api/swagger-js/tree/v2.1.32). This [release](https://github.com/swagger-api/swagger-js/releases/tag/v2.1.32) is only available on GitHub.\n\n## Documentation\n\n#### Usage\n\n- [Installation](docs/usage/installation.md)\n- [Tags Interface](docs/usage/tags-interface.md)\n- [HTTP client for OAS operations](docs/usage/http-client-for-oas-operations.md)\n- [OpenAPI Definition Resolver](docs/usage/openapi-definition-resolver.md)\n- [HTTP Client](docs/usage/http-client.md)\n- [Swagger Client API](docs/usage/api.md)\n\n#### Development\n\n- [Contributing](https://github.com/swagger-api/.github/blob/master/CONTRIBUTING.md)\n- [Setting up](docs/development/setting-up.md)\n- [Scripts](docs/development/scripts.md)\n\n#### Migrations \n\n- [Migration guide](docs/migration/migration-2-x-to-3-x.md)\n- [Graveyard](docs/migration/graveyard-3-x.md)\n\n### Runtime \n\n### Node.js\n\n`swagger-client` requires Node.js `>=12.20.0` and uses different `fetch` implementation depending\non Node.js version.\n\n- `>=12.20.0 <18` - [node-fetch@3](https://www.npmjs.com/package/node-fetch) \n- `>=18` - [native Node.js fetch](https://nodejs.org/dist/latest-v18.x/docs/api/globals.html#fetch)\n\n> NOTE: swagger-client minimum Node.js runtime version aligns with [Node.js Releases](https://nodejs.org/en/about/releases/)\n> which means that we can drop support for **EOL** (End Of Life) Node.js versions without doing major version bump.\n\n### Browsers\n\n`swagger-client` works in the latest versions of Chrome, Safari, Firefox, and Edge\nand uses [native fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation\nprovided by each supported browser.\n\n## Security contact\n\nPlease disclose any security-related issues or vulnerabilities by emailing [security@swagger.io](mailto:security@swagger.io), instead of using the public issue tracker.\n","publish_time":1631256565670,"_cnpm_publish_time":1631256565670,"dist-tags":{"alpha":"3.19.0-alpha.4","beta":"3.19.0-beta.8","latest":"3.39.0"}}