@cloudbase/cloud-api
Advanced tools
@@ -57,3 +57,4 @@ "use strict"; | ||
| vpc: '2017-03-12', | ||
| ssl: '2019-12-05' | ||
| ssl: '2019-12-05', | ||
| tcbr: '2022-02-17', | ||
| }; | ||
@@ -107,4 +108,4 @@ exports.fetch = request_1.fetch; | ||
| }; | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_HOST) { | ||
| return `http://${process.env.CLOUDBASE_TCB_CLOUDAPI_HOST}`; | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_URL) { | ||
| return process.env.CLOUDBASE_TCB_CLOUDAPI_URL; | ||
| } | ||
@@ -195,5 +196,5 @@ if (urlMap[this.service]) { | ||
| } | ||
| const { CLOUDBASE_TCB_CLOUDAPI_HOST } = process.env; | ||
| if (this.service === 'tcb' && CLOUDBASE_TCB_CLOUDAPI_HOST) { | ||
| this.host = CLOUDBASE_TCB_CLOUDAPI_HOST; | ||
| const { CLOUDBASE_TCB_CLOUDAPI_URL } = process.env; | ||
| if (this.service === 'tcb' && CLOUDBASE_TCB_CLOUDAPI_URL) { | ||
| this.host = new url_1.URL(CLOUDBASE_TCB_CLOUDAPI_URL).host; | ||
| } | ||
@@ -200,0 +201,0 @@ else { |
+0
-0
@@ -0,0 +0,0 @@ "use strict"; |
+0
-0
@@ -0,0 +0,0 @@ "use strict"; |
+0
-0
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
+1
-1
| { | ||
| "name": "@cloudbase/cloud-api", | ||
| "version": "0.5.2", | ||
| "version": "0.5.3", | ||
| "description": "The cloud api request package.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -59,3 +59,4 @@ import crypto from 'crypto'; | ||
| vpc: '2017-03-12', | ||
| ssl: '2019-12-05' | ||
| ssl: '2019-12-05', | ||
| tcbr: '2022-02-17', | ||
| }; | ||
@@ -172,4 +173,4 @@ | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_HOST) { | ||
| return `http://${process.env.CLOUDBASE_TCB_CLOUDAPI_HOST}`; | ||
| if (this.service === 'tcb' && process.env.CLOUDBASE_TCB_CLOUDAPI_URL) { | ||
| return process.env.CLOUDBASE_TCB_CLOUDAPI_URL; | ||
| } | ||
@@ -277,6 +278,6 @@ | ||
| const { CLOUDBASE_TCB_CLOUDAPI_HOST } = process.env; | ||
| const { CLOUDBASE_TCB_CLOUDAPI_URL } = process.env; | ||
| if (this.service === 'tcb' && CLOUDBASE_TCB_CLOUDAPI_HOST) { | ||
| this.host = CLOUDBASE_TCB_CLOUDAPI_HOST; | ||
| if (this.service === 'tcb' && CLOUDBASE_TCB_CLOUDAPI_URL) { | ||
| this.host = new URL(CLOUDBASE_TCB_CLOUDAPI_URL).host; | ||
| } else { | ||
@@ -283,0 +284,0 @@ this.host = new URL(this.url).host; |
@@ -0,0 +0,0 @@ import { fetch as _fetch, fetchStream as _fetchStream } from './request'; |
+0
-0
@@ -0,0 +0,0 @@ interface Options { |
+0
-0
| export * from './cloud-api-service'; | ||
| export * from './weda-api-request'; |
@@ -0,0 +0,0 @@ import _fetch, { RequestInit } from 'node-fetch'; |
@@ -0,0 +0,0 @@ interface ICredentials { |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 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 5 instances in 1 package
55952
1.2%1306
0.15%26
4%