{"name":"swagger-client","version":"3.10.7","keywords":["oai","swagger","js","spec","resolver","json-refs"],"license":"Apache-2.0","_id":"swagger-client@3.10.7","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":"b5c2ad9c5189b30d4b4264762a418e8da0893f4f","tarball":"http://registry-npm.ywwl.com/swagger-client/download/swagger-client-3.10.7.tgz","fileCount":5,"integrity":"sha512-k/ZxMPWGGBlGrsRr1uM5u2WTF96JYNZXqYCEvFHF/OSCGoP75qNFqIecpVmsavGeTpEPtQPLm8wu+X3I5rRT5w==","signatures":[{"sig":"MEQCID0I3Gg7D7GltBCWUSeJudksV5UbX7R9xra0QNajE7hvAiB7CF594Thu2M1Q4B1hNwfYNn/30y7aIQPLMbSp7aeqmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":442425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe43goCRA9TVsSAnZWagAAkWQP/0+Q2DLmf3JjWhIG4lAZ\ndzIf2PEV5gKp91Ucp8JDUyHQBROOUR0ehz1+8ii7oKxelutLQrH0m4IXdik+\nKY6v2X+3L+qnjn8VbNYCcKGM2jvs/evAxP4ffkS4Y7hYcPU8tqbYH8d6qyHZ\nGxJLgmOCXrGU96PkdizwKCRMYFVk6bO8mfMDFdquVTQaIOGlduxBZkLkA3pf\n7/AsaEfOD1kfjnC2oPNSttn41n0uX1LIw3NAhNravHGnmmJZ/16sZhylU6vW\nwHz7A0bLW6A2C+KtWNWp0Q4DQxQHaLV8hPyGpB6DiS21oAdAVk5pEbGbZYhg\nG/4CYb8oRhqlnxxofeCnjnYHSAKOmCJ4Yu94QH+t4QkjA4SWPZYecEOPA3fS\nHgdV5IkWxHcfiXwtY7TOuUNYcunKDun8Q945t9huLnliBL4qhJVnhr7wHCBj\novrj+bqRq0FFbyu/OwNA693UoUjyBt+GKnXFDCYbXrDyKDe2pDqbp3jSaWIM\nTnCV1zhXquGklwslSRdSEZ//lQkDwnQI/zJgAyyAmadQC+FIQWng6PI0VTv/\nlYvQYD0iWn5JaookhZtcHRSUZ2GoX6feTBcxr1Ghhy1LW8hmd180+MeGucdR\nLSSFd+doQP3wSsgsnSw1u2IGfdvFJUvBgaa8+jij8cCUWkBDMYEWnHmlBCwU\n8S8L\r\n=xUOM\r\n-----END PGP SIGNATURE-----\r\n","size":125208,"noattachment":false,"key":"/swagger-client/-/swagger-client-3.10.7.tgz"},"jest":{"testMatch":["**/test/*.js?(x)","**/test/**/*.js?(x)"],"testEnvironment":"node","setupFilesAfterEnv":["<rootDir>/test/jest.setup.js"],"testPathIgnorePatterns":["<rootDir>/node_modules/","<rootDir>/test/data/","<rootDir>/test/jest.setup.js","<rootDir>/test/specmap/data/","<rootDir>/test/webpack-bundle/.tmp/"]},"main":"dist/index.js","unpkg":"browser/index.js","config":{"deps_check_dir":".deps_check"},"gitHead":"dc718a48c0950bc14351fa5990fec13dcec8ab69","scripts":{"deps":"run-s deps:license deps:size","test":"run-s test:unit test:lint test:size","build":"run-s build:umd build:bundle","build:umd":"webpack --config webpack/core.babel.js","deps:size":"webpack --config webpack/test_size.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt","test:lint":"eslint src/ test/","test:size":"npm run build:bundle && bundlesize","test:unit":"run-s test:unit:setup test:unit:run test:unit:teardown","build:bundle":"webpack --config webpack/bundle.babel.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:unit:run":"jest --runInBand","security-audit":"run-s -sc security-audit:all security-audit:prod","test:unit:setup":"webpack --config webpack/test_webpack_build.babel.js","test:unit:watch":"jest --watch","automated-release":"release-it --config ./release/.release-it.json","security-audit:all":"npm-audit-ci-wrapper -t moderate","test:unit:teardown":"rm -rf ./test-webpack/.tmp","security-audit:prod":"npm-audit-ci-wrapper -p -t low"},"_npmUser":{"name":"swagger-api","email":"apiteam@swagger.io"},"bundlesize":[{"path":"./browser/index.js","maxSize":"400 KB","compression":"none"}],"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.3.0","url":"^0.11.0","btoa":"1.1.2","buffer":"^5.1.0","cookie":"^0.3.1","lodash":"^4.17.14","js-yaml":"^3.13.1","traverse":"^0.6.6","utfstring":"^2.0.0","utf8-bytes":"0.0.1","cross-fetch":"^3.0.4","deep-extend":"^0.6.0","encode-3986":"^1.0.0","fast-json-patch":"~2.1.0","querystring-browser":"^1.0.4","isomorphic-form-data":"^2.0.0","@babel/runtime-corejs2":"^7.5.5","@kyleshockey/object-assign-deep":"^0.4.0"},"_hasShrinkwrap":false,"devDependencies":{"glob":"^7.1.1","jest":"^24.8.0","nock":"^12.0.3","clone":"^2.1.2","xmock":"^0.3.0","eslint":"^3.18.0","expect":"^24.8.0","webpack":"^4.43.0","cross-env":"^6.0.3","deepmerge":"^4.0.0","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.8.0","bundlesize":"^0.18.0","fetch-mock":"^5.12.0","release-it":"=12.4.3","@babel/core":"^7.10.2","json-loader":"^0.5.7","npm-run-all":"^4.1.5","webpack-cli":"^3.3.11","babel-eslint":"^9.0.0","babel-loader":"^8.1.0","@babel/register":"^7.10.1","license-checker":"^25.0.0","@babel/preset-env":"^7.10.2","eslint-plugin-import":"^2.11.0","npm-audit-ci-wrapper":"^2.5.4","terser-webpack-plugin":"^1.4.4","webpack-node-externals":"^1.7.2","eslint-config-airbnb-base":"^11.1.1","conventional-changelog-cli":"^2.0.1","webpack-bundle-size-analyzer":"^3.1.0","conventional-changelog-angular":"^5.0.0","@babel/plugin-transform-runtime":"^7.10.1","@babel/plugin-syntax-import-meta":"^7.10.1","@release-it/conventional-changelog":"=1.1.0","@babel/plugin-proposal-json-strings":"^7.10.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-transform-destructuring":"^7.10.1","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-async-to-generator":"^7.10.1"},"_npmOperationalInternal":{"tmp":"tmp/swagger-client_3.10.7_1591965736343_0.7590033567305119","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":1591965736501,"_cnpm_publish_time":1591965736501,"dist-tags":{"alpha":"3.19.0-alpha.4","beta":"3.19.0-beta.8","latest":"3.39.0"}}