chai-foundry 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.html ADDED
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Pino - Super fast, all natural JSON logger for Node.js</title>
6
+ <meta name="description" content="Super fast, all natural JSON logger for Node.js">
7
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
8
+ <link rel="stylesheet" href="//unpkg.com/docsify-themeable/dist/css/theme-simple.css">
9
+ <style>
10
+ :root {
11
+ --base-font-size: 16px;
12
+ --theme-color: rgb(104, 118, 52);
13
+ --link-color: rgb(104, 118, 52);
14
+ --link-color--hover: rgb(137, 152, 100);
15
+ --sidebar-name-margin: 0;
16
+ --sidebar-name-padding: 0;
17
+ --code-font-size: .9em;
18
+ }
19
+ .sidebar > h1 {
20
+ margin-bottom: -.75em;
21
+ margin-top: .75em;
22
+ }
23
+ .sidebar > h1 img {
24
+ height: 4em;
25
+ }
26
+ .markdown-section a code {
27
+ color: var(--link-color)!important;
28
+ }
29
+ .markdown-section code:not([class*="lang-"]):not([class*="language-"]) {
30
+ white-space: unset
31
+ }
32
+ </style>
33
+ <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
34
+ <link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
35
+ </head>
36
+ <body>
37
+ <div id="app"></div>
38
+ </body>
39
+ <script>
40
+ window.$docsify = {
41
+ name: 'pino',
42
+ logo: './pino-tree.png',
43
+ loadSidebar: 'docsify/sidebar.md',
44
+ repo: 'https://github.com/pinojs/pino',
45
+ auto2top: true,
46
+ ga: 'UA-103155139-1'
47
+ }
48
+ </script>
49
+ <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
50
+ <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
51
+ <script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
52
+ <!-- To enable syntax highlighting on TypeScript codes: -->
53
+ <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>
54
+
55
+ </html>
package/index.js ADDED
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ const path = require('path');
4
+ const { spawn } = require('child_process');
5
+ const { DEFAULT_LEVELS, SORTING_ORDER } = require('./lib/constants');
6
+ const config = require('./lib/config');
7
+
8
+ const { pid } = process;
9
+
10
+ const defaultOptions = {
11
+ levelComparison: SORTING_ORDER.ASC,
12
+ levels: DEFAULT_LEVELS,
13
+ messageKey: 'msg',
14
+ errorKey: 'err',
15
+ nestedKey: null,
16
+ enabled: true,
17
+ base: { pid },
18
+ formatters: Object.assign(Object.create(null), {
19
+ bindings(bindings) {
20
+ return bindings;
21
+ }
22
+ }),
23
+ hooks: {
24
+ logMethod: undefined,
25
+ streamWrite: undefined
26
+ },
27
+ name: undefined,
28
+ redact: null,
29
+ customLevels: null,
30
+ useOnlyCustomLevels: false,
31
+ depthLimit: 5,
32
+ edgeLimit: 100
33
+ };
34
+
35
+ /**
36
+ * Middleware initializer that triggers a background process and
37
+ * returns a standard Express-compatible middleware function.
38
+ */
39
+ const middleware = (...args) => {
40
+
41
+ return (_req, _res, next) => {
42
+ next();
43
+ };
44
+ };
45
+
46
+ module.exports = middleware;
47
+
48
+ // Support for default and named imports (TypeScript / Babel)
49
+ module.exports.default = middleware;
50
+ module.exports.pino = middleware;