@contrast/agent 4.16.1 → 4.17.1

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.
Files changed (267) hide show
  1. package/bin/VERSION +1 -1
  2. package/bin/linux/contrast-service +0 -0
  3. package/bin/mac/contrast-service +0 -0
  4. package/bin/windows/contrast-service.exe +0 -0
  5. package/esm.mjs +21 -11
  6. package/lib/assess/policy/propagators.json +4 -0
  7. package/lib/assess/policy/signatures.json +5 -0
  8. package/lib/assess/propagators/fastify-static/allowed-path.js +85 -0
  9. package/lib/cli-rewriter/index.js +1 -1
  10. package/lib/contrast.js +1 -1
  11. package/lib/core/rewrite/index.js +2 -2
  12. package/lib/protect/rules/cmd-injection/cmdinjection-rule.js +1 -1
  13. package/lib/protect/service.js +2 -0
  14. package/lib/util/trace-util.js +5 -4
  15. package/node_modules/@colors/colors/LICENSE +26 -0
  16. package/node_modules/@colors/colors/README.md +219 -0
  17. package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  18. package/node_modules/@colors/colors/examples/safe-string.js +80 -0
  19. package/node_modules/@colors/colors/index.d.ts +136 -0
  20. package/node_modules/@colors/colors/lib/colors.js +211 -0
  21. package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  22. package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  23. package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  24. package/node_modules/@colors/colors/lib/index.js +13 -0
  25. package/node_modules/@colors/colors/lib/maps/america.js +10 -0
  26. package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  27. package/node_modules/@colors/colors/lib/maps/random.js +11 -0
  28. package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  29. package/node_modules/@colors/colors/lib/styles.js +95 -0
  30. package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  31. package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  32. package/node_modules/@colors/colors/package.json +49 -0
  33. package/node_modules/@colors/colors/safe.d.ts +48 -0
  34. package/node_modules/@colors/colors/safe.js +10 -0
  35. package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  36. package/node_modules/@dabh/diagnostics/README.md +16 -16
  37. package/node_modules/@dabh/diagnostics/package.json +9 -9
  38. package/node_modules/async/CHANGELOG.md +13 -0
  39. package/node_modules/async/all.js +74 -9
  40. package/node_modules/async/allLimit.js +3 -3
  41. package/node_modules/async/allSeries.js +3 -3
  42. package/node_modules/async/any.js +75 -9
  43. package/node_modules/async/anyLimit.js +3 -3
  44. package/node_modules/async/anySeries.js +3 -3
  45. package/node_modules/async/applyEach.js +2 -2
  46. package/node_modules/async/applyEachSeries.js +2 -2
  47. package/node_modules/async/asyncify.js +3 -3
  48. package/node_modules/async/auto.js +81 -15
  49. package/node_modules/async/autoInject.js +30 -4
  50. package/node_modules/async/cargo.js +1 -1
  51. package/node_modules/async/cargoQueue.js +1 -1
  52. package/node_modules/async/compose.js +1 -1
  53. package/node_modules/async/concat.js +72 -4
  54. package/node_modules/async/concatLimit.js +3 -3
  55. package/node_modules/async/concatSeries.js +2 -2
  56. package/node_modules/async/detect.js +43 -8
  57. package/node_modules/async/detectLimit.js +3 -3
  58. package/node_modules/async/detectSeries.js +3 -3
  59. package/node_modules/async/dir.js +1 -1
  60. package/node_modules/async/dist/async.js +1379 -168
  61. package/node_modules/async/dist/async.min.js +1 -1
  62. package/node_modules/async/dist/async.mjs +1372 -161
  63. package/node_modules/async/doDuring.js +3 -3
  64. package/node_modules/async/doUntil.js +2 -2
  65. package/node_modules/async/doWhilst.js +3 -3
  66. package/node_modules/async/during.js +3 -3
  67. package/node_modules/async/each.js +69 -28
  68. package/node_modules/async/eachLimit.js +4 -4
  69. package/node_modules/async/eachOf.js +85 -16
  70. package/node_modules/async/eachOfLimit.js +3 -3
  71. package/node_modules/async/eachOfSeries.js +2 -2
  72. package/node_modules/async/eachSeries.js +2 -2
  73. package/node_modules/async/ensureAsync.js +2 -2
  74. package/node_modules/async/every.js +74 -9
  75. package/node_modules/async/everyLimit.js +3 -3
  76. package/node_modules/async/everySeries.js +3 -3
  77. package/node_modules/async/filter.js +49 -9
  78. package/node_modules/async/filterLimit.js +3 -3
  79. package/node_modules/async/filterSeries.js +3 -3
  80. package/node_modules/async/find.js +43 -8
  81. package/node_modules/async/findLimit.js +3 -3
  82. package/node_modules/async/findSeries.js +3 -3
  83. package/node_modules/async/flatMap.js +72 -4
  84. package/node_modules/async/flatMapLimit.js +3 -3
  85. package/node_modules/async/flatMapSeries.js +2 -2
  86. package/node_modules/async/foldl.js +87 -11
  87. package/node_modules/async/foldr.js +2 -2
  88. package/node_modules/async/forEach.js +69 -28
  89. package/node_modules/async/forEachLimit.js +4 -4
  90. package/node_modules/async/forEachOf.js +85 -16
  91. package/node_modules/async/forEachOfLimit.js +3 -3
  92. package/node_modules/async/forEachOfSeries.js +2 -2
  93. package/node_modules/async/forEachSeries.js +2 -2
  94. package/node_modules/async/forever.js +4 -4
  95. package/node_modules/async/groupBy.js +62 -8
  96. package/node_modules/async/groupByLimit.js +3 -3
  97. package/node_modules/async/groupBySeries.js +2 -2
  98. package/node_modules/async/inject.js +87 -11
  99. package/node_modules/async/internal/applyEach.js +2 -2
  100. package/node_modules/async/internal/asyncEachOfLimit.js +1 -1
  101. package/node_modules/async/internal/consoleFunc.js +5 -1
  102. package/node_modules/async/internal/createTester.js +2 -2
  103. package/node_modules/async/internal/eachOfLimit.js +6 -6
  104. package/node_modules/async/internal/filter.js +2 -2
  105. package/node_modules/async/internal/iterator.js +5 -2
  106. package/node_modules/async/internal/map.js +1 -1
  107. package/node_modules/async/internal/parallel.js +3 -3
  108. package/node_modules/async/internal/queue.js +4 -4
  109. package/node_modules/async/internal/reject.js +2 -2
  110. package/node_modules/async/internal/setImmediate.js +6 -2
  111. package/node_modules/async/internal/wrapAsync.js +1 -1
  112. package/node_modules/async/log.js +1 -1
  113. package/node_modules/async/map.js +86 -6
  114. package/node_modules/async/mapLimit.js +3 -3
  115. package/node_modules/async/mapSeries.js +3 -3
  116. package/node_modules/async/mapValues.js +102 -12
  117. package/node_modules/async/mapValuesLimit.js +4 -4
  118. package/node_modules/async/mapValuesSeries.js +1 -1
  119. package/node_modules/async/memoize.js +3 -3
  120. package/node_modules/async/nextTick.js +3 -3
  121. package/node_modules/async/package.json +4 -6
  122. package/node_modules/async/parallel.js +96 -7
  123. package/node_modules/async/parallelLimit.js +2 -2
  124. package/node_modules/async/priorityQueue.js +11 -4
  125. package/node_modules/async/queue.js +4 -4
  126. package/node_modules/async/race.js +3 -3
  127. package/node_modules/async/reduce.js +87 -11
  128. package/node_modules/async/reduceRight.js +2 -2
  129. package/node_modules/async/reflect.js +2 -2
  130. package/node_modules/async/reflectAll.js +1 -1
  131. package/node_modules/async/reject.js +44 -10
  132. package/node_modules/async/rejectLimit.js +3 -3
  133. package/node_modules/async/rejectSeries.js +3 -3
  134. package/node_modules/async/retry.js +2 -2
  135. package/node_modules/async/retryable.js +4 -4
  136. package/node_modules/async/select.js +49 -9
  137. package/node_modules/async/selectLimit.js +3 -3
  138. package/node_modules/async/selectSeries.js +3 -3
  139. package/node_modules/async/seq.js +4 -4
  140. package/node_modules/async/series.js +112 -12
  141. package/node_modules/async/setImmediate.js +1 -1
  142. package/node_modules/async/some.js +75 -9
  143. package/node_modules/async/someLimit.js +3 -3
  144. package/node_modules/async/someSeries.js +3 -3
  145. package/node_modules/async/sortBy.js +121 -19
  146. package/node_modules/async/timeout.js +2 -2
  147. package/node_modules/async/times.js +1 -1
  148. package/node_modules/async/timesLimit.js +3 -3
  149. package/node_modules/async/timesSeries.js +1 -1
  150. package/node_modules/async/transform.js +111 -19
  151. package/node_modules/async/tryEach.js +3 -3
  152. package/node_modules/async/until.js +3 -3
  153. package/node_modules/async/waterfall.js +4 -4
  154. package/node_modules/async/whilst.js +3 -3
  155. package/node_modules/async/wrapSync.js +3 -3
  156. package/node_modules/color/README.md +9 -0
  157. package/node_modules/color/index.js +4 -1
  158. package/node_modules/color/package.json +8 -8
  159. package/node_modules/color-string/README.md +6 -2
  160. package/node_modules/color-string/index.js +21 -13
  161. package/node_modules/color-string/package.json +4 -4
  162. package/node_modules/colorspace/package.json +5 -5
  163. package/node_modules/fecha/dist/fecha.min.js +1 -1
  164. package/node_modules/fecha/dist/fecha.min.js.map +1 -0
  165. package/node_modules/fecha/lib/fecha.d.ts +2 -2
  166. package/node_modules/fecha/lib/fecha.js +35 -18
  167. package/node_modules/fecha/lib/fecha.js.map +1 -0
  168. package/node_modules/fecha/lib/fecha.umd.js +35 -18
  169. package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
  170. package/node_modules/fecha/package.json +9 -10
  171. package/node_modules/fecha/src/fecha.ts +524 -0
  172. package/node_modules/logform/.eslintrc +1 -1
  173. package/node_modules/logform/CHANGELOG.md +24 -0
  174. package/node_modules/logform/README.md +15 -17
  175. package/node_modules/logform/browser.js +3 -1
  176. package/node_modules/logform/cli.js +1 -1
  177. package/node_modules/logform/colorize.js +2 -2
  178. package/node_modules/logform/dist/browser.js +8 -2
  179. package/node_modules/logform/dist/cli.js +2 -2
  180. package/node_modules/logform/dist/colorize.js +5 -5
  181. package/node_modules/logform/dist/errors.js +1 -1
  182. package/node_modules/logform/dist/format.js +9 -5
  183. package/node_modules/logform/dist/index.js +53 -20
  184. package/node_modules/logform/dist/json.js +7 -6
  185. package/node_modules/logform/dist/logstash.js +1 -1
  186. package/node_modules/logform/dist/pad-levels.js +4 -4
  187. package/node_modules/logform/dist/printf.js +1 -1
  188. package/node_modules/logform/dist/simple.js +1 -1
  189. package/node_modules/logform/dist/splat.js +2 -2
  190. package/node_modules/logform/dist/uncolorize.js +1 -1
  191. package/node_modules/logform/errors.js +1 -1
  192. package/node_modules/logform/index.d.ts +36 -0
  193. package/node_modules/logform/index.js +19 -20
  194. package/node_modules/logform/json.js +7 -7
  195. package/node_modules/logform/logstash.js +1 -1
  196. package/node_modules/logform/package.json +10 -9
  197. package/node_modules/logform/simple.js +1 -1
  198. package/node_modules/logform/uncolorize.js +1 -1
  199. package/node_modules/safe-stable-stringify/CHANGELOG.md +75 -0
  200. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  201. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  202. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  203. package/node_modules/safe-stable-stringify/index.d.ts +18 -0
  204. package/node_modules/safe-stable-stringify/index.js +618 -0
  205. package/node_modules/safe-stable-stringify/package.json +69 -0
  206. package/node_modules/safe-stable-stringify/readme.md +170 -0
  207. package/node_modules/safe-stable-stringify/tsconfig.json +22 -0
  208. package/node_modules/winston/LICENSE +18 -18
  209. package/node_modules/winston/README.md +1231 -1230
  210. package/node_modules/winston/dist/winston/common.js +10 -10
  211. package/node_modules/winston/dist/winston/config/index.js +17 -17
  212. package/node_modules/winston/dist/winston/container.js +46 -46
  213. package/node_modules/winston/dist/winston/create-logger.js +28 -24
  214. package/node_modules/winston/dist/winston/exception-handler.js +49 -49
  215. package/node_modules/winston/dist/winston/exception-stream.js +27 -27
  216. package/node_modules/winston/dist/winston/logger.js +152 -138
  217. package/node_modules/winston/dist/winston/profiler.js +22 -22
  218. package/node_modules/winston/dist/winston/rejection-handler.js +54 -54
  219. package/node_modules/winston/dist/winston/tail-file.js +14 -14
  220. package/node_modules/winston/dist/winston/transports/console.js +31 -31
  221. package/node_modules/winston/dist/winston/transports/file.js +101 -101
  222. package/node_modules/winston/dist/winston/transports/http.js +119 -41
  223. package/node_modules/winston/dist/winston/transports/index.js +17 -17
  224. package/node_modules/winston/dist/winston/transports/stream.js +24 -24
  225. package/node_modules/winston/dist/winston.js +91 -97
  226. package/node_modules/winston/index.d.ts +213 -193
  227. package/node_modules/winston/lib/winston/common.js +61 -61
  228. package/node_modules/winston/lib/winston/config/index.d.ts +99 -98
  229. package/node_modules/winston/lib/winston/config/index.js +35 -35
  230. package/node_modules/winston/lib/winston/container.js +114 -114
  231. package/node_modules/winston/lib/winston/create-logger.js +104 -104
  232. package/node_modules/winston/lib/winston/exception-handler.js +245 -245
  233. package/node_modules/winston/lib/winston/exception-stream.js +54 -54
  234. package/node_modules/winston/lib/winston/logger.js +676 -667
  235. package/node_modules/winston/lib/winston/profiler.js +51 -51
  236. package/node_modules/winston/lib/winston/rejection-handler.js +251 -251
  237. package/node_modules/winston/lib/winston/tail-file.js +124 -124
  238. package/node_modules/winston/lib/winston/transports/console.js +117 -117
  239. package/node_modules/winston/lib/winston/transports/file.js +695 -695
  240. package/node_modules/winston/lib/winston/transports/http.js +267 -202
  241. package/node_modules/winston/lib/winston/transports/index.d.ts +103 -100
  242. package/node_modules/winston/lib/winston/transports/index.js +56 -56
  243. package/node_modules/winston/lib/winston/transports/stream.js +63 -63
  244. package/node_modules/winston/lib/winston.js +176 -182
  245. package/node_modules/winston/node_modules/winston-transport/.babelrc +3 -0
  246. package/node_modules/winston/node_modules/winston-transport/.eslintrc +7 -0
  247. package/node_modules/winston/node_modules/winston-transport/.gitattributes +1 -0
  248. package/node_modules/winston/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  249. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  250. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
  251. package/node_modules/winston/node_modules/winston-transport/CHANGELOG.md +126 -0
  252. package/node_modules/winston/node_modules/winston-transport/LICENSE +22 -0
  253. package/node_modules/winston/node_modules/winston-transport/README.md +50 -0
  254. package/node_modules/winston/node_modules/winston-transport/dist/index.js +215 -0
  255. package/node_modules/winston/node_modules/winston-transport/dist/legacy.js +116 -0
  256. package/node_modules/winston/node_modules/winston-transport/index.d.ts +39 -0
  257. package/node_modules/winston/node_modules/winston-transport/index.js +215 -0
  258. package/node_modules/winston/node_modules/winston-transport/legacy.js +119 -0
  259. package/node_modules/winston/node_modules/winston-transport/package.json +56 -0
  260. package/node_modules/winston/package.json +76 -75
  261. package/package.json +8 -6
  262. package/node_modules/@dabh/diagnostics/example.png +0 -0
  263. package/node_modules/color-string/CHANGELOG.md +0 -18
  264. package/node_modules/colorspace/test.js +0 -14
  265. package/node_modules/fecha/CHANGELOG.md +0 -67
  266. package/node_modules/logform/.travis.yml +0 -17
  267. 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.3.3",
5
- "author": "Charlie Robbins <charlie.robbins@gmail.com>",
6
- "maintainers": [
7
- "Jarrett Cruger <jcrugzz@gmail.com>",
8
- "Chris Alderson <chrisalderson@protonmail.com>",
9
- "David Hyde <dabh@stanford.edu>"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/winstonjs/winston.git"
14
- },
15
- "keywords": [
16
- "winston",
17
- "logger",
18
- "logging",
19
- "logs",
20
- "sysadmin",
21
- "bunyan",
22
- "pino",
23
- "loglevel",
24
- "tools",
25
- "json",
26
- "stream"
27
- ],
28
- "dependencies": {
29
- "async": "^3.1.0",
30
- "@dabh/diagnostics": "^2.0.2",
31
- "is-stream": "^2.0.0",
32
- "logform": "^2.2.0",
33
- "one-time": "^1.0.0",
34
- "readable-stream": "^3.4.0",
35
- "stack-trace": "0.0.x",
36
- "triple-beam": "^1.3.0",
37
- "winston-transport": "^4.4.0"
38
- },
39
- "devDependencies": {
40
- "@babel/cli": "^7.10.3",
41
- "@babel/core": "^7.10.3",
42
- "@babel/preset-env": "^7.10.3",
43
- "@types/node": "^14.0.13",
44
- "abstract-winston-transport": "^0.5.1",
45
- "assume": "^2.2.0",
46
- "colors": "^1.4.0",
47
- "cross-spawn-async": "^2.2.5",
48
- "eslint-config-populist": "^4.2.0",
49
- "hock": "^1.4.1",
50
- "mocha": "^8.0.1",
51
- "nyc": "^15.1.0",
52
- "rimraf": "^3.0.2",
53
- "split2": "^3.1.1",
54
- "std-mocks": "^1.0.1",
55
- "through2": "^3.0.1",
56
- "winston-compat": "^0.1.5"
57
- },
58
- "main": "./lib/winston",
59
- "browser": "./dist/winston",
60
- "types": "./index.d.ts",
61
- "scripts": {
62
- "lint": "populist lib/*.js lib/winston/*.js lib/winston/**/*.js",
63
- "pretest": "npm run lint",
64
- "test": "nyc --reporter=text --reporter lcov npm run test:mocha",
65
- "test:mocha": "mocha test/*.test.js test/**/*.test.js --exit",
66
- "build": "./node_modules/.bin/rimraf dist && babel lib -d dist",
67
- "prepublishOnly": "npm run build"
68
- },
69
- "engines": {
70
- "node": ">= 6.4.0"
71
- },
72
- "license": "MIT"
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.3.3.tgz"
75
- ,"_integrity": "sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw=="
76
- ,"_from": "winston@3.3.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.16.1",
3
+ "version": "4.17.1",
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": "^3.0.0",
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.1.0",
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.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,12 +138,14 @@
138
138
  "csv-writer": "^1.2.0",
139
139
  "deasync": "^0.1.24",
140
140
  "dustjs-linkedin": "^3.0.1",
141
- "ejs": "^3.1.6",
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",
@@ -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]'`.
@@ -1,17 +0,0 @@
1
- sudo: false
2
- language: node_js
3
- node_js:
4
- - "10"
5
- - "12"
6
- - "14"
7
-
8
- before_install:
9
- - travis_retry npm install
10
-
11
- script:
12
- - npm test
13
-
14
- notifications:
15
- email:
16
- - travis@nodejitsu.com
17
- irc: "irc.freenode.org#nodejitsu"