@contrast/agent-bundle 5.40.0 → 5.42.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.
Files changed (290) hide show
  1. package/node_modules/@contrast/agent/package.json +12 -11
  2. package/node_modules/@contrast/agent-swc-plugin/index.js +9 -3
  3. package/node_modules/@contrast/agent-swc-plugin/methods.js +15 -1
  4. package/node_modules/@contrast/agent-swc-plugin/package.json +5 -8
  5. package/node_modules/@contrast/agent-swc-plugin/rewriter.wasm +0 -0
  6. package/node_modules/@contrast/agentify/lib/index.js +2 -2
  7. package/node_modules/@contrast/agentify/package.json +15 -14
  8. package/node_modules/@contrast/architecture-components/package.json +5 -5
  9. package/node_modules/@contrast/assess/lib/dataflow/propagation/install/util-format.js +44 -21
  10. package/node_modules/@contrast/assess/lib/dataflow/sources/install/body-parser.js +1 -1
  11. package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-bodyparsers.js +3 -1
  12. package/node_modules/@contrast/assess/lib/dataflow/sources/install/qs6.js +5 -5
  13. package/node_modules/@contrast/assess/lib/dataflow/sources/install/querystring.js +2 -1
  14. package/node_modules/@contrast/assess/lib/index.d.ts +0 -1
  15. package/node_modules/@contrast/assess/lib/make-source-context.js +7 -37
  16. package/node_modules/@contrast/assess/lib/sampler/common.js +7 -11
  17. package/node_modules/@contrast/assess/package.json +12 -11
  18. package/node_modules/@contrast/common/lib/types.d.ts +7 -1
  19. package/node_modules/@contrast/common/package.json +1 -1
  20. package/node_modules/@contrast/config/lib/common.js +1 -1
  21. package/node_modules/@contrast/config/lib/config.js +49 -27
  22. package/node_modules/@contrast/config/lib/index.d.ts +2 -2
  23. package/node_modules/@contrast/config/lib/options.js +4 -4
  24. package/node_modules/@contrast/config/package.json +4 -3
  25. package/node_modules/@contrast/core/lib/sensitive-data-masking/protect-listener.js +15 -15
  26. package/node_modules/@contrast/core/package.json +6 -6
  27. package/node_modules/@contrast/deadzones/package.json +5 -5
  28. package/node_modules/@contrast/dep-hooks/package.json +3 -3
  29. package/node_modules/@contrast/esm-hooks/package.json +6 -6
  30. package/node_modules/@contrast/instrumentation/lib/index.js +0 -1
  31. package/node_modules/@contrast/instrumentation/package.json +5 -5
  32. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +298 -148
  33. package/node_modules/@contrast/library-analysis/package.json +4 -4
  34. package/node_modules/@contrast/logger/lib/serializers.js +2 -2
  35. package/node_modules/@contrast/logger/package.json +3 -3
  36. package/node_modules/@contrast/metrics/package.json +6 -6
  37. package/node_modules/@contrast/patcher/package.json +2 -2
  38. package/node_modules/@contrast/protect/lib/get-source-context.js +3 -1
  39. package/node_modules/@contrast/protect/lib/index.js +6 -1
  40. package/node_modules/@contrast/protect/lib/input-analysis/handlers.js +7 -9
  41. package/node_modules/@contrast/protect/lib/input-analysis/install/http.js +18 -19
  42. package/node_modules/@contrast/protect/lib/input-analysis/install/qs6.js +18 -17
  43. package/node_modules/@contrast/protect/lib/input-analysis/install/universal-cookie4.js +2 -3
  44. package/node_modules/@contrast/protect/lib/make-source-context.js +22 -66
  45. package/node_modules/@contrast/protect/lib/semantic-analysis/handlers.js +73 -72
  46. package/node_modules/@contrast/protect/package.json +11 -11
  47. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/index.js +7 -7
  48. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.d.ts +3 -3
  49. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.js +24 -21
  50. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.d.ts +11 -11
  51. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +76 -86
  52. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.d.ts +1 -2
  53. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.js +8 -2
  54. package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.d.ts +2 -2
  55. package/node_modules/@contrast/reporter/lib/reporters/security-logger/index.js +22 -20
  56. package/node_modules/@contrast/reporter/package.json +7 -7
  57. package/node_modules/@contrast/rewriter/lib/index.js +2 -2
  58. package/node_modules/@contrast/rewriter/package.json +6 -6
  59. package/node_modules/@contrast/route-coverage/lib/index.js +1 -9
  60. package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +17 -19
  61. package/node_modules/@contrast/route-coverage/lib/install/hapi.js +9 -2
  62. package/node_modules/@contrast/route-coverage/package.json +8 -8
  63. package/node_modules/@contrast/scopes/package.json +5 -5
  64. package/node_modules/@contrast/sec-obs/lib/traces/http.js +2 -2
  65. package/node_modules/@contrast/sec-obs/lib/traces/http.test.js +17 -0
  66. package/node_modules/@contrast/sec-obs/lib/traces/outbound-service-call.js +2 -2
  67. package/node_modules/@contrast/sec-obs/lib/traces/outbound-service-call.test.js +17 -0
  68. package/node_modules/@contrast/sec-obs/package.json +9 -9
  69. package/node_modules/@contrast/sources/lib/index.js +109 -0
  70. package/node_modules/@contrast/sources/lib/index.test.js +120 -0
  71. package/node_modules/@contrast/{route-coverage/lib/normalized-url-mapper.js → sources/lib/normalized-uri-mapper.js} +10 -3
  72. package/node_modules/@contrast/sources/lib/normalized-uri-mapper.test.js +59 -0
  73. package/node_modules/@contrast/{sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/constants.js → sources/lib/req-data.js} +0 -6
  74. package/node_modules/@contrast/sources/lib/source-info.js +183 -0
  75. package/node_modules/@contrast/sources/lib/source-info.test.js +68 -0
  76. package/node_modules/@contrast/sources/package.json +16 -0
  77. package/node_modules/@contrast/telemetry/package.json +6 -6
  78. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +2831 -77
  79. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +2831 -77
  80. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js.map +1 -1
  81. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +415 -98
  82. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +415 -98
  83. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js.map +1 -1
  84. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +106 -0
  85. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +106 -0
  86. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js.map +1 -1
  87. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +1 -1
  88. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +1 -1
  89. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js.map +1 -1
  90. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +2831 -77
  91. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +2831 -77
  92. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js.map +1 -1
  93. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +415 -98
  94. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +415 -98
  95. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js.map +1 -1
  96. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +106 -0
  97. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +106 -0
  98. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js.map +1 -1
  99. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +1 -1
  100. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +1 -1
  101. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js.map +1 -1
  102. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +2831 -77
  103. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +2858 -103
  104. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js.map +1 -1
  105. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +415 -98
  106. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +420 -102
  107. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js.map +1 -1
  108. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +106 -0
  109. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +106 -0
  110. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js.map +1 -1
  111. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +1 -1
  112. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +1 -1
  113. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js.map +1 -1
  114. package/node_modules/@opentelemetry/semantic-conventions/package.json +3 -3
  115. package/node_modules/@swc/types/index.d.ts +3 -2
  116. package/node_modules/@swc/types/package.json +1 -1
  117. package/node_modules/@types/node/README.md +2 -2
  118. package/node_modules/@types/node/crypto.d.ts +17 -1
  119. package/node_modules/@types/node/fs/promises.d.ts +7 -3
  120. package/node_modules/@types/node/fs.d.ts +11 -1
  121. package/node_modules/@types/node/http.d.ts +4 -19
  122. package/node_modules/@types/node/http2.d.ts +13 -11
  123. package/node_modules/@types/node/inspector.d.ts +163 -6
  124. package/node_modules/@types/node/module.d.ts +24 -0
  125. package/node_modules/@types/node/package.json +4 -89
  126. package/node_modules/@types/node/perf_hooks.d.ts +14 -0
  127. package/node_modules/@types/node/repl.d.ts +11 -1
  128. package/node_modules/@types/node/sqlite.d.ts +0 -1
  129. package/node_modules/@types/node/stream/web.d.ts +4 -0
  130. package/node_modules/@types/node/stream.d.ts +17 -6
  131. package/node_modules/@types/node/test.d.ts +16 -1
  132. package/node_modules/@types/node/timers.d.ts +0 -2
  133. package/node_modules/@types/node/url.d.ts +1 -1
  134. package/node_modules/@types/node/util.d.ts +6 -2
  135. package/node_modules/@types/node/worker_threads.d.ts +12 -0
  136. package/node_modules/@types/node/zlib.d.ts +8 -2
  137. package/node_modules/axios/CHANGELOG.md +17 -0
  138. package/node_modules/axios/README.md +1 -4
  139. package/node_modules/axios/dist/axios.js +39 -5
  140. package/node_modules/axios/dist/axios.js.map +1 -1
  141. package/node_modules/axios/dist/axios.min.js +2 -2
  142. package/node_modules/axios/dist/axios.min.js.map +1 -1
  143. package/node_modules/axios/dist/browser/axios.cjs +46 -9
  144. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  145. package/node_modules/axios/dist/esm/axios.js +46 -9
  146. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  147. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  148. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  149. package/node_modules/axios/dist/node/axios.cjs +46 -9
  150. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  151. package/node_modules/axios/index.d.cts +13 -2
  152. package/node_modules/axios/lib/core/Axios.js +2 -2
  153. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  154. package/node_modules/axios/lib/env/data.js +1 -1
  155. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  156. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  157. package/node_modules/axios/lib/utils.js +36 -0
  158. package/node_modules/axios/package.json +5 -5
  159. package/node_modules/deepmerge/.editorconfig +7 -0
  160. package/node_modules/deepmerge/.eslintcache +1 -0
  161. package/node_modules/deepmerge/changelog.md +167 -0
  162. package/node_modules/deepmerge/dist/cjs.js +133 -0
  163. package/node_modules/deepmerge/dist/umd.js +139 -0
  164. package/node_modules/deepmerge/index.d.ts +20 -0
  165. package/node_modules/deepmerge/index.js +106 -0
  166. package/node_modules/deepmerge/license.txt +21 -0
  167. package/node_modules/deepmerge/package.json +42 -0
  168. package/node_modules/deepmerge/readme.md +264 -0
  169. package/node_modules/deepmerge/rollup.config.js +22 -0
  170. package/node_modules/follow-redirects/package.json +1 -1
  171. package/node_modules/form-data/CHANGELOG.md +601 -0
  172. package/node_modules/form-data/{Readme.md → README.md} +4 -4
  173. package/node_modules/form-data/lib/form_data.js +2 -6
  174. package/node_modules/form-data/package.json +22 -6
  175. package/node_modules/nan/.github/workflows/ci.yml +8 -10
  176. package/node_modules/nan/.pre-commit-config.yaml +8 -0
  177. package/node_modules/nan/CHANGELOG.md +5 -1
  178. package/node_modules/nan/README.md +4 -4
  179. package/node_modules/nan/nan.h +16 -12
  180. package/node_modules/nan/nan_callbacks.h +13 -0
  181. package/node_modules/nan/nan_callbacks_12_inl.h +16 -2
  182. package/node_modules/nan/nan_callbacks_pre_12_inl.h +6 -2
  183. package/node_modules/nan/nan_maybe_43_inl.h +1 -1
  184. package/node_modules/nan/nan_maybe_pre_43_inl.h +1 -1
  185. package/node_modules/nan/nan_scriptorigin.h +11 -9
  186. package/node_modules/nan/nan_typedarray_contents.h +1 -1
  187. package/node_modules/nan/package.json +2 -2
  188. package/node_modules/undici-types/agent.d.ts +4 -0
  189. package/node_modules/undici-types/client-stats.d.ts +15 -0
  190. package/node_modules/undici-types/client.d.ts +6 -3
  191. package/node_modules/undici-types/mock-agent.d.ts +3 -0
  192. package/node_modules/undici-types/package.json +1 -1
  193. package/node_modules/undici-types/pool.d.ts +2 -0
  194. package/node_modules/undici-types/proxy-agent.d.ts +1 -0
  195. package/node_modules/yaml/README.md +2 -20
  196. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  197. package/node_modules/yaml/dist/stringify/stringifyString.js +1 -1
  198. package/node_modules/yaml/package.json +2 -1
  199. package/package.json +3 -2
  200. package/node_modules/@contrast/agentify/lib/sources.js +0 -95
  201. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/LICENSE +0 -12
  202. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/constants.d.ts +0 -385
  203. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/constants.js +0 -270
  204. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/index.d.ts +0 -40
  205. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/index.js +0 -228
  206. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/primordials.d.ts +0 -65
  207. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/primordials.js +0 -66
  208. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/types.d.ts +0 -383
  209. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/lib/types.js +0 -30
  210. package/node_modules/@contrast/sec-obs/node_modules/@contrast/common/package.json +0 -23
  211. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/LICENSE +0 -12
  212. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/README.md +0 -44
  213. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/common.js +0 -131
  214. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/config.js +0 -290
  215. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/index.d.ts +0 -328
  216. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/index.js +0 -29
  217. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/options.js +0 -836
  218. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/lib/validators.js +0 -23
  219. package/node_modules/@contrast/sec-obs/node_modules/@contrast/config/package.json +0 -27
  220. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/LICENSE +0 -12
  221. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/README.md +0 -98
  222. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/agent-info.js +0 -36
  223. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/app-info.js +0 -233
  224. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/build-id.js +0 -51
  225. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/capture-stacktrace.js +0 -256
  226. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/contrast-methods.js +0 -155
  227. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/index.d.ts +0 -52
  228. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/ioc/core.js +0 -95
  229. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/is-agent-path.js +0 -37
  230. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/messages.js +0 -28
  231. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/index.js +0 -63
  232. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/protect-listener.js +0 -111
  233. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/sensitive-data-masking/server-settings-listener.js +0 -44
  234. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/cloud-provider-metadata.js +0 -146
  235. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/index.js +0 -225
  236. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/linux-os-info.js +0 -137
  237. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/lib/system-info/utils.js +0 -35
  238. package/node_modules/@contrast/sec-obs/node_modules/@contrast/core/package.json +0 -33
  239. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/LICENSE +0 -12
  240. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/README.md +0 -94
  241. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-handler-registry.d.ts +0 -121
  242. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-handler-registry.js +0 -206
  243. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.d.ts +0 -72
  244. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/export-hook-descriptor.js +0 -88
  245. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/handler-invoker.d.ts +0 -46
  246. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/handler-invoker.js +0 -106
  247. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/helpers.d.ts +0 -28
  248. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/helpers.js +0 -66
  249. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/index.d.ts +0 -115
  250. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/index.js +0 -208
  251. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/package-finder.d.ts +0 -43
  252. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/lib/package-finder.js +0 -79
  253. package/node_modules/@contrast/sec-obs/node_modules/@contrast/dep-hooks/package.json +0 -29
  254. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/LICENSE +0 -12
  255. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/README.md +0 -270
  256. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/index.d.ts +0 -16
  257. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/index.js +0 -132
  258. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/serializers.d.ts +0 -33
  259. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/serializers.js +0 -75
  260. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/utils.d.ts +0 -15
  261. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/lib/utils.js +0 -34
  262. package/node_modules/@contrast/sec-obs/node_modules/@contrast/logger/package.json +0 -28
  263. package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/LICENSE +0 -12
  264. package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/README.md +0 -51
  265. package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/lib/index.d.ts +0 -101
  266. package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/lib/index.js +0 -544
  267. package/node_modules/@contrast/sec-obs/node_modules/@contrast/patcher/package.json +0 -25
  268. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/LICENSE +0 -12
  269. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/README.md +0 -6
  270. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/cache.js +0 -318
  271. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/index.js +0 -216
  272. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/lib/rewrite-is-deadzoned.js +0 -143
  273. package/node_modules/@contrast/sec-obs/node_modules/@contrast/rewriter/package.json +0 -30
  274. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/LICENSE +0 -12
  275. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/constants.js +0 -26
  276. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/index.d.ts +0 -46
  277. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/index.js +0 -70
  278. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/bluebird.js +0 -128
  279. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/index.js +0 -34
  280. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb-core.js +0 -83
  281. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb3.js +0 -89
  282. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb4.js +0 -80
  283. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mongodb6.js +0 -46
  284. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/mysql.js +0 -151
  285. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/install/redis.js +0 -79
  286. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/lib/utils.js +0 -35
  287. package/node_modules/@contrast/sec-obs/node_modules/@contrast/scopes/package.json +0 -28
  288. package/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  289. package/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  290. package/node_modules/form-data/README.md.bak +0 -355
@@ -0,0 +1,20 @@
1
+ declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;
2
+ declare function deepmerge<T1, T2>(x: Partial<T1>, y: Partial<T2>, options?: deepmerge.Options): T1 & T2;
3
+
4
+ declare namespace deepmerge {
5
+ export interface Options {
6
+ arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
7
+ clone?: boolean;
8
+ customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
9
+ isMergeableObject?(value: object): boolean;
10
+ }
11
+ export interface ArrayMergeOptions {
12
+ isMergeableObject(value: object): boolean;
13
+ cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
14
+ }
15
+
16
+ export function all (objects: object[], options?: Options): object;
17
+ export function all<T> (objects: Partial<T>[], options?: Options): T;
18
+ }
19
+
20
+ export = deepmerge;
@@ -0,0 +1,106 @@
1
+ var defaultIsMergeableObject = require('is-mergeable-object')
2
+
3
+ function emptyTarget(val) {
4
+ return Array.isArray(val) ? [] : {}
5
+ }
6
+
7
+ function cloneUnlessOtherwiseSpecified(value, options) {
8
+ return (options.clone !== false && options.isMergeableObject(value))
9
+ ? deepmerge(emptyTarget(value), value, options)
10
+ : value
11
+ }
12
+
13
+ function defaultArrayMerge(target, source, options) {
14
+ return target.concat(source).map(function(element) {
15
+ return cloneUnlessOtherwiseSpecified(element, options)
16
+ })
17
+ }
18
+
19
+ function getMergeFunction(key, options) {
20
+ if (!options.customMerge) {
21
+ return deepmerge
22
+ }
23
+ var customMerge = options.customMerge(key)
24
+ return typeof customMerge === 'function' ? customMerge : deepmerge
25
+ }
26
+
27
+ function getEnumerableOwnPropertySymbols(target) {
28
+ return Object.getOwnPropertySymbols
29
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
30
+ return Object.propertyIsEnumerable.call(target, symbol)
31
+ })
32
+ : []
33
+ }
34
+
35
+ function getKeys(target) {
36
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
37
+ }
38
+
39
+ function propertyIsOnObject(object, property) {
40
+ try {
41
+ return property in object
42
+ } catch(_) {
43
+ return false
44
+ }
45
+ }
46
+
47
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
48
+ function propertyIsUnsafe(target, key) {
49
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
50
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
51
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
52
+ }
53
+
54
+ function mergeObject(target, source, options) {
55
+ var destination = {}
56
+ if (options.isMergeableObject(target)) {
57
+ getKeys(target).forEach(function(key) {
58
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options)
59
+ })
60
+ }
61
+ getKeys(source).forEach(function(key) {
62
+ if (propertyIsUnsafe(target, key)) {
63
+ return
64
+ }
65
+
66
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
67
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options)
68
+ } else {
69
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options)
70
+ }
71
+ })
72
+ return destination
73
+ }
74
+
75
+ function deepmerge(target, source, options) {
76
+ options = options || {}
77
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge
78
+ options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject
79
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
80
+ // implementations can use it. The caller may not replace it.
81
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified
82
+
83
+ var sourceIsArray = Array.isArray(source)
84
+ var targetIsArray = Array.isArray(target)
85
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray
86
+
87
+ if (!sourceAndTargetTypesMatch) {
88
+ return cloneUnlessOtherwiseSpecified(source, options)
89
+ } else if (sourceIsArray) {
90
+ return options.arrayMerge(target, source, options)
91
+ } else {
92
+ return mergeObject(target, source, options)
93
+ }
94
+ }
95
+
96
+ deepmerge.all = function deepmergeAll(array, options) {
97
+ if (!Array.isArray(array)) {
98
+ throw new Error('first argument should be an array')
99
+ }
100
+
101
+ return array.reduce(function(prev, next) {
102
+ return deepmerge(prev, next, options)
103
+ }, {})
104
+ }
105
+
106
+ module.exports = deepmerge
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "deepmerge",
3
+ "description": "A library for deep (recursive) merging of Javascript objects",
4
+ "keywords": [
5
+ "merge",
6
+ "deep",
7
+ "extend",
8
+ "copy",
9
+ "clone",
10
+ "recursive"
11
+ ],
12
+ "version": "4.3.1",
13
+ "homepage": "https://github.com/TehShrike/deepmerge",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git://github.com/TehShrike/deepmerge.git"
17
+ },
18
+ "main": "dist/cjs.js",
19
+ "engines": {
20
+ "node": ">=0.10.0"
21
+ },
22
+ "scripts": {
23
+ "build": "rollup -c",
24
+ "test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
25
+ "test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts",
26
+ "size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^8.10.54",
30
+ "is-mergeable-object": "1.1.0",
31
+ "is-plain-object": "^5.0.0",
32
+ "jsmd": "^1.0.2",
33
+ "rollup": "^1.23.1",
34
+ "rollup-plugin-commonjs": "^10.1.0",
35
+ "rollup-plugin-node-resolve": "^5.2.0",
36
+ "tape": "^4.11.0",
37
+ "ts-node": "7.0.1",
38
+ "typescript": "=2.2.2",
39
+ "uglify-js": "^3.6.1"
40
+ },
41
+ "license": "MIT"
42
+ }
@@ -0,0 +1,264 @@
1
+ # deepmerge
2
+
3
+ Merges the enumerable properties of two or more objects deeply.
4
+
5
+ > UMD bundle is 723B minified+gzipped
6
+
7
+ ## Getting Started
8
+
9
+ ### Example Usage
10
+ <!--js
11
+ const merge = require('./')
12
+ -->
13
+
14
+ ```js
15
+ const x = {
16
+ foo: { bar: 3 },
17
+ array: [{
18
+ does: 'work',
19
+ too: [ 1, 2, 3 ]
20
+ }]
21
+ }
22
+
23
+ const y = {
24
+ foo: { baz: 4 },
25
+ quux: 5,
26
+ array: [{
27
+ does: 'work',
28
+ too: [ 4, 5, 6 ]
29
+ }, {
30
+ really: 'yes'
31
+ }]
32
+ }
33
+
34
+ const output = {
35
+ foo: {
36
+ bar: 3,
37
+ baz: 4
38
+ },
39
+ array: [{
40
+ does: 'work',
41
+ too: [ 1, 2, 3 ]
42
+ }, {
43
+ does: 'work',
44
+ too: [ 4, 5, 6 ]
45
+ }, {
46
+ really: 'yes'
47
+ }],
48
+ quux: 5
49
+ }
50
+
51
+ merge(x, y) // => output
52
+ ```
53
+
54
+
55
+ ### Installation
56
+
57
+ With [npm](http://npmjs.org) do:
58
+
59
+ ```sh
60
+ npm install deepmerge
61
+ ```
62
+
63
+ deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
64
+
65
+
66
+ ### Include
67
+
68
+ deepmerge exposes a CommonJS entry point:
69
+
70
+ ```
71
+ const merge = require('deepmerge')
72
+ ```
73
+
74
+ The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
75
+
76
+ # API
77
+
78
+
79
+ ## `merge(x, y, [options])`
80
+
81
+ Merge two objects `x` and `y` deeply, returning a new merged object with the
82
+ elements from both `x` and `y`.
83
+
84
+ If an element at the same key is present for both `x` and `y`, the value from
85
+ `y` will appear in the result.
86
+
87
+ Merging creates a new object, so that neither `x` or `y` is modified.
88
+
89
+ **Note:** By default, arrays are merged by concatenating them.
90
+
91
+ ## `merge.all(arrayOfObjects, [options])`
92
+
93
+ Merges any number of objects into a single result object.
94
+
95
+ ```js
96
+ const foobar = { foo: { bar: 3 } }
97
+ const foobaz = { foo: { baz: 4 } }
98
+ const bar = { bar: 'yay!' }
99
+
100
+ merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' }
101
+ ```
102
+
103
+
104
+ ## Options
105
+
106
+ ### `arrayMerge`
107
+
108
+ There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function.
109
+
110
+ Your `arrayMerge` function will be called with three arguments: a `target` array, the `source` array, and an `options` object with these properties:
111
+
112
+ - `isMergeableObject(value)`
113
+ - `cloneUnlessOtherwiseSpecified(value, options)`
114
+
115
+ #### `arrayMerge` example: overwrite target array
116
+
117
+ Overwrites the existing array values completely rather than concatenating them:
118
+
119
+ ```js
120
+ const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
121
+
122
+ merge(
123
+ [1, 2, 3],
124
+ [3, 2, 1],
125
+ { arrayMerge: overwriteMerge }
126
+ ) // => [3, 2, 1]
127
+ ```
128
+
129
+ #### `arrayMerge` example: combine arrays
130
+
131
+ Combines objects at the same index in the two arrays.
132
+
133
+ This was the default array merging algorithm pre-version-2.0.0.
134
+
135
+ ```js
136
+ const combineMerge = (target, source, options) => {
137
+ const destination = target.slice()
138
+
139
+ source.forEach((item, index) => {
140
+ if (typeof destination[index] === 'undefined') {
141
+ destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
142
+ } else if (options.isMergeableObject(item)) {
143
+ destination[index] = merge(target[index], item, options)
144
+ } else if (target.indexOf(item) === -1) {
145
+ destination.push(item)
146
+ }
147
+ })
148
+ return destination
149
+ }
150
+
151
+ merge(
152
+ [{ a: true }],
153
+ [{ b: true }, 'ah yup'],
154
+ { arrayMerge: combineMerge }
155
+ ) // => [{ a: true, b: true }, 'ah yup']
156
+ ```
157
+
158
+ ### `isMergeableObject`
159
+
160
+ By default, deepmerge clones every property from almost every kind of object.
161
+
162
+ You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties.
163
+
164
+ You can accomplish this by passing in a function for the `isMergeableObject` option.
165
+
166
+ If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object).
167
+
168
+ ```js
169
+ const { isPlainObject } = require('is-plain-object')
170
+
171
+ function SuperSpecial() {
172
+ this.special = 'oh yeah man totally'
173
+ }
174
+
175
+ const instantiatedSpecialObject = new SuperSpecial()
176
+
177
+ const target = {
178
+ someProperty: {
179
+ cool: 'oh for sure'
180
+ }
181
+ }
182
+
183
+ const source = {
184
+ someProperty: instantiatedSpecialObject
185
+ }
186
+
187
+ const defaultOutput = merge(target, source)
188
+
189
+ defaultOutput.someProperty.cool // => 'oh for sure'
190
+ defaultOutput.someProperty.special // => 'oh yeah man totally'
191
+ defaultOutput.someProperty instanceof SuperSpecial // => false
192
+
193
+ const customMergeOutput = merge(target, source, {
194
+ isMergeableObject: isPlainObject
195
+ })
196
+
197
+ customMergeOutput.someProperty.cool // => undefined
198
+ customMergeOutput.someProperty.special // => 'oh yeah man totally'
199
+ customMergeOutput.someProperty instanceof SuperSpecial // => true
200
+ ```
201
+
202
+ ### `customMerge`
203
+
204
+ Specifies a function which can be used to override the default merge behavior for a property, based on the property name.
205
+
206
+ The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property.
207
+
208
+ It may also return undefined, in which case the default merge behaviour will be used.
209
+
210
+ ```js
211
+ const alex = {
212
+ name: {
213
+ first: 'Alex',
214
+ last: 'Alexson'
215
+ },
216
+ pets: ['Cat', 'Parrot']
217
+ }
218
+
219
+ const tony = {
220
+ name: {
221
+ first: 'Tony',
222
+ last: 'Tonison'
223
+ },
224
+ pets: ['Dog']
225
+ }
226
+
227
+ const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}`
228
+
229
+ const options = {
230
+ customMerge: (key) => {
231
+ if (key === 'name') {
232
+ return mergeNames
233
+ }
234
+ }
235
+ }
236
+
237
+ const result = merge(alex, tony, options)
238
+
239
+ result.name // => 'Alex and Tony'
240
+ result.pets // => ['Cat', 'Parrot', 'Dog']
241
+ ```
242
+
243
+
244
+ ### `clone`
245
+
246
+ *Deprecated.*
247
+
248
+ Defaults to `true`.
249
+
250
+ If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x.
251
+
252
+
253
+ # Testing
254
+
255
+ With [npm](http://npmjs.org) do:
256
+
257
+ ```sh
258
+ npm test
259
+ ```
260
+
261
+
262
+ # License
263
+
264
+ MIT
@@ -0,0 +1,22 @@
1
+ import resolve from 'rollup-plugin-node-resolve'
2
+ import commonjs from 'rollup-plugin-commonjs'
3
+ import pkg from './package.json'
4
+
5
+ export default {
6
+ input: `index.js`,
7
+ plugins: [
8
+ commonjs(),
9
+ resolve(),
10
+ ],
11
+ output: [
12
+ {
13
+ file: pkg.main,
14
+ format: `cjs`
15
+ },
16
+ {
17
+ name: 'deepmerge',
18
+ file: 'dist/umd.js',
19
+ format: `umd`
20
+ },
21
+ ],
22
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "follow-redirects",
3
- "version": "1.15.9",
3
+ "version": "1.15.11",
4
4
  "description": "HTTP and HTTPS modules that follow redirects.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",