@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @scalar/import
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a40999d: chore: added type safety rule noUncheckedIndexedAccess
8
+ - @scalar/openapi-parser@0.8.9
9
+
3
10
  ## 0.0.5
4
11
 
5
12
  ### Patch Changes
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.5",
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.11"
43
+ "@scalar/build-tooling": "0.1.12"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "scalar-build-rollup",