New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cloudbase/cloud-api

Package Overview
Dependencies
Maintainers
7
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/cloud-api - npm Package Compare versions

Comparing version
0.1.1
to
0.1.2
+5
-1
lib/index.js

@@ -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",

@@ -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;
}