@contrast/common 1.32.0 → 1.33.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 (2) hide show
  1. package/lib/types.d.ts +42 -34
  2. package/package.json +2 -2
package/lib/types.d.ts CHANGED
@@ -60,58 +60,66 @@ export interface AppInfo {
60
60
  buildId: string;
61
61
  }
62
62
  export interface SystemInfo {
63
- ReportDate: string;
64
- MachineName: string;
65
- Contrast: {
66
- Url: string | null;
67
- Proxy: {
63
+ reportDate: string;
64
+ hostname: string;
65
+ contrast: {
66
+ url: string | null;
67
+ proxy: {
68
68
  enable: boolean;
69
69
  url: string | null;
70
70
  };
71
- Server: {
72
- Name: string;
71
+ server: {
72
+ name: string;
73
73
  };
74
- Agent: {
75
- Name: string;
76
- Version: string;
74
+ agent: {
75
+ name: string;
76
+ version: string;
77
77
  };
78
78
  };
79
- Node: {
80
- Path: string;
81
- Version: string;
79
+ node: {
80
+ path: string;
81
+ version: string;
82
+ memory: {
83
+ total: string;
84
+ free: string;
85
+ used: string;
86
+ };
82
87
  };
83
- OperatingSystem: {
84
- Architecture: string;
85
- Name: string;
86
- Version: string;
87
- KernelVersion: string;
88
- CPU: {
89
- Type: string;
90
- Count: number;
88
+ os: {
89
+ architecture: string;
90
+ name: string;
91
+ version: string;
92
+ kernelVersion: string;
93
+ cpu: {
94
+ type: string;
95
+ count: number;
96
+ };
97
+ memory: {
98
+ total: string;
91
99
  };
100
+ id: string | undefined;
101
+ versionId: string | undefined;
92
102
  };
93
- Host: {
94
- Docker: {
103
+ host: {
104
+ docker: {
95
105
  isDocker: boolean;
96
- containerID: string | null;
106
+ containerId: string | null;
97
107
  };
98
- Kubernetes: {
108
+ kubernetes: {
99
109
  isKubernetes: boolean;
100
110
  };
101
- PM2: {
111
+ pm2: {
102
112
  used: boolean;
103
113
  version: string | null;
104
114
  };
105
- Memory: {
106
- Total: string;
107
- Free: string;
108
- Used: string;
115
+ memory: {
116
+ total: string;
109
117
  };
110
118
  };
111
- Application: object;
112
- Cloud: {
113
- Provider: string | null;
114
- ResourceID: string | null;
119
+ application: object;
120
+ cloud: {
121
+ provider: string | null;
122
+ resourceId: string | null;
115
123
  };
116
124
  }
117
125
  export type CommonRules = Rule.SQL_INJECTION | Rule.CMD_INJECTION | Rule.PATH_TRAVERSAL | Rule.REFLECTED_XSS | Rule.SSJS_INJECTION | Rule.NOSQL_INJECTION_MONGO | Rule.UNSAFE_FILE_UPLOAD | Rule.NOSQL_INJECTION | Rule.METHOD_TAMPERING | Rule.BOT_BLOCKER;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/common",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Shared constants and utilities for all Contrast Agent modules",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "scripts": {
20
20
  "build": "tsc --build src/",
21
- "test": "../scripts/test.sh"
21
+ "test": "bash ../scripts/test.sh"
22
22
  }
23
23
  }