Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elastic-apm-node

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-apm-node - npm Package Compare versions

Comparing version 2.12.0 to 2.12.1

5

CHANGELOG.md

@@ -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))

8

lib/instrumentation/modules/knex.js
'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
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc