@scalar/import 0.0.5 → 0.0.6
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/CHANGELOG.md +7 -0
- package/dist/resolve.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/resolve.js
CHANGED
|
@@ -211,7 +211,7 @@ function makeRelativeUrlsAbsolute(baseUrl, path) {
|
|
|
211
211
|
*/
|
|
212
212
|
function parseEmbeddedOpenApi(html) {
|
|
213
213
|
const match = html.match(/<script[^>]*data-configuration=['"]([^'"]+)['"][^>]*>(.*?)<\/script>/s);
|
|
214
|
-
if (!match)
|
|
214
|
+
if (!match?.[1])
|
|
215
215
|
return undefined;
|
|
216
216
|
try {
|
|
217
217
|
const configString = decodeHtmlEntities(match[1]);
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"postman",
|
|
17
17
|
"scalar"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.0.
|
|
19
|
+
"version": "0.0.6",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"vite": "^5.4.9",
|
|
43
|
-
"@scalar/build-tooling": "0.1.
|
|
43
|
+
"@scalar/build-tooling": "0.1.12"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "scalar-build-rollup",
|