@automattic/vip-go
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -10,9 +10,17 @@ "use strict"; | ||
var noConfig = process.env.NEW_RELIC_NO_CONFIG_FILE === 'true'; | ||
var isLocal = !process.env.VIP_GO_APP_ID; | ||
if (isLocal) { | ||
logger.log('Local development, skipping New Relic initialization...'); | ||
return; | ||
} | ||
if (!noConfig) { | ||
throw new Error("An environment variable is missing \n\t\t\tor not set to true: NEW_RELIC_NO_CONFIG_FILE"); | ||
logger.error("An environment variable is missing \n\t\t\tor not set to true: NEW_RELIC_NO_CONFIG_FILE. Skipping New Relic initialization..."); | ||
return; | ||
} | ||
if (!licenseKey) { | ||
throw new Error('An environment variable is missing: NEW_RELIC_LICENSE_KEY'); | ||
logger.error("An environment variable is missing: \n\t\t\tNEW_RELIC_LICENSE_KEY. Skipping New Relic initialization..."); | ||
return; | ||
} | ||
@@ -19,0 +27,0 @@ |
{ | ||
"name": "@automattic/vip-go", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Node package helpers for the VIP Go platform", | ||
@@ -30,18 +30,20 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.2.3", | ||
"@babel/preset-env": "7.3.1", | ||
"babel-eslint": "10.0.1", | ||
"eslint": "5.14.1", | ||
"@babel/cli": "7.5.5", | ||
"@babel/plugin-transform-runtime": "7.5.5", | ||
"@babel/runtime": "7.5.5", | ||
"@babel/preset-env": "7.5.5", | ||
"babel-eslint": "10.0.2", | ||
"eslint": "5.16.0", | ||
"eslint-config-wpvip": "github:automattic/eslint-config-wpvip#84eabbf", | ||
"eslint-plugin-flowtype": "3.4.2", | ||
"eslint-plugin-import": "2.16.0", | ||
"eslint-plugin-flowtype": "3.12.1", | ||
"eslint-plugin-import": "2.18.2", | ||
"eslint-plugin-json": "1.4.0", | ||
"eslint-plugin-jsx-a11y": "6.2.1", | ||
"eslint-plugin-jsx-a11y": "6.2.3", | ||
"eslint-plugin-no-async-foreach": "0.1.1", | ||
"eslint-plugin-react": "7.12.4", | ||
"eslint-plugin-wpcalypso": "4.0.2", | ||
"express": "4.16.4", | ||
"jest": "24.1.0", | ||
"publish-please": "5.4.3", | ||
"supertest": "3.4.2" | ||
"eslint-plugin-react": "7.14.3", | ||
"eslint-plugin-wpcalypso": "4.1.0", | ||
"express": "4.17.1", | ||
"jest": "24.8.0", | ||
"publish-please": "5.5.1", | ||
"supertest": "4.0.2" | ||
}, | ||
@@ -48,0 +50,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
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
10566
10
182
18
6