sprint-es 0.0.56 → 0.0.57
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/cjs/index.cjs +4 -2
- package/dist/esm/index.js +4 -2
- package/dist/types/sprint.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -158,9 +158,9 @@ class Sprint {
|
|
|
158
158
|
this.app.get("/openapi.json", (_, res) => {
|
|
159
159
|
res.json(this.generateOpenAPISpec());
|
|
160
160
|
});
|
|
161
|
-
if (
|
|
161
|
+
if (this.openapi.swaggerUi.enabled) {
|
|
162
162
|
import("swagger-ui-express").then((swaggerUi) => {
|
|
163
|
-
this.app.use("/
|
|
163
|
+
this.app.use("/swagger", swaggerUi.serve, swaggerUi.setup(void 0, {
|
|
164
164
|
swaggerUrl: "/openapi.json"
|
|
165
165
|
}));
|
|
166
166
|
}).catch(() => {
|
|
@@ -473,6 +473,8 @@ class Sprint {
|
|
|
473
473
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
474
474
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
475
475
|
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}${this.prefix}/healthcheck`);
|
|
476
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.prefix}/openapi.json`);
|
|
477
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.prefix}/swagger`);
|
|
476
478
|
console.log("");
|
|
477
479
|
console.log(` ${dim}Tip: Need stronger route protection? Learn more at${reset}`);
|
|
478
480
|
console.log(` ${dim}https://docs.tpeoficial.com/docs/dymo-api/private/request-verifier${reset}`);
|
package/dist/esm/index.js
CHANGED
|
@@ -133,9 +133,9 @@ class Sprint {
|
|
|
133
133
|
this.app.get("/openapi.json", (_, res) => {
|
|
134
134
|
res.json(this.generateOpenAPISpec());
|
|
135
135
|
});
|
|
136
|
-
if (
|
|
136
|
+
if (this.openapi.swaggerUi.enabled) {
|
|
137
137
|
import("swagger-ui-express").then((swaggerUi) => {
|
|
138
|
-
this.app.use("/
|
|
138
|
+
this.app.use("/swagger", swaggerUi.serve, swaggerUi.setup(void 0, {
|
|
139
139
|
swaggerUrl: "/openapi.json"
|
|
140
140
|
}));
|
|
141
141
|
}).catch(() => {
|
|
@@ -448,6 +448,8 @@ class Sprint {
|
|
|
448
448
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
449
449
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
450
450
|
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}${this.prefix}/healthcheck`);
|
|
451
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.prefix}/openapi.json`);
|
|
452
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.prefix}/swagger`);
|
|
451
453
|
console.log("");
|
|
452
454
|
console.log(` ${dim}Tip: Need stronger route protection? Learn more at${reset}`);
|
|
453
455
|
console.log(` ${dim}https://docs.tpeoficial.com/docs/dymo-api/private/request-verifier${reset}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/sprint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAA+B,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AACnG,OAAO,OAAO,EAAE,EAAE,WAAW,EAAoD,MAAM,SAAS,CAAC;AAejG,eAAO,MAAM,aAAa,SAAQ,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AAoCnC,qBAAa,MAAM;IACR,GAAG,EAAE,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAwD;IACpE,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,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