swagger-client 3.10.8 → 3.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +10 -2
  2. package/dist/swagger-client.browser.js +24191 -0
  3. package/dist/swagger-client.browser.min.js +3 -0
  4. package/dist/swagger-client.browser.min.js.map +1 -0
  5. package/es/commonjs.js +9 -0
  6. package/es/constants.js +2 -0
  7. package/es/execute/index.js +391 -0
  8. package/es/execute/oas3/build-request.js +149 -0
  9. package/es/execute/oas3/content-serializer.js +18 -0
  10. package/es/execute/oas3/parameter-builders.js +119 -0
  11. package/es/execute/oas3/style-serializer.js +232 -0
  12. package/es/execute/swagger2/build-request.js +119 -0
  13. package/es/execute/swagger2/parameter-builders.js +78 -0
  14. package/es/helpers.js +272 -0
  15. package/es/http.js +621 -0
  16. package/es/index.js +116 -0
  17. package/es/interfaces.js +145 -0
  18. package/es/internal/form-data-monkey-patch.js +94 -0
  19. package/es/resolver.js +123 -0
  20. package/es/specmap/helpers.js +62 -0
  21. package/es/specmap/index.js +613 -0
  22. package/es/specmap/lib/all-of.js +81 -0
  23. package/es/specmap/lib/context-tree.js +111 -0
  24. package/es/specmap/lib/create-error.js +24 -0
  25. package/es/specmap/lib/index.js +391 -0
  26. package/es/specmap/lib/parameters.js +31 -0
  27. package/es/specmap/lib/properties.js +23 -0
  28. package/es/specmap/lib/refs.js +516 -0
  29. package/es/subtree-resolver/index.js +92 -0
  30. package/lib/commonjs.js +10 -0
  31. package/lib/constants.js +7 -0
  32. package/lib/execute/index.js +421 -0
  33. package/lib/execute/oas3/build-request.js +161 -0
  34. package/lib/execute/oas3/content-serializer.js +21 -0
  35. package/lib/execute/oas3/parameter-builders.js +138 -0
  36. package/lib/execute/oas3/style-serializer.js +208 -0
  37. package/lib/execute/swagger2/build-request.js +120 -0
  38. package/lib/execute/swagger2/parameter-builders.js +88 -0
  39. package/lib/helpers.js +261 -0
  40. package/lib/http.js +470 -0
  41. package/lib/index.js +142 -0
  42. package/lib/interfaces.js +159 -0
  43. package/lib/internal/form-data-monkey-patch.js +83 -0
  44. package/lib/resolver.js +125 -0
  45. package/lib/specmap/helpers.js +65 -0
  46. package/lib/specmap/index.js +446 -0
  47. package/lib/specmap/lib/all-of.js +89 -0
  48. package/lib/specmap/lib/context-tree.js +111 -0
  49. package/lib/specmap/lib/create-error.js +25 -0
  50. package/lib/specmap/lib/index.js +402 -0
  51. package/lib/specmap/lib/parameters.js +42 -0
  52. package/lib/specmap/lib/properties.js +38 -0
  53. package/lib/specmap/lib/refs.js +509 -0
  54. package/lib/subtree-resolver/index.js +55 -0
  55. package/package.json +80 -106
  56. package/browser/index.js +0 -54
  57. package/dist/index.js +0 -4372
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "swagger-client",
3
- "version": "3.10.8",
3
+ "version": "3.10.12",
4
4
  "description": "SwaggerJS - a collection of interfaces for OAI specs",
5
5
  "engines": {
6
- "node": ">=10.13.0",
7
- "npm": ">=6.4.1"
6
+ "node": ">=10.21.0",
7
+ "npm": ">=6.14.5"
8
8
  },
9
- "main": "dist/index.js",
10
- "unpkg": "browser/index.js",
9
+ "main": "lib/commonjs.js",
10
+ "module": "es/index.js",
11
+ "jsnext:main": "es/index.js",
12
+ "unpkg": "dist/swagger-client.browser.min.js",
11
13
  "repository": "git@github.com:swagger-api/swagger-js.git",
12
14
  "contributors": [
13
15
  "(in alphabetical order)",
@@ -21,31 +23,36 @@
21
23
  "LICENSE",
22
24
  "README.md",
23
25
  "package.json",
24
- "dist/index.js",
25
- "browser/index.js"
26
+ "lib",
27
+ "es",
28
+ "dist/swagger-client.browser.js",
29
+ "dist/swagger-client.browser.min.js",
30
+ "dist/swagger-client.browser.min.js.map"
26
31
  ],
27
32
  "config": {
28
33
  "deps_check_dir": ".deps_check"
29
34
  },
30
35
  "scripts": {
31
36
  "automated-release": "release-it --config ./release/.release-it.json",
32
- "build": "run-s build:umd build:bundle",
33
- "build:umd": "webpack --config webpack/core.babel.js",
34
- "build:bundle": "webpack --config webpack/bundle.babel.js",
35
- "deps": "run-s deps:license deps:size",
37
+ "build": "run-s build:umd:browser build:commonjs build:es",
38
+ "build:umd:browser": "cross-env BABEL_ENV=browser webpack --progress --config config/webpack/browser.config.babel.js",
39
+ "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
40
+ "build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
41
+ "lint": "eslint src/ test/",
42
+ "lint:fix": "npm run lint -- --fix",
43
+ "test": "run-s test:unit:coverage test:artifact",
44
+ "test:unit": "cross-env BABEL_ENV=commonjs jest --runInBand --config ./config/jest/jest.unit.config.js",
45
+ "test:unit:coverage": "cross-env BABEL_ENV=commonjs jest --runInBand --config ./config/jest/jest.unit.coverage.config.js",
46
+ "test:unit:watch": "cross-env BABEL_ENV=commonjs jest --runInBand --watch --config ./config/jest/jest.unit.config.js",
47
+ "test:artifact": "run-s test:artifact:umd:browser test:artifact:es test:artifact:commonjs",
48
+ "test:artifact:umd:browser": "npm run build:umd:browser && cross-env BABEL_ENV=commonjs jest --config ./config/jest/jest.artifact-umd-browser.config.js",
49
+ "test:artifact:es": "npm run build:es && cross-env BABEL_ENV=commonjs jest --config ./config/jest/jest.artifact-es.config.js",
50
+ "test:artifact:commonjs": "npm run build:commonjs && cross-env BABEL_ENV=commonjs jest --config ./config/jest/jest.artifact-commonjs.config.js",
36
51
  "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",
37
- "deps:size": "webpack --config webpack/test_size.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
38
- "security-audit": "run-s -sc security-audit:all security-audit:prod",
39
- "security-audit:prod": "npm-audit-ci-wrapper -p -t low",
40
- "security-audit:all": "npm-audit-ci-wrapper -t moderate",
41
- "test": "run-s test:unit test:lint test:size",
42
- "test:lint": "eslint src/ test/",
43
- "test:size": "npm run build:bundle && bundlesize",
44
- "test:unit": "run-s test:unit:setup test:unit:run test:unit:teardown",
45
- "test:unit:setup": "webpack --config webpack/test_webpack_build.babel.js",
46
- "test:unit:run": "jest --runInBand",
47
- "test:unit:teardown": "rm -rf ./test-webpack/.tmp",
48
- "test:unit:watch": "jest --watch"
52
+ "security-audit": "run-s -sc security-audit:prod security-audit:dev",
53
+ "security-audit:prod": "node scripts/npm-audit.js --production --only=prod --audit-level=low",
54
+ "security-audit:dev": "node scripts/npm-audit.js --only=dev --audit-level=moderate",
55
+ "clean": "rimraf ./dist ./lib ./es ./.deps_check ./coverage"
49
56
  },
50
57
  "keywords": [
51
58
  "oai",
@@ -57,93 +64,60 @@
57
64
  ],
58
65
  "license": "Apache-2.0",
59
66
  "devDependencies": {
60
- "@babel/core": "^7.10.2",
61
- "@babel/plugin-proposal-class-properties": "^7.10.1",
62
- "@babel/plugin-proposal-json-strings": "^7.10.1",
63
- "@babel/plugin-proposal-object-rest-spread": "^7.10.1",
64
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
65
- "@babel/plugin-syntax-import-meta": "^7.10.1",
66
- "@babel/plugin-transform-async-to-generator": "^7.10.1",
67
- "@babel/plugin-transform-destructuring": "^7.10.1",
68
- "@babel/plugin-transform-runtime": "^7.10.1",
69
- "@babel/preset-env": "^7.10.2",
70
- "@babel/register": "^7.10.1",
71
- "@commitlint/cli": "=8.3.5",
72
- "@commitlint/config-conventional": "=8.3.4",
67
+ "@babel/cli": "=7.10.4",
68
+ "@babel/core": "=7.10.4",
69
+ "@babel/plugin-transform-runtime": "=7.10.4",
70
+ "@babel/preset-env": "=7.10.4",
71
+ "@babel/register": "=7.10.4",
72
+ "@commitlint/cli": "=9.0.1",
73
+ "@commitlint/config-conventional": "=9.0.1",
73
74
  "@release-it/conventional-changelog": "=1.1.0",
74
- "babel-core": "^7.0.0-bridge.0",
75
- "babel-eslint": "^9.0.0",
76
- "babel-jest": "^24.8.0",
77
- "babel-loader": "^8.1.0",
78
- "bundlesize": "^0.18.0",
79
- "clone": "^2.1.2",
80
- "conventional-changelog-angular": "^5.0.0",
81
- "conventional-changelog-cli": "^2.0.1",
82
- "cross-env": "^6.0.3",
83
- "deepmerge": "^4.0.0",
84
- "eslint": "^3.18.0",
85
- "eslint-config-airbnb-base": "^11.1.1",
86
- "eslint-plugin-import": "^2.11.0",
87
- "expect": "^24.8.0",
88
- "fetch-mock": "^5.12.0",
89
- "glob": "^7.1.1",
75
+ "babel-loader": "=8.1.0",
76
+ "babel-plugin-lodash": "=3.3.4",
77
+ "cross-env": "=7.0.2",
78
+ "eslint": "=7.4.0",
79
+ "eslint-config-airbnb-base": "=14.2.0",
80
+ "eslint-config-prettier": "=6.11.0",
81
+ "eslint-plugin-import": "=2.22.0",
82
+ "eslint-plugin-prettier": "=3.1.4",
83
+ "expect": "=26.1.0",
84
+ "fetch-mock": "=9.10.3",
85
+ "glob": "=7.1.6",
90
86
  "husky": "=4.2.5",
91
- "jest": "^24.8.0",
92
- "json-loader": "^0.5.7",
93
- "license-checker": "^25.0.0",
94
- "nock": "^12.0.3",
95
- "npm-audit-ci-wrapper": "^2.5.4",
96
- "npm-run-all": "^4.1.5",
87
+ "inspectpack": "=4.5.2",
88
+ "install": "=0.13.0",
89
+ "jest": "=26.1.0",
90
+ "json-loader": "=0.5.7",
91
+ "license-checker": "=25.0.1",
92
+ "lint-staged": "=10.2.11",
93
+ "lodash-webpack-plugin": "=0.11.5",
94
+ "nock": "=13.0.2",
95
+ "node-fetch": "=2.6.0",
96
+ "npm-run-all": "=4.1.5",
97
+ "prettier": "=2.0.5",
97
98
  "release-it": "=12.4.3",
98
- "terser-webpack-plugin": "^1.4.4",
99
- "webpack": "^4.43.0",
100
- "webpack-bundle-size-analyzer": "^3.1.0",
101
- "webpack-cli": "^3.3.11",
102
- "webpack-node-externals": "^1.7.2",
103
- "xmock": "^0.3.0"
99
+ "rimraf": "=3.0.2",
100
+ "terser-webpack-plugin": "=3.0.6",
101
+ "webpack": "=4.43.0",
102
+ "webpack-bundle-size-analyzer": "=3.1.0",
103
+ "webpack-cli": "=3.3.12",
104
+ "webpack-stats-plugin": "=0.3.2",
105
+ "xmock": "=0.3.0"
104
106
  },
105
107
  "dependencies": {
106
- "@babel/runtime-corejs2": "^7.5.5",
107
- "@kyleshockey/object-assign-deep": "^0.4.0",
108
- "btoa": "1.1.2",
109
- "buffer": "^5.1.0",
110
- "cookie": "^0.3.1",
111
- "cross-fetch": "^3.0.4",
112
- "deep-extend": "^0.6.0",
113
- "encode-3986": "^1.0.0",
114
- "fast-json-patch": "~2.1.0",
115
- "isomorphic-form-data": "^2.0.0",
116
- "js-yaml": "^3.13.1",
117
- "lodash": "^4.17.14",
118
- "qs": "^6.3.0",
108
+ "@babel/runtime-corejs2": "^7.10.4",
109
+ "btoa": "^1.2.1",
110
+ "buffer": "^5.6.0",
111
+ "cookie": "~0.4.1",
112
+ "cross-fetch": "^3.0.5",
113
+ "deep-extend": "~0.6.0",
114
+ "fast-json-patch": "^2.2.1",
115
+ "isomorphic-form-data": "~2.0.0",
116
+ "js-yaml": "^3.14.0",
117
+ "lodash": "^4.17.19",
118
+ "qs": "^6.9.4",
119
119
  "querystring-browser": "^1.0.4",
120
- "traverse": "^0.6.6",
121
- "url": "^0.11.0",
122
- "utf8-bytes": "0.0.1",
123
- "utfstring": "^2.0.0"
124
- },
125
- "jest": {
126
- "testEnvironment": "node",
127
- "testMatch": [
128
- "**/test/*.js?(x)",
129
- "**/test/**/*.js?(x)"
130
- ],
131
- "setupFilesAfterEnv": [
132
- "<rootDir>/test/jest.setup.js"
133
- ],
134
- "testPathIgnorePatterns": [
135
- "<rootDir>/node_modules/",
136
- "<rootDir>/test/data/",
137
- "<rootDir>/test/jest.setup.js",
138
- "<rootDir>/test/specmap/data/",
139
- "<rootDir>/test/webpack-bundle/.tmp/"
140
- ]
141
- },
142
- "bundlesize": [
143
- {
144
- "path": "./browser/index.js",
145
- "maxSize": "400 KB",
146
- "compression": "none"
147
- }
148
- ]
120
+ "traverse": "~0.6.6",
121
+ "url": "~0.11.0"
122
+ }
149
123
  }