@ginger.io/beyonce
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -26,9 +26,7 @@ "use strict"; | ||
this.table = table; | ||
const client = new aws_sdk_1.DynamoDB.DocumentClient({ service: dynamo }); | ||
this.client = new aws_sdk_1.DynamoDB.DocumentClient({ service: dynamo }); | ||
if (options.xRayTracingEnabled) { | ||
this.client = aws_xray_sdk_1.captureAWSClient(client); | ||
// hack per: https://github.com/aws/aws-xray-sdk-node/issues/23#issuecomment-509745488 | ||
aws_xray_sdk_1.captureAWSClient(this.client.service); | ||
} | ||
else { | ||
this.client = client; | ||
} | ||
if (options.jayz !== undefined) { | ||
@@ -35,0 +33,0 @@ this.jayz = options.jayz; |
{ | ||
"name": "@ginger.io/beyonce", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Type-safe DynamoDB query builder for TypeScript. Designed with single-table architecture in mind.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -50,7 +50,6 @@ import { JayZ } from "@ginger.io/jay-z" | ||
) { | ||
const client = new DynamoDB.DocumentClient({ service: dynamo }) | ||
this.client = new DynamoDB.DocumentClient({ service: dynamo }) | ||
if (options.xRayTracingEnabled) { | ||
this.client = captureAWSClient(client) as DynamoDB.DocumentClient | ||
} else { | ||
this.client = client | ||
// hack per: https://github.com/aws/aws-xray-sdk-node/issues/23#issuecomment-509745488 | ||
captureAWSClient((this.client as any).service) | ||
} | ||
@@ -57,0 +56,0 @@ |
Sorry, the diff of this file is not supported yet
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
247603
4770