Comparing version 2.1.9 to 2.1.10
var assert = require('assert') | ||
var logger = require('oneapm-logger'); | ||
@@ -50,3 +51,6 @@ function Events(mapper) { | ||
function mapName(groupName) { | ||
assert(Array.isArray(groupName) && groupName.length === 3) | ||
if(!Array.isArray(groupName) || groupName.length !== 3) { | ||
logger.warn('event name should be array[3] but was : ' + JSON.stringify(groupName)); | ||
return groupName; | ||
} | ||
var transactionName = groupName[1] | ||
@@ -53,0 +57,0 @@ var metricId = mapper.map(transactionName) |
{ | ||
"name": "oneapm", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"author": "OneAPM Node.js agent team <nodejs@oneapm.com>", | ||
@@ -5,0 +5,0 @@ "description": "OneAPM agent", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
327158
7926