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

redis-cloud-api-sdk

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.0.4 to 2.0.5

4

api/subscription.ts

@@ -101,3 +101,3 @@ import {

const taskResponse = await this.task.waitForTaskStatus(taskId, 'processing-completed');
return taskResponse.response.resource;
return taskResponse.response.resource as any;
}

@@ -135,3 +135,3 @@ catch(error) {

const taskResponse = await this.task.waitForTaskStatus(taskId, 'processing-completed');
return taskResponse.response.resource.peerings;
return (taskResponse.response.resource as any).peerings;
}

@@ -138,0 +138,0 @@ catch(error) {

@@ -1,2 +0,2 @@

import { TaskStatus } from '../types/task';
import { TaskObject, TaskStatus } from '../types/task';
import { Client } from './api.base';

@@ -14,3 +14,3 @@

*/
async waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds = 20 * 60, sleepTimeInSeconds = 5): Promise<Task & {[key: string]: any}> {
async waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds = 20 * 60, sleepTimeInSeconds = 5): Promise<TaskObject & {[key: string]: any}> {
let task = await this.getTask(taskId);

@@ -37,3 +37,3 @@ let timePassedInSeconds = 0;

*/
async getTasks(): Promise<Task[] & {[key: string]: any}> {
async getTasks(): Promise<TaskObject[] & {[key: string]: any}> {
try {

@@ -52,3 +52,3 @@ const response = await this.client.get('/tasks');

*/
async getTask(taskId: number): Promise<Task & {[key: string]: any}> {
async getTask(taskId: number): Promise<TaskObject & {[key: string]: any}> {
try {

@@ -55,0 +55,0 @@ const response = await this.client.get(`/tasks/${taskId}`);

@@ -7,5 +7,4 @@ import { CreateSubscriptionParameters, SubscriptionUpdateParameters, CidrUpdateParameters, VpcPeeringCreationParameters } from './types/parameters/subscription';

import { CloudAccountResponse, CloudAccountStatus } from './types/responses/cloud-account';
import { TaskResponse, TaskStatus } from './types/task';
import { TaskObject, TaskResponse, TaskStatus } from './types/task';
import { DatabaseResponse, DatabaseStatus } from './types/responses/database';
import { Task } from './api/task';
import { Client } from './api/api.base';

@@ -232,3 +231,3 @@ export declare class CloudAPISDK extends Client {

}>;
getTasks(): Promise<Task[] & {
getTasks(): Promise<TaskObject[] & {
[key: string]: any;

@@ -240,3 +239,3 @@ }>;

*/
getTask(taskId: number): Promise<Task & {
getTask(taskId: number): Promise<TaskObject & {
[key: string]: any;

@@ -307,3 +306,3 @@ }>;

*/
waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds?: number, sleepTimeInSeconds?: number): Promise<Task & {
waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds?: number, sleepTimeInSeconds?: number): Promise<TaskObject & {
[key: string]: any;

@@ -310,0 +309,0 @@ }>;

@@ -1,2 +0,2 @@

import { TaskStatus } from '../types/task';
import { TaskObject, TaskStatus } from '../types/task';
import { Client } from './api.base';

@@ -13,3 +13,3 @@ export declare class Task {

*/
waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds?: number, sleepTimeInSeconds?: number): Promise<Task & {
waitForTaskStatus(taskId: number, expectedStatus: TaskStatus, timeoutInSeconds?: number, sleepTimeInSeconds?: number): Promise<TaskObject & {
[key: string]: any;

@@ -20,3 +20,3 @@ }>;

*/
getTasks(): Promise<Task[] & {
getTasks(): Promise<TaskObject[] & {
[key: string]: any;

@@ -28,5 +28,5 @@ }>;

*/
getTask(taskId: number): Promise<Task & {
getTask(taskId: number): Promise<TaskObject & {
[key: string]: any;
}>;
}

@@ -9,2 +9,2 @@ export { CloudAPISDK, CloudAPISDKParameters } from './api';

export { DatabaseModule, SubscriptionPaymentMethod } from './types/responses/general';
export { Task, TaskResponse, ErrorResponse, TaskStatus } from './types/task';
export { TaskObject, TaskResponse, ErrorResponse, TaskStatus } from './types/task';

@@ -68,5 +68,6 @@ import { Region } from './general';

export declare type SubscriptionCidrWhitelist = {
cidr_ips: string[];
security_group_ids: string[];
errors: any[];
cidr_ips?: string[];
security_group_ids?: string[];
errors?: any[];
[key: string]: any;
};

@@ -79,4 +80,4 @@ /**

export declare type SubscriptionVpcPeering = {
id: number;
status: SubscriptionVpcPeeringStatus;
id?: number;
status?: SubscriptionVpcPeeringStatus;
};

@@ -83,0 +84,0 @@ /**

@@ -10,3 +10,3 @@ import { SubscriptionPricing } from "./responses/subscription";

*/
export declare type Task = {
export declare type TaskObject = {
taskId: string;

@@ -30,2 +30,6 @@ status: TaskStatus;

pricing?: SubscriptionPricing[];
cidr_ips?: string[];
security_group_ids?: string[];
errors?: any[];
[key: string]: any;
};

@@ -32,0 +36,0 @@ [key: string]: any;

{
"name": "redis-cloud-api-sdk",
"version": "2.0.4",
"version": "2.0.5",
"description": "This is a client for the Redislabs Cloud API",

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

"devDependencies": {
"@microsoft/tsdoc": "0.13.2",
"@types/axios": "0.14.0",
"@types/chai": "4.2.22",
"@types/chai": "4.3.0",
"@types/mocha": "9.0.0",

@@ -47,8 +48,7 @@ "@types/node": "16.11.9",

"dmock-server": "1.8.5",
"mocha": "9.1.3",
"mocha": "9.2.0",
"ts-node": "10.4.0",
"typescript": "4.4.4",
"@microsoft/tsdoc": "0.13.2",
"typedoc": "0.22.10"
"typedoc": "0.22.11",
"typescript": "4.4.4"
}
}
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