docusaurus-theme-openapi-docs 0.0.0-797 → 0.0.0-803
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.
|
@@ -17,7 +17,6 @@ exports.generateLanguageSet =
|
|
|
17
17
|
exports.mergeCodeSampleLanguage =
|
|
18
18
|
void 0;
|
|
19
19
|
const find_1 = __importDefault(require("lodash/find"));
|
|
20
|
-
const isArray_1 = __importDefault(require("lodash/isArray"));
|
|
21
20
|
const mergeWith_1 = __importDefault(require("lodash/mergeWith"));
|
|
22
21
|
const unionBy_1 = __importDefault(require("lodash/unionBy"));
|
|
23
22
|
const postman_code_generators_1 = __importDefault(
|
|
@@ -54,10 +53,7 @@ const mergeArraysbyLanguage = (arr1, arr2) => {
|
|
|
54
53
|
(0, find_1.default)(arr2, ["language", item["language"]]),
|
|
55
54
|
];
|
|
56
55
|
return (0, mergeWith_1.default)({}, ...matchingItems, (objValue) => {
|
|
57
|
-
|
|
58
|
-
return objValue;
|
|
59
|
-
}
|
|
60
|
-
return undefined;
|
|
56
|
+
return objValue;
|
|
61
57
|
});
|
|
62
58
|
});
|
|
63
59
|
};
|
|
@@ -13,7 +13,7 @@ var __importDefault =
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
const react_1 = __importDefault(require("react"));
|
|
15
15
|
const BrowserOnly_1 = __importDefault(require("@docusaurus/BrowserOnly"));
|
|
16
|
-
const hooks_1 = require("
|
|
16
|
+
const hooks_1 = require("@theme/ApiItem/hooks");
|
|
17
17
|
function colorForMethod(method) {
|
|
18
18
|
switch (method.toLowerCase()) {
|
|
19
19
|
case "get":
|
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-803",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clsx": "^1.1.1",
|
|
43
43
|
"copy-text-to-clipboard": "^3.1.0",
|
|
44
44
|
"crypto-js": "^4.1.1",
|
|
45
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
45
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-803",
|
|
46
46
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
47
47
|
"file-saver": "^2.0.5",
|
|
48
48
|
"lodash": "^4.17.20",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=14"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "e2ff586260fa651fbd0a39efc9413699f88942e7"
|
|
73
73
|
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* ========================================================================== */
|
|
7
7
|
|
|
8
8
|
import find from "lodash/find";
|
|
9
|
-
import isArray from "lodash/isArray";
|
|
10
9
|
import mergeWith from "lodash/mergeWith";
|
|
11
10
|
import unionBy from "lodash/unionBy";
|
|
12
11
|
import codegen from "postman-code-generators";
|
|
@@ -51,10 +50,7 @@ export const mergeArraysbyLanguage = (arr1: any, arr2: any) => {
|
|
|
51
50
|
find(arr2, ["language", item["language"]]),
|
|
52
51
|
];
|
|
53
52
|
return mergeWith({}, ...matchingItems, (objValue: any) => {
|
|
54
|
-
|
|
55
|
-
return objValue;
|
|
56
|
-
}
|
|
57
|
-
return undefined;
|
|
53
|
+
return objValue;
|
|
58
54
|
});
|
|
59
55
|
});
|
|
60
56
|
};
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
|
|
10
10
|
import BrowserOnly from "@docusaurus/BrowserOnly";
|
|
11
|
-
|
|
12
|
-
import { useTypedSelector } from "../../ApiItem/hooks";
|
|
11
|
+
import { useTypedSelector } from "@theme/ApiItem/hooks";
|
|
13
12
|
|
|
14
13
|
function colorForMethod(method: string) {
|
|
15
14
|
switch (method.toLowerCase()) {
|