@contrast/agent 3.11.23 → 3.11.26

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 (263) 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/changelog.config.js +56 -0
  6. package/lib.asar +0 -0
  7. package/node_modules/@colors/colors/LICENSE +26 -0
  8. package/node_modules/@colors/colors/README.md +219 -0
  9. package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  10. package/node_modules/@colors/colors/examples/safe-string.js +80 -0
  11. package/node_modules/@colors/colors/index.d.ts +136 -0
  12. package/node_modules/@colors/colors/lib/colors.js +211 -0
  13. package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  14. package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  15. package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  16. package/node_modules/@colors/colors/lib/index.js +13 -0
  17. package/node_modules/@colors/colors/lib/maps/america.js +10 -0
  18. package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  19. package/node_modules/@colors/colors/lib/maps/random.js +11 -0
  20. package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  21. package/node_modules/@colors/colors/lib/styles.js +95 -0
  22. package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  23. package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  24. package/node_modules/@colors/colors/package.json +49 -0
  25. package/node_modules/@colors/colors/safe.d.ts +48 -0
  26. package/node_modules/@colors/colors/safe.js +10 -0
  27. package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  28. package/node_modules/@dabh/diagnostics/README.md +16 -16
  29. package/node_modules/@dabh/diagnostics/package.json +9 -9
  30. package/node_modules/async/CHANGELOG.md +13 -0
  31. package/node_modules/async/all.js +74 -9
  32. package/node_modules/async/allLimit.js +3 -3
  33. package/node_modules/async/allSeries.js +3 -3
  34. package/node_modules/async/any.js +75 -9
  35. package/node_modules/async/anyLimit.js +3 -3
  36. package/node_modules/async/anySeries.js +3 -3
  37. package/node_modules/async/applyEach.js +2 -2
  38. package/node_modules/async/applyEachSeries.js +2 -2
  39. package/node_modules/async/asyncify.js +3 -3
  40. package/node_modules/async/auto.js +81 -15
  41. package/node_modules/async/autoInject.js +30 -4
  42. package/node_modules/async/cargo.js +1 -1
  43. package/node_modules/async/cargoQueue.js +1 -1
  44. package/node_modules/async/compose.js +1 -1
  45. package/node_modules/async/concat.js +72 -4
  46. package/node_modules/async/concatLimit.js +3 -3
  47. package/node_modules/async/concatSeries.js +2 -2
  48. package/node_modules/async/detect.js +43 -8
  49. package/node_modules/async/detectLimit.js +3 -3
  50. package/node_modules/async/detectSeries.js +3 -3
  51. package/node_modules/async/dir.js +1 -1
  52. package/node_modules/async/dist/async.js +1379 -168
  53. package/node_modules/async/dist/async.min.js +1 -1
  54. package/node_modules/async/dist/async.mjs +1372 -161
  55. package/node_modules/async/doDuring.js +3 -3
  56. package/node_modules/async/doUntil.js +2 -2
  57. package/node_modules/async/doWhilst.js +3 -3
  58. package/node_modules/async/during.js +3 -3
  59. package/node_modules/async/each.js +69 -28
  60. package/node_modules/async/eachLimit.js +4 -4
  61. package/node_modules/async/eachOf.js +85 -16
  62. package/node_modules/async/eachOfLimit.js +3 -3
  63. package/node_modules/async/eachOfSeries.js +2 -2
  64. package/node_modules/async/eachSeries.js +2 -2
  65. package/node_modules/async/ensureAsync.js +2 -2
  66. package/node_modules/async/every.js +74 -9
  67. package/node_modules/async/everyLimit.js +3 -3
  68. package/node_modules/async/everySeries.js +3 -3
  69. package/node_modules/async/filter.js +49 -9
  70. package/node_modules/async/filterLimit.js +3 -3
  71. package/node_modules/async/filterSeries.js +3 -3
  72. package/node_modules/async/find.js +43 -8
  73. package/node_modules/async/findLimit.js +3 -3
  74. package/node_modules/async/findSeries.js +3 -3
  75. package/node_modules/async/flatMap.js +72 -4
  76. package/node_modules/async/flatMapLimit.js +3 -3
  77. package/node_modules/async/flatMapSeries.js +2 -2
  78. package/node_modules/async/foldl.js +87 -11
  79. package/node_modules/async/foldr.js +2 -2
  80. package/node_modules/async/forEach.js +69 -28
  81. package/node_modules/async/forEachLimit.js +4 -4
  82. package/node_modules/async/forEachOf.js +85 -16
  83. package/node_modules/async/forEachOfLimit.js +3 -3
  84. package/node_modules/async/forEachOfSeries.js +2 -2
  85. package/node_modules/async/forEachSeries.js +2 -2
  86. package/node_modules/async/forever.js +4 -4
  87. package/node_modules/async/groupBy.js +62 -8
  88. package/node_modules/async/groupByLimit.js +3 -3
  89. package/node_modules/async/groupBySeries.js +2 -2
  90. package/node_modules/async/inject.js +87 -11
  91. package/node_modules/async/internal/applyEach.js +2 -2
  92. package/node_modules/async/internal/asyncEachOfLimit.js +1 -1
  93. package/node_modules/async/internal/consoleFunc.js +5 -1
  94. package/node_modules/async/internal/createTester.js +2 -2
  95. package/node_modules/async/internal/eachOfLimit.js +6 -6
  96. package/node_modules/async/internal/filter.js +2 -2
  97. package/node_modules/async/internal/iterator.js +5 -2
  98. package/node_modules/async/internal/map.js +1 -1
  99. package/node_modules/async/internal/parallel.js +3 -3
  100. package/node_modules/async/internal/queue.js +4 -4
  101. package/node_modules/async/internal/reject.js +2 -2
  102. package/node_modules/async/internal/setImmediate.js +6 -2
  103. package/node_modules/async/internal/wrapAsync.js +1 -1
  104. package/node_modules/async/log.js +1 -1
  105. package/node_modules/async/map.js +86 -6
  106. package/node_modules/async/mapLimit.js +3 -3
  107. package/node_modules/async/mapSeries.js +3 -3
  108. package/node_modules/async/mapValues.js +102 -12
  109. package/node_modules/async/mapValuesLimit.js +4 -4
  110. package/node_modules/async/mapValuesSeries.js +1 -1
  111. package/node_modules/async/memoize.js +3 -3
  112. package/node_modules/async/nextTick.js +3 -3
  113. package/node_modules/async/package.json +4 -6
  114. package/node_modules/async/parallel.js +96 -7
  115. package/node_modules/async/parallelLimit.js +2 -2
  116. package/node_modules/async/priorityQueue.js +11 -4
  117. package/node_modules/async/queue.js +4 -4
  118. package/node_modules/async/race.js +3 -3
  119. package/node_modules/async/reduce.js +87 -11
  120. package/node_modules/async/reduceRight.js +2 -2
  121. package/node_modules/async/reflect.js +2 -2
  122. package/node_modules/async/reflectAll.js +1 -1
  123. package/node_modules/async/reject.js +44 -10
  124. package/node_modules/async/rejectLimit.js +3 -3
  125. package/node_modules/async/rejectSeries.js +3 -3
  126. package/node_modules/async/retry.js +2 -2
  127. package/node_modules/async/retryable.js +4 -4
  128. package/node_modules/async/select.js +49 -9
  129. package/node_modules/async/selectLimit.js +3 -3
  130. package/node_modules/async/selectSeries.js +3 -3
  131. package/node_modules/async/seq.js +4 -4
  132. package/node_modules/async/series.js +112 -12
  133. package/node_modules/async/setImmediate.js +1 -1
  134. package/node_modules/async/some.js +75 -9
  135. package/node_modules/async/someLimit.js +3 -3
  136. package/node_modules/async/someSeries.js +3 -3
  137. package/node_modules/async/sortBy.js +121 -19
  138. package/node_modules/async/timeout.js +2 -2
  139. package/node_modules/async/times.js +1 -1
  140. package/node_modules/async/timesLimit.js +3 -3
  141. package/node_modules/async/timesSeries.js +1 -1
  142. package/node_modules/async/transform.js +111 -19
  143. package/node_modules/async/tryEach.js +3 -3
  144. package/node_modules/async/until.js +3 -3
  145. package/node_modules/async/waterfall.js +4 -4
  146. package/node_modules/async/whilst.js +3 -3
  147. package/node_modules/async/wrapSync.js +3 -3
  148. package/node_modules/color/README.md +9 -0
  149. package/node_modules/color/index.js +4 -1
  150. package/node_modules/color/package.json +8 -8
  151. package/node_modules/color-string/README.md +6 -2
  152. package/node_modules/color-string/index.js +21 -13
  153. package/node_modules/color-string/package.json +4 -4
  154. package/node_modules/colorspace/package.json +5 -5
  155. package/node_modules/fecha/dist/fecha.min.js +1 -1
  156. package/node_modules/fecha/dist/fecha.min.js.map +1 -0
  157. package/node_modules/fecha/lib/fecha.d.ts +2 -2
  158. package/node_modules/fecha/lib/fecha.js +35 -18
  159. package/node_modules/fecha/lib/fecha.js.map +1 -0
  160. package/node_modules/fecha/lib/fecha.umd.js +35 -18
  161. package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
  162. package/node_modules/fecha/package.json +9 -10
  163. package/node_modules/fecha/src/fecha.ts +524 -0
  164. package/node_modules/logform/.eslintrc +1 -1
  165. package/node_modules/logform/CHANGELOG.md +24 -0
  166. package/node_modules/logform/README.md +15 -17
  167. package/node_modules/logform/browser.js +3 -1
  168. package/node_modules/logform/cli.js +1 -1
  169. package/node_modules/logform/colorize.js +2 -2
  170. package/node_modules/logform/dist/browser.js +8 -2
  171. package/node_modules/logform/dist/cli.js +2 -2
  172. package/node_modules/logform/dist/colorize.js +5 -5
  173. package/node_modules/logform/dist/errors.js +1 -1
  174. package/node_modules/logform/dist/format.js +9 -5
  175. package/node_modules/logform/dist/index.js +53 -20
  176. package/node_modules/logform/dist/json.js +7 -6
  177. package/node_modules/logform/dist/logstash.js +1 -1
  178. package/node_modules/logform/dist/pad-levels.js +4 -4
  179. package/node_modules/logform/dist/printf.js +1 -1
  180. package/node_modules/logform/dist/simple.js +1 -1
  181. package/node_modules/logform/dist/splat.js +2 -2
  182. package/node_modules/logform/dist/uncolorize.js +1 -1
  183. package/node_modules/logform/errors.js +1 -1
  184. package/node_modules/logform/index.d.ts +36 -0
  185. package/node_modules/logform/index.js +19 -20
  186. package/node_modules/logform/json.js +7 -7
  187. package/node_modules/logform/logstash.js +1 -1
  188. package/node_modules/logform/package.json +10 -9
  189. package/node_modules/logform/simple.js +1 -1
  190. package/node_modules/logform/uncolorize.js +1 -1
  191. package/node_modules/safe-stable-stringify/CHANGELOG.md +75 -0
  192. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  193. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  194. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  195. package/node_modules/safe-stable-stringify/index.d.ts +18 -0
  196. package/node_modules/safe-stable-stringify/index.js +618 -0
  197. package/node_modules/safe-stable-stringify/package.json +69 -0
  198. package/node_modules/safe-stable-stringify/readme.md +170 -0
  199. package/node_modules/safe-stable-stringify/tsconfig.json +22 -0
  200. package/node_modules/unix-dgram/build/Makefile +2 -2
  201. package/node_modules/unix-dgram/build/Release/.deps/Release/obj.target/unix_dgram/src/unix_dgram.o.d +35 -35
  202. package/node_modules/unix-dgram/build/config.gypi +8 -8
  203. package/node_modules/unix-dgram/build/unix_dgram.target.mk +14 -14
  204. package/node_modules/winston/LICENSE +18 -18
  205. package/node_modules/winston/README.md +1231 -1230
  206. package/node_modules/winston/dist/winston/common.js +10 -10
  207. package/node_modules/winston/dist/winston/config/index.js +17 -17
  208. package/node_modules/winston/dist/winston/container.js +46 -46
  209. package/node_modules/winston/dist/winston/create-logger.js +28 -24
  210. package/node_modules/winston/dist/winston/exception-handler.js +49 -49
  211. package/node_modules/winston/dist/winston/exception-stream.js +27 -27
  212. package/node_modules/winston/dist/winston/logger.js +152 -138
  213. package/node_modules/winston/dist/winston/profiler.js +22 -22
  214. package/node_modules/winston/dist/winston/rejection-handler.js +54 -54
  215. package/node_modules/winston/dist/winston/tail-file.js +14 -14
  216. package/node_modules/winston/dist/winston/transports/console.js +31 -31
  217. package/node_modules/winston/dist/winston/transports/file.js +101 -101
  218. package/node_modules/winston/dist/winston/transports/http.js +119 -41
  219. package/node_modules/winston/dist/winston/transports/index.js +17 -17
  220. package/node_modules/winston/dist/winston/transports/stream.js +24 -24
  221. package/node_modules/winston/dist/winston.js +91 -97
  222. package/node_modules/winston/index.d.ts +213 -193
  223. package/node_modules/winston/lib/winston/common.js +61 -61
  224. package/node_modules/winston/lib/winston/config/index.d.ts +99 -98
  225. package/node_modules/winston/lib/winston/config/index.js +35 -35
  226. package/node_modules/winston/lib/winston/container.js +114 -114
  227. package/node_modules/winston/lib/winston/create-logger.js +104 -104
  228. package/node_modules/winston/lib/winston/exception-handler.js +245 -245
  229. package/node_modules/winston/lib/winston/exception-stream.js +54 -54
  230. package/node_modules/winston/lib/winston/logger.js +676 -667
  231. package/node_modules/winston/lib/winston/profiler.js +51 -51
  232. package/node_modules/winston/lib/winston/rejection-handler.js +251 -251
  233. package/node_modules/winston/lib/winston/tail-file.js +124 -124
  234. package/node_modules/winston/lib/winston/transports/console.js +117 -117
  235. package/node_modules/winston/lib/winston/transports/file.js +695 -695
  236. package/node_modules/winston/lib/winston/transports/http.js +267 -202
  237. package/node_modules/winston/lib/winston/transports/index.d.ts +103 -100
  238. package/node_modules/winston/lib/winston/transports/index.js +56 -56
  239. package/node_modules/winston/lib/winston/transports/stream.js +63 -63
  240. package/node_modules/winston/lib/winston.js +176 -182
  241. package/node_modules/winston/node_modules/winston-transport/.babelrc +3 -0
  242. package/node_modules/winston/node_modules/winston-transport/.eslintrc +7 -0
  243. package/node_modules/winston/node_modules/winston-transport/.gitattributes +1 -0
  244. package/node_modules/winston/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  245. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  246. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
  247. package/node_modules/winston/node_modules/winston-transport/CHANGELOG.md +126 -0
  248. package/node_modules/winston/node_modules/winston-transport/LICENSE +22 -0
  249. package/node_modules/winston/node_modules/winston-transport/README.md +50 -0
  250. package/node_modules/winston/node_modules/winston-transport/dist/index.js +215 -0
  251. package/node_modules/winston/node_modules/winston-transport/dist/legacy.js +116 -0
  252. package/node_modules/winston/node_modules/winston-transport/index.d.ts +39 -0
  253. package/node_modules/winston/node_modules/winston-transport/index.js +215 -0
  254. package/node_modules/winston/node_modules/winston-transport/legacy.js +119 -0
  255. package/node_modules/winston/node_modules/winston-transport/package.json +56 -0
  256. package/node_modules/winston/package.json +76 -75
  257. package/package.json +4 -3
  258. package/node_modules/@dabh/diagnostics/example.png +0 -0
  259. package/node_modules/color-string/CHANGELOG.md +0 -18
  260. package/node_modules/colorspace/test.js +0 -14
  261. package/node_modules/fecha/CHANGELOG.md +0 -67
  262. package/node_modules/logform/.travis.yml +0 -17
  263. package/node_modules/winston/CHANGELOG.md +0 -560
@@ -0,0 +1,170 @@
1
+ # safe-stable-stringify
2
+
3
+ Safe, deterministic and fast serialization alternative to [JSON.stringify][]. Zero dependencies. ESM and CJS. 100% coverage.
4
+
5
+ Gracefully handles circular structures and bigint instead of throwing.
6
+
7
+ Optional custom circular values and deterministic behavior.
8
+
9
+ ## stringify(value[, replacer[, space]])
10
+
11
+ The same as [JSON.stringify][].
12
+
13
+ * `value` {any}
14
+ * `replacer` {string[]|function|null}
15
+ * `space` {number|string}
16
+ * Returns: {string}
17
+
18
+ ```js
19
+ const stringify = require('safe-stable-stringify')
20
+
21
+ const bigint = { a: 0, c: 2n, b: 1 }
22
+
23
+ stringify(bigint)
24
+ // '{"a":0,"b":1,"c":2}'
25
+ JSON.stringify(bigint)
26
+ // TypeError: Do not know how to serialize a BigInt
27
+
28
+ const circular = { b: 1, a: 0 }
29
+ circular.circular = circular
30
+
31
+ stringify(circular)
32
+ // '{"a":0,"b":1,"circular":"[Circular]"}'
33
+ JSON.stringify(circular)
34
+ // TypeError: Converting circular structure to JSON
35
+
36
+ stringify(circular, ['a', 'b'], 2)
37
+ // {
38
+ // "a": 0,
39
+ // "b": 1
40
+ // }
41
+ ```
42
+
43
+ ## stringify.configure(options)
44
+
45
+ * `bigint` {boolean} If `true`, bigint values are converted to a number. Otherwise
46
+ they are ignored. **Default:** `true`.
47
+ * `circularValue` {string|null|undefined|ErrorConstructor} Defines the value for
48
+ circular references. Set to `undefined`, circular properties are not
49
+ serialized (array entries are replaced with `null`). Set to `Error`, to throw
50
+ on circular references. **Default:** `[Circular]`.
51
+ * `deterministic` {boolean} If `true`, guarantee a deterministic key order
52
+ instead of relying on the insertion order. **Default:** `true`.
53
+ * `maximumBreadth` {number} Maximum number of entries to serialize per object
54
+ (at least one). The serialized output contains information about how many
55
+ entries have not been serialized. Ignored properties are counted as well
56
+ (e.g., properties with symbol values). Using the array replacer overrules this
57
+ option. **Default:** `Infinity`
58
+ * `maximumDepth` {number} Maximum number of object nesting levels (at least 1)
59
+ that will be serialized. Objects at the maximum level are serialized as
60
+ `'[Object]'` and arrays as `'[Array]'`. **Default:** `Infinity`
61
+ * Returns: {function} A stringify function with the options applied.
62
+
63
+ ```js
64
+ import { configure } from 'safe-stable-stringify'
65
+
66
+ const stringify = configure({
67
+ bigint: true,
68
+ circularValue: 'Magic circle!',
69
+ deterministic: false,
70
+ maximumDepth: 1,
71
+ maximumBreadth: 4
72
+ })
73
+
74
+ const circular = {
75
+ bigint: 999_999_999_999_999_999n,
76
+ typed: new Uint8Array(3),
77
+ deterministic: "I don't think so",
78
+ }
79
+ circular.circular = circular
80
+ circular.ignored = true
81
+ circular.alsoIgnored = 'Yes!'
82
+
83
+ const stringified = stringify(circular, null, 4)
84
+
85
+ console.log(stringified)
86
+ // {
87
+ // "bigint": 999999999999999999,
88
+ // "typed": "[Object]",
89
+ // "deterministic": "I don't think so",
90
+ // "circular": "Magic circle!",
91
+ // "...": "2 items not stringified"
92
+ // }
93
+
94
+ const throwOnCircular = configure({
95
+ circularValue: Error
96
+ })
97
+
98
+ throwOnCircular(circular);
99
+ // TypeError: Converting circular structure to JSON
100
+ ```
101
+
102
+ ## Differences to JSON.stringify
103
+
104
+ 1. _Circular values_ are replaced with the string `[Circular]` (the value may be changed).
105
+ 1. _Object keys_ are sorted instead of using the insertion order (it is possible to deactivate this).
106
+ 1. _BigInt_ values are stringified as regular number instead of throwing a TypeError.
107
+ 1. _Boxed primitives_ (e.g., `Number(5)`) are not unboxed and are handled as
108
+ regular object.
109
+
110
+ Those are the only differences to `JSON.stringify()`. This is a side effect free
111
+ variant and [`toJSON`][], [`replacer`][] and the [`spacer`][] work the same as
112
+ with `JSON.stringify()`.
113
+
114
+ ## Performance / Benchmarks
115
+
116
+ Currently this is by far the fastest known stable (deterministic) stringify
117
+ implementation. This is especially important for big objects and TypedArrays.
118
+
119
+ (Dell Precision 5540, i7-9850H CPU @ 2.60GHz, Node.js 16.11.1)
120
+
121
+ ```md
122
+ simple: simple object x 3,463,894 ops/sec ±0.44% (98 runs sampled)
123
+ simple: circular x 1,236,007 ops/sec ±0.46% (99 runs sampled)
124
+ simple: deep x 18,942 ops/sec ±0.41% (93 runs sampled)
125
+ simple: deep circular x 18,690 ops/sec ±0.72% (96 runs sampled)
126
+
127
+ replacer: simple object x 2,664,940 ops/sec ±0.31% (98 runs sampled)
128
+ replacer: circular x 1,015,981 ops/sec ±0.09% (99 runs sampled)
129
+ replacer: deep x 17,328 ops/sec ±0.38% (97 runs sampled)
130
+ replacer: deep circular x 17,071 ops/sec ±0.21% (98 runs sampled)
131
+
132
+ array: simple object x 3,869,608 ops/sec ±0.22% (98 runs sampled)
133
+ array: circular x 3,853,943 ops/sec ±0.45% (96 runs sampled)
134
+ array: deep x 3,563,227 ops/sec ±0.20% (100 runs sampled)
135
+ array: deep circular x 3,286,475 ops/sec ±0.07% (100 runs sampled)
136
+
137
+ indentation: simple object x 2,183,162 ops/sec ±0.66% (97 runs sampled)
138
+ indentation: circular x 872,538 ops/sec ±0.57% (98 runs sampled)
139
+ indentation: deep x 16,795 ops/sec ±0.48% (93 runs sampled)
140
+ indentation: deep circular x 16,443 ops/sec ±0.40% (97 runs sampled)
141
+ ```
142
+
143
+ Comparing `safe-stable-stringify` with known alternatives:
144
+
145
+ ```md
146
+ fast-json-stable-stringify x 18,765 ops/sec ±0.71% (94 runs sampled)
147
+ json-stable-stringify x 13,870 ops/sec ±0.72% (94 runs sampled)
148
+ fast-stable-stringify x 21,343 ops/sec ±0.33% (95 runs sampled)
149
+ faster-stable-stringify x 17,707 ops/sec ±0.44% (97 runs sampled)
150
+ json-stringify-deterministic x 11,208 ops/sec ±0.57% (98 runs sampled)
151
+ fast-safe-stringify x 21,460 ops/sec ±0.75% (99 runs sampled)
152
+ this x 30,367 ops/sec ±0.39% (96 runs sampled)
153
+
154
+ The fastest is this
155
+ ```
156
+
157
+ The `fast-safe-stringify` comparison uses the modules stable implementation.
158
+
159
+ ## Acknowledgements
160
+
161
+ Sponsored by [MaibornWolff](https://www.maibornwolff.de/) and [nearForm](http://nearform.com)
162
+
163
+ ## License
164
+
165
+ MIT
166
+
167
+ [`replacer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The%20replacer%20parameter
168
+ [`spacer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The%20space%20argument
169
+ [`toJSON`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior
170
+ [JSON.stringify]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": "./",
4
+ "allowJs": true,
5
+ "checkJs": true,
6
+ "sourceMap": false,
7
+ "declaration": false,
8
+ "noEmit": true,
9
+ "downlevelIteration": false,
10
+ "experimentalDecorators": false,
11
+ "moduleResolution": "node",
12
+ "importHelpers": false,
13
+ "target": "esnext",
14
+ "module": "CommonJS",
15
+ "lib": [
16
+ "esnext",
17
+ "dom"
18
+ ]
19
+ },
20
+ "include": ["**/*.js", "**/*.ts"],
21
+ "exclude": ["compare.js", "benchmark.js", "./coverage"]
22
+ }
@@ -308,8 +308,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
308
308
  endif
309
309
 
310
310
  quiet_cmd_regen_makefile = ACTION Regenerating $@
311
- cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/12.22.11/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/12.22.11" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/12.22.11/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/12.22.11/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram/build/config.gypi -I/opt/hostedtoolcache/node/12.22.11/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/12.22.11/include/node/common.gypi "--toplevel-dir=." binding.gyp
312
- Makefile: $(srcdir)/../../../../../../../../opt/hostedtoolcache/node/12.22.11/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../../.cache/node-gyp/12.22.11/include/node/common.gypi
311
+ cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/12.22.12" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/12.22.12/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram/build/config.gypi -I/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/12.22.12/include/node/common.gypi "--toplevel-dir=." binding.gyp
312
+ Makefile: $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../../../.cache/node-gyp/12.22.12/include/node/common.gypi
313
313
  $(call do_cmd,regen_makefile)
314
314
 
315
315
  # "all" is a concatenation of the "all" targets from all the included
@@ -1,23 +1,23 @@
1
- cmd_Release/obj.target/unix_dgram/src/unix_dgram.o := g++ '-DNODE_GYP_MODULE_NAME=unix_dgram' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/home/runner/.cache/node-gyp/12.22.11/include/node -I/home/runner/.cache/node-gyp/12.22.11/src -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/config -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/openssl/include -I/home/runner/.cache/node-gyp/12.22.11/deps/uv/include -I/home/runner/.cache/node-gyp/12.22.11/deps/zlib -I/home/runner/.cache/node-gyp/12.22.11/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/unix_dgram/src/unix_dgram.o.d.raw -c -o Release/obj.target/unix_dgram/src/unix_dgram.o ../src/unix_dgram.cc
1
+ cmd_Release/obj.target/unix_dgram/src/unix_dgram.o := g++ '-DNODE_GYP_MODULE_NAME=unix_dgram' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/home/runner/.cache/node-gyp/12.22.12/include/node -I/home/runner/.cache/node-gyp/12.22.12/src -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/config -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/openssl/include -I/home/runner/.cache/node-gyp/12.22.12/deps/uv/include -I/home/runner/.cache/node-gyp/12.22.12/deps/zlib -I/home/runner/.cache/node-gyp/12.22.12/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/unix_dgram/src/unix_dgram.o.d.raw -c -o Release/obj.target/unix_dgram/src/unix_dgram.o ../src/unix_dgram.cc
2
2
  Release/obj.target/unix_dgram/src/unix_dgram.o: ../src/unix_dgram.cc \
3
3
  ../../nan/nan.h \
4
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_version.h \
5
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv.h \
6
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/errno.h \
7
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/version.h \
8
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/unix.h \
9
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/threadpool.h \
10
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/linux.h \
11
- /home/runner/.cache/node-gyp/12.22.11/include/node/node.h \
12
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8.h \
13
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-internal.h \
14
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-version.h \
15
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8config.h \
16
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-platform.h \
17
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_version.h \
18
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_buffer.h \
19
- /home/runner/.cache/node-gyp/12.22.11/include/node/node.h \
20
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_object_wrap.h \
4
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_version.h \
5
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv.h \
6
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/errno.h \
7
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/version.h \
8
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/unix.h \
9
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/threadpool.h \
10
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/linux.h \
11
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node.h \
12
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8.h \
13
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-internal.h \
14
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-version.h \
15
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8config.h \
16
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-platform.h \
17
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_version.h \
18
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_buffer.h \
19
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node.h \
20
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_object_wrap.h \
21
21
  ../../nan/nan_callbacks.h ../../nan/nan_callbacks_12_inl.h \
22
22
  ../../nan/nan_maybe_43_inl.h ../../nan/nan_converters.h \
23
23
  ../../nan/nan_converters_43_inl.h ../../nan/nan_new.h \
@@ -26,23 +26,23 @@ Release/obj.target/unix_dgram/src/unix_dgram.o: ../src/unix_dgram.cc \
26
26
  ../../nan/nan_typedarray_contents.h ../../nan/nan_json.h
27
27
  ../src/unix_dgram.cc:
28
28
  ../../nan/nan.h:
29
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_version.h:
30
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv.h:
31
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/errno.h:
32
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/version.h:
33
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/unix.h:
34
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/threadpool.h:
35
- /home/runner/.cache/node-gyp/12.22.11/include/node/uv/linux.h:
36
- /home/runner/.cache/node-gyp/12.22.11/include/node/node.h:
37
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8.h:
38
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-internal.h:
39
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-version.h:
40
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8config.h:
41
- /home/runner/.cache/node-gyp/12.22.11/include/node/v8-platform.h:
42
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_version.h:
43
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_buffer.h:
44
- /home/runner/.cache/node-gyp/12.22.11/include/node/node.h:
45
- /home/runner/.cache/node-gyp/12.22.11/include/node/node_object_wrap.h:
29
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_version.h:
30
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv.h:
31
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/errno.h:
32
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/version.h:
33
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/unix.h:
34
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/threadpool.h:
35
+ /home/runner/.cache/node-gyp/12.22.12/include/node/uv/linux.h:
36
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node.h:
37
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8.h:
38
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-internal.h:
39
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-version.h:
40
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8config.h:
41
+ /home/runner/.cache/node-gyp/12.22.12/include/node/v8-platform.h:
42
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_version.h:
43
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_buffer.h:
44
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node.h:
45
+ /home/runner/.cache/node-gyp/12.22.12/include/node/node_object_wrap.h:
46
46
  ../../nan/nan_callbacks.h:
47
47
  ../../nan/nan_callbacks_12_inl.h:
48
48
  ../../nan/nan_maybe_43_inl.h:
@@ -76,7 +76,7 @@
76
76
  "v8_use_siphash": 1,
77
77
  "v8_use_snapshot": 1,
78
78
  "want_separate_host_toolset": 0,
79
- "nodedir": "/home/runner/.cache/node-gyp/12.22.11",
79
+ "nodedir": "/home/runner/.cache/node-gyp/12.22.12",
80
80
  "standalone_static_library": 1,
81
81
  "dmode": "493",
82
82
  "cache_lock_stale": "60000",
@@ -84,7 +84,7 @@
84
84
  "legacy_bundling": "",
85
85
  "sign_git_tag": "",
86
86
  "fmode": "420",
87
- "user_agent": "npm/6.14.16 node/v12.22.11 linux x64 ci/github-actions",
87
+ "user_agent": "npm/6.14.16 node/v12.22.12 linux x64 ci/github-actions",
88
88
  "always_auth": "",
89
89
  "bin_links": "true",
90
90
  "key": "",
@@ -126,7 +126,7 @@
126
126
  "progress": "",
127
127
  "https_proxy": "",
128
128
  "save_prod": "",
129
- "npm_session": "1fbb7ebba849cd4d",
129
+ "npm_session": "f8d366e04e84ebce",
130
130
  "audit": "true",
131
131
  "cidr": "",
132
132
  "onload_script": "",
@@ -137,7 +137,7 @@
137
137
  "shell": "bash",
138
138
  "dry_run": "",
139
139
  "format_package_lock": "true",
140
- "prefix": "/opt/hostedtoolcache/node/12.22.11/x64",
140
+ "prefix": "/opt/hostedtoolcache/node/12.22.12/x64",
141
141
  "scope": "",
142
142
  "browser": "",
143
143
  "cache_lock_wait": "10000",
@@ -154,7 +154,7 @@
154
154
  "version": "",
155
155
  "local_address": "",
156
156
  "viewer": "man",
157
- "node_gyp": "/opt/hostedtoolcache/node/12.22.11/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",
157
+ "node_gyp": "/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",
158
158
  "audit_level": "low",
159
159
  "prefer_offline": "",
160
160
  "color": "true",
@@ -183,7 +183,7 @@
183
183
  "unsafe_perm": "true",
184
184
  "update_notifier": "true",
185
185
  "auth_type": "legacy",
186
- "node_version": "12.22.11",
186
+ "node_version": "12.22.12",
187
187
  "tag": "latest",
188
188
  "git_tag_version": "true",
189
189
  "commit_hooks": "true",
@@ -193,10 +193,10 @@
193
193
  "save_exact": "",
194
194
  "strict_ssl": "true",
195
195
  "dev": "",
196
- "globalconfig": "/opt/hostedtoolcache/node/12.22.11/x64/etc/npmrc",
196
+ "globalconfig": "/opt/hostedtoolcache/node/12.22.12/x64/etc/npmrc",
197
197
  "init_module": "/home/runner/.npm-init.js",
198
198
  "parseable": "",
199
- "globalignorefile": "/opt/hostedtoolcache/node/12.22.11/x64/etc/npmignore",
199
+ "globalignorefile": "/opt/hostedtoolcache/node/12.22.12/x64/etc/npmignore",
200
200
  "cache_lock_retries": "10",
201
201
  "searchstaleness": "900",
202
202
  "log": "",
@@ -40,13 +40,13 @@ CFLAGS_CC_Debug := \
40
40
  -std=gnu++1y
41
41
 
42
42
  INCS_Debug := \
43
- -I/home/runner/.cache/node-gyp/12.22.11/include/node \
44
- -I/home/runner/.cache/node-gyp/12.22.11/src \
45
- -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/config \
46
- -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/openssl/include \
47
- -I/home/runner/.cache/node-gyp/12.22.11/deps/uv/include \
48
- -I/home/runner/.cache/node-gyp/12.22.11/deps/zlib \
49
- -I/home/runner/.cache/node-gyp/12.22.11/deps/v8/include \
43
+ -I/home/runner/.cache/node-gyp/12.22.12/include/node \
44
+ -I/home/runner/.cache/node-gyp/12.22.12/src \
45
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/config \
46
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/openssl/include \
47
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/uv/include \
48
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/zlib \
49
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/v8/include \
50
50
  -I$(srcdir)/../nan
51
51
 
52
52
  DEFS_Release := \
@@ -84,13 +84,13 @@ CFLAGS_CC_Release := \
84
84
  -std=gnu++1y
85
85
 
86
86
  INCS_Release := \
87
- -I/home/runner/.cache/node-gyp/12.22.11/include/node \
88
- -I/home/runner/.cache/node-gyp/12.22.11/src \
89
- -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/config \
90
- -I/home/runner/.cache/node-gyp/12.22.11/deps/openssl/openssl/include \
91
- -I/home/runner/.cache/node-gyp/12.22.11/deps/uv/include \
92
- -I/home/runner/.cache/node-gyp/12.22.11/deps/zlib \
93
- -I/home/runner/.cache/node-gyp/12.22.11/deps/v8/include \
87
+ -I/home/runner/.cache/node-gyp/12.22.12/include/node \
88
+ -I/home/runner/.cache/node-gyp/12.22.12/src \
89
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/config \
90
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/openssl/openssl/include \
91
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/uv/include \
92
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/zlib \
93
+ -I/home/runner/.cache/node-gyp/12.22.12/deps/v8/include \
94
94
  -I$(srcdir)/../nan
95
95
 
96
96
  OBJS := \
@@ -1,19 +1,19 @@
1
- Copyright (c) 2010 Charlie Robbins
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ Copyright (c) 2010 Charlie Robbins
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  THE SOFTWARE.