@scalar/hono-api-reference 0.10.7 → 0.10.9
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/dist/scalar.d.ts.map +1 -1
- package/dist/scalar.js +3 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/scalar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalar.d.ts","sourceRoot":"","sources":["../src/scalar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAgExD,KAAK,aAAa,CAAC,CAAC,SAAS,GAAG,IAC5B,OAAO,CAAC,yBAAyB,CAAC,GAClC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAA;AAEzG;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,GAAG,EAAE,kBAAkB,aAAa,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"scalar.d.ts","sourceRoot":"","sources":["../src/scalar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAgExD,KAAK,aAAa,CAAC,CAAC,SAAS,GAAG,IAC5B,OAAO,CAAC,yBAAyB,CAAC,GAClC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAA;AAEzG;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,GAAG,EAAE,kBAAkB,aAAa,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,CAoB7F,CAAA"}
|
package/dist/scalar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { renderApiReference } from '@scalar/client-side-rendering';
|
|
2
2
|
/**
|
|
3
3
|
* The default configuration for the API Reference.
|
|
4
4
|
*/
|
|
@@ -77,6 +77,7 @@ export const Scalar = (configOrResolver) => {
|
|
|
77
77
|
...resolvedConfig,
|
|
78
78
|
};
|
|
79
79
|
// Respond with the HTML document
|
|
80
|
-
|
|
80
|
+
const { cdn, pageTitle, ...config } = configuration;
|
|
81
|
+
return c.html(renderApiReference({ config, pageTitle, cdn }, customTheme));
|
|
81
82
|
};
|
|
82
83
|
};
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAA;AAE/E;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "integrations/hono"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.10.
|
|
13
|
+
"version": "0.10.9",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"documentation": "https://scalar.com/products/api-references/integrations/hono"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@scalar/
|
|
47
|
+
"@scalar/client-side-rendering": "0.1.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@hono/node-server": "^1.19.10",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"hono": "^4.12.7",
|
|
53
53
|
"vite": "8.0.0",
|
|
54
54
|
"vitest": "4.1.0",
|
|
55
|
-
"@scalar/openapi-to-markdown": "0.5.
|
|
55
|
+
"@scalar/openapi-to-markdown": "0.5.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"hono": "^4.12.5"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dev": "tsx watch playground/index.ts",
|
|
63
63
|
"docker:build": "docker buildx build --platform=linux/amd64 -t scalar-hono-reference --build-arg=\"BASE_IMAGE=scalar-base\" .",
|
|
64
64
|
"docker:run": "docker run -t scalar-hono-reference",
|
|
65
|
-
"test": "vitest",
|
|
65
|
+
"test": "vitest --run",
|
|
66
66
|
"types:check": "tsc --noEmit"
|
|
67
67
|
}
|
|
68
68
|
}
|