@mcma/aws-dynamodb
Advanced tools
Comparing version 0.4.4 to 0.4.6
@@ -25,3 +25,3 @@ const AWS = require("aws-sdk"); | ||
} | ||
} | ||
}; | ||
@@ -32,3 +32,3 @@ class DynamoDbTable extends DbTable { | ||
const docClient = new AWS.DynamoDB.DocumentClient() | ||
const docClient = new AWS.DynamoDB.DocumentClient(); | ||
const dcQuery = util.promisify(docClient.query.bind(docClient)); | ||
@@ -64,3 +64,3 @@ const dcGet = util.promisify(docClient.get.bind(docClient)); | ||
return items; | ||
} | ||
}; | ||
@@ -82,3 +82,3 @@ this.get = async (id) => { | ||
return data.Item.resource; | ||
} | ||
}; | ||
@@ -100,4 +100,6 @@ this.put = async (id, resource) => { | ||
await dcPut(params); | ||
} | ||
return resource; | ||
}; | ||
this.delete = async (id) => { | ||
@@ -113,3 +115,3 @@ var params = { | ||
await dcDelete(params); | ||
} | ||
}; | ||
} | ||
@@ -116,0 +118,0 @@ } |
{ | ||
"name": "@mcma/aws-dynamodb", | ||
"version": "0.4.4", | ||
"version": "0.4.6", | ||
"description": "Node module with code for using DynamoDB as the backing data storage for MCMA API handlers and workers.", | ||
@@ -29,3 +29,3 @@ "engines": { | ||
"dependencies": { | ||
"@mcma/data": "0.4.4", | ||
"@mcma/data": "0.4.6", | ||
"aws-sdk": "^2.291.0", | ||
@@ -32,0 +32,0 @@ "dynamodb-doc": "^1.0.0" |
4861
111
+ Added@mcma/core@0.4.6(transitive)
+ Added@mcma/data@0.4.6(transitive)
- Removed@mcma/core@0.4.4(transitive)
- Removed@mcma/data@0.4.4(transitive)
Updated@mcma/data@0.4.6