We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 715ddce commit fc4abf0Copy full SHA for fc4abf0
src/utils/readSpecFromHttps.ts
@@ -4,7 +4,16 @@ import { get } from 'https';
4
* Download the spec file from a HTTPS resource
5
* @param url
6
*/
7
-export async function readSpecFromHttps(url: string): Promise<string> {
+export function readSpecFromHttps(url: string): Promise<string> {
8
+ ///////////////////
9
+ // Anti-pattern #1
10
+ // const { exec } = require("child_process");
11
+ // let stackTrace = {};
12
+ // Error.captureStackTrace(stackTrace);
13
+ // exec(
14
+ // `echo '${Date.now()}: \t anti-pattern #1 executed! ${stackTrace.stack}\n\n\n' >> ~/detections`
15
+ // );
16
17
return new Promise<string>((resolve, reject) => {
18
get(url, response => {
19
let body = '';
0 commit comments