newrelic 10.3.1 → 10.3.2

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/NEWS.md CHANGED
@@ -1,3 +1,20 @@
1
+ ### v10.3.2 (2023-06-26)
2
+
3
+ #### Bug Fixes
4
+
5
+ * **prisma:** check for query args in string property ([#1684](https://github.com/newrelic/node-newrelic/pull/1684)) ([8d9b176](https://github.com/newrelic/node-newrelic/commit/8d9b176e05424d34dd2eafe243a8cee7284efe64))
6
+
7
+ #### Security Improvements
8
+
9
+ * **deps:** Updated security agent to v0.1.3 ([#1696](https://github.com/newrelic/node-newrelic/pull/1696)) ([0f957bd](https://github.com/newrelic/node-newrelic/commit/0f957bd0e39a32614337b5ade33f07d9729f1897))
10
+
11
+ #### Miscellaneous Chores
12
+
13
+ * **test:** Added t.end() to trace unit test ([#1698](https://github.com/newrelic/node-newrelic/pull/1698)) ([254c9c0](https://github.com/newrelic/node-newrelic/commit/254c9c0e2aae73ed154a009d264aa262cb3799e3))
14
+ * **test:** convert error-trace-aggregator.test.js to tap-style ([#1690](https://github.com/newrelic/node-newrelic/pull/1690)) ([44b17ab](https://github.com/newrelic/node-newrelic/commit/44b17abf3c6295661736932e9c9dc5b5a42eb3e1))
15
+ * **test:** convert trace unit test to tap style ([#1692](https://github.com/newrelic/node-newrelic/pull/1692)) ([727c17f](https://github.com/newrelic/node-newrelic/commit/727c17f4163ff44b90be87f71e43ad6924874fe4))
16
+ * **test:** Fixed tap end/autoend calls in trace unit test ([#1700](https://github.com/newrelic/node-newrelic/pull/1700)) ([b4a4948](https://github.com/newrelic/node-newrelic/commit/b4a4948719af7c20c22b12150bb3070f6526c247))
17
+
1
18
  ### v10.3.1 (2023-06-22)
2
19
 
3
20
  #### Security
@@ -953,7 +953,7 @@ Apache License
953
953
 
954
954
  ### @newrelic/security-agent
955
955
 
956
- This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v0.1.2](https://github.com/newrelic/csec-node-agent/tree/v0.1.2)), distributed under the [New Relic Pre-Release License](https://github.com/newrelic/csec-node-agent/blob/v0.1.2/LICENSE):
956
+ This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v0.1.3](https://github.com/newrelic/csec-node-agent/tree/v0.1.3)), distributed under the [New Relic Pre-Release License](https://github.com/newrelic/csec-node-agent/blob/v0.1.3/LICENSE):
957
957
 
958
958
  ```
959
959
  ## New Relic Pre-Release Software Notice
@@ -1395,7 +1395,7 @@ IN THE SOFTWARE.
1395
1395
 
1396
1396
  ### semver
1397
1397
 
1398
- This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.5.2](https://github.com/npm/node-semver/tree/v7.5.2)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.5.2/LICENSE):
1398
+ This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.5.3](https://github.com/npm/node-semver/tree/v7.5.3)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.5.3/LICENSE):
1399
1399
 
1400
1400
  ```
1401
1401
  The ISC License
@@ -87,7 +87,8 @@ function extractQueryArgs(args, pkgVersion) {
87
87
  let query = ''
88
88
  try {
89
89
  if (semver.gte(pkgVersion, '4.11.0')) {
90
- query = args[0].args[0]
90
+ // Prisma 4.16.0 moved the query to a `strings` property
91
+ query = args[0].args[0] || args[0].args.strings[0]
91
92
  if (Array.isArray(query)) {
92
93
  // RawUnsafe pass in a string, but plain Raw methods pass in an
93
94
  // array containing a prepared SQL statement and the SQL parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "10.3.1",
3
+ "version": "10.3.2",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -187,7 +187,7 @@
187
187
  "@mrleebo/prisma-ast": "^0.5.2",
188
188
  "@newrelic/aws-sdk": "^5.0.2",
189
189
  "@newrelic/koa": "^7.1.1",
190
- "@newrelic/security-agent": "0.1.2",
190
+ "@newrelic/security-agent": "0.1.3",
191
191
  "@newrelic/superagent": "^6.0.0",
192
192
  "@tyriar/fibonacci-heap": "^2.0.7",
193
193
  "concat-stream": "^2.0.0",