@contrast/core 1.29.1 → 1.31.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.
@@ -106,22 +106,6 @@ module.exports = function (core) {
106
106
  );
107
107
  },
108
108
 
109
- // Import Statements
110
- importDefault(...args) {
111
- // noop
112
- },
113
-
114
- importStarAs(...args) {
115
- // noop
116
- },
117
-
118
- importNamed(...args) {
119
- // noop
120
- },
121
- import(...args) {
122
- // noop BAM
123
- },
124
-
125
109
  // Injections
126
110
  Function: core.patcher.patch(global.Function, {
127
111
  name: 'global.Function',
package/lib/index.d.ts CHANGED
@@ -13,36 +13,22 @@
13
13
  * way not consistent with the End User License Agreement.
14
14
  */
15
15
 
16
- import { Agentify } from '@contrast/agentify';
17
- import { Config } from '@contrast/config';
18
- import { Logger } from '@contrast/logger';
19
16
  import { AppInfo, Messages } from '@contrast/common';
20
- import { Patcher } from '@contrast/patcher';
21
- import { ReporterBus } from '@contrast/reporter';
22
- import { Protect } from '@contrast/protect';
23
- import { Rewriter } from '@contrast/rewriter';
24
- import RequireHook from '@contrast/require-hook';
25
- import { Scopes } from '@contrast/scopes';
26
- import { Deadzones } from '@contrast/deadzones';
27
17
 
28
18
  export interface Core {
29
- agentName: string,
30
- agentVersion: string,
31
- agentify: Agentify<Core>;
32
- config: Config;
33
- depHooks: RequireHook;
19
+ agentName: string;
20
+ agentVersion: string;
21
+
34
22
  appInfo: AppInfo;
35
- logger: Logger;
23
+
24
+ captureStackTrace(...args: any[]): any;
25
+ captureSnapshot(...args: any[]): any;
26
+
27
+ isAgentPath(path: string): boolean;
28
+
36
29
  messages: Messages;
37
- patcher: Patcher;
38
- reporter: ReporterBus;
39
- protect: Protect;
40
- rewriter: Rewriter;
41
- scopes: Scopes;
42
- deadzones: Deadzones;
43
- getEffectiveConfig: any;
44
- }
45
30
 
46
- declare function init(): Core;
31
+ sensitiveDataMasking: any;
47
32
 
48
- export = init;
33
+ getSystemInfo(): any;
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/core",
3
- "version": "1.29.1",
3
+ "version": "1.31.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.18.0",
19
+ "@contrast/common": "1.20.0",
20
20
  "@contrast/find-package-json": "^1.0.0",
21
21
  "@contrast/fn-inspect": "^4.0.0"
22
22
  }