openapi-explorer 2.4.783 → 2.4.786
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.
|
@@ -131,7 +131,9 @@ export function replaceState(rawElementId) {
|
|
|
131
131
|
const query = new URLSearchParams(currentQuery);
|
|
132
132
|
query.delete('route');
|
|
133
133
|
const newQuery = query.toString().length > 1 ? `${query.toString()}&route=${elementId}` : `route=${elementId}`;
|
|
134
|
-
|
|
134
|
+
const fragment = `#${currentNavigationHashPart}?${newQuery}`;
|
|
135
|
+
const url = new URL(fragment, window.location.href);
|
|
136
|
+
window.history.pushState(null, null, url.href);
|
|
135
137
|
}
|
|
136
138
|
export function toMarkdown(markdownStringRaw) {
|
|
137
139
|
const sanitizedMarkdownString = (markdownStringRaw || ''
|
|
@@ -146,7 +146,9 @@ function replaceState(rawElementId) {
|
|
|
146
146
|
const query = new URLSearchParams(currentQuery);
|
|
147
147
|
query.delete('route');
|
|
148
148
|
const newQuery = query.toString().length > 1 ? `${query.toString()}&route=${elementId}` : `route=${elementId}`;
|
|
149
|
-
|
|
149
|
+
const fragment = `#${currentNavigationHashPart}?${newQuery}`;
|
|
150
|
+
const url = new URL(fragment, window.location.href);
|
|
151
|
+
window.history.pushState(null, null, url.href);
|
|
150
152
|
}
|
|
151
153
|
function toMarkdown(markdownStringRaw) {
|
|
152
154
|
const sanitizedMarkdownString = (markdownStringRaw || ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.786",
|
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
|
5
5
|
"author": "Authress Developers <developers@authress.io>",
|
|
6
6
|
"type": "module",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"html-webpack-plugin": "^5.3.1",
|
|
111
111
|
"inspectpack": "^4.7.1",
|
|
112
112
|
"json-loader": "^0.5.7",
|
|
113
|
-
"mocha": "^7.
|
|
113
|
+
"mocha": "^11.7.5",
|
|
114
114
|
"npm-run-all": "^4.1.5",
|
|
115
115
|
"serve": "^14.2.0",
|
|
116
116
|
"sinon": "^7.5.0",
|