docusaurus-theme-openapi-docs 0.0.0-553 → 0.0.0-554
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/lib/index.js +2 -11
- package/lib-next/index.js +2 -13
- package/package.json +3 -2
- package/src/index.ts +3 -13
package/lib/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = docusaurusThemeOpenAPI;
|
|
7
7
|
var _path = _interopRequireDefault(require("path"));
|
|
8
|
-
var _webpack = require("webpack");
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
9
|
/* ============================================================================
|
|
11
10
|
* Copyright (c) Palo Alto Networks
|
|
@@ -14,6 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
14
13
|
* LICENSE file in the root directory of this source tree.
|
|
15
14
|
* ========================================================================== */
|
|
16
15
|
|
|
16
|
+
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
17
17
|
function docusaurusThemeOpenAPI() {
|
|
18
18
|
return {
|
|
19
19
|
name: "docusaurus-theme-openapi",
|
|
@@ -29,16 +29,7 @@ function docusaurusThemeOpenAPI() {
|
|
|
29
29
|
},
|
|
30
30
|
configureWebpack() {
|
|
31
31
|
return {
|
|
32
|
-
plugins: [new
|
|
33
|
-
Buffer: [require.resolve("buffer/"), "Buffer"],
|
|
34
|
-
process: require.resolve("process/browser")
|
|
35
|
-
})],
|
|
36
|
-
resolve: {
|
|
37
|
-
fallback: {
|
|
38
|
-
buffer: require.resolve("buffer/"),
|
|
39
|
-
process: require.resolve("process/browser")
|
|
40
|
-
}
|
|
41
|
-
}
|
|
32
|
+
plugins: [new NodePolyfillPlugin()]
|
|
42
33
|
};
|
|
43
34
|
}
|
|
44
35
|
};
|
package/lib-next/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ========================================================================== */
|
|
7
7
|
|
|
8
8
|
import path from "path";
|
|
9
|
-
|
|
9
|
+
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
10
10
|
export default function docusaurusThemeOpenAPI() {
|
|
11
11
|
return {
|
|
12
12
|
name: "docusaurus-theme-openapi",
|
|
@@ -22,18 +22,7 @@ export default function docusaurusThemeOpenAPI() {
|
|
|
22
22
|
},
|
|
23
23
|
configureWebpack() {
|
|
24
24
|
return {
|
|
25
|
-
plugins: [
|
|
26
|
-
new ProvidePlugin({
|
|
27
|
-
Buffer: [require.resolve("buffer/"), "Buffer"],
|
|
28
|
-
process: require.resolve("process/browser"),
|
|
29
|
-
}),
|
|
30
|
-
],
|
|
31
|
-
resolve: {
|
|
32
|
-
fallback: {
|
|
33
|
-
buffer: require.resolve("buffer/"),
|
|
34
|
-
process: require.resolve("process/browser"),
|
|
35
|
-
},
|
|
36
|
-
},
|
|
25
|
+
plugins: [new NodePolyfillPlugin()],
|
|
37
26
|
};
|
|
38
27
|
},
|
|
39
28
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-554",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"file-saver": "^2.0.5",
|
|
56
56
|
"immer": "^9.0.7",
|
|
57
57
|
"lodash": "^4.17.20",
|
|
58
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
58
59
|
"process": "^0.11.10",
|
|
59
60
|
"react-live": "^3.1.1",
|
|
60
61
|
"react-magic-dropzone": "^1.0.1",
|
|
@@ -73,5 +74,5 @@
|
|
|
73
74
|
"engines": {
|
|
74
75
|
"node": ">=14"
|
|
75
76
|
},
|
|
76
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a922f85a5e5f5eb6e47126baaa5b0ca1d26f07f7"
|
|
77
78
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
import path from "path";
|
|
9
9
|
|
|
10
10
|
import type { Plugin } from "@docusaurus/types";
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
12
13
|
|
|
13
14
|
export default function docusaurusThemeOpenAPI(): Plugin<void> {
|
|
14
15
|
return {
|
|
@@ -29,18 +30,7 @@ export default function docusaurusThemeOpenAPI(): Plugin<void> {
|
|
|
29
30
|
|
|
30
31
|
configureWebpack() {
|
|
31
32
|
return {
|
|
32
|
-
plugins: [
|
|
33
|
-
new ProvidePlugin({
|
|
34
|
-
Buffer: [require.resolve("buffer/"), "Buffer"],
|
|
35
|
-
process: require.resolve("process/browser"),
|
|
36
|
-
}),
|
|
37
|
-
],
|
|
38
|
-
resolve: {
|
|
39
|
-
fallback: {
|
|
40
|
-
buffer: require.resolve("buffer/"),
|
|
41
|
-
process: require.resolve("process/browser"),
|
|
42
|
-
},
|
|
43
|
-
},
|
|
33
|
+
plugins: [new NodePolyfillPlugin()],
|
|
44
34
|
};
|
|
45
35
|
},
|
|
46
36
|
};
|