@contrast/core 1.26.1 → 1.27.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/lib/index.d.ts CHANGED
@@ -13,7 +13,6 @@
13
13
  * way not consistent with the End User License Agreement.
14
14
  */
15
15
 
16
- import { EventEmitter } from 'events';
17
16
  import { Agentify } from '@contrast/agentify';
18
17
  import { Config } from '@contrast/config';
19
18
  import { Logger } from '@contrast/logger';
@@ -35,7 +34,6 @@ export interface Core {
35
34
  appInfo: AppInfo;
36
35
  logger: Logger;
37
36
  messages: Messages;
38
- events: { lifecycle: EventEmitter };
39
37
  patcher: Patcher;
40
38
  reporter: ReporterBus;
41
39
  protect: Protect;
@@ -18,9 +18,5 @@
18
18
  const EventEmitter = require('events');
19
19
 
20
20
  module.exports = function init(core) {
21
- core.events = {
22
- lifecycle: new EventEmitter(),
23
- };
24
-
25
21
  core.messages = new EventEmitter(); // merge?
26
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/core",
3
- "version": "1.26.1",
3
+ "version": "1.27.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)",
@@ -16,7 +16,7 @@
16
16
  "test": "../scripts/test.sh"
17
17
  },
18
18
  "dependencies": {
19
- "@contrast/common": "1.15.1",
19
+ "@contrast/common": "1.16.0",
20
20
  "@contrast/fn-inspect": "^3.4.0"
21
21
  }
22
22
  }