@contrast/agent 4.16.2 → 4.18.0
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/esm.mjs +21 -11
- package/lib/assess/policy/propagators.json +4 -0
- package/lib/assess/policy/signatures.json +5 -0
- package/lib/assess/propagators/fastify-static/allowed-path.js +85 -0
- package/lib/assess/sources/index.js +26 -5
- package/lib/cli-rewriter/index.js +1 -1
- package/lib/contrast.js +1 -1
- package/lib/core/config/options.js +14 -1
- package/lib/core/config/util.js +39 -11
- package/lib/core/rewrite/index.js +2 -2
- package/lib/protect/service.js +2 -0
- package/lib/util/trace-util.js +5 -4
- package/node_modules/@colors/colors/LICENSE +26 -0
- package/node_modules/@colors/colors/README.md +219 -0
- package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
- package/node_modules/@colors/colors/examples/safe-string.js +80 -0
- package/node_modules/@colors/colors/index.d.ts +136 -0
- package/node_modules/@colors/colors/lib/colors.js +211 -0
- package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
- package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/@colors/colors/lib/index.js +13 -0
- package/node_modules/@colors/colors/lib/maps/america.js +10 -0
- package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/@colors/colors/lib/maps/random.js +11 -0
- package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
- package/node_modules/@colors/colors/lib/styles.js +95 -0
- package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
- package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/@colors/colors/package.json +49 -0
- package/node_modules/@colors/colors/safe.d.ts +48 -0
- package/node_modules/@colors/colors/safe.js +10 -0
- package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
- package/node_modules/@dabh/diagnostics/README.md +16 -16
- package/node_modules/@dabh/diagnostics/package.json +9 -9
- package/node_modules/color/README.md +9 -0
- package/node_modules/color/index.js +4 -1
- package/node_modules/color/package.json +8 -8
- package/node_modules/color-string/README.md +6 -2
- package/node_modules/color-string/index.js +21 -13
- package/node_modules/color-string/package.json +4 -4
- package/node_modules/colorspace/package.json +5 -5
- package/node_modules/fecha/dist/fecha.min.js +1 -1
- package/node_modules/fecha/dist/fecha.min.js.map +1 -0
- package/node_modules/fecha/lib/fecha.d.ts +2 -2
- package/node_modules/fecha/lib/fecha.js +35 -18
- package/node_modules/fecha/lib/fecha.js.map +1 -0
- package/node_modules/fecha/lib/fecha.umd.js +35 -18
- package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
- package/node_modules/fecha/package.json +9 -10
- package/node_modules/fecha/src/fecha.ts +524 -0
- package/node_modules/logform/.eslintrc +1 -1
- package/node_modules/logform/CHANGELOG.md +24 -0
- package/node_modules/logform/README.md +15 -17
- package/node_modules/logform/browser.js +3 -1
- package/node_modules/logform/cli.js +1 -1
- package/node_modules/logform/colorize.js +2 -2
- package/node_modules/logform/dist/browser.js +8 -2
- package/node_modules/logform/dist/cli.js +2 -2
- package/node_modules/logform/dist/colorize.js +5 -5
- package/node_modules/logform/dist/errors.js +1 -1
- package/node_modules/logform/dist/format.js +9 -5
- package/node_modules/logform/dist/index.js +53 -20
- package/node_modules/logform/dist/json.js +7 -6
- package/node_modules/logform/dist/logstash.js +1 -1
- package/node_modules/logform/dist/pad-levels.js +4 -4
- package/node_modules/logform/dist/printf.js +1 -1
- package/node_modules/logform/dist/simple.js +1 -1
- package/node_modules/logform/dist/splat.js +2 -2
- package/node_modules/logform/dist/uncolorize.js +1 -1
- package/node_modules/logform/errors.js +1 -1
- package/node_modules/logform/index.d.ts +36 -0
- package/node_modules/logform/index.js +19 -20
- package/node_modules/logform/json.js +7 -7
- package/node_modules/logform/logstash.js +1 -1
- package/node_modules/logform/package.json +10 -9
- package/node_modules/logform/simple.js +1 -1
- package/node_modules/logform/uncolorize.js +1 -1
- package/node_modules/safe-stable-stringify/CHANGELOG.md +75 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +18 -0
- package/node_modules/safe-stable-stringify/index.js +618 -0
- package/node_modules/safe-stable-stringify/package.json +69 -0
- package/node_modules/safe-stable-stringify/readme.md +170 -0
- package/node_modules/safe-stable-stringify/tsconfig.json +22 -0
- package/node_modules/winston/LICENSE +18 -18
- package/node_modules/winston/README.md +1231 -1230
- package/node_modules/winston/dist/winston/common.js +10 -10
- package/node_modules/winston/dist/winston/config/index.js +17 -17
- package/node_modules/winston/dist/winston/container.js +46 -46
- package/node_modules/winston/dist/winston/create-logger.js +28 -24
- package/node_modules/winston/dist/winston/exception-handler.js +49 -49
- package/node_modules/winston/dist/winston/exception-stream.js +27 -27
- package/node_modules/winston/dist/winston/logger.js +152 -138
- package/node_modules/winston/dist/winston/profiler.js +22 -22
- package/node_modules/winston/dist/winston/rejection-handler.js +54 -54
- package/node_modules/winston/dist/winston/tail-file.js +14 -14
- package/node_modules/winston/dist/winston/transports/console.js +31 -31
- package/node_modules/winston/dist/winston/transports/file.js +101 -101
- package/node_modules/winston/dist/winston/transports/http.js +119 -41
- package/node_modules/winston/dist/winston/transports/index.js +17 -17
- package/node_modules/winston/dist/winston/transports/stream.js +24 -24
- package/node_modules/winston/dist/winston.js +91 -97
- package/node_modules/winston/index.d.ts +213 -193
- package/node_modules/winston/lib/winston/common.js +61 -61
- package/node_modules/winston/lib/winston/config/index.d.ts +99 -98
- package/node_modules/winston/lib/winston/config/index.js +35 -35
- package/node_modules/winston/lib/winston/container.js +114 -114
- package/node_modules/winston/lib/winston/create-logger.js +104 -104
- package/node_modules/winston/lib/winston/exception-handler.js +245 -245
- package/node_modules/winston/lib/winston/exception-stream.js +54 -54
- package/node_modules/winston/lib/winston/logger.js +676 -667
- package/node_modules/winston/lib/winston/profiler.js +51 -51
- package/node_modules/winston/lib/winston/rejection-handler.js +251 -251
- package/node_modules/winston/lib/winston/tail-file.js +124 -124
- package/node_modules/winston/lib/winston/transports/console.js +117 -117
- package/node_modules/winston/lib/winston/transports/file.js +695 -695
- package/node_modules/winston/lib/winston/transports/http.js +267 -202
- package/node_modules/winston/lib/winston/transports/index.d.ts +103 -100
- package/node_modules/winston/lib/winston/transports/index.js +56 -56
- package/node_modules/winston/lib/winston/transports/stream.js +63 -63
- package/node_modules/winston/lib/winston.js +176 -182
- package/node_modules/winston/node_modules/winston-transport/.babelrc +3 -0
- package/node_modules/winston/node_modules/winston-transport/.eslintrc +7 -0
- package/node_modules/winston/node_modules/winston-transport/.gitattributes +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/CHANGELOG.md +126 -0
- package/node_modules/winston/node_modules/winston-transport/LICENSE +22 -0
- package/node_modules/winston/node_modules/winston-transport/README.md +50 -0
- package/node_modules/winston/node_modules/winston-transport/dist/index.js +215 -0
- package/node_modules/winston/node_modules/winston-transport/dist/legacy.js +116 -0
- package/node_modules/winston/node_modules/winston-transport/index.d.ts +39 -0
- package/node_modules/winston/node_modules/winston-transport/index.js +215 -0
- package/node_modules/winston/node_modules/winston-transport/legacy.js +119 -0
- package/node_modules/winston/node_modules/winston-transport/package.json +56 -0
- package/node_modules/winston/package.json +76 -75
- package/package.json +9 -6
- package/node_modules/@dabh/diagnostics/example.png +0 -0
- package/node_modules/color-string/CHANGELOG.md +0 -18
- package/node_modules/colorspace/test.js +0 -14
- package/node_modules/fecha/CHANGELOG.md +0 -67
- package/node_modules/logform/.travis.yml +0 -17
- package/node_modules/winston/CHANGELOG.md +0 -560
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const util = require('util');
|
|
4
|
+
const { LEVEL } = require('triple-beam');
|
|
5
|
+
const TransportStream = require('./');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Constructor function for the LegacyTransportStream. This is an internal
|
|
9
|
+
* wrapper `winston >= 3` uses to wrap older transports implementing
|
|
10
|
+
* log(level, message, meta).
|
|
11
|
+
* @param {Object} options - Options for this TransportStream instance.
|
|
12
|
+
* @param {Transpot} options.transport - winston@2 or older Transport to wrap.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const LegacyTransportStream = module.exports = function LegacyTransportStream(options = {}) {
|
|
16
|
+
TransportStream.call(this, options);
|
|
17
|
+
if (!options.transport || typeof options.transport.log !== 'function') {
|
|
18
|
+
throw new Error('Invalid transport, must be an object with a log method.');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
this.transport = options.transport;
|
|
22
|
+
this.level = this.level || options.transport.level;
|
|
23
|
+
this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;
|
|
24
|
+
|
|
25
|
+
// Display our deprecation notice.
|
|
26
|
+
this._deprecated();
|
|
27
|
+
|
|
28
|
+
// Properly bubble up errors from the transport to the
|
|
29
|
+
// LegacyTransportStream instance, but only once no matter how many times
|
|
30
|
+
// this transport is shared.
|
|
31
|
+
function transportError(err) {
|
|
32
|
+
this.emit('error', err, this.transport);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!this.transport.__winstonError) {
|
|
36
|
+
this.transport.__winstonError = transportError.bind(this);
|
|
37
|
+
this.transport.on('error', this.transport.__winstonError);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* Inherit from TransportStream using Node.js built-ins
|
|
43
|
+
*/
|
|
44
|
+
util.inherits(LegacyTransportStream, TransportStream);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Writes the info object to our transport instance.
|
|
48
|
+
* @param {mixed} info - TODO: add param description.
|
|
49
|
+
* @param {mixed} enc - TODO: add param description.
|
|
50
|
+
* @param {function} callback - TODO: add param description.
|
|
51
|
+
* @returns {undefined}
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
LegacyTransportStream.prototype._write = function _write(info, enc, callback) {
|
|
55
|
+
if (this.silent || (info.exception === true && !this.handleExceptions)) {
|
|
56
|
+
return callback(null);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Remark: This has to be handled in the base transport now because we
|
|
60
|
+
// cannot conditionally write to our pipe targets as stream.
|
|
61
|
+
if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {
|
|
62
|
+
this.transport.log(info[LEVEL], info.message, info, this._nop);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
callback(null);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Writes the batch of info objects (i.e. "object chunks") to our transport
|
|
70
|
+
* instance after performing any necessary filtering.
|
|
71
|
+
* @param {mixed} chunks - TODO: add params description.
|
|
72
|
+
* @param {function} callback - TODO: add params description.
|
|
73
|
+
* @returns {mixed} - TODO: add returns description.
|
|
74
|
+
* @private
|
|
75
|
+
*/
|
|
76
|
+
LegacyTransportStream.prototype._writev = function _writev(chunks, callback) {
|
|
77
|
+
for (let i = 0; i < chunks.length; i++) {
|
|
78
|
+
if (this._accept(chunks[i])) {
|
|
79
|
+
this.transport.log(
|
|
80
|
+
chunks[i].chunk[LEVEL],
|
|
81
|
+
chunks[i].chunk.message,
|
|
82
|
+
chunks[i].chunk,
|
|
83
|
+
this._nop
|
|
84
|
+
);
|
|
85
|
+
chunks[i].callback();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return callback(null);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Displays a deprecation notice. Defined as a function so it can be
|
|
94
|
+
* overriden in tests.
|
|
95
|
+
* @returns {undefined}
|
|
96
|
+
*/
|
|
97
|
+
LegacyTransportStream.prototype._deprecated = function _deprecated() {
|
|
98
|
+
// eslint-disable-next-line no-console
|
|
99
|
+
console.error([
|
|
100
|
+
`${this.transport.name} is a legacy winston transport. Consider upgrading: `,
|
|
101
|
+
'- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md'
|
|
102
|
+
].join('\n'));
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Clean up error handling state on the legacy transport associated
|
|
107
|
+
* with this instance.
|
|
108
|
+
* @returns {undefined}
|
|
109
|
+
*/
|
|
110
|
+
LegacyTransportStream.prototype.close = function close() {
|
|
111
|
+
if (this.transport.close) {
|
|
112
|
+
this.transport.close();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (this.transport.__winstonError) {
|
|
116
|
+
this.transport.removeListener('error', this.transport.__winstonError);
|
|
117
|
+
this.transport.__winstonError = null;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "winston-transport",
|
|
3
|
+
"description": "Base stream implementations for winston@3 and up.",
|
|
4
|
+
"version": "4.5.0",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"browser": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint test/*.js index.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
|
|
9
|
+
"pretest": "npm run lint && npm run build",
|
|
10
|
+
"test": "nyc mocha test/*.test.js",
|
|
11
|
+
"report": "nyc report --reporter=lcov",
|
|
12
|
+
"build": "rimraf dist && babel *.js -d ./dist",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git@github.com:winstonjs/winston-transport.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"winston",
|
|
21
|
+
"transport",
|
|
22
|
+
"winston3"
|
|
23
|
+
],
|
|
24
|
+
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/winstonjs/winston-transport/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/winstonjs/winston-transport#readme",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"logform": "^2.3.2",
|
|
32
|
+
"readable-stream": "^3.6.0",
|
|
33
|
+
"triple-beam": "^1.3.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^17.0.15",
|
|
37
|
+
"abstract-winston-transport": ">=0.5.1",
|
|
38
|
+
"assume": "^2.3.0",
|
|
39
|
+
"babel-cli": "^6.26.0",
|
|
40
|
+
"babel-preset-env": "^1.7.0",
|
|
41
|
+
"deep-equal": "^2.0.5",
|
|
42
|
+
"eslint": "^8.8.0",
|
|
43
|
+
"@dabh/eslint-config-populist": "^5.0.0",
|
|
44
|
+
"mocha": "^9.2.0",
|
|
45
|
+
"nyc": "^15.1.0",
|
|
46
|
+
"rimraf": "^3.0.2",
|
|
47
|
+
"winston-compat": "^0.1.5"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">= 6.4.0"
|
|
51
|
+
}
|
|
52
|
+
|
|
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"
|
|
56
|
+
}
|
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "winston",
|
|
3
|
-
"description": "A logger for just about everything.",
|
|
4
|
-
"version": "3.
|
|
5
|
-
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
|
|
6
|
-
"maintainers": [
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"@babel/
|
|
41
|
-
"@babel/
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"cross-spawn-async": "^2.2.5",
|
|
48
|
-
"eslint
|
|
49
|
-
"hock": "^1.4.1",
|
|
50
|
-
"mocha": "
|
|
51
|
-
"nyc": "^15.1.0",
|
|
52
|
-
"rimraf": "^3.0.2",
|
|
53
|
-
"split2": "^
|
|
54
|
-
"std-mocks": "^1.0.1",
|
|
55
|
-
"through2": "^
|
|
56
|
-
"winston-compat": "^0.1.5"
|
|
57
|
-
},
|
|
58
|
-
"main": "./lib/winston",
|
|
59
|
-
"browser": "./dist/winston",
|
|
60
|
-
"types": "./index.d.ts",
|
|
61
|
-
"scripts": {
|
|
62
|
-
"lint": "
|
|
63
|
-
"
|
|
64
|
-
"test": "nyc
|
|
65
|
-
"test:
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "winston",
|
|
3
|
+
"description": "A logger for just about everything.",
|
|
4
|
+
"version": "3.7.2",
|
|
5
|
+
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
|
|
6
|
+
"maintainers": [
|
|
7
|
+
"David Hyde <dabh@alumni.stanford.edu>"
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/winstonjs/winston.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"winston",
|
|
15
|
+
"logger",
|
|
16
|
+
"logging",
|
|
17
|
+
"logs",
|
|
18
|
+
"sysadmin",
|
|
19
|
+
"bunyan",
|
|
20
|
+
"pino",
|
|
21
|
+
"loglevel",
|
|
22
|
+
"tools",
|
|
23
|
+
"json",
|
|
24
|
+
"stream"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@dabh/diagnostics": "^2.0.2",
|
|
28
|
+
"async": "^3.2.3",
|
|
29
|
+
"is-stream": "^2.0.0",
|
|
30
|
+
"logform": "^2.4.0",
|
|
31
|
+
"one-time": "^1.0.0",
|
|
32
|
+
"readable-stream": "^3.4.0",
|
|
33
|
+
"safe-stable-stringify": "^2.3.1",
|
|
34
|
+
"stack-trace": "0.0.x",
|
|
35
|
+
"triple-beam": "^1.3.0",
|
|
36
|
+
"winston-transport": "^4.5.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/cli": "^7.17.0",
|
|
40
|
+
"@babel/core": "^7.17.2",
|
|
41
|
+
"@babel/preset-env": "^7.16.7",
|
|
42
|
+
"@colors/colors": "1.5.0",
|
|
43
|
+
"@dabh/eslint-config-populist": "^5.0.0",
|
|
44
|
+
"@types/node": "^17.0.17",
|
|
45
|
+
"abstract-winston-transport": "^0.5.1",
|
|
46
|
+
"assume": "^2.2.0",
|
|
47
|
+
"cross-spawn-async": "^2.2.5",
|
|
48
|
+
"eslint": "^8.9.0",
|
|
49
|
+
"hock": "^1.4.1",
|
|
50
|
+
"mocha": "8.1.3",
|
|
51
|
+
"nyc": "^15.1.0",
|
|
52
|
+
"rimraf": "^3.0.2",
|
|
53
|
+
"split2": "^4.1.0",
|
|
54
|
+
"std-mocks": "^1.0.1",
|
|
55
|
+
"through2": "^4.0.2",
|
|
56
|
+
"winston-compat": "^0.1.5"
|
|
57
|
+
},
|
|
58
|
+
"main": "./lib/winston",
|
|
59
|
+
"browser": "./dist/winston",
|
|
60
|
+
"types": "./index.d.ts",
|
|
61
|
+
"scripts": {
|
|
62
|
+
"lint": "eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
|
|
63
|
+
"test": "mocha",
|
|
64
|
+
"test:coverage": "nyc npm run test:unit",
|
|
65
|
+
"test:unit": "mocha test/unit",
|
|
66
|
+
"test:integration": "mocha test/integration",
|
|
67
|
+
"build": "rimraf dist && babel lib -d dist",
|
|
68
|
+
"prepublishOnly": "npm run build"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">= 12.0.0"
|
|
72
|
+
},
|
|
73
|
+
"license": "MIT"
|
|
73
74
|
|
|
74
|
-
,"_resolved": "https://registry.npmjs.org/winston/-/winston-3.
|
|
75
|
-
,"_integrity": "sha512-
|
|
76
|
-
,"_from": "winston@3.
|
|
75
|
+
,"_resolved": "https://registry.npmjs.org/winston/-/winston-3.7.2.tgz"
|
|
76
|
+
,"_integrity": "sha512-QziIqtojHBoyzUOdQvQiar1DH0Xp9nF1A1y7NVy2DGEsz82SBDtOalS0ulTRGVT14xPX3WRWkCsdcJKqNflKng=="
|
|
77
|
+
,"_from": "winston@3.7.2"
|
|
77
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agent",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "Node.js security instrumentation by Contrast Security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"security",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"initsecrets": "scripts/detect-secrets.sh"
|
|
49
49
|
},
|
|
50
50
|
"lint-staged": {
|
|
51
|
-
"*.js": "eslint --fix",
|
|
51
|
+
"*.{c,m,}js": "eslint --fix",
|
|
52
52
|
"*.sh": "shellcheck -x"
|
|
53
53
|
},
|
|
54
54
|
"bin": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@babel/template": "^7.10.4",
|
|
77
77
|
"@babel/traverse": "^7.12.1",
|
|
78
78
|
"@babel/types": "^7.12.1",
|
|
79
|
-
"@contrast/agent-lib": "^
|
|
79
|
+
"@contrast/agent-lib": "^4.0.0",
|
|
80
80
|
"@contrast/distringuish-prebuilt": "^2.2.0",
|
|
81
81
|
"@contrast/flat": "^4.1.1",
|
|
82
82
|
"@contrast/fn-inspect": "^2.4.4",
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
"prom-client": "^12.0.0",
|
|
110
110
|
"semver": "^7.3.2",
|
|
111
111
|
"uuid": "^8.3.2",
|
|
112
|
-
"winston": "^3.
|
|
112
|
+
"winston": "^3.7.2",
|
|
113
113
|
"winston-daily-rotate-file": "^3.5.1",
|
|
114
114
|
"yaml": "^1.10.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@aws-sdk/client-dynamodb": "^3.39.0",
|
|
118
118
|
"@bmacnaughton/string-generator": "^1.0.0",
|
|
119
|
-
"@contrast/eslint-config": "^3.0.
|
|
119
|
+
"@contrast/eslint-config": "^3.0.2",
|
|
120
120
|
"@contrast/fake-module": "file:test/mock/contrast-fake",
|
|
121
121
|
"@contrast/screener-service": "^1.12.9",
|
|
122
122
|
"@hapi/boom": "file:test/mock/boom",
|
|
@@ -138,18 +138,21 @@
|
|
|
138
138
|
"csv-writer": "^1.2.0",
|
|
139
139
|
"deasync": "^0.1.24",
|
|
140
140
|
"dustjs-linkedin": "^3.0.1",
|
|
141
|
-
"ejs": "^3.1.
|
|
141
|
+
"ejs": "^3.1.7",
|
|
142
142
|
"escape-html": "^1.0.3",
|
|
143
143
|
"eslint": "^8.9.0",
|
|
144
144
|
"eslint-plugin-mocha": "^10.0.3",
|
|
145
145
|
"eslint-plugin-node": "^11.1.0",
|
|
146
146
|
"express": "file:test/mock/express",
|
|
147
|
+
"fastify-plugin": "file:test/mock/fastify-plugin",
|
|
148
|
+
"fastify-static": "file:test/mock/fastify-static",
|
|
147
149
|
"fetch-cookie": "^0.11.0",
|
|
148
150
|
"form-data": "^3.0.0",
|
|
149
151
|
"glob": "^7.1.4",
|
|
150
152
|
"handlebars": "^4.7.7",
|
|
151
153
|
"husky": "^6.0.0",
|
|
152
154
|
"inquirer": "^8.1.2",
|
|
155
|
+
"jira-client": "^8.1.0",
|
|
153
156
|
"joi": "^17.4.0",
|
|
154
157
|
"jsdoc": "^3.6.10",
|
|
155
158
|
"libxmljs": "file:test/mock/libxmljs",
|
|
Binary file
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# 0.4.0
|
|
2
|
-
|
|
3
|
-
- Changed: Invalid conversions now return `null` instead of `undefined`
|
|
4
|
-
- Changed: Moved to XO standard
|
|
5
|
-
- Fixed: a few details in package.json
|
|
6
|
-
- Fixed: readme output regarding wrapped hue values ([#21](https://github.com/MoOx/color-string/pull/21))
|
|
7
|
-
|
|
8
|
-
# 0.3.0
|
|
9
|
-
|
|
10
|
-
- Fixed: HSL alpha channel ([#16](https://github.com/harthur/color-string/pull/16))
|
|
11
|
-
- Fixed: ability to parse signed number ([#15](https://github.com/harthur/color-string/pull/15))
|
|
12
|
-
- Removed: component.json
|
|
13
|
-
- Removed: browser build
|
|
14
|
-
- Added: license field to package.json ([#17](https://github.com/harthur/color-string/pull/17))
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
Check out commit logs for earlier releases
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
describe('colorspace', function () {
|
|
2
|
-
var colorspace = require('./');
|
|
3
|
-
var assume = require('assume');
|
|
4
|
-
|
|
5
|
-
it('returns a consistent color for a given name', function () {
|
|
6
|
-
assume(colorspace('bigpipe')).equals('#20f95a');
|
|
7
|
-
assume(colorspace('bigpipe')).equals('#20f95a');
|
|
8
|
-
assume(colorspace('bigpipe')).equals('#20f95a');
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it('tones the color when namespaced by a : char', function () {
|
|
12
|
-
assume(colorspace('bigpipe:pagelet')).equals('#00FF2C');
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
### 4.2.0
|
|
2
|
-
Added isoDate and isoDateTime masks
|
|
3
|
-
|
|
4
|
-
### 4.1.0
|
|
5
|
-
Added Z format/parse and fixed Peru timezone issue
|
|
6
|
-
- Added `Z` format token. See readme for more info. Big thanks to @fer22f for writing the code.
|
|
7
|
-
- Fixed a strange issue when Peru changed timezones in 1990. See #78
|
|
8
|
-
|
|
9
|
-
## 4.0.0
|
|
10
|
-
**Major Features and Breaking changes in this version**
|
|
11
|
-
|
|
12
|
-
#### Improvements
|
|
13
|
-
- *Valid date parsing* - By default fecha will check validity of dates. Previously `2019-55-01` or `2019-01-42` would parse correctly, since Javascript can handle it. Now invalid dates will return `null` instead
|
|
14
|
-
- *ES Module and Tree Shaking Support* - You can now import fecha `parse` or `format` independently
|
|
15
|
-
```js
|
|
16
|
-
import {format, parse} from 'fecha';
|
|
17
|
-
|
|
18
|
-
format(...);
|
|
19
|
-
parse(...)
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
#### Breaking changes
|
|
23
|
-
- `parseDate` may return `null` when previously returned a `Date`. See improvements above, but invalid dates will return `null` now
|
|
24
|
-
- Change to how to set masks and i18n
|
|
25
|
-
Previously
|
|
26
|
-
```js
|
|
27
|
-
import fecha from 'fecha';
|
|
28
|
-
|
|
29
|
-
fecha.i18n = { ... }
|
|
30
|
-
fecha.masks.myMask = 'DD , MM, YYYY'
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
New
|
|
34
|
-
```js
|
|
35
|
-
import {parse, format, setGlobalDateI18n, setGlobalDateMasks} from 'fecha';
|
|
36
|
-
|
|
37
|
-
setGlobalDateI18n({
|
|
38
|
-
// ...
|
|
39
|
-
})
|
|
40
|
-
setGlobalDateMasks({
|
|
41
|
-
myMask: 'DD , MM, YYYY'
|
|
42
|
-
});
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 3.0.3
|
|
46
|
-
- Fixed bug when using brackets when parsing dates
|
|
47
|
-
### 3.0.2
|
|
48
|
-
- Fixed issue where src files are not included correctly in npm
|
|
49
|
-
|
|
50
|
-
### 3.0.0
|
|
51
|
-
- Moved to ES modules
|
|
52
|
-
- Changed invalid date from `false` to `null`
|
|
53
|
-
|
|
54
|
-
### 2.3.3
|
|
55
|
-
Fixed bug with year 999 not having leading zero
|
|
56
|
-
|
|
57
|
-
### 2.3.2
|
|
58
|
-
Added typescript definitions to NPM
|
|
59
|
-
|
|
60
|
-
### 2.3.0
|
|
61
|
-
Added strict version of date parser that returns null on invalid dates (may use strict version in v3)
|
|
62
|
-
|
|
63
|
-
### 2.2.0
|
|
64
|
-
Fixed a bug when parsing Do format dates
|
|
65
|
-
|
|
66
|
-
## 2.0.0
|
|
67
|
-
Fecha now throws errors on invalid dates in `fecha.format` and is stricter about what dates it accepts. Dates must pass `Object.prototype.toString.call(dateObj) !== '[object Date]'`.
|