{"name":"swagger-client","version":"3.10.9","keywords":["oai","swagger","js","spec","resolver","json-refs"],"license":"Apache-2.0","_id":"swagger-client@3.10.9","maintainers":[{"name":"swagger-api","email":"apiteam@swagger.io"}],"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":"685cd332f1ed365ea49e9938e00f5c353a39739b","tarball":"http://registry-npm.ywwl.com/swagger-client/download/swagger-client-3.10.9.tgz","fileCount":6,"integrity":"sha512-tPnhVQ0AC7wM89jfYsP/LlNvmzArr2Uf0NdQ7N69sHrS+7fibB/i75fOIG1kH4bb78D70Z1hwqszEvAOQaZ0Og==","signatures":[{"sig":"MEUCIGYttqMaPSihqViwXuaJy25CFkyw2KPpAGdcQMTgzlHUAiEAv+HqKAmh3FdxeFi6p/kwHCzrfTfwkkNmlx6FYrIQgy0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1530369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9OboCRA9TVsSAnZWagAAZWoQAISVqRWsJHyvfYduwJlc\njJGqgCWrFk7goXQvUngYrcDHzTQCvFxUMPHssozsubuO/Cm/c3WFg6VqNzIN\nPIY4WoYazYcK0qBDtl0FtYQhNsMDC0lP92H/q+h6EI9YRBSpslpa6yjbMfBu\nWG6NcFXNwwisD54MZhdL6lfefiMfcHqDZE6GtH8UXvjAyd7WHe6dxUiqB0qy\n29LaK4ceEfDOiOG0L9jwESc5eCCl44R8ZWuXHfu1OqEahyCETD0z7B7/E+Js\ncJrr3lje99ZZI0KrLFr3Za1GyQogZDS7Y3QYfkeSPXvuK/PeZMaolFAnE/FB\nmp9qDeoM9a7Dqi5wt82qRz4YPCJ6IJcipg9s3hYkqlKlBaxbaPPtCdHIqlNC\n3J2+cKqIQ/KFcfDndr69KE7VanYVF0E6eYiF8dVrUnaPEjrQ2sHPUkk0Lwr4\nQXff31Y5DN0aFj5sGhRYKpU3REDuNM1KDsCju+y2+gh6LjV+NzSqdf0KHgM1\nEHXl1B3/XRjaqYpke3yLGu2WIvMYEtsutGV2sXstfPo3AaMY1/s8lXr/5epN\nWwuAqR79Nqhf2VsQJQ/n+KZd7fzJ2nJA4wIFPUaE/S0BUyr2Jl903fnVfGiD\n1JdRkv5YVI2GLoxeVaxhRbC3sjJCGNmNcwXBGzgbYhjC51z3hzWRnYqO6HUE\nVC04\r\n=f/TF\r\n-----END PGP SIGNATURE-----\r\n","size":426741,"noattachment":false,"key":"/swagger-client/-/swagger-client-3.10.9.tgz"},"main":"dist/index.js","unpkg":"browser/index.js","config":{"deps_check_dir":".deps_check"},"engines":{"npm":">=6.4.1","node":">=10.13.0"},"gitHead":"87209f69ec0cb140b9382b002caa8ab20f339449","scripts":{"lint":"eslint src/ test/","test":"run-s test:unit:coverage test:bundle","build":"run-s build:browser build:node","clean":"rimraf ./browser ./dist ./.deps_check ./coverage","lint:fix":"npm run lint -- --fix","deps:size":"webpack --config config/webpack/browser.config.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt","test:unit":"jest --runInBand --config ./config/jest/jest.unit.config.js","build:node":"webpack --config config/webpack/node.config.babel.js","test:bundle":"run-s test:bundle:browser test:bundle:node","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","build:browser":"webpack --config config/webpack/browser.config.babel.js","security-audit":"run-s -sc security-audit:all security-audit:prod","test:unit:watch":"jest --runInBand --watch --config ./config/jest/jest.unit.config.js","build:bundlesize":"bundlesize --config ./bundlesize.config.json","test:bundle:node":"npm run build:node && jest --config ./config/jest/jest.bundle-node.config.js","automated-release":"release-it --config ./release/.release-it.json","security-audit:all":"npm audit --audit-level=moderate","test:unit:coverage":"jest --runInBand --config ./config/jest/jest.unit.coverage.config.js","security-audit:prod":"npm audit --production --audit-level=low","test:bundle:browser":"npm run build:browser && jest --config ./config/jest/jest.bundle-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.4.1","description":"SwaggerJS - a collection of interfaces for OAI specs","directories":{},"_nodeVersion":"10.13.0","dependencies":{"qs":"=6.9.4","url":"=0.11.0","btoa":"=1.2.1","buffer":"=5.6.0","cookie":"=0.4.1","lodash":"=4.17.15","js-yaml":"=3.14.0","traverse":"=0.6.6","cross-fetch":"=3.0.5","deep-extend":"=0.6.0","fast-json-patch":"=2.2.1","querystring-browser":"=1.0.4","isomorphic-form-data":"=2.0.0","@babel/runtime-corejs2":"=7.10.2"},"_hasShrinkwrap":false,"devDependencies":{"glob":"=7.1.6","jest":"=24.8.0","nock":"=12.0.3","husky":"=4.2.5","xmock":"=0.3.0","eslint":"=7.2.0","expect":"=26.0.1","rimraf":"=3.0.2","webpack":"=4.43.0","prettier":"=2.0.5","bundlesize":"=0.18.0","fetch-mock":"=9.10.1","node-fetch":"=2.6.0","release-it":"=12.4.3","@babel/core":"=7.10.3","json-loader":"=0.5.7","lint-staged":"=10.2.11","npm-run-all":"=4.1.5","webpack-cli":"=3.3.12","babel-loader":"=8.1.0","@babel/register":"=7.10.3","@commitlint/cli":"=8.3.5","license-checker":"=25.0.1","@babel/preset-env":"=7.10.3","eslint-plugin-import":"=2.21.2","terser-webpack-plugin":"=3.0.6","eslint-config-prettier":"=6.11.0","eslint-plugin-prettier":"=3.1.4","webpack-node-externals":"=1.7.2","eslint-config-airbnb-base":"=14.2.0","webpack-bundle-size-analyzer":"=3.1.0","@babel/plugin-transform-runtime":"=7.10.3","@commitlint/config-conventional":"=8.3.4","@release-it/conventional-changelog":"=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/swagger-client_3.10.9_1593108200211_0.3958210522402916","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":1593108200401,"_cnpm_publish_time":1593108200401,"dist-tags":{"alpha":"3.19.0-alpha.4","beta":"3.19.0-beta.8","latest":"3.39.0"}}