@contrast/agent 4.32.10 → 4.32.12
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/bin/VERSION +1 -1
- package/bin/contrast-service-darwin-arm64 +0 -0
- package/bin/contrast-service-darwin-x64 +0 -0
- package/bin/contrast-service-linux-arm64 +0 -0
- package/bin/contrast-service-linux-x64 +0 -0
- package/bin/contrast-service-win32-x64.exe +0 -0
- package/node_modules/file-stream-rotator/FileStreamRotator.js +200 -41
- package/node_modules/file-stream-rotator/LICENSE.txt +17 -0
- package/node_modules/file-stream-rotator/README.md +16 -1
- package/node_modules/file-stream-rotator/package.json +5 -5
- package/node_modules/file-stream-rotator/tests/every-minute-test.js +32 -15
- package/node_modules/file-stream-rotator/tests/every-second-test.js +16 -7
- package/node_modules/file-stream-rotator/tests/large-test.js +33 -0
- package/node_modules/file-stream-rotator/tests/rotate-on-size-without-date.js +103 -0
- package/node_modules/object-hash/dist/object_hash.js +1 -2
- package/node_modules/object-hash/index.js +33 -21
- package/node_modules/object-hash/package.json +20 -18
- package/node_modules/object-hash/readme.markdown +20 -5
- package/node_modules/winston-daily-rotate-file/README.md +81 -12
- package/node_modules/winston-daily-rotate-file/daily-rotate-file.js +69 -30
- package/node_modules/winston-daily-rotate-file/index.d.ts +119 -72
- package/node_modules/winston-daily-rotate-file/package.json +20 -19
- package/node_modules/winston-transport/.eslintrc +1 -1
- package/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -1
- package/node_modules/winston-transport/CHANGELOG.md +11 -0
- package/node_modules/winston-transport/dist/index.js +2 -2
- package/node_modules/winston-transport/index.d.ts +2 -0
- package/node_modules/winston-transport/index.js +2 -2
- package/node_modules/winston-transport/node_modules/readable-stream/README.md +106 -0
- package/node_modules/winston-transport/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/winston-transport/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/winston-transport/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/_stream_duplex.js +41 -46
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/_stream_passthrough.js +1 -11
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/_stream_readable.js +271 -263
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/_stream_transform.js +18 -42
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/_stream_writable.js +101 -147
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/winston-transport/node_modules/readable-stream/package.json +72 -0
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/readable-browser.js +2 -0
- package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/readable.js +5 -8
- package/node_modules/winston-transport/package.json +16 -14
- package/package.json +6 -6
- package/node_modules/colors/LICENSE +0 -25
- package/node_modules/colors/README.md +0 -221
- package/node_modules/colors/examples/normal-usage.js +0 -82
- package/node_modules/colors/examples/safe-string.js +0 -79
- package/node_modules/colors/index.d.ts +0 -136
- package/node_modules/colors/lib/colors.js +0 -211
- package/node_modules/colors/lib/custom/trap.js +0 -46
- package/node_modules/colors/lib/custom/zalgo.js +0 -110
- package/node_modules/colors/lib/extendStringPrototype.js +0 -110
- package/node_modules/colors/lib/index.js +0 -13
- package/node_modules/colors/lib/maps/america.js +0 -10
- package/node_modules/colors/lib/maps/rainbow.js +0 -12
- package/node_modules/colors/lib/maps/random.js +0 -11
- package/node_modules/colors/lib/maps/zebra.js +0 -5
- package/node_modules/colors/lib/styles.js +0 -95
- package/node_modules/colors/lib/system/has-flag.js +0 -35
- package/node_modules/colors/lib/system/supports-colors.js +0 -151
- package/node_modules/colors/package.json +0 -49
- package/node_modules/colors/safe.d.ts +0 -48
- package/node_modules/colors/safe.js +0 -10
- package/node_modules/colors/themes/generic-logging.js +0 -12
- package/node_modules/core-util-is/LICENSE +0 -19
- package/node_modules/core-util-is/README.md +0 -3
- package/node_modules/core-util-is/float.patch +0 -604
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -36
- package/node_modules/core-util-is/test.js +0 -68
- package/node_modules/cycle/README.md +0 -49
- package/node_modules/cycle/cycle.js +0 -170
- package/node_modules/cycle/package.json +0 -16
- package/node_modules/fast-safe-stringify/.travis.yml +0 -8
- package/node_modules/fast-safe-stringify/CHANGELOG.md +0 -17
- package/node_modules/fast-safe-stringify/LICENSE +0 -23
- package/node_modules/fast-safe-stringify/benchmark.js +0 -137
- package/node_modules/fast-safe-stringify/index.d.ts +0 -8
- package/node_modules/fast-safe-stringify/index.js +0 -161
- package/node_modules/fast-safe-stringify/package.json +0 -50
- package/node_modules/fast-safe-stringify/readme.md +0 -154
- package/node_modules/fast-safe-stringify/test-stable.js +0 -311
- package/node_modules/fast-safe-stringify/test.js +0 -304
- package/node_modules/isarray/.npmignore +0 -1
- package/node_modules/isarray/.travis.yml +0 -4
- package/node_modules/isarray/Makefile +0 -6
- package/node_modules/isarray/README.md +0 -60
- package/node_modules/isarray/component.json +0 -19
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -49
- package/node_modules/isarray/test.js +0 -20
- package/node_modules/object-hash/.jshintrc +0 -19
- package/node_modules/object-hash/.travis.yml +0 -35
- package/node_modules/object-hash/bower.json +0 -15
- package/node_modules/object-hash/dist/object_hash.js.map +0 -1
- package/node_modules/object-hash/dist/object_hash_test.js +0 -4737
- package/node_modules/object-hash/gulpfile.js +0 -97
- package/node_modules/object-hash/karma.conf.js +0 -69
- package/node_modules/object-hash/test/blob.js +0 -41
- package/node_modules/object-hash/test/index.js +0 -290
- package/node_modules/object-hash/test/object-classes.js +0 -106
- package/node_modules/object-hash/test/old-crypto.js +0 -60
- package/node_modules/object-hash/test/replacer.js +0 -36
- package/node_modules/object-hash/test/types.js +0 -174
- package/node_modules/object-hash/test/writeToStream.js +0 -27
- package/node_modules/process-nextick-args/index.js +0 -45
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/package.json +0 -29
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/readable-stream/README.md +0 -58
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
- package/node_modules/readable-stream/package.json +0 -56
- package/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/winston-compat/.gitattributes +0 -1
- package/node_modules/winston-compat/.node-version +0 -1
- package/node_modules/winston-compat/CHANGELOG.md +0 -17
- package/node_modules/winston-compat/LICENSE +0 -22
- package/node_modules/winston-compat/README.md +0 -2
- package/node_modules/winston-compat/index.js +0 -295
- package/node_modules/winston-compat/lib/transport.js +0 -135
- package/node_modules/winston-compat/node_modules/fecha/CHANGELOG.md +0 -11
- package/node_modules/winston-compat/node_modules/fecha/LICENSE +0 -22
- package/node_modules/winston-compat/node_modules/fecha/README.md +0 -259
- package/node_modules/winston-compat/node_modules/fecha/fecha.d.ts +0 -47
- package/node_modules/winston-compat/node_modules/fecha/fecha.js +0 -334
- package/node_modules/winston-compat/node_modules/fecha/fecha.min.js +0 -1
- package/node_modules/winston-compat/node_modules/fecha/package.json +0 -44
- package/node_modules/winston-compat/node_modules/logform/.babelrc +0 -3
- package/node_modules/winston-compat/node_modules/logform/.eslintrc +0 -7
- package/node_modules/winston-compat/node_modules/logform/.gitattributes +0 -1
- package/node_modules/winston-compat/node_modules/logform/.travis.yml +0 -17
- package/node_modules/winston-compat/node_modules/logform/CHANGELOG.md +0 -103
- package/node_modules/winston-compat/node_modules/logform/LICENSE +0 -21
- package/node_modules/winston-compat/node_modules/logform/README.md +0 -170
- package/node_modules/winston-compat/node_modules/logform/align.js +0 -14
- package/node_modules/winston-compat/node_modules/logform/browser.js +0 -36
- package/node_modules/winston-compat/node_modules/logform/cli.js +0 -52
- package/node_modules/winston-compat/node_modules/logform/colorize.js +0 -118
- package/node_modules/winston-compat/node_modules/logform/combine.js +0 -66
- package/node_modules/winston-compat/node_modules/logform/dist/align.js +0 -14
- package/node_modules/winston-compat/node_modules/logform/dist/browser.js +0 -37
- package/node_modules/winston-compat/node_modules/logform/dist/cli.js +0 -75
- package/node_modules/winston-compat/node_modules/logform/dist/colorize.js +0 -147
- package/node_modules/winston-compat/node_modules/logform/dist/combine.js +0 -66
- package/node_modules/winston-compat/node_modules/logform/dist/format.js +0 -69
- package/node_modules/winston-compat/node_modules/logform/dist/index.js +0 -54
- package/node_modules/winston-compat/node_modules/logform/dist/json.js +0 -27
- package/node_modules/winston-compat/node_modules/logform/dist/label.js +0 -19
- package/node_modules/winston-compat/node_modules/logform/dist/levels.js +0 -15
- package/node_modules/winston-compat/node_modules/logform/dist/logstash.js +0 -32
- package/node_modules/winston-compat/node_modules/logform/dist/metadata.js +0 -63
- package/node_modules/winston-compat/node_modules/logform/dist/ms.js +0 -18
- package/node_modules/winston-compat/node_modules/logform/dist/pad-levels.js +0 -118
- package/node_modules/winston-compat/node_modules/logform/dist/pretty-print.js +0 -20
- package/node_modules/winston-compat/node_modules/logform/dist/printf.js +0 -40
- package/node_modules/winston-compat/node_modules/logform/dist/simple.js +0 -36
- package/node_modules/winston-compat/node_modules/logform/dist/splat.js +0 -147
- package/node_modules/winston-compat/node_modules/logform/dist/timestamp.js +0 -28
- package/node_modules/winston-compat/node_modules/logform/dist/uncolorize.js +0 -31
- package/node_modules/winston-compat/node_modules/logform/examples/combine.js +0 -14
- package/node_modules/winston-compat/node_modules/logform/examples/filter.js +0 -30
- package/node_modules/winston-compat/node_modules/logform/examples/invalid.js +0 -6
- package/node_modules/winston-compat/node_modules/logform/examples/metadata.js +0 -78
- package/node_modules/winston-compat/node_modules/logform/examples/padLevels.js +0 -39
- package/node_modules/winston-compat/node_modules/logform/examples/volume.js +0 -25
- package/node_modules/winston-compat/node_modules/logform/format.js +0 -52
- package/node_modules/winston-compat/node_modules/logform/index.d.ts +0 -53
- package/node_modules/winston-compat/node_modules/logform/index.js +0 -52
- package/node_modules/winston-compat/node_modules/logform/json.js +0 -26
- package/node_modules/winston-compat/node_modules/logform/label.js +0 -19
- package/node_modules/winston-compat/node_modules/logform/levels.js +0 -12
- package/node_modules/winston-compat/node_modules/logform/logstash.js +0 -29
- package/node_modules/winston-compat/node_modules/logform/metadata.js +0 -61
- package/node_modules/winston-compat/node_modules/logform/ms.js +0 -18
- package/node_modules/winston-compat/node_modules/logform/package.json +0 -51
- package/node_modules/winston-compat/node_modules/logform/pad-levels.js +0 -83
- package/node_modules/winston-compat/node_modules/logform/pretty-print.js +0 -16
- package/node_modules/winston-compat/node_modules/logform/printf.js +0 -26
- package/node_modules/winston-compat/node_modules/logform/simple.js +0 -33
- package/node_modules/winston-compat/node_modules/logform/splat.js +0 -125
- package/node_modules/winston-compat/node_modules/logform/timestamp.js +0 -30
- package/node_modules/winston-compat/node_modules/logform/tsconfig.json +0 -22
- package/node_modules/winston-compat/node_modules/logform/uncolorize.js +0 -27
- package/node_modules/winston-compat/package.json +0 -46
- package/node_modules/winston-compat/test/clone.test.js +0 -25
- package/node_modules/winston-compat/test/helpers.js +0 -256
- package/node_modules/winston-compat/test/timestamp.test.js +0 -14
- package/node_modules/winston-compat/test/transports/transport.js +0 -205
- package/node_modules/winston-compat/test/winston-compat.test.js +0 -18
- package/node_modules/winston-daily-rotate-file/.eslintrc.js +0 -11
- package/node_modules/winston-daily-rotate-file/.node-version +0 -1
- package/node_modules/winston-daily-rotate-file/.travis.yml +0 -15
- package/node_modules/winston-daily-rotate-file/node_modules/semver/CHANGELOG.md +0 -70
- package/node_modules/winston-daily-rotate-file/node_modules/semver/LICENSE +0 -15
- package/node_modules/winston-daily-rotate-file/node_modules/semver/README.md +0 -443
- package/node_modules/winston-daily-rotate-file/node_modules/semver/bin/semver.js +0 -174
- package/node_modules/winston-daily-rotate-file/node_modules/semver/package.json +0 -32
- package/node_modules/winston-daily-rotate-file/node_modules/semver/range.bnf +0 -16
- package/node_modules/winston-daily-rotate-file/node_modules/semver/semver.js +0 -1596
- package/node_modules/winston-daily-rotate-file/test/memory-stream.js +0 -38
- package/node_modules/winston-daily-rotate-file/test/random-string.js +0 -31
- package/node_modules/winston-daily-rotate-file/test/transport-tests.js +0 -250
- package/node_modules/winston-transport/.nyc_output/1c69f3e4-4c25-457d-9df5-dfa761729528.json +0 -1
- package/node_modules/winston-transport/.nyc_output/processinfo/1c69f3e4-4c25-457d-9df5-dfa761729528.json +0 -1
- package/node_modules/winston-transport/.travis.yml +0 -17
- package/node_modules/winston-transport/tsconfig.json +0 -22
- /package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/CONTRIBUTING.md +0 -0
- /package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/GOVERNANCE.md +0 -0
- /package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/LICENSE +0 -0
- /package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/internal/streams/stream-browser.js +0 -0
- /package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/lib/internal/streams/stream.js +0 -0
package/node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
|
|
4
|
+
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
5
|
+
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
6
|
+
}
|
|
7
|
+
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
8
|
+
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
9
|
+
if (hwm != null) {
|
|
10
|
+
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
11
|
+
var name = isDuplex ? duplexKey : 'highWaterMark';
|
|
12
|
+
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
|
13
|
+
}
|
|
14
|
+
return Math.floor(hwm);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Default value
|
|
18
|
+
return state.objectMode ? 16 : 16 * 1024;
|
|
19
|
+
}
|
|
20
|
+
module.exports = {
|
|
21
|
+
getHighWaterMark: getHighWaterMark
|
|
22
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "readable-stream",
|
|
3
|
+
"version": "3.6.2",
|
|
4
|
+
"description": "Streams3, a user-land copy of the stream library from Node.js",
|
|
5
|
+
"main": "readable.js",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">= 6"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"inherits": "^2.0.3",
|
|
11
|
+
"string_decoder": "^1.1.1",
|
|
12
|
+
"util-deprecate": "^1.0.1"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@babel/cli": "^7.2.0",
|
|
16
|
+
"@babel/core": "^7.2.0",
|
|
17
|
+
"@babel/polyfill": "^7.0.0",
|
|
18
|
+
"@babel/preset-env": "^7.2.0",
|
|
19
|
+
"airtap": "0.0.9",
|
|
20
|
+
"assert": "^1.4.0",
|
|
21
|
+
"bl": "^2.0.0",
|
|
22
|
+
"deep-strict-equal": "^0.2.0",
|
|
23
|
+
"events.once": "^2.0.2",
|
|
24
|
+
"glob": "^7.1.2",
|
|
25
|
+
"gunzip-maybe": "^1.4.1",
|
|
26
|
+
"hyperquest": "^2.1.3",
|
|
27
|
+
"lolex": "^2.6.0",
|
|
28
|
+
"nyc": "^11.0.0",
|
|
29
|
+
"pump": "^3.0.0",
|
|
30
|
+
"rimraf": "^2.6.2",
|
|
31
|
+
"tap": "^12.0.0",
|
|
32
|
+
"tape": "^4.9.0",
|
|
33
|
+
"tar-fs": "^1.16.2",
|
|
34
|
+
"util-promisify": "^2.1.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
|
|
38
|
+
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
|
|
39
|
+
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
|
|
40
|
+
"test-browser-local": "airtap --open --local -- test/browser.js",
|
|
41
|
+
"cover": "nyc npm test",
|
|
42
|
+
"report": "nyc report --reporter=lcov",
|
|
43
|
+
"update-browser-errors": "babel -o errors-browser.js errors.js"
|
|
44
|
+
},
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git://github.com/nodejs/readable-stream"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"readable",
|
|
51
|
+
"stream",
|
|
52
|
+
"pipe"
|
|
53
|
+
],
|
|
54
|
+
"browser": {
|
|
55
|
+
"util": false,
|
|
56
|
+
"worker_threads": false,
|
|
57
|
+
"./errors": "./errors-browser.js",
|
|
58
|
+
"./readable.js": "./readable-browser.js",
|
|
59
|
+
"./lib/internal/streams/from.js": "./lib/internal/streams/from-browser.js",
|
|
60
|
+
"./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
|
|
61
|
+
},
|
|
62
|
+
"nyc": {
|
|
63
|
+
"include": [
|
|
64
|
+
"lib/**.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"license": "MIT"
|
|
68
|
+
|
|
69
|
+
,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz"
|
|
70
|
+
,"_integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
|
|
71
|
+
,"_from": "readable-stream@3.6.2"
|
|
72
|
+
}
|
|
@@ -5,3 +5,5 @@ exports.Writable = require('./lib/_stream_writable.js');
|
|
|
5
5
|
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
6
6
|
exports.Transform = require('./lib/_stream_transform.js');
|
|
7
7
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
8
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
9
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
package/node_modules/{readable-stream → winston-transport/node_modules/readable-stream}/readable.js
RENAMED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
var Stream = require('stream');
|
|
2
2
|
if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
3
|
-
module.exports = Stream;
|
|
4
|
-
|
|
5
|
-
exports.
|
|
6
|
-
exports.Writable = Stream.Writable;
|
|
7
|
-
exports.Duplex = Stream.Duplex;
|
|
8
|
-
exports.Transform = Stream.Transform;
|
|
9
|
-
exports.PassThrough = Stream.PassThrough;
|
|
10
|
-
exports.Stream = Stream;
|
|
3
|
+
module.exports = Stream.Readable;
|
|
4
|
+
Object.assign(module.exports, Stream);
|
|
5
|
+
module.exports.Stream = Stream;
|
|
11
6
|
} else {
|
|
12
7
|
exports = module.exports = require('./lib/_stream_readable.js');
|
|
13
8
|
exports.Stream = Stream || exports;
|
|
@@ -16,4 +11,6 @@ if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
|
16
11
|
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
17
12
|
exports.Transform = require('./lib/_stream_transform.js');
|
|
18
13
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
14
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
15
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
19
16
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "winston-transport",
|
|
3
3
|
"description": "Base stream implementations for winston@3 and up.",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.5.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"lint": "
|
|
8
|
+
"lint": "eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
|
|
9
9
|
"pretest": "npm run lint && npm run build",
|
|
10
10
|
"test": "nyc mocha test/*.test.js",
|
|
11
11
|
"report": "nyc report --reporter=lcov",
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "rimraf dist && babel *.js -d ./dist",
|
|
13
13
|
"prepublishOnly": "npm run build"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
@@ -28,18 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/winstonjs/winston-transport#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"logform": "^2.3.2",
|
|
32
|
+
"readable-stream": "^3.6.0",
|
|
33
|
+
"triple-beam": "^1.3.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@types/node": "^
|
|
36
|
-
"abstract-winston-transport": ">=
|
|
37
|
-
"assume": "^2.
|
|
36
|
+
"@types/node": "^17.0.15",
|
|
37
|
+
"abstract-winston-transport": ">=0.5.1",
|
|
38
|
+
"assume": "^2.3.0",
|
|
38
39
|
"babel-cli": "^6.26.0",
|
|
39
40
|
"babel-preset-env": "^1.7.0",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"deep-equal": "^2.0.5",
|
|
42
|
+
"eslint": "^8.8.0",
|
|
43
|
+
"@dabh/eslint-config-populist": "^5.0.0",
|
|
44
|
+
"mocha": "^9.2.0",
|
|
43
45
|
"nyc": "^15.1.0",
|
|
44
46
|
"rimraf": "^3.0.2",
|
|
45
47
|
"winston-compat": "^0.1.5"
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
"node": ">= 6.4.0"
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
,"_resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.
|
|
52
|
-
,"_integrity": "sha512-
|
|
53
|
-
,"_from": "winston-transport@4.
|
|
53
|
+
,"_resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz"
|
|
54
|
+
,"_integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q=="
|
|
55
|
+
,"_from": "winston-transport@4.5.0"
|
|
54
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agent",
|
|
3
|
-
"version": "4.32.
|
|
3
|
+
"version": "4.32.12",
|
|
4
4
|
"description": "Node.js security instrumentation by Contrast Security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"security",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@contrast/flat": "^4.1.1",
|
|
85
85
|
"@contrast/fn-inspect": "^3.1.0",
|
|
86
86
|
"@contrast/protobuf-api": "^3.2.5",
|
|
87
|
-
"@contrast/require-hook": "^3.2.
|
|
87
|
+
"@contrast/require-hook": "^3.2.3",
|
|
88
88
|
"@contrast/synchronous-source-maps": "^1.1.0",
|
|
89
89
|
"amqp-connection-manager": "^3.2.2",
|
|
90
90
|
"amqplib": "^0.8.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"cookie": "^0.3.1",
|
|
98
98
|
"crc-32": "^1.0.0",
|
|
99
99
|
"fast-deep-equal": "^3.1.3",
|
|
100
|
-
"find-cache-dir": "^3.3.
|
|
100
|
+
"find-cache-dir": "^3.3.2",
|
|
101
101
|
"getmac": "^5.20.0",
|
|
102
102
|
"ipaddr.js": "^1.8.1",
|
|
103
103
|
"js-yaml": "^4.1.0",
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"parent-package-json": "^2.0.1",
|
|
111
111
|
"parseurl": "^1.3.3",
|
|
112
112
|
"prom-client": "^12.0.0",
|
|
113
|
-
"semver": "^7.3
|
|
113
|
+
"semver": "^7.5.3",
|
|
114
114
|
"uuid": "^8.3.2",
|
|
115
115
|
"winston": "^3.7.2",
|
|
116
|
-
"winston-daily-rotate-file": "^
|
|
116
|
+
"winston-daily-rotate-file": "^4.7.1"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
119
|
+
"@aws-sdk/client-dynamodb": "^3.359.0",
|
|
120
120
|
"@bmacnaughton/string-generator": "^1.0.0",
|
|
121
121
|
"@contrast/eslint-config": "^3.0.2",
|
|
122
122
|
"@contrast/fake-module": "file:test/mock/contrast-fake",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Original Library
|
|
4
|
-
- Copyright (c) Marak Squires
|
|
5
|
-
|
|
6
|
-
Additional Functionality
|
|
7
|
-
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
# colors.js
|
|
2
|
-
[](https://travis-ci.org/Marak/colors.js)
|
|
3
|
-
[](https://www.npmjs.org/package/colors)
|
|
4
|
-
[](https://david-dm.org/Marak/colors.js)
|
|
5
|
-
[](https://david-dm.org/Marak/colors.js#info=devDependencies)
|
|
6
|
-
|
|
7
|
-
Please check out the [roadmap](ROADMAP.md) for upcoming features and releases. Please open Issues to provide feedback, and check the `develop` branch for the latest bleeding-edge updates.
|
|
8
|
-
|
|
9
|
-
## get color and style in your node.js console
|
|
10
|
-
|
|
11
|
-

|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
npm install colors
|
|
16
|
-
|
|
17
|
-
## colors and styles!
|
|
18
|
-
|
|
19
|
-
### text colors
|
|
20
|
-
|
|
21
|
-
- black
|
|
22
|
-
- red
|
|
23
|
-
- green
|
|
24
|
-
- yellow
|
|
25
|
-
- blue
|
|
26
|
-
- magenta
|
|
27
|
-
- cyan
|
|
28
|
-
- white
|
|
29
|
-
- gray
|
|
30
|
-
- grey
|
|
31
|
-
|
|
32
|
-
### bright text colors
|
|
33
|
-
|
|
34
|
-
- brightRed
|
|
35
|
-
- brightGreen
|
|
36
|
-
- brightYellow
|
|
37
|
-
- brightBlue
|
|
38
|
-
- brightMagenta
|
|
39
|
-
- brightCyan
|
|
40
|
-
- brightWhite
|
|
41
|
-
|
|
42
|
-
### background colors
|
|
43
|
-
|
|
44
|
-
- bgBlack
|
|
45
|
-
- bgRed
|
|
46
|
-
- bgGreen
|
|
47
|
-
- bgYellow
|
|
48
|
-
- bgBlue
|
|
49
|
-
- bgMagenta
|
|
50
|
-
- bgCyan
|
|
51
|
-
- bgWhite
|
|
52
|
-
- bgGray
|
|
53
|
-
- bgGrey
|
|
54
|
-
|
|
55
|
-
### bright background colors
|
|
56
|
-
|
|
57
|
-
- bgBrightRed
|
|
58
|
-
- bgBrightGreen
|
|
59
|
-
- bgBrightYellow
|
|
60
|
-
- bgBrightBlue
|
|
61
|
-
- bgBrightMagenta
|
|
62
|
-
- bgBrightCyan
|
|
63
|
-
- bgBrightWhite
|
|
64
|
-
|
|
65
|
-
### styles
|
|
66
|
-
|
|
67
|
-
- reset
|
|
68
|
-
- bold
|
|
69
|
-
- dim
|
|
70
|
-
- italic
|
|
71
|
-
- underline
|
|
72
|
-
- inverse
|
|
73
|
-
- hidden
|
|
74
|
-
- strikethrough
|
|
75
|
-
|
|
76
|
-
### extras
|
|
77
|
-
|
|
78
|
-
- rainbow
|
|
79
|
-
- zebra
|
|
80
|
-
- america
|
|
81
|
-
- trap
|
|
82
|
-
- random
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## Usage
|
|
86
|
-
|
|
87
|
-
By popular demand, `colors` now ships with two types of usages!
|
|
88
|
-
|
|
89
|
-
The super nifty way
|
|
90
|
-
|
|
91
|
-
```js
|
|
92
|
-
var colors = require('colors');
|
|
93
|
-
|
|
94
|
-
console.log('hello'.green); // outputs green text
|
|
95
|
-
console.log('i like cake and pies'.underline.red) // outputs red underlined text
|
|
96
|
-
console.log('inverse the color'.inverse); // inverses the color
|
|
97
|
-
console.log('OMG Rainbows!'.rainbow); // rainbow
|
|
98
|
-
console.log('Run the trap'.trap); // Drops the bass
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
or a slightly less nifty way which doesn't extend `String.prototype`
|
|
103
|
-
|
|
104
|
-
```js
|
|
105
|
-
var colors = require('colors/safe');
|
|
106
|
-
|
|
107
|
-
console.log(colors.green('hello')); // outputs green text
|
|
108
|
-
console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text
|
|
109
|
-
console.log(colors.inverse('inverse the color')); // inverses the color
|
|
110
|
-
console.log(colors.rainbow('OMG Rainbows!')); // rainbow
|
|
111
|
-
console.log(colors.trap('Run the trap')); // Drops the bass
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
I prefer the first way. Some people seem to be afraid of extending `String.prototype` and prefer the second way.
|
|
116
|
-
|
|
117
|
-
If you are writing good code you will never have an issue with the first approach. If you really don't want to touch `String.prototype`, the second usage will not touch `String` native object.
|
|
118
|
-
|
|
119
|
-
## Enabling/Disabling Colors
|
|
120
|
-
|
|
121
|
-
The package will auto-detect whether your terminal can use colors and enable/disable accordingly. When colors are disabled, the color functions do nothing. You can override this with a command-line flag:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
node myapp.js --no-color
|
|
125
|
-
node myapp.js --color=false
|
|
126
|
-
|
|
127
|
-
node myapp.js --color
|
|
128
|
-
node myapp.js --color=true
|
|
129
|
-
node myapp.js --color=always
|
|
130
|
-
|
|
131
|
-
FORCE_COLOR=1 node myapp.js
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Or in code:
|
|
135
|
-
|
|
136
|
-
```javascript
|
|
137
|
-
var colors = require('colors');
|
|
138
|
-
colors.enable();
|
|
139
|
-
colors.disable();
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data)
|
|
143
|
-
|
|
144
|
-
```js
|
|
145
|
-
var name = 'Marak';
|
|
146
|
-
console.log(colors.green('Hello %s'), name);
|
|
147
|
-
// outputs -> 'Hello Marak'
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
## Custom themes
|
|
151
|
-
|
|
152
|
-
### Using standard API
|
|
153
|
-
|
|
154
|
-
```js
|
|
155
|
-
|
|
156
|
-
var colors = require('colors');
|
|
157
|
-
|
|
158
|
-
colors.setTheme({
|
|
159
|
-
silly: 'rainbow',
|
|
160
|
-
input: 'grey',
|
|
161
|
-
verbose: 'cyan',
|
|
162
|
-
prompt: 'grey',
|
|
163
|
-
info: 'green',
|
|
164
|
-
data: 'grey',
|
|
165
|
-
help: 'cyan',
|
|
166
|
-
warn: 'yellow',
|
|
167
|
-
debug: 'blue',
|
|
168
|
-
error: 'red'
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
// outputs red text
|
|
172
|
-
console.log("this is an error".error);
|
|
173
|
-
|
|
174
|
-
// outputs yellow text
|
|
175
|
-
console.log("this is a warning".warn);
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Using string safe API
|
|
179
|
-
|
|
180
|
-
```js
|
|
181
|
-
var colors = require('colors/safe');
|
|
182
|
-
|
|
183
|
-
// set single property
|
|
184
|
-
var error = colors.red;
|
|
185
|
-
error('this is red');
|
|
186
|
-
|
|
187
|
-
// set theme
|
|
188
|
-
colors.setTheme({
|
|
189
|
-
silly: 'rainbow',
|
|
190
|
-
input: 'grey',
|
|
191
|
-
verbose: 'cyan',
|
|
192
|
-
prompt: 'grey',
|
|
193
|
-
info: 'green',
|
|
194
|
-
data: 'grey',
|
|
195
|
-
help: 'cyan',
|
|
196
|
-
warn: 'yellow',
|
|
197
|
-
debug: 'blue',
|
|
198
|
-
error: 'red'
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
// outputs red text
|
|
202
|
-
console.log(colors.error("this is an error"));
|
|
203
|
-
|
|
204
|
-
// outputs yellow text
|
|
205
|
-
console.log(colors.warn("this is a warning"));
|
|
206
|
-
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### Combining Colors
|
|
210
|
-
|
|
211
|
-
```javascript
|
|
212
|
-
var colors = require('colors');
|
|
213
|
-
|
|
214
|
-
colors.setTheme({
|
|
215
|
-
custom: ['red', 'underline']
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
console.log('test'.custom);
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
var colors = require('../lib/index');
|
|
2
|
-
|
|
3
|
-
console.log('First some yellow text'.yellow);
|
|
4
|
-
|
|
5
|
-
console.log('Underline that text'.yellow.underline);
|
|
6
|
-
|
|
7
|
-
console.log('Make it bold and red'.red.bold);
|
|
8
|
-
|
|
9
|
-
console.log(('Double Raindows All Day Long').rainbow);
|
|
10
|
-
|
|
11
|
-
console.log('Drop the bass'.trap);
|
|
12
|
-
|
|
13
|
-
console.log('DROP THE RAINBOW BASS'.trap.rainbow);
|
|
14
|
-
|
|
15
|
-
// styles not widely supported
|
|
16
|
-
console.log('Chains are also cool.'.bold.italic.underline.red);
|
|
17
|
-
|
|
18
|
-
// styles not widely supported
|
|
19
|
-
console.log('So '.green + 'are'.underline + ' ' + 'inverse'.inverse
|
|
20
|
-
+ ' styles! '.yellow.bold);
|
|
21
|
-
console.log('Zebras are so fun!'.zebra);
|
|
22
|
-
|
|
23
|
-
//
|
|
24
|
-
// Remark: .strikethrough may not work with Mac OS Terminal App
|
|
25
|
-
//
|
|
26
|
-
console.log('This is ' + 'not'.strikethrough + ' fun.');
|
|
27
|
-
|
|
28
|
-
console.log('Background color attack!'.black.bgWhite);
|
|
29
|
-
console.log('Use random styles on everything!'.random);
|
|
30
|
-
console.log('America, Heck Yeah!'.america);
|
|
31
|
-
|
|
32
|
-
console.log('Blindingly '.brightCyan + 'bright? '.brightRed + 'Why '.brightYellow + 'not?!'.brightGreen);
|
|
33
|
-
|
|
34
|
-
console.log('Setting themes is useful');
|
|
35
|
-
|
|
36
|
-
//
|
|
37
|
-
// Custom themes
|
|
38
|
-
//
|
|
39
|
-
console.log('Generic logging theme as JSON'.green.bold.underline);
|
|
40
|
-
// Load theme with JSON literal
|
|
41
|
-
colors.setTheme({
|
|
42
|
-
silly: 'rainbow',
|
|
43
|
-
input: 'grey',
|
|
44
|
-
verbose: 'cyan',
|
|
45
|
-
prompt: 'grey',
|
|
46
|
-
info: 'green',
|
|
47
|
-
data: 'grey',
|
|
48
|
-
help: 'cyan',
|
|
49
|
-
warn: 'yellow',
|
|
50
|
-
debug: 'blue',
|
|
51
|
-
error: 'red',
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// outputs red text
|
|
55
|
-
console.log('this is an error'.error);
|
|
56
|
-
|
|
57
|
-
// outputs yellow text
|
|
58
|
-
console.log('this is a warning'.warn);
|
|
59
|
-
|
|
60
|
-
// outputs grey text
|
|
61
|
-
console.log('this is an input'.input);
|
|
62
|
-
|
|
63
|
-
console.log('Generic logging theme as file'.green.bold.underline);
|
|
64
|
-
|
|
65
|
-
// Load a theme from file
|
|
66
|
-
try {
|
|
67
|
-
colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));
|
|
68
|
-
} catch (err) {
|
|
69
|
-
console.log(err);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// outputs red text
|
|
73
|
-
console.log('this is an error'.error);
|
|
74
|
-
|
|
75
|
-
// outputs yellow text
|
|
76
|
-
console.log('this is a warning'.warn);
|
|
77
|
-
|
|
78
|
-
// outputs grey text
|
|
79
|
-
console.log('this is an input'.input);
|
|
80
|
-
|
|
81
|
-
// console.log("Don't summon".zalgo)
|
|
82
|
-
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var colors = require('../safe');
|
|
2
|
-
|
|
3
|
-
console.log(colors.yellow('First some yellow text'));
|
|
4
|
-
|
|
5
|
-
console.log(colors.yellow.underline('Underline that text'));
|
|
6
|
-
|
|
7
|
-
console.log(colors.red.bold('Make it bold and red'));
|
|
8
|
-
|
|
9
|
-
console.log(colors.rainbow('Double Raindows All Day Long'));
|
|
10
|
-
|
|
11
|
-
console.log(colors.trap('Drop the bass'));
|
|
12
|
-
|
|
13
|
-
console.log(colors.rainbow(colors.trap('DROP THE RAINBOW BASS')));
|
|
14
|
-
|
|
15
|
-
// styles not widely supported
|
|
16
|
-
console.log(colors.bold.italic.underline.red('Chains are also cool.'));
|
|
17
|
-
|
|
18
|
-
// styles not widely supported
|
|
19
|
-
console.log(colors.green('So ') + colors.underline('are') + ' '
|
|
20
|
-
+ colors.inverse('inverse') + colors.yellow.bold(' styles! '));
|
|
21
|
-
|
|
22
|
-
console.log(colors.zebra('Zebras are so fun!'));
|
|
23
|
-
|
|
24
|
-
console.log('This is ' + colors.strikethrough('not') + ' fun.');
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
console.log(colors.black.bgWhite('Background color attack!'));
|
|
28
|
-
console.log(colors.random('Use random styles on everything!'));
|
|
29
|
-
console.log(colors.america('America, Heck Yeah!'));
|
|
30
|
-
|
|
31
|
-
console.log(colors.brightCyan('Blindingly ') + colors.brightRed('bright? ') + colors.brightYellow('Why ') + colors.brightGreen('not?!'));
|
|
32
|
-
|
|
33
|
-
console.log('Setting themes is useful');
|
|
34
|
-
|
|
35
|
-
//
|
|
36
|
-
// Custom themes
|
|
37
|
-
//
|
|
38
|
-
// console.log('Generic logging theme as JSON'.green.bold.underline);
|
|
39
|
-
// Load theme with JSON literal
|
|
40
|
-
colors.setTheme({
|
|
41
|
-
silly: 'rainbow',
|
|
42
|
-
input: 'blue',
|
|
43
|
-
verbose: 'cyan',
|
|
44
|
-
prompt: 'grey',
|
|
45
|
-
info: 'green',
|
|
46
|
-
data: 'grey',
|
|
47
|
-
help: 'cyan',
|
|
48
|
-
warn: 'yellow',
|
|
49
|
-
debug: 'blue',
|
|
50
|
-
error: 'red',
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
// outputs red text
|
|
54
|
-
console.log(colors.error('this is an error'));
|
|
55
|
-
|
|
56
|
-
// outputs yellow text
|
|
57
|
-
console.log(colors.warn('this is a warning'));
|
|
58
|
-
|
|
59
|
-
// outputs blue text
|
|
60
|
-
console.log(colors.input('this is an input'));
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// console.log('Generic logging theme as file'.green.bold.underline);
|
|
64
|
-
|
|
65
|
-
// Load a theme from file
|
|
66
|
-
colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));
|
|
67
|
-
|
|
68
|
-
// outputs red text
|
|
69
|
-
console.log(colors.error('this is an error'));
|
|
70
|
-
|
|
71
|
-
// outputs yellow text
|
|
72
|
-
console.log(colors.warn('this is a warning'));
|
|
73
|
-
|
|
74
|
-
// outputs grey text
|
|
75
|
-
console.log(colors.input('this is an input'));
|
|
76
|
-
|
|
77
|
-
// console.log(colors.zalgo("Don't summon him"))
|
|
78
|
-
|
|
79
|
-
|