@scalar/mock-server 0.3.1 → 0.3.3

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.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0f13162]
8
+ - Updated dependencies [0212daa]
9
+ - @scalar/openapi-parser@0.10.11
10
+ - @scalar/oas-utils@0.2.121
11
+
12
+ ## 0.3.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [cd75eeb]
17
+ - @scalar/oas-utils@0.2.120
18
+ - @scalar/openapi-parser@0.10.10
19
+
3
20
  ## 0.3.1
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.1",
19
+ "version": "0.3.3",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -38,16 +38,16 @@
38
38
  "dependencies": {
39
39
  "hono": "^4.6.5",
40
40
  "object-to-xml": "^2.0.0",
41
- "@scalar/oas-utils": "0.2.119",
42
- "@scalar/openapi-parser": "0.10.10",
41
+ "@scalar/oas-utils": "0.2.121",
42
+ "@scalar/openapi-parser": "0.10.11",
43
43
  "@scalar/openapi-types": "0.1.9"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@hono/node-server": "^1.11.0",
47
47
  "@types/node": "^20.17.10",
48
48
  "vite": "^5.4.10",
49
- "@scalar/build-tooling": "0.1.17",
50
- "@scalar/hono-api-reference": "0.7.0"
49
+ "@scalar/hono-api-reference": "0.7.2",
50
+ "@scalar/build-tooling": "0.1.17"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "scalar-build-rollup",