Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leancloud-log-middleware

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leancloud-log-middleware - npm Package Compare versions

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

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