@scalar/mock-server 0.3.2 → 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 +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,
|
|
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.
|
|
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.
|
|
42
|
-
"@scalar/openapi-parser": "0.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/
|
|
50
|
-
"@scalar/
|
|
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",
|