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

@appwrite.io/console

Package Overview
Dependencies
Maintainers
5
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appwrite.io/console - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

docs/examples/account/delete.md

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "0.4.2",
"version": "0.5.0",
"license": "BSD-3-Clause",

@@ -8,0 +8,0 @@ "main": "dist/cjs/sdk.js",

@@ -36,3 +36,3 @@ # Appwrite Console SDK

```html
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.4.2"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.5.0"></script>
```

@@ -39,0 +39,0 @@

@@ -107,3 +107,3 @@ import 'isomorphic-form-data';

'x-sdk-language': 'web',
'x-sdk-version': '0.4.2',
'x-sdk-version': '0.5.0',
'X-Appwrite-Response-Format': '1.4.0',

@@ -110,0 +110,0 @@ };

@@ -88,2 +88,20 @@ import { Service } from '../service';

/**
* Delete account
*
* Delete the currently logged in user.
*
* @throws {AppwriteException}
* @returns {Promise}
*/
async delete(): Promise<{}> {
const apiPath = '/account';
const payload: Payload = {};
const uri = new URL(this.client.config.endpoint + apiPath);
return await this.client.call('delete', uri, {
'content-type': 'application/json',
}, payload);
}
/**
* Update email

@@ -90,0 +108,0 @@ *

@@ -773,3 +773,3 @@ import { Service } from '../service';

*/
async getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions> {
async getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunction> {
if (typeof functionId === 'undefined') {

@@ -776,0 +776,0 @@ throw new AppwriteException('Missing required parameter: "functionId"');

@@ -35,2 +35,11 @@ import { Service } from '../service';

/**
* Delete account
*
* Delete the currently logged in user.
*
* @throws {AppwriteException}
* @returns {Promise}
*/
delete(): Promise<{}>;
/**
* Update email

@@ -37,0 +46,0 @@ *

@@ -261,3 +261,3 @@ import { Service } from '../service';

*/
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunction>;
/**

@@ -264,0 +264,0 @@ * List variables

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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