123456789101112131415161718192021222324252627282930 |
- 'use strict';
- var format = require('./format');
- var _require = require('triple-beam'),
- MESSAGE = _require.MESSAGE;
- var stringify = require('safe-stable-stringify');
- function replacer(key, value) {
-
-
-
- if (typeof value === 'bigint') return value.toString();
- return value;
- }
- module.exports = format(function (info, opts) {
- var jsonStringify = stringify.configure(opts);
- info[MESSAGE] = jsonStringify(info, opts.replacer || replacer, opts.space);
- return info;
- });
|