elastic-apm-node
Advanced tools
Comparing version 2.12.0 to 2.12.1
@@ -1,2 +0,5 @@ | ||
# 2.12.0 - 2019/8/2 | ||
# 2.12.1 - 2019/7/7 | ||
* fix(knex): abort early on unsupported version of knex ([#1189](https://github.com/elastic/apm-agent-nodejs/pull/1189)) | ||
# 2.12.0 - 2019/7/2 | ||
* feat(metrics): add runtime metrics ([#1021](https://github.com/elastic/apm-agent-nodejs/pull/1021)) | ||
@@ -3,0 +6,0 @@ * feat(config): add environment option ([#1106](https://github.com/elastic/apm-agent-nodejs/pull/1106)) |
'use strict' | ||
var semver = require('semver') | ||
var shimmer = require('../shimmer') | ||
var symbols = require('../../symbols') | ||
module.exports = function (Knex, agent, { enabled }) { | ||
module.exports = function (Knex, agent, { version, enabled }) { | ||
if (!enabled) return Knex | ||
if (semver.gte(version, '0.18.0')) { | ||
agent.logger.debug('knex version %s not supported - aborting...', version) | ||
return Knex | ||
} | ||
if (Knex.Client && Knex.Client.prototype) { | ||
@@ -9,0 +15,0 @@ var QUERY_FNS = ['queryBuilder', 'raw'] |
{ | ||
"name": "elastic-apm-node", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "The official Elastic APM agent for Node.js", | ||
@@ -28,3 +28,4 @@ "main": "index.js", | ||
"docker:stop": "docker-compose -f ./test/docker-compose.yml down", | ||
"docker:clean": "./test/script/docker/cleanup.sh" | ||
"docker:clean": "./test/script/docker/cleanup.sh", | ||
"docker:dev": "docker-compose -f ./dev-utils/docker-compose.yml run --workdir=/agent nodejs-agent" | ||
}, | ||
@@ -187,5 +188,5 @@ "directories": { | ||
"coordinates": [ | ||
55.778263, | ||
12.593183 | ||
55.778264, | ||
12.593202 | ||
] | ||
} |
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
236556
5465