@architect/data
Advanced tools
Comparing version 2.0.8 to 2.0.9
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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
175
13
11539
9
209
2
Updated@architect/parser@^1.1.6
Updatedchalk@^2.4.1