diff --git a/.gitignore b/.gitignore index 1741de96..ac6b0064 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ local.properties .loadpath .DS_Store dump.rdb -dist \ No newline at end of file +dist +.env \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index 8cb6788d..0a731a43 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,5 +3,8 @@ coverage docs node_modules +.pnpm-store src/templates CHANGELOG.md +pnpm-lock.yaml +pnpm-workspace.yaml diff --git a/src/apiclient.ts b/src/apiclient.ts index aaa55d6a..0c7c52bb 100644 --- a/src/apiclient.ts +++ b/src/apiclient.ts @@ -336,7 +336,7 @@ export class APIClient { body: this.getPOSTData(mycmd), headers: { "User-Agent": this.getUserAgent(), - "Content-Type": "application/x-www-form-urlencoded" + "Content-Type": "application/x-www-form-urlencoded", }, method: "POST", timeout: APIClient.socketTimeout, diff --git a/src/response.ts b/src/response.ts index 00a5e85a..3d2475a4 100644 --- a/src/response.ts +++ b/src/response.ts @@ -55,8 +55,6 @@ export class Response { } this.raw = RT.translate(raw, cmd, ph); - console.log(this.raw); - console.log("-----------------------------------------"); this.hash = RP.parse(this.raw); this.columnkeys = []; this.columns = []; diff --git a/src/responsetemplatemanager.ts b/src/responsetemplatemanager.ts index 2a2a7b43..d034decf 100644 --- a/src/responsetemplatemanager.ts +++ b/src/responsetemplatemanager.ts @@ -84,7 +84,6 @@ export class ResponseTemplateManager { if (this.hasTemplate(id)) { return new Response(id); } - console.log("template id " + id); return new Response("notfound"); } diff --git a/src/responsetranslator.ts b/src/responsetranslator.ts index 922e0997..9fba40ed 100644 --- a/src/responsetranslator.ts +++ b/src/responsetranslator.ts @@ -117,9 +117,7 @@ export class ResponseTranslator { } else { // Escape the pattern and attempt to find a match for it const escapedregex = preg_quote(regex); - console.log(newraw); data = ResponseTranslator.findMatch(escapedregex, newraw, val, cmd, ph); - console.log(newraw); } // If a match is found, exit the outer loop diff --git a/tsconfig.json b/tsconfig.json index 867689b4..2f5dbf36 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "./.github/linters/tsconfig.json", "compilerOptions": { + "rootDir": "./src", "outDir": "./dist", "types": ["node"] },