@newrelic/security-agent 2.3.0 → 2.3.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### v2.3.1 (2025-02-04)
2
+ #### Bug fixes
3
+ * Removed docker-cli-js dependency and updated mongodb unit test case (#283)
4
+ * Added safety check for agentModule before accessing its properties (#284)
5
+
1
6
  ### v2.3.0 (2025-02-03)
2
7
  #### Features
3
8
  * Added Support for VM module
@@ -18,7 +18,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
18
18
  * [check-disk-space](#check-disk-space)
19
19
  * [content-type](#content-type)
20
20
  * [cron](#cron)
21
- * [docker-cli-js](#docker-cli-js)
22
21
  * [fast-safe-stringify](#fast-safe-stringify)
23
22
  * [find-package-json](#find-package-json)
24
23
  * [hash.js](#hashjs)
@@ -60,7 +59,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
60
59
  * [eslint-plugin-promise](#eslint-plugin-promise)
61
60
  * [eslint-plugin-sonarjs](#eslint-plugin-sonarjs)
62
61
  * [koa](#koa)
63
- * [mongodb-memory-server](#mongodb-memory-server)
64
62
  * [mongodb](#mongodb)
65
63
  * [mongodb](#mongodb)
66
64
  * [mongodb](#mongodb)
@@ -166,36 +164,6 @@ The above copyright notice and this permission notice shall be included in all c
166
164
 
167
165
  THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
168
166
 
169
- ```
170
-
171
- ### docker-cli-js
172
-
173
- This product includes source derived from [docker-cli-js](https://github.com/Quobject/docker-cli-js) ([v2.10.0](https://github.com/Quobject/docker-cli-js/tree/v2.10.0)), distributed under the [MIT License](https://github.com/Quobject/docker-cli-js/blob/v2.10.0/LICENSE):
174
-
175
- ```
176
- The MIT License (MIT)
177
-
178
- Copyright (c) 2016 Matthias Ludwig (mludwig@quobject.io)
179
-
180
- Permission is hereby granted, free of charge, to any person obtaining a copy
181
- of this software and associated documentation files (the "Software"), to deal
182
- in the Software without restriction, including without limitation the rights
183
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
184
- copies of the Software, and to permit persons to whom the Software is
185
- furnished to do so, subject to the following conditions:
186
-
187
- The above copyright notice and this permission notice shall be included in
188
- all copies or substantial portions of the Software.
189
-
190
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
191
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
192
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
193
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
194
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
195
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
196
- THE SOFTWARE.
197
-
198
-
199
167
  ```
200
168
 
201
169
  ### fast-safe-stringify
@@ -1905,23 +1873,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1905
1873
 
1906
1874
  ```
1907
1875
 
1908
- ### mongodb-memory-server
1909
-
1910
- This product includes source derived from [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server) ([v8.11.2](https://github.com/nodkz/mongodb-memory-server/tree/v8.11.2)), distributed under the [MIT License](https://github.com/nodkz/mongodb-memory-server/blob/v8.11.2/LICENSE.md):
1911
-
1912
- ```
1913
- The MIT License (MIT)
1914
-
1915
- Copyright (c) 2017-present Pavel Chertorogov
1916
-
1917
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1918
-
1919
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1920
-
1921
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1922
-
1923
- ```
1924
-
1925
1876
  ### mongodb
1926
1877
 
1927
1878
  This product includes source derived from [mongodb](https://github.com/mongodb/node-mongodb-native) ([v2.2.36](https://github.com/mongodb/node-mongodb-native/tree/v2.2.36)), distributed under the [Apache-2.0 License](undefined):
@@ -196,7 +196,7 @@ function generateExitEvent(secEvent) {
196
196
 
197
197
  function sendEvent(secEvent) {
198
198
  const agentModule = Agent.getAgent();
199
- if (agentModule.status.getStatus() != 'connecting' && NRAgent.config.security.enabled && agentModule.status.getStatus() == 'active') {
199
+ if (agentModule && agentModule.status.getStatus() != 'connecting' && NRAgent.config.security.enabled && agentModule.status.getStatus() == 'active') {
200
200
  agentModule.client.dispatcher(secEvent);
201
201
  if (!firstEventSent && agentModule.status.getStatus() === 'active') {
202
202
  if(commonUtils.trafficStartedTime == 0){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/security-agent",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "New Relic Security Agent for Node.js",
5
5
  "main": "index.js",
6
6
  "jsonVersion": "1.2.9",
@@ -43,7 +43,6 @@
43
43
  "check-disk-space": "^3.4.0",
44
44
  "content-type": "^1.0.5",
45
45
  "cron": "^3.1.7",
46
- "docker-cli-js": "^2.10.0",
47
46
  "fast-safe-stringify": "^2.1.1",
48
47
  "find-package-json": "^1.2.0",
49
48
  "hash.js": "^1.1.7",
@@ -85,7 +84,6 @@
85
84
  "eslint-plugin-sonarjs": "^0.15.0",
86
85
  "koa": "^2.14.1",
87
86
  "mongodb": "^4.13.0",
88
- "mongodb-memory-server": "^8.11.2",
89
87
  "mongodb2": "npm:mongodb@^2.2.36",
90
88
  "mongodb3": "npm:mongodb@^3.7.3",
91
89
  "newrelic": "^10.3.1",