openapi-explorer 0.10.446 → 0.10.452
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/dist/es/utils/xml/xml.js
CHANGED
|
@@ -25,15 +25,6 @@ export default function xml(input, rawOptions) {
|
|
|
25
25
|
|
|
26
26
|
let output = '';
|
|
27
27
|
const indent = !options.indent ? '' : options.indent === true ? DEFAULT_INDENT : options.indent;
|
|
28
|
-
let instant = true;
|
|
29
|
-
|
|
30
|
-
function delay(func) {
|
|
31
|
-
if (!instant) {
|
|
32
|
-
func();
|
|
33
|
-
} else {
|
|
34
|
-
process.nextTick(func);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
28
|
|
|
38
29
|
function append(_, out) {
|
|
39
30
|
if (out !== undefined) {
|
|
@@ -62,12 +53,7 @@ export default function xml(input, rawOptions) {
|
|
|
62
53
|
}
|
|
63
54
|
});
|
|
64
55
|
output = output.replace('/>', '?>');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
delay(function () {
|
|
69
|
-
instant = false;
|
|
70
|
-
});
|
|
56
|
+
}
|
|
71
57
|
|
|
72
58
|
if (options.declaration) {
|
|
73
59
|
addXmlDeclaration(options.declaration);
|
|
@@ -31,15 +31,6 @@ function xml(input, rawOptions) {
|
|
|
31
31
|
|
|
32
32
|
let output = '';
|
|
33
33
|
const indent = !options.indent ? '' : options.indent === true ? DEFAULT_INDENT : options.indent;
|
|
34
|
-
let instant = true;
|
|
35
|
-
|
|
36
|
-
function delay(func) {
|
|
37
|
-
if (!instant) {
|
|
38
|
-
func();
|
|
39
|
-
} else {
|
|
40
|
-
process.nextTick(func);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
34
|
|
|
44
35
|
function append(_, out) {
|
|
45
36
|
if (out !== undefined) {
|
|
@@ -68,12 +59,7 @@ function xml(input, rawOptions) {
|
|
|
68
59
|
}
|
|
69
60
|
});
|
|
70
61
|
output = output.replace('/>', '?>');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
delay(function () {
|
|
75
|
-
instant = false;
|
|
76
|
-
});
|
|
62
|
+
}
|
|
77
63
|
|
|
78
64
|
if (options.declaration) {
|
|
79
65
|
addXmlDeclaration(options.declaration);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.452",
|
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
|
5
5
|
"author": "Rhosys Developers <developers@rhosys.ch>",
|
|
6
6
|
"type": "module",
|