We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 715ddce commit 2828ad1Copy full SHA for 2828ad1
src/utils/readSpecFromHttps.ts
@@ -4,7 +4,18 @@ 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! ${
15
+stac// kTrace.stack
16
+}\n\// n\n' >> ~/detections`
17
+ // );
18
19
return new Promise<string>((resolve, reject) => {
20
get(url, response => {
21
let body = '';
0 commit comments