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

@squarecloud/api

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squarecloud/api - npm Package Compare versions

Comparing version
1.1.2
to
1.1.3
+3
-2
lib/index.d.ts
import { Application } from './structures/Application';
import { User } from './structures/User';
import { FullUser, User } from './structures/User';
export declare class SquareCloudAPI {

@@ -20,3 +20,4 @@ static apiInfo: {

*/
getUser(userId?: string): Promise<User>;
getUser(): Promise<FullUser>;
getUser(userId: string): Promise<User>;
/**

@@ -23,0 +24,0 @@ * Returns an application that you can manage or get information

@@ -23,7 +23,2 @@ "use strict";

}
/**
* Gets a user's informations
*
* @param userId - The user id, if not provided it will get your own information
*/
async getUser(userId) {

@@ -30,0 +25,0 @@ if (userId)

+2
-2

@@ -28,5 +28,5 @@ import { AccountPlan, RawUserData } from '../typings';

email: string;
/** The user's registered applications */
applications: Application[];
/** The user's registered applications Map */
applications: Map<string, Application>;
constructor(apiManager: APIManager, data: RawUserData);
}

@@ -46,10 +46,10 @@ "use strict";

email;
/** The user's registered applications */
applications;
/** The user's registered applications Map */
applications = new Map();
constructor(apiManager, data) {
super(apiManager, data);
this.email = data.user.email;
this.applications = data.applications.map((data) => new Application_1.Application(apiManager, data));
data.applications.map((app) => this.applications.set(app.id, new Application_1.Application(apiManager, app)));
}
}
exports.FullUser = FullUser;
{
"name": "@squarecloud/api",
"version": "1.1.2",
"version": "1.1.3",
"description": "A JavaScript Wrapper for SquareCloud API",

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