@cloudbase/cloud-api
Advanced tools
+5
-1
@@ -57,2 +57,3 @@ "use strict"; | ||
| }; | ||
| exports.fetch = request_1.fetch; | ||
| class CloudApiService { | ||
@@ -173,3 +174,3 @@ constructor(options) { | ||
| config.headers['Authorization'] = sign; | ||
| return request_1.fetch(this.url, config, this.proxy); | ||
| return exports.fetch(this.url, config, this.proxy); | ||
| } | ||
@@ -201,4 +202,7 @@ getRequestSign(timestamp) { | ||
| } | ||
| clearCredentialCache() { | ||
| this.credential = null; | ||
| } | ||
| } | ||
| exports.CloudApiService = CloudApiService; | ||
| CloudApiService.serviceCacheMap = {}; |
+1
-1
| { | ||
| "name": "@cloudbase/cloud-api", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "The cloud api request package.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
+3
-0
@@ -0,1 +1,2 @@ | ||
| import { fetch as _fetch } from './request'; | ||
| export interface ServiceOptions { | ||
@@ -16,2 +17,3 @@ service: string; | ||
| } | ||
| export declare const fetch: typeof _fetch; | ||
| export declare class CloudApiService { | ||
@@ -38,2 +40,3 @@ static serviceCacheMap: Record<string, CloudApiService>; | ||
| getRequestSign(timestamp: number): string; | ||
| clearCredentialCache(): void; | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
28620
0.77%678
1.04%18
28.57%