New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@begin/data

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@begin/data - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

8

changelog.md
# Begin Data changelog
---
## [3.0.4] 2021-10-18
### Fixed
- Fixed issue so that if present ARC_ENV takes precedence over NODE_ENV for stage.
---
## [3.0.3] 2021-10-14

@@ -5,0 +13,0 @@

2

package.json
{
"name": "@begin/data",
"version": "3.0.3",
"version": "3.0.4",
"description": "Begin Data is a durable and fast key/value document store built on top of DynamoDB",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ let aws = require('aws-sdk')

let testing = process.env.NODE_ENV === 'testing'
let testing = process.env.ARC_ENV ? process.env.ARC_ENV === 'testing' : process.env.NODE_ENV === 'testing'
let port = process.env.ARC_TABLES_PORT || 5000

@@ -13,0 +13,0 @@ let local = {

@@ -14,6 +14,7 @@ /**

let { table, key } = params
let env = process.env.NODE_ENV === 'testing' ? 'staging' : (process.env.NODE_ENV || 'staging')
let env = process.env.ARC_ENV || process.env.NODE_ENV
let envKey = env === 'testing' ? 'staging' : (env || 'staging')
let scopeID = process.env.BEGIN_DATA_SCOPE_ID || process.env.ARC_APP_NAME || 'sandbox'
let dataID = `${env}#${table}#${key}`
let dataID = `${envKey}#${table}#${key}`
return { scopeID, dataID }
}

@@ -18,3 +18,3 @@ let aws = require('aws-sdk')

else if (arc6) {
let isLocal = process.env.NODE_ENV === 'testing'
let isLocal = process.env.ARC_ENV ? process.env.ARC_ENV === 'testing' : process.env.NODE_ENV === 'testing'
let config

@@ -21,0 +21,0 @@ if (isLocal) {

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