This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es2018", | |
"outDir": "dist", | |
"inlineSourceMap": true, | |
"inlineSources": true, | |
"sourceMap": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignore": ["**/*.test.ts", "**/*.spec.ts", ".git", "node_modules"], | |
"watch": ["src"], | |
"exec": "npm start", | |
"ext": "ts" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"jest": { | |
"transform": { | |
".(ts|tsx)": "ts-jest" | |
}, | |
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | |
"moduleFileExtensions": [ | |
"ts", | |
"tsx", | |
"js", | |
"json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Asynchronous Recursive Request retry with Axios | |
Author: Dimosthenis Kalaitzis <[email protected]> | |
Requires Axios | |
Throws error after failing all available attempts | |
@param requestParams AxiosRequestOptions | |
@param attempts number | |
*/ | |
async sendRequest(requestParams, attempts = 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-05-27T21:48:59.808Z","extensionVersion":"v3.2.9"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SetMetadata } from '@nestjs/common'; | |
export interface SelfDecoratorParams { | |
userIDParam: string; | |
allowAdmins?: boolean; | |
} | |
export const Self = (params: SelfDecoratorParams | string) => | |
SetMetadata( | |
'selfParams', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const robot = require("robotjs"); | |
function wait(ms, variability) { | |
return new Promise(resolve => { | |
setTimeout(resolve, ms + Math.random() * variability); | |
}); | |
} | |
let conf = { | |
waitBetweenSteps: { |