@architect/data
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "@architect/data", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Dynamically generate a DynamoDB data access layer from an .arc file", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/arc-repos/arc-data", |
@@ -43,3 +43,3 @@ let _db = require('../db') | ||
let tablename = Object.keys(table)[0] | ||
let find = ({logicalID})=> logicalID === toLogicalID(tablename) | ||
let find = ({logicalID})=> logicalID === `${toLogicalID(tablename)}Table` | ||
let TableName = tables.find(find).physicalID | ||
@@ -46,0 +46,0 @@ if (!TableName) |
@@ -31,4 +31,6 @@ let aws = require('aws-sdk') | ||
let map = tbl=> ({logicalID: tbl.split('-')[1], physicalID: tbl}) | ||
// helper to filter out streams | ||
let stream = arn=> !arn.includes('stream') | ||
// clean up the arns w the helpers | ||
tables = arns.map(table).map(map) | ||
tables = arns.filter(stream).map(table).map(map) | ||
// return the cleaned up payload | ||
@@ -35,0 +37,0 @@ callback(null, tables) |
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
20901
523