@architect/data
Advanced tools
Comparing version 2.0.16 to 2.0.17
{ | ||
"name": "@architect/data", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"description": "Dynamically generate a DynamoDB data access layer from an .arc file", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/arc-repos/arc-data", |
@@ -84,10 +84,12 @@ var _db = require('./db') | ||
// this creates the data.tablename namespace | ||
var index = 0 | ||
var names = arc.tables.map(t=> Object.keys(t)[0]) | ||
names.forEach(table=> { | ||
layer[table] = pfy(data[index]) | ||
index += 1 | ||
}) | ||
if (arc.tables) { | ||
let index = 0 | ||
let names = arc.tables.map(t=> Object.keys(t)[0]) | ||
names.forEach(table=> { | ||
layer[table] = pfy(data[index]) | ||
index += 1 | ||
}) | ||
} | ||
return layer | ||
} |
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
11635
188