New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rl-cloud-api-sdk

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rl-cloud-api-sdk - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

api/general.ts

1

lib/api.d.ts

@@ -17,2 +17,3 @@ import { CreateSubscriptionParameters, SubscriptionUpdateParameters, CidrUpdateParameters, VpcPeeringCreationParameters } from './types/parameters/subscription';

private httpClient;
private general;
/**

@@ -19,0 +20,0 @@ * Initializing the constructur with given custom parameters

59

lib/api.js

@@ -14,2 +14,3 @@ "use strict";

const axios_1 = require("axios");
const general_1 = require("./api/general");
class CloudAPISDK {

@@ -44,4 +45,4 @@ /**

});
this.general = new general_1.General(this.httpClient);
}
//Account related requests
/**

@@ -52,9 +53,3 @@ * Returning current account and related information

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get('/');
return response.data.account;
}
catch (error) {
return error;
}
return yield this.general.getAccountInformation();
});

@@ -67,9 +62,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get('/data-persistence');
return response.data.dataPersistence;
}
catch (error) {
return error;
}
return yield this.general.getDataPersistences();
});

@@ -82,9 +71,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get('/database-modules');
return response.data.modules;
}
catch (error) {
return error;
}
return yield this.general.getDatabaseModules();
});

@@ -99,9 +82,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get(`/logs?limit=${limit}&offset=${offset}`);
return response.data.entries;
}
catch (error) {
return error;
}
return yield this.general.getSystemLogs(limit, offset);
});

@@ -114,9 +91,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get('/payment-methods');
return response.data.paymentMethods;
}
catch (error) {
return error;
}
return yield this.general.getPaymentMethods();
});

@@ -130,9 +101,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get(`/plans?provider=${provider}`);
return response.data.plans;
}
catch (error) {
return error;
}
return yield this.general.getPlans(provider);
});

@@ -146,9 +111,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.httpClient.get(`/regions?provider=${provider}`);
return response.data.regions;
}
catch (error) {
return error;
}
return yield this.general.getRegions(provider);
});

@@ -155,0 +114,0 @@ }

{
"name": "rl-cloud-api-sdk",
"version": "1.3.3",
"version": "1.3.4",
"description": "This is a client for the Redislabs Cloud API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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