This file contains hidden or 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 safeText = (name: string, value: string, possibleValues: string[], groupId?: string): any => { | |
const result = text(name, value, groupId); | |
if (possibleValues.includes(result)) { | |
return result; | |
} else if (result.trim() === '') { | |
return undefined; | |
} else { | |
return value; | |
} |
This file contains hidden or 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
export const ResetConsole = '\x1b[0m'; | |
export const Bright = '\x1b[1m'; | |
export const Dim = '\x1b[2m'; | |
export const Underscore = '\x1b[4m'; | |
export const Blink = '\x1b[5m'; | |
export const Reverse = '\x1b[7m'; | |
export const Hidden = '\x1b[8m'; | |
export const FgBlack = '\x1b[30m'; | |
export const FgRed = '\x1b[31m'; | |
export const FgGreen = '\x1b[32m'; |
This file contains hidden or 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
/** | |
* Contains the values of status codes defined for Hypertext Transfer Protocol (HTTP). | |
* @export | |
* @enum {number} | |
*/ | |
export enum HttpStatusCode { | |
/** | |
* Equivalent to HTTP status 100. Continue indicates that | |
* the client can continue with its request. | |
*/ |