Skip to content

Commit

Permalink
fix(tsconfig): extend from @tsconfig/recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Apr 24, 2024
1 parent 4e76b53 commit 222bbda
Show file tree
Hide file tree
Showing 31 changed files with 343 additions and 299 deletions.
9 changes: 1 addition & 8 deletions .github/linters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"extends": "@tsconfig/recommended/tsconfig.json",
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"module": "NodeNext",
"target": "ES5",
"outDir": "./dist",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"strict": true,
"noUnusedLocals": true
},
"exclude": ["node_modules", "./dist/**/*", "./tests/**/*"]
}
2 changes: 1 addition & 1 deletion docs/docco/src/response.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h1>response.ts</h1>

<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span> = <span class="hljs-variable constant_">RT</span>.<span class="hljs-title function_">translate</span>(raw, cmd, ph);
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span>);
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&#x27;-----------------------------------------&#x27;</span>);
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&quot;-----------------------------------------&quot;</span>);
<span class="hljs-variable language_">this</span>.<span class="hljs-property">hash</span> = <span class="hljs-variable constant_">RP</span>.<span class="hljs-title function_">parse</span>(<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span>);
<span class="hljs-variable language_">this</span>.<span class="hljs-property">columnkeys</span> = [];
<span class="hljs-variable language_">this</span>.<span class="hljs-property">columns</span> = [];
Expand Down
27 changes: 21 additions & 6 deletions docs/docco/src/responsetemplatemanager.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,29 @@ <h1>responsetemplatemanager.ts</h1>
<span class="hljs-variable language_">this</span>.<span class="hljs-property">templates</span> = {
<span class="hljs-number">404</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Page not found&quot;</span>),
<span class="hljs-number">500</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;500&quot;</span>, <span class="hljs-string">&quot;Internal server error&quot;</span>),
<span class="hljs-attr">empty</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;Empty API response. Probably unreachable API end point {CONNECTION_URL}&quot;</span>),
<span class="hljs-attr">error</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Command failed due to server error. Client should try again&quot;</span>),
<span class="hljs-attr">empty</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
<span class="hljs-string">&quot;423&quot;</span>,
<span class="hljs-string">&quot;Empty API response. Probably unreachable API end point {CONNECTION_URL}&quot;</span>,
),
<span class="hljs-attr">error</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
<span class="hljs-string">&quot;421&quot;</span>,
<span class="hljs-string">&quot;Command failed due to server error. Client should try again&quot;</span>,
),
<span class="hljs-attr">expired</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;SESSION NOT FOUND&quot;</span>),
<span class="hljs-attr">httperror</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Command failed due to HTTP communication error&quot;</span>),
<span class="hljs-attr">invalid</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;Invalid API response. Contact Support&quot;</span>),
<span class="hljs-attr">nocurl</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;API access error: curl_init failed&quot;</span>),
<span class="hljs-attr">httperror</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
<span class="hljs-string">&quot;421&quot;</span>,
<span class="hljs-string">&quot;Command failed due to HTTP communication error&quot;</span>,
),
<span class="hljs-attr">invalid</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
<span class="hljs-string">&quot;423&quot;</span>,
<span class="hljs-string">&quot;Invalid API response. Contact Support&quot;</span>,
),
<span class="hljs-attr">nocurl</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
<span class="hljs-string">&quot;423&quot;</span>,
<span class="hljs-string">&quot;API access error: curl_init failed&quot;</span>,
),
<span class="hljs-attr">notfound</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;500&quot;</span>, <span class="hljs-string">&quot;Response Template not found&quot;</span>),
<span class="hljs-attr">unauthorized</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;Unauthorized&quot;</span>)
<span class="hljs-attr">unauthorized</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;Unauthorized&quot;</span>),
};
}

Expand Down
Loading

0 comments on commit 222bbda

Please sign in to comment.