@architect/data
Advanced tools
Comparing version 2.0.15 to 2.0.16
{ | ||
"name": "@architect/data", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "Dynamically generate a DynamoDB data access layer from an .arc file", | ||
@@ -34,3 +34,3 @@ "homepage": "https://github.com/arc-repos/arc-data", | ||
"aws-sdk": "^2.427.0", | ||
"eslint": "^5.15.3", | ||
"eslint": "^5.16.0", | ||
"run-parallel": "^1.1.9", | ||
@@ -37,0 +37,0 @@ "tap-spec": "^5.0.0", |
@@ -12,3 +12,4 @@ var _db = require('./db') | ||
var app = arc.app[0] | ||
// the app namespace | ||
let app = arc.app[0] | ||
@@ -20,4 +21,4 @@ // helper for getting a table name | ||
// gets all the tables for the current env | ||
var tables = arc.tables.slice(0).map(t=> _name(Object.keys(t)[0])) | ||
// list of all tables (if any) defined in .arc | ||
let tables = arc.tables? arc.tables.slice(0).map(t=> _name(Object.keys(t)[0])) : [] | ||
@@ -60,6 +61,3 @@ // create a map of data access methods for each table | ||
params.TableName = TableName | ||
_doc.update(params, function _update(err, results) { | ||
if (err) callback(err) | ||
else callback(err, results) | ||
}) | ||
_doc.update(params, callback) | ||
} | ||
@@ -66,0 +64,0 @@ })) |
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
11599
186