Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/data

Package Overview
Dependencies
Maintainers
7
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/data - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

4

package.json
{
"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 @@ }))

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc