openapi-explorer 2.4.799 → 2.4.801

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.
@@ -154,7 +154,7 @@ export function getSanitizedUrl(urlString) {
154
154
  try {
155
155
  // eslint-disable-next-line no-new
156
156
  const url = new URL(urlString);
157
- return url.protocol === 'http' || url.protocol === 'https' ? url : '';
157
+ return url.protocol === 'http:' || url.protocol === 'https:' ? url : '';
158
158
  } catch (error) {
159
159
  return '';
160
160
  }
@@ -169,7 +169,7 @@ function getSanitizedUrl(urlString) {
169
169
  try {
170
170
  // eslint-disable-next-line no-new
171
171
  const url = new URL(urlString);
172
- return url.protocol === 'http' || url.protocol === 'https' ? url : '';
172
+ return url.protocol === 'http:' || url.protocol === 'https:' ? url : '';
173
173
  } catch (error) {
174
174
  return '';
175
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "2.4.799",
3
+ "version": "2.4.801",
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",