PHP 8.2.30
Preview: json.js Size: 1003 B
/home/byroehnu/easepay.easetack.com/node_modules/logform/dist/json.js

'use strict';

var format = require('./format');
var _require = require('triple-beam'),
  MESSAGE = _require.MESSAGE;
var stringify = require('safe-stable-stringify');

/*
 * function replacer (key, value)
 * Handles proper stringification of Buffer and bigint output.
 */
function replacer(key, value) {
  // safe-stable-stringify does support BigInt, however, it doesn't wrap the value in quotes.
  // Leading to a loss in fidelity if the resulting string is parsed.
  // It would also be a breaking change for logform.
  if (typeof value === 'bigint') return value.toString();
  return value;
}

/*
 * function json (info)
 * Returns a new instance of the JSON format that turns a log `info`
 * object into pure JSON. This was previously exposed as { json: true }
 * to transports in `winston < 3.0.0`.
 */
module.exports = format(function (info, opts) {
  var jsonStringify = stringify.configure(opts);
  info[MESSAGE] = jsonStringify(info, opts.replacer || replacer, opts.space);
  return info;
});

Directory Contents

Dirs: 0 × Files: 22

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:19
Edit Download
378 B lrw-r--r-- 2026-02-21 00:53:24
Edit Download
1.68 KB lrw-r--r-- 2026-02-21 00:53:28
Edit Download
2.78 KB lrw-r--r-- 2026-02-21 00:53:30
Edit Download
4.71 KB lrw-r--r-- 2026-02-21 00:53:34
Edit Download
1.86 KB lrw-r--r-- 2026-02-21 00:53:34
Edit Download
2.20 KB lrw-r--r-- 2026-02-21 00:53:36
Edit Download
5.30 KB lrw-r--r-- 2026-02-21 00:53:36
Edit Download
1.87 KB lrw-r--r-- 2026-02-21 00:53:38
Edit Download
1003 B lrw-r--r-- 2026-02-21 00:53:40
Edit Download
487 B lrw-r--r-- 2026-02-21 00:53:42
Edit Download
285 B lrw-r--r-- 2026-02-21 00:53:44
Edit Download
783 B lrw-r--r-- 2026-02-21 00:53:46
Edit Download
2.29 KB lrw-r--r-- 2026-02-21 00:53:46
Edit Download
460 B lrw-r--r-- 2026-02-21 00:53:50
Edit Download
5.83 KB lrw-r--r-- 2026-02-21 00:53:50
Edit Download
1.01 KB lrw-r--r-- 2026-02-21 00:53:50
Edit Download
1.93 KB lrw-r--r-- 2026-02-21 00:53:54
Edit Download
1.04 KB lrw-r--r-- 2026-02-21 00:53:56
Edit Download
6.83 KB lrw-r--r-- 2026-02-21 00:53:56
Edit Download
817 B lrw-r--r-- 2026-02-21 00:53:58
Edit Download
727 B lrw-r--r-- 2026-02-21 00:53:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).