swagger-editor 5.0.0-alpha.89 → 5.0.0-alpha.91
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/README.md +5 -5
- package/dist/esm/editor.worker.js +1 -1
- package/dist/esm/editor.worker.js.map +1 -1
- package/dist/esm/plugins/editor-monaco-language-apidom/index.js +1 -1
- package/dist/esm/plugins/editor-monaco-language-apidom/index.js.map +1 -1
- package/dist/esm/plugins/editor-preview-asyncapi/index.js +1 -1
- package/dist/esm/plugins/editor-preview-asyncapi/index.js.map +1 -1
- package/dist/esm/plugins/splash-screen/index.js +1 -1
- package/dist/esm/plugins/versions/index.js +1 -1
- package/dist/esm/plugins/versions/index.js.map +1 -1
- package/dist/swagger-editor.css +1 -1
- package/dist/umd/apidom.worker.js +1 -1
- package/dist/umd/editor.worker.js +1 -1
- package/dist/umd/swagger-editor.js +31 -1
- package/dist/umd/swagger-editor.js.LICENSE.txt +66 -3
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -84,7 +84,6 @@ Install dependencies needed for webpack@5 to properly build SwaggerEditor.
|
|
|
84
84
|
|
|
85
85
|
```sh
|
|
86
86
|
$ npm i stream-browserify --save-dev
|
|
87
|
-
$ npm i process --save-dev
|
|
88
87
|
$ npm i https-browserify --save-dev
|
|
89
88
|
$ npm i stream-http --save-dev
|
|
90
89
|
$ npm i util --save-dev
|
|
@@ -120,11 +119,12 @@ module.exports = {
|
|
|
120
119
|
alias: {
|
|
121
120
|
// This alias make sure we don't pull two different versions of monaco-editor
|
|
122
121
|
'monaco-editor': '/node_modules/monaco-editor',
|
|
122
|
+
// This alias makes sure we're avoiding a runtime error related to this package
|
|
123
|
+
'@stoplight/ordered-object-literal$': '/node_modules/@stoplight/ordered-object-literal/src/index.mjs',
|
|
123
124
|
},
|
|
124
125
|
},
|
|
125
126
|
plugins: [
|
|
126
127
|
new webpack.ProvidePlugin({
|
|
127
|
-
process: 'process/browser.js',
|
|
128
128
|
Buffer: ['buffer', 'Buffer'],
|
|
129
129
|
}),
|
|
130
130
|
],
|
|
@@ -172,7 +172,6 @@ Install `copy-webpack-plugin` and other needed dependencies.
|
|
|
172
172
|
```sh
|
|
173
173
|
$ npm i copy-webpack-plugin --save-dev
|
|
174
174
|
$ npm i stream-browserify --save-dev
|
|
175
|
-
$ npm i process --save-dev
|
|
176
175
|
$ npm i https-browserify --save-dev
|
|
177
176
|
$ npm i stream-http --save-dev
|
|
178
177
|
$ npm i util --save-dev
|
|
@@ -207,11 +206,12 @@ module.exports = {
|
|
|
207
206
|
alias: {
|
|
208
207
|
// This alias make sure we don't pull two different versions of monaco-editor
|
|
209
208
|
'monaco-editor': '/node_modules/monaco-editor',
|
|
209
|
+
// This alias makes sure we're avoiding a runtime error related to this package
|
|
210
|
+
'@stoplight/ordered-object-literal$': '/node_modules/@stoplight/ordered-object-literal/src/index.mjs',
|
|
210
211
|
}
|
|
211
212
|
},
|
|
212
213
|
plugins: [
|
|
213
214
|
new webpack.ProvidePlugin({
|
|
214
|
-
process: 'process/browser.js',
|
|
215
215
|
Buffer: ['buffer', 'Buffer'],
|
|
216
216
|
}),
|
|
217
217
|
new CopyWebpackPlugin({
|
|
@@ -232,7 +232,7 @@ module.exports = {
|
|
|
232
232
|
{
|
|
233
233
|
test: /\.css$/,
|
|
234
234
|
use: ['style-loader', 'css-loader']
|
|
235
|
-
}
|
|
235
|
+
},
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
238
|
};
|