@extk/expressive 0.2.0 → 0.2.2

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/index.d.mts CHANGED
@@ -46,7 +46,7 @@ type Content = {
46
46
  type Param = {
47
47
  in: 'path' | 'query' | 'headers';
48
48
  name: string;
49
- desciption: string;
49
+ description: string;
50
50
  required: boolean;
51
51
  schema: Schema;
52
52
  };
package/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@ type Content = {
46
46
  type Param = {
47
47
  in: 'path' | 'query' | 'headers';
48
48
  name: string;
49
- desciption: string;
49
+ description: string;
50
50
  required: boolean;
51
51
  schema: Schema;
52
52
  };
package/dist/index.js CHANGED
@@ -154,7 +154,7 @@ function param(inP, id, schema, required = true, description = "", name) {
154
154
  return {
155
155
  in: inP,
156
156
  name: name ?? id,
157
- desciption: description,
157
+ description,
158
158
  required,
159
159
  schema
160
160
  };
@@ -207,7 +207,9 @@ function buildExpressive(container, swaggerDoc) {
207
207
  container.logger.info(message.trim());
208
208
  } } }
209
209
  ));
210
- app.use(configs.swagger.path, import_swagger_ui_express.default.serve, import_swagger_ui_express.default.setup(configs.swagger.doc));
210
+ app.use(configs.swagger.path, import_swagger_ui_express.default.serve, import_swagger_ui_express.default.setup(configs.swagger.doc, {
211
+ customSiteTitle: configs.swagger.doc.info?.title
212
+ }));
211
213
  return app;
212
214
  },
213
215
  expressiveRouter(configs) {
package/dist/index.mjs CHANGED
@@ -89,7 +89,7 @@ function param(inP, id, schema, required = true, description = "", name) {
89
89
  return {
90
90
  in: inP,
91
91
  name: name ?? id,
92
- desciption: description,
92
+ description,
93
93
  required,
94
94
  schema
95
95
  };
@@ -142,7 +142,9 @@ function buildExpressive(container, swaggerDoc) {
142
142
  container.logger.info(message.trim());
143
143
  } } }
144
144
  ));
145
- app.use(configs.swagger.path, swaggerUi.serve, swaggerUi.setup(configs.swagger.doc));
145
+ app.use(configs.swagger.path, swaggerUi.serve, swaggerUi.setup(configs.swagger.doc, {
146
+ customSiteTitle: configs.swagger.doc.info?.title
147
+ }));
146
148
  return app;
147
149
  },
148
150
  expressiveRouter(configs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extk/expressive",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"