shokupan 0.4.4 → 0.4.5
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/README.md +6 -7
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/scalar.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3452,7 +3452,8 @@ function enableOpenApiValidation(app) {
|
|
|
3452
3452
|
}
|
|
3453
3453
|
const eta = new Eta();
|
|
3454
3454
|
class ScalarPlugin extends ShokupanRouter {
|
|
3455
|
-
constructor(pluginOptions) {
|
|
3455
|
+
constructor(pluginOptions = {}) {
|
|
3456
|
+
pluginOptions.config ??= {};
|
|
3456
3457
|
super();
|
|
3457
3458
|
this.pluginOptions = pluginOptions;
|
|
3458
3459
|
this.init();
|