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

lz-api-client

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lz-api-client - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

8

dist/services/AccountService.d.ts

@@ -42,6 +42,6 @@ import type { Authorization, InsertedId, SignUpBody, RequestPasswordResetBody, ResetPasswordBody, UploadProfileImageRes } from 'lz-schema';

* Sign out the current account.
* This will remove the bearer token from the client.
* This will remove the bearer token from the client and blacklist it on the server.
* Redirection to the sign-in page is recommended after calling this method.
*/
signOut(): void;
signOut(): Promise<void>;
/**

@@ -78,3 +78,7 @@ * Get the account details of the currently authenticated user.

resetPassword({ token, password }: ResetPasswordBody): Promise<null>;
/**
* Upload a profile image for the account.
* The image will be compressed and resized on the server.
*/
uploadProfileImage(file: File): Promise<UploadProfileImageRes>;
}

@@ -52,7 +52,10 @@ "use strict";

* Sign out the current account.
* This will remove the bearer token from the client.
* This will remove the bearer token from the client and blacklist it on the server.
* Redirection to the sign-in page is recommended after calling this method.
*/
signOut() {
this.client.removeBearerToken();
return __awaiter(this, void 0, void 0, function* () {
yield this.client.post('/sign-out', {});
this.client.removeBearerToken();
});
}

@@ -85,2 +88,6 @@ /**

}
/**
* Upload a profile image for the account.
* The image will be compressed and resized on the server.
*/
uploadProfileImage(file) {

@@ -87,0 +94,0 @@ return this.client.postFile('/upload-profile-image', file);

{
"name": "lz-api-client",
"version": "0.8.1",
"version": "0.9.0",
"description": "client sdk for layerZ api",

@@ -34,4 +34,4 @@ "main": "dist/index.js",

"dependencies": {
"lz-schema": "^0.10.5"
"lz-schema": "^0.10.6"
}
}

Sorry, the diff of this file is not supported yet

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