/var/www/qr4y.com/server/delivery/node_modules/logform
NameSizeModeActions
dist/-0755rm
examples/-0755rm
node_modules/-0755rm
.babelrc390644editdlrm
.eslintrc1050644editdlrm
.gitattributes250644editdlrm
align.js3670644editdlrm
browser.js17640644editdlrm
CHANGELOG.md76310644editdlrm
cli.js12160644editdlrm
colorize.js30380644editdlrm
combine.js18010644editdlrm
errors.js11000644editdlrm
format.js11680644editdlrm
index.d.ts60210644editdlrm
index.js18730644editdlrm
json.js9830644editdlrm
label.js4690644editdlrm
levels.js2510644editdlrm
LICENSE10920644editdlrm
logstash.js7590644editdlrm
metadata.js13270644editdlrm
ms.js4300644editdlrm
package.json22420644editdlrm
pad-levels.js28800644editdlrm
pretty-print.js8990644editdlrm
printf.js5150644editdlrm
README.md180860644editdlrm
simple.js9790644editdlrm
splat.js42710644editdlrm
timestamp.js7570644editdlrm
tsconfig.json3840644editdlrm
uncolorize.js6890644editdlrm
Edit: /var/www/qr4y.com/server/delivery/node_modules/logform/errors.js (1100B)
/* eslint no-undefined: 0 */ 'use strict'; const format = require('./format'); const { LEVEL, MESSAGE } = require('triple-beam'); /* * function errors (info) * If the `message` property of the `info` object is an instance of `Error`, * replace the `Error` object its own `message` property. * * Optionally, the Error's `stack` property can also be appended to the `info` object. */ module.exports = format((einfo, { stack }) => { if (einfo instanceof Error) { const info = Object.assign({}, einfo, { level: einfo.level, [LEVEL]: einfo[LEVEL] || einfo.level, message: einfo.message, [MESSAGE]: einfo[MESSAGE] || einfo.message }); if (stack) info.stack = einfo.stack; return info; } if (!(einfo.message instanceof Error)) return einfo; // Assign all enumerable properties and the // message property from the error provided. const err = einfo.message; Object.assign(einfo, err); einfo.message = err.message; einfo[MESSAGE] = err.message; // Assign the stack if requested. if (stack) einfo.stack = err.stack; return einfo; });