newrelic 8.14.0 → 8.14.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/NEWS.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### v8.14.1 (2022-06-09)
2
+
3
+ * Added defensive code in redis v4 instrumentation to check for `opts.socket` first before evaluating `opts.socket.path`.
4
+ Thanks @RAshidAZ for your contribution!
5
+
6
+ * Updated `@grpc/proto-loader` to v0.6.13 to pickup security fixes in protobufjs.
7
+
1
8
  ### v8.14.0 (2022-06-06)
2
9
 
3
10
  * Fixed issue with `api.getBrowserTimingHeader` optional script unwrapping issue with util.format.
@@ -296,7 +296,7 @@ This product includes source derived from [@grpc/grpc-js](https://github.com/grp
296
296
 
297
297
  ### @grpc/proto-loader
298
298
 
299
- This product includes source derived from [@grpc/proto-loader](https://github.com/grpc/grpc-node) ([v0.6.12](https://github.com/grpc/grpc-node/tree/v0.6.12)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/blob/v0.6.12/LICENSE):
299
+ This product includes source derived from [@grpc/proto-loader](https://github.com/grpc/grpc-node) ([v0.6.13](https://github.com/grpc/grpc-node/tree/v0.6.13)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/blob/v0.6.13/LICENSE):
300
300
 
301
301
  ```
302
302
  Apache License
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright 2022 New Relic Corporation. All rights reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ 'use strict'
7
+
8
+ module.exports = function instrument(/* agent, grpc, moduleName, shim */) {
9
+ // TODO
10
+ }
@@ -54,7 +54,7 @@ module.exports = function initialize(agent, redis, moduleName, shim) {
54
54
  function getRedisParams(opts) {
55
55
  return {
56
56
  host: (opts.socket && opts.socket.host) || 'localhost',
57
- port_path_or_id: (opts.socket && opts.socket.path) || opts.socket.port || '6379',
57
+ port_path_or_id: (opts.socket && (opts.socket.path || opts.socket.port)) || '6379',
58
58
  database_name: opts.database || 0
59
59
  }
60
60
  }
@@ -19,6 +19,7 @@ module.exports = function instrumentations() {
19
19
  'express': { type: MODULE_TYPE.WEB_FRAMEWORK },
20
20
  'fastify': { type: MODULE_TYPE.WEB_FRAMEWORK },
21
21
  'generic-pool': { type: MODULE_TYPE.GENERIC },
22
+ '@grpc/grpc-js': { type: MODULE_TYPE.GENERIC },
22
23
  '@hapi/hapi': { type: MODULE_TYPE.WEB_FRAMEWORK },
23
24
  'hapi': { type: MODULE_TYPE.WEB_FRAMEWORK },
24
25
  'ioredis': { type: MODULE_TYPE.DATASTORE },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "8.14.0",
3
+ "version": "8.14.1",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -160,7 +160,7 @@
160
160
  },
161
161
  "dependencies": {
162
162
  "@grpc/grpc-js": "^1.5.5",
163
- "@grpc/proto-loader": "^0.6.12",
163
+ "@grpc/proto-loader": "^0.6.13",
164
164
  "@newrelic/aws-sdk": "^4.1.1",
165
165
  "@newrelic/koa": "^6.1.1",
166
166
  "@newrelic/superagent": "^5.1.0",