Variables
Const F
F: deepFreeze = deepFreeze
Const INVALID_VALUE_ERROR_MESSAGE
INVALID_VALUE_ERROR_MESSAGE: "The value is not permissible for this field." = "The value is not permissible for this field."
Const L
L
: Logger = loggerFor(__filename)
Const LOG_LEVEL
LOG_LEVEL: string = process.env.LOG_LEVEL || 'info'
Const availableCpus
availableCpus: number = Number(process.env.ALLOWED_CPUS) || cpuCount
Const cpuCount
cpuCount: number = os.cpus().length
createLogger
createLogger: (options?: LoggerOptions) => Logger
Type declaration
-
- (options?: LoggerOptions): Logger
-
Parameters
-
Optional options: LoggerOptions
Returns Logger
Const fsPromises
fsPromises: promises = fs.promises
Const parentPort
parentPort: null | MessagePort = workerThreads.parentPort
Const pool
pool: StaticPool<unknown, unknown, any> = new StaticPool({size: availableCpus,task: __dirname + '/schema-worker.js',})
prettyPrint
prettyPrint: prettyPrint
Const service
service: "/home/ballabadi/dev/repos/overture/js-lectern-client/src/schema-functions" = require('./schema-functions')
timestamp
timestamp: timestamp
transports
transports: Transports
Const tsNode
tsNode: "/home/ballabadi/dev/repos/overture/js-lectern-client/node_modules/ts-node/dist/index" = require('ts-node')
Const winstonLogger
winstonLogger: Logger = winston.createLogger(logConfiguration)
Const workerThreads
workerThreads: "worker_threads" = require('worker_threads')
Populate the passed records with the default value based on the field name if the field is missing from the records it will NOT be added.