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 3.0.1 to 3.0.2

2

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

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