leancloud-log-middleware
Advanced tools
Comparing version 1.4.0 to 1.4.1
20
index.js
@@ -6,8 +6,16 @@ var request = require('request'); | ||
AV.init({ | ||
appId: process.env.LEANCLOUD_APP_ID, | ||
appKey: process.env.LEANCLOUD_APP_KEY, | ||
masterKey: process.env.LEANCLOUD_APP_MASTER_KEY, | ||
region: 'us' | ||
}); | ||
if(process.env.isUS === 'true'){ | ||
AV.init({ | ||
appId: process.env.LEANCLOUD_APP_ID, | ||
appKey: process.env.LEANCLOUD_APP_KEY, | ||
masterKey: process.env.LEANCLOUD_APP_MASTER_KEY, | ||
region: 'us' | ||
}); | ||
} else { | ||
AV.init({ | ||
appId: process.env.LEANCLOUD_APP_ID, | ||
appKey: process.env.LEANCLOUD_APP_KEY, | ||
masterKey: process.env.LEANCLOUD_APP_MASTER_KEY | ||
}); | ||
} | ||
@@ -14,0 +22,0 @@ |
{ | ||
"name": "leancloud-log-middleware", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Middleware of creating Leancloud object, by configuring LOG_SYSTEM_APP_ID, LOG_SYSTEM_APP_KEY and LOG_SYSTEM_CLASS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,3 @@ # leancloud-log-middleware | ||
export LOG_SYSTEM_CLASS=YOUR_LEANCLOUD_CLASS | ||
export isUS=true | ||
@@ -26,0 +27,0 @@ $ npm start |
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
9362
200
50
13