swagger-ui 5.6.2 → 5.7.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-ui",
3
- "version": "5.6.2",
3
+ "version": "5.7.1",
4
4
  "main": "./dist/swagger-ui.js",
5
5
  "module": "./dist/swagger-ui-es-bundle-core.js",
6
6
  "exports": {
@@ -39,15 +39,15 @@
39
39
  "automated-release": "release-it -VV --config ./release/.release-it.json",
40
40
  "build": "npm run build-stylesheets && rimraf ./dist/swagger-ui.js ./dist/swagger-ui.js.map && npm run build-all-bundles",
41
41
  "build-all-bundles": "run-p --aggregate-output build:core build:bundle build:standalone build:es:bundle build:es:bundle:core",
42
- "build-stylesheets": "cross-env NODE_ENV=production webpack --color --config webpack/stylesheets.js",
43
- "build:bundle": "cross-env NODE_ENV=production webpack --color --config webpack/bundle.js",
44
- "build:core": "cross-env NODE_ENV=production webpack --color --config webpack/core.js",
45
- "build:standalone": "cross-env NODE_ENV=production webpack --color --config webpack/standalone.js",
46
- "build:es:bundle": "cross-env NODE_ENV=production webpack --color --config webpack/es-bundle.js",
47
- "build:es:bundle:core": "cross-env NODE_ENV=production BABEL_ENV=esm webpack --color --config webpack/es-bundle-core.js",
42
+ "build-stylesheets": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=browser-production webpack --color --config webpack/stylesheets.js",
43
+ "build:bundle": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=isomorphic-production webpack --color --config webpack/bundle.js",
44
+ "build:core": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=browser-production webpack --color --config webpack/core.js",
45
+ "build:standalone": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=browser-production webpack --color --config webpack/standalone.js",
46
+ "build:es:bundle": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=isomorphic-production webpack --color --config webpack/es-bundle.js",
47
+ "build:es:bundle:core": "cross-env NODE_ENV=production BABEL_ENV=esm BROWSERSLIST_ENV=browser-production webpack --color --config webpack/es-bundle-core.js",
48
48
  "clean": "rimraf ./dist",
49
49
  "postinstall": "patch-package",
50
- "dev": "cross-env NODE_ENV=development webpack serve --config webpack/dev.js",
50
+ "dev": "cross-env NODE_ENV=development BABEL_ENV=development BROWSERSLIST_ENV=browser-development webpack serve --config webpack/dev.js",
51
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",
52
52
  "deps-size": "cross-env NODE_ENV=development webpack -p --config webpack/bundle.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
53
53
  "deps-check": "run-s deps-license deps-size",
@@ -56,14 +56,14 @@
56
56
  "lint-fix": "eslint --ext \".js,.jsx\" src test dev-helpers flavors --fix",
57
57
  "test": "run-s lint-errors just-test-in-node test:unit-jest cy:ci",
58
58
  "test-in-node": "run-s lint-errors just-test-in-node",
59
- "just-test-in-node": "cross-env NODE_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
60
- "test:artifact": "cross-env NODE_ENV=production jest --config ./config/jest/jest.artifact.config.js",
61
- "test:unit-jest": "cross-env NODE_ENV=test jest --config ./config/jest/jest.unit.config.js",
59
+ "just-test-in-node": "cross-env NODE_ENV=test BABEL_ENV=commonjs BROWSERSLIST_ENV=node-development mocha \"test/mocha/**/*.{js,jsx}\"",
60
+ "test:artifact": "cross-env NODE_ENV=production BABEL_ENV=commonjs BROWSERSLIST_ENV=node-development jest --config ./config/jest/jest.artifact.config.js",
61
+ "test:unit-jest": "cross-env NODE_ENV=test BABEL_ENV=commonjs BROWSERSLIST_ENV=node-development jest --config ./config/jest/jest.unit.config.js",
62
62
  "cy:mock-api": "json-server --watch test/e2e-selenium/db.json --port 3204",
63
- "cy:server": "cross-env NODE_ENV=production webpack serve --config webpack/dev-e2e.js",
63
+ "cy:server": "cross-env NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=browser-production webpack serve --config webpack/dev-e2e.js",
64
64
  "cy:start": "run-p -r cy:server cy:mock-api",
65
- "cy:open": "cypress open",
66
- "cy:run": "cypress run",
65
+ "cy:open": "cross-env BROWSERSLIST_ENV=browser-production cypress open",
66
+ "cy:run": "cross-env BROWSERSLIST_ENV=browser-production cypress run",
67
67
  "cy:ci": "start-server-and-test cy:start http://localhost:3204 cy:run",
68
68
  "cy:dev": "start-server-and-test cy:start http://localhost:3204 cy:open",
69
69
  "open-static": "node -e \"require('open')('http://localhost:3002')\"",
@@ -105,20 +105,16 @@
105
105
  "reselect": "^4.1.8",
106
106
  "serialize-error": "^8.1.0",
107
107
  "sha.js": "^2.4.11",
108
- "swagger-client": "^3.20.0",
108
+ "swagger-client": "^3.22.1",
109
109
  "url-parse": "^1.5.10",
110
110
  "xml": "=1.0.1",
111
111
  "xml-but-prettier": "^1.0.1",
112
112
  "zenscroll": "^4.0.2"
113
113
  },
114
114
  "devDependencies": {
115
- "@babel/cli": "=7.22.10",
115
+ "@babel/cli": "=7.22.15",
116
116
  "@babel/core": "=7.22.11",
117
117
  "@babel/eslint-parser": "=7.22.11",
118
- "@babel/plugin-transform-class-properties": "=7.22.5",
119
- "@babel/plugin-transform-nullish-coalescing-operator": "=7.22.11",
120
- "@babel/plugin-transform-object-rest-spread": "=7.22.15",
121
- "@babel/plugin-transform-optional-chaining": "=7.22.15",
122
118
  "@babel/plugin-transform-runtime": "=7.22.10",
123
119
  "@babel/preset-env": "=7.22.14",
124
120
  "@babel/preset-react": "=7.22.5",
@@ -128,6 +124,7 @@
128
124
  "@jest/globals": "=29.6.4",
129
125
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
130
126
  "@release-it/conventional-changelog": "=5.1.0",
127
+ "@svgr/webpack": "=8.1.0",
131
128
  "@wojtekmaj/enzyme-adapter-react-17": "=0.8.0",
132
129
  "autoprefixer": "^10.4.15",
133
130
  "babel-loader": "^9.1.3",
@@ -140,7 +137,7 @@
140
137
  "cross-env": "=7.0.3",
141
138
  "css-loader": "=6.8.1",
142
139
  "cssnano": "=6.0.1",
143
- "cypress": "=12.17.4",
140
+ "cypress": "=13.2.0",
144
141
  "dedent": "^1.5.1",
145
142
  "deepmerge": "^4.3.1",
146
143
  "enzyme": "=3.11.0",
@@ -157,8 +154,8 @@
157
154
  "html-webpack-skip-assets-plugin": "^1.0.3",
158
155
  "husky": "=8.0.3",
159
156
  "inspectpack": "=4.7.1",
160
- "jest": "=29.6.3",
161
- "jest-environment-jsdom": "=29.6.4",
157
+ "jest": "=29.7.0",
158
+ "jest-environment-jsdom": "=29.7.0",
162
159
  "jest-transform-stub": "=2.0.0",
163
160
  "jsdom": "=22.1.0",
164
161
  "json-loader": "^0.5.7",
@@ -177,7 +174,7 @@
177
174
  "postcss": "^8.4.28",
178
175
  "postcss-loader": "^7.3.0",
179
176
  "postcss-preset-env": "^9.1.2",
180
- "prettier": "^3.0.2",
177
+ "prettier": "^3.0.3",
181
178
  "process": "^0.11.10",
182
179
  "react-refresh": "^0.14.0",
183
180
  "react-test-renderer": "=17.0.2",