aws-xray-sdk-mysql
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -95,3 +95,3 @@ /** | ||
args.segment = (argsObj[argsObj.length-1].constructor && (argsObj[argsObj.length-1].constructor.name === 'Segment' || | ||
args.segment = (argsObj[argsObj.length-1] != null && argsObj[argsObj.length-1].constructor && (argsObj[argsObj.length-1].constructor.name === 'Segment' || | ||
argsObj[argsObj.length-1].constructor.name === 'Subsegment')) ? argsObj[argsObj.length-1] : null; | ||
@@ -98,0 +98,0 @@ } |
{ | ||
"name": "aws-xray-sdk-mysql", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "AWS X-Ray Patcher for MySQL (Javascript)", | ||
@@ -11,3 +11,3 @@ "author": "Amazon Web Services", | ||
"engines": { | ||
"node": ">= 4.x <= 10.x" | ||
"node": ">= 4.x" | ||
}, | ||
@@ -18,6 +18,6 @@ "directories": { | ||
"peerDependencies": { | ||
"aws-xray-sdk-core": "^2.1.0" | ||
"aws-xray-sdk-core": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"aws-xray-sdk-core": "^2.1.0", | ||
"aws-xray-sdk-core": "^2.2.0", | ||
"chai": "^3.5.0", | ||
@@ -46,4 +46,3 @@ "eslint": "^3.10.2", | ||
"license": "Apache-2.0", | ||
"repository": "https://github.com/aws/aws-xray-sdk-node/tree/master/packages/mysql", | ||
"gitHead": "f662e21a7c18be5278e23a64c1c608ebae79a6ec" | ||
"repository": "https://github.com/aws/aws-xray-sdk-node/tree/master/packages/mysql" | ||
} |
@@ -146,2 +146,8 @@ var assert = require('chai').assert; | ||
}); | ||
it('should start a new automatic context when last query paramater is null', function() { | ||
query.call(connectionObj, 'sql here', function() {}, null); | ||
assert.equal(stubBaseQuery.args[0][2].name, 'autoContext'); | ||
}); | ||
}); | ||
@@ -148,0 +154,0 @@ }); |
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
29213
385