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.8 to 2.0.9

src/_init.js

17

index.js

@@ -5,3 +5,3 @@ var fs = require('fs')

var exists = fs.existsSync
var init = require('./_init')
var init = require('./src/_init')

@@ -11,7 +11,12 @@ // path to the .arc for hydration

// see if we are testing @architect/data itself
var diagnostics = process.env.hasOwnProperty('ARC_LOCAL')
if (diagnostics) {
// explicitly chosing to use it
arcPath = path.join(process.cwd(), '.arc')
var local = process.env.hasOwnProperty('ARC_LOCAL')
// see if we are using @architect/data locally in sandbox
if (local) {
// Arc 4 Sandbox
let arc4 = path.join(process.cwd(), 'node_modules', '@architect', 'shared', '.arc')
// Arc 3 sandbox
let arc3 = path.join(process.cwd(), '.arc')
if (exists(arc4)) arcPath = arc4
else if (exists(arc3)) arcPath = arc3
else throw ReferenceError('.arc file not found: ' + arcPath)
}

@@ -18,0 +23,0 @@ else if (exists(path.join(process.cwd(), '.arc'))) {

{
"name": "@architect/data",
"version": "2.0.8",
"version": "2.0.9",
"description": "Dynamically generate a DynamoDB data access layer from an .arc file",
"main": "index.js",
"scripts": {
"test": "NODE_ENV=testing ARC_LOCAL=yas tape 'test/*-test.js' | tap-spec",
"test": "NODE_ENV=testing tape 'test/*-test.js' | tap-spec",
"lint": "eslint . --fix --ignore-pattern node_modules",
"start": "NODE_ENV=testing ARC_LOCAL=yas node repl"
"start": "NODE_ENV=testing node repl"
},

@@ -26,3 +26,3 @@ "bin": {

"devDependencies": {
"@architect/workflows": "^1.1.24",
"@architect/workflows": "^3.6.0",
"aws-sdk": "^2.273.1",

@@ -35,6 +35,6 @@ "eslint": "^5.1.0",

"dependencies": {
"@architect/parser": "^1.0.6",
"chalk": "^2.3.0",
"@architect/parser": "^1.1.6",
"chalk": "^2.4.1",
"path-exists": "^3.0.0"
}
}

@@ -1,2 +0,3 @@

# <kbd>:cloud_with_lightning: @architect/data</kbd>
## [`@architect/data`](https://www.npmjs.com/package/@architect/data)
[![Build Status](https://travis-ci.com/arc-repos/arc-data.svg?branch=master)](https://travis-ci.com/arc-repos/arc-data)

@@ -3,0 +4,0 @@ > Generate a DynamoDB data access layer from an `.arc` file. Automatically disambiguates `testing` (in memory) from deployment `staging` and `production` 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