@scalar/mock-server 0.3.2 → 0.3.4

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,22 @@
1
1
  # @scalar/mock-server
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cbc1d08]
8
+ - @scalar/openapi-parser@0.10.12
9
+ - @scalar/oas-utils@0.2.121
10
+
11
+ ## 0.3.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [0f13162]
16
+ - Updated dependencies [0212daa]
17
+ - @scalar/openapi-parser@0.10.11
18
+ - @scalar/oas-utils@0.2.121
19
+
3
20
  ## 0.3.2
4
21
 
5
22
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"getOpenAuthTokenUrls.d.ts","sourceRoot":"","sources":["../../src/utils/getOpenAuthTokenUrls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;AAE5E;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAYlD;AAiBD,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,GAAG,MAAM,EAAE,CA8BxE"}
1
+ {"version":3,"file":"getOpenAuthTokenUrls.d.ts","sourceRoot":"","sources":["../../src/utils/getOpenAuthTokenUrls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;AAE5E;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAYlD;AAiBD,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,GAAG,MAAM,EAAE,CAgCxE"}
@@ -34,8 +34,9 @@ function getOpenAuthTokenUrls(schema) {
34
34
  const tokenUrls = new Set();
35
35
  // Iterate through all security schemes
36
36
  for (const scheme of Object.values(securitySchemes)) {
37
- if (!isOAuth2Scheme(scheme))
37
+ if (!isOAuth2Scheme(scheme)) {
38
38
  continue;
39
+ }
39
40
  const flows = scheme.flows; // Type assertion no longer needed
40
41
  // Helper to safely add valid token URLs
41
42
  const addTokenUrl = (url) => {
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "swagger",
17
17
  "cli"
18
18
  ],
19
- "version": "0.3.2",
19
+ "version": "0.3.4",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "hono": "^4.6.5",
40
40
  "object-to-xml": "^2.0.0",
41
- "@scalar/oas-utils": "0.2.120",
42
- "@scalar/openapi-parser": "0.10.10",
41
+ "@scalar/oas-utils": "0.2.121",
42
+ "@scalar/openapi-parser": "0.10.12",
43
43
  "@scalar/openapi-types": "0.1.9"
44
44
  },
45
45
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "@types/node": "^20.17.10",
48
48
  "vite": "^5.4.10",
49
49
  "@scalar/build-tooling": "0.1.17",
50
- "@scalar/hono-api-reference": "0.7.1"
50
+ "@scalar/hono-api-reference": "0.7.2"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "scalar-build-rollup",