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/CONTRIBUTING.md +30 -0
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/SECURITY.md +68 -0
- package/docs/api.md +1487 -0
- package/docs/asynchronous.md +40 -0
- package/docs/benchmarks.md +55 -0
- package/docs/browser.md +227 -0
- package/docs/bundling.md +40 -0
- package/docs/child-loggers.md +95 -0
- package/docs/ecosystem.md +84 -0
- package/docs/help.md +345 -0
- package/docs/lts.md +64 -0
- package/docs/pretty.md +35 -0
- package/docs/redaction.md +135 -0
- package/docs/transports.md +1238 -0
- package/docs/web.md +269 -0
- package/docsify/sidebar.md +26 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/file.js +12 -0
- package/index.d.ts +899 -0
- package/index.html +55 -0
- package/index.js +50 -0
- package/lib/config.js +1 -0
- package/lib/constants.js +28 -0
- package/lib/deprecations.js +8 -0
- package/lib/levels.js +241 -0
- package/lib/meta.js +3 -0
- package/lib/multistream.js +188 -0
- package/lib/proto.js +234 -0
- package/lib/redaction.js +118 -0
- package/lib/symbols.js +74 -0
- package/lib/time.js +11 -0
- package/lib/tools.js +394 -0
- package/lib/transport-stream.js +56 -0
- package/lib/transport.js +167 -0
- package/lib/worker.js +194 -0
- package/package.json +32 -0
- package/pretty-demo.png +0 -0
- package/tsconfig.json +14 -0
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;
|