@newrelic/security-agent 3.0.2 → 3.0.4

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,22 @@
1
+ ### v3.0.4 (2026-05-14)
2
+ #### Bug fixes
3
+ * remove dependency on uuid module (#357)
4
+ * update hapi instrumentation, remove shim.argsToArray method (#360)
5
+
6
+ #### Miscellaneous chores
7
+ * (deps-dev): bump protobufjs from 7.2.5 to 7.5.8 (#358)
8
+ * (deps-dev): bump fast-xml-parser and @aws-sdk/xml-builder (#356)
9
+
10
+ ### v3.0.3 (2026-04-08)
11
+ #### Miscellaneous chores
12
+ * (deps-dev): bump koa from 3.0.3 to 3.1.2 (#330)
13
+ * (deps): bump minimatch from 3.1.2 to 3.1.5 (#332)
14
+ * (deps): bump undici from 7.19.0 to 7.24.0 (#335)
15
+ * (deps): bump flatted from 3.2.9 to 3.4.2 (#339)
16
+ * (deps-dev): bump fast-xml-parser, @aws-sdk/credential-providers and @aws-sdk/client-lambda (#338)
17
+ * (deps-dev): bump picomatch from 2.3.1 to 2.3.2 (#340)
18
+ * (deps-dev): bump lodash.template from 4.5.0 to 4.18.1 (#342)
19
+
1
20
  ### v3.0.2 (2026-02-17)
2
21
  #### Miscellaneous chores
3
22
  * refactor: Removed dependence on lodash in lieu of using native javascript
@@ -30,7 +30,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
30
30
  * [undici](#undici)
31
31
  * [unescape-js](#unescape-js)
32
32
  * [unescape](#unescape)
33
- * [uuid](#uuid)
34
33
  * [ws](#ws)
35
34
 
36
35
  **[devDependencies](#devDependencies)**
@@ -381,7 +380,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
381
380
 
382
381
  ### undici
383
382
 
384
- This product includes source derived from [undici](https://github.com/nodejs/undici) ([v7.19.0](https://github.com/nodejs/undici/tree/v7.19.0)), distributed under the [MIT License](https://github.com/nodejs/undici/blob/v7.19.0/LICENSE):
383
+ This product includes source derived from [undici](https://github.com/nodejs/undici) ([v7.24.0](https://github.com/nodejs/undici/tree/v7.24.0)), distributed under the [MIT License](https://github.com/nodejs/undici/blob/v7.24.0/LICENSE):
385
384
 
386
385
  ```
387
386
  MIT License
@@ -465,23 +464,6 @@ THE SOFTWARE.
465
464
 
466
465
  ```
467
466
 
468
- ### uuid
469
-
470
- This product includes source derived from [uuid](https://github.com/uuidjs/uuid) ([v9.0.1](https://github.com/uuidjs/uuid/tree/v9.0.1)), distributed under the [MIT License](https://github.com/uuidjs/uuid/blob/v9.0.1/LICENSE.md):
471
-
472
- ```
473
- The MIT License (MIT)
474
-
475
- Copyright (c) 2010-2020 Robert Kieffer and other contributors
476
-
477
- 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:
478
-
479
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
480
-
481
- 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.
482
-
483
- ```
484
-
485
467
  ### ws
486
468
 
487
469
  This product includes source derived from [ws](https://github.com/websockets/ws) ([v8.18.0](https://github.com/websockets/ws/tree/v8.18.0)), distributed under the [MIT License](https://github.com/websockets/ws/blob/v8.18.0/LICENSE):
@@ -1695,7 +1677,7 @@ Library.
1695
1677
 
1696
1678
  ### koa
1697
1679
 
1698
- This product includes source derived from [koa](https://github.com/koajs/koa) ([v3.0.3](https://github.com/koajs/koa/tree/v3.0.3)), distributed under the [MIT License](https://github.com/koajs/koa/blob/v3.0.3/LICENSE):
1680
+ This product includes source derived from [koa](https://github.com/koajs/koa) ([v3.1.2](https://github.com/koajs/koa/tree/v3.1.2)), distributed under the [MIT License](https://github.com/koajs/koa/blob/v3.1.2/LICENSE):
1699
1681
 
1700
1682
  ```
1701
1683
  (The MIT License)
@@ -49,8 +49,7 @@ function serverPostConstructor(shim) {
49
49
  function wrapProtoRoute(shim, proto) {
50
50
  shim.wrap(proto, 'route', function wrapRoute(shim, original) {
51
51
  logger.debug(`Instrumenting ${proto}.route`);
52
- return function wrappedRoute() {
53
- const args = shim.argsToArray.apply(shim, arguments)
52
+ return function wrappedRoute(...args) {
54
53
  if (!shim.isObject(args[0])) {
55
54
  return original.apply(this, args)
56
55
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  /* eslint-disable prefer-promise-reject-errors */
7
7
  const fs = require('fs');
8
- const uuidV = require('uuid');
8
+ const { randomUUID } = require('node:crypto');
9
9
  const logs = require('./logging');
10
10
  const logger = logs.getLogger();
11
11
  const OS = require('os');
@@ -45,7 +45,7 @@ const skip_detection_category_map = {
45
45
  * @returns UUID
46
46
  */
47
47
  function getUUID() {
48
- let uuid = process.env.applicationUUID || uuidV.v4();
48
+ let uuid = process.env.applicationUUID || randomUUID();
49
49
  process.env.applicationUUID = uuid;
50
50
  return uuid;
51
51
  }
@@ -11,8 +11,8 @@ if(process.platform == 'win32'){
11
11
  AGENT_DIR = path.join(__dirname, "..\\..\\..\\");
12
12
  }
13
13
 
14
- const uuid = require('uuid');
15
- process.env.applicationUUID = process.env.applicationUUID || uuid.v4();
14
+ const { randomUUID } = require('node:crypto');
15
+ process.env.applicationUUID = process.env.applicationUUID || randomUUID();
16
16
 
17
17
  module.exports = {
18
18
  AGENT_DIR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/security-agent",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "New Relic Security Agent for Node.js",
5
5
  "main": "index.js",
6
6
  "jsonVersion": "1.2.9",
@@ -55,7 +55,6 @@
55
55
  "undici": "^7.19.0",
56
56
  "unescape": "^1.0.1",
57
57
  "unescape-js": "^1.1.4",
58
- "uuid": "^9.0.1",
59
58
  "ws": "^8.17.1"
60
59
  },
61
60
  "devDependencies": {