@xapp/dynamo-service
Advanced tools
Comparing version 0.0.104 to 0.0.105
@@ -126,3 +126,4 @@ "use strict"; | ||
this.getKey(key); | ||
return this.db.get(this.tableName, realKey, projection) | ||
const realProjection = projection || this.knownKeys; | ||
return this.db.get(this.tableName, realKey, realProjection) | ||
.then(item => (Array.isArray(item)) ? item.map((item) => this.convertObjFromDynamo(item)) : this.convertObjFromDynamo(item)) | ||
@@ -133,3 +134,4 @@ .then(item => (Array.isArray(item)) ? item.map((item) => this.cleanseObjectOfIgnoredGetItems(item)) : this.cleanseObjectOfIgnoredGetItems(item)) | ||
query(params, projection) { | ||
return this.db.query(this.tableName, params, projection) | ||
const realProjection = projection || this.knownKeys; | ||
return this.db.query(this.tableName, params, realProjection) | ||
.then(items => this.convertObjectsFromDynamo(items)) | ||
@@ -139,3 +141,4 @@ .then(items => this.cleanseIgnoredItemsOfDynamoObject(items)); | ||
scan(params, projection) { | ||
return this.db.scan(this.tableName, params, projection) | ||
const realProjection = projection || this.knownKeys; | ||
return this.db.scan(this.tableName, params, realProjection) | ||
.then(items => this.convertObjectsFromDynamo(items)) | ||
@@ -142,0 +145,0 @@ .then(items => this.cleanseIgnoredItemsOfDynamoObject(items)); |
{ | ||
"name": "@xapp/dynamo-service", | ||
"version": "0.0.104", | ||
"version": "0.0.105", | ||
"description": "A dynamo help class which will help maintain data integrity.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
148049
3941