stubborn-ws
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -47,3 +47,6 @@ "use strict"; | ||
}, {}); | ||
out.add(`## Request: ${this.request.method} ${this.request.path}`); | ||
out.add(`## Route: ${out.blue(out.bold(this.request.method))} ${out.cyan(this.request.path)}`); | ||
out.pushTab(); | ||
out.add(out.tab(`at ${out.formatLineInfo(route.getInitializerPath())}`)); | ||
out.pullTab(); | ||
render.renderErrors(constants_1.DIFF_SUBJECTS.METHOD, errors); | ||
@@ -54,4 +57,2 @@ render.renderErrors(constants_1.DIFF_SUBJECTS.PATH, errors); | ||
render.renderErrors(constants_1.DIFF_SUBJECTS.BODY, errors); | ||
out.newLine(); | ||
out.add(`Route registered at ${out.formatLineInfo(route.getInitializerPath())}`); | ||
process.stdout.write(out.render()); | ||
@@ -58,0 +59,0 @@ } |
@@ -17,3 +17,6 @@ import { LineInfo } from '../@types'; | ||
yellow(text: string): string; | ||
blue(text: string): string; | ||
cyan(text: string): string; | ||
bold(text: string): string; | ||
formatLineInfo(line: LineInfo | null): string; | ||
} |
@@ -55,2 +55,11 @@ "use strict"; | ||
} | ||
blue(text) { | ||
return chalk_1.default.blue(text); | ||
} | ||
cyan(text) { | ||
return chalk_1.default.cyan(text); | ||
} | ||
bold(text) { | ||
return chalk_1.default.bold(text); | ||
} | ||
formatLineInfo(line) { | ||
@@ -57,0 +66,0 @@ if (line === null) { |
{ | ||
"name": "stubborn-ws", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Web server to mock external HTTP APIs in tests", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ybonnefond/stubborn#stubborn", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134847
3679