@contrast/core 1.19.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright: 2022 Contrast Security, Inc
1
+ Copyright: 2023 Contrast Security, Inc
2
2
  Contact: support@contrastsecurity.com
3
3
  License: Commercial
4
4
 
package/lib/agent-info.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
package/lib/app-info.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -14,18 +14,18 @@
14
14
  */
15
15
 
16
16
  'use strict';
17
- const noop = () => {};
17
+ const noop = () => { };
18
18
  const { Event } = require('@contrast/common');
19
19
 
20
- module.exports = function(core) {
20
+ module.exports = function (core) {
21
21
  const { messages, config } = core;
22
22
  const cfgLogLevel = config.agent.logger.level;
23
23
  core.logger = {
24
24
  pino: require('@contrast/logger').default(core),
25
25
  children: [],
26
- child(name) {
26
+ child(opts) {
27
27
  const child = {
28
- pino: this.pino.child({ name }),
28
+ pino: this.pino.child(opts),
29
29
  setLogLevel: this.setLogLevel
30
30
  };
31
31
  child.setLogLevel(this.pino.level);
@@ -47,7 +47,7 @@ module.exports = function(core) {
47
47
  }
48
48
  };
49
49
 
50
- core.logger.setLogLevel(cfgLogLevel || 'error');
50
+ core.logger.setLogLevel(cfgLogLevel || 'info');
51
51
 
52
52
  messages.on(Event.SERVER_SETTINGS_UPDATE, (settingsMsg) => {
53
53
  const tsLogLevel = settingsMsg?.logger?.level.toLowerCase();
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright: 2022 Contrast Security, Inc
2
+ * Copyright: 2023 Contrast Security, Inc
3
3
  * Contact: support@contrastsecurity.com
4
4
  * License: Commercial
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/core",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "Preconfigured Contrast agent core services and models",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -17,17 +17,17 @@
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/agentify": "1.10.0",
21
- "@contrast/common": "1.12.0",
22
- "@contrast/config": "1.14.0",
20
+ "@contrast/agentify": "1.12.0",
21
+ "@contrast/common": "1.14.0",
22
+ "@contrast/config": "1.16.0",
23
23
  "@contrast/deadzones": "1.1.0",
24
- "@contrast/dep-hooks": "1.1.2",
24
+ "@contrast/dep-hooks": "1.2.0",
25
25
  "@contrast/fn-inspect": "^3.3.0",
26
26
  "@contrast/instrumentation": "1.1.2",
27
- "@contrast/logger": "1.3.0",
28
- "@contrast/patcher": "1.6.0",
29
- "@contrast/reporter": "1.17.0",
30
- "@contrast/rewriter": "1.4.1",
27
+ "@contrast/logger": "1.4.0",
28
+ "@contrast/patcher": "1.7.0",
29
+ "@contrast/reporter": "1.19.0",
30
+ "@contrast/rewriter": "1.4.2",
31
31
  "@contrast/scopes": "1.4.0"
32
32
  }
33
33
  }