@cloudbase/cloud-api
Advanced tools
+6
-1
@@ -66,5 +66,10 @@ "use strict"; | ||
| const { service, baseParams, version, proxy, region, credential, getCredential, timeout = 60000 } = options; | ||
| this.proxy = proxy; | ||
| this.service = service; | ||
| this.timeout = timeout; | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_PROXY) { | ||
| this.proxy = process.env.CLOUDBASE_TCB_CLOUDAPI_PROXY; | ||
| } | ||
| else { | ||
| this.proxy = proxy; | ||
| } | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_REGION) { | ||
@@ -71,0 +76,0 @@ this.region = process.env.CLOUDBASE_TCB_CLOUDAPI_REGION; |
+1
-1
| { | ||
| "name": "@cloudbase/cloud-api", | ||
| "version": "0.1.9", | ||
| "version": "0.1.10", | ||
| "description": "The cloud api request package.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
+6
-1
@@ -132,6 +132,11 @@ import crypto from 'crypto' | ||
| this.proxy = proxy | ||
| this.service = service | ||
| this.timeout = timeout | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_PROXY) { | ||
| this.proxy = process.env.CLOUDBASE_TCB_CLOUDAPI_PROXY | ||
| } else { | ||
| this.proxy = proxy | ||
| } | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_REGION) { | ||
@@ -138,0 +143,0 @@ this.region = process.env.CLOUDBASE_TCB_CLOUDAPI_REGION |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
31624
1.18%746
1.22%16
33.33%