🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

node-appwrite

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-appwrite - npm Package Compare versions

Comparing version

to
1.1.0

const Client = require('./lib/client.js');
const Avatars = require('./lib/services/avatars.js');
const Database = require('./lib/services/database.js');
const Health = require('./lib/services/health.js');
const Locale = require('./lib/services/locale.js');

@@ -13,2 +14,3 @@ const Storage = require('./lib/services/storage.js');

Database,
Health,
Locale,

@@ -15,0 +17,0 @@ Storage,

@@ -10,3 +10,3 @@ const URL = require('url').URL;

'content-type': '',
'x-sdk-version': 'appwrite:nodejs:1.0.32',
'x-sdk-version': 'appwrite:nodejs:1.1.0',
};

@@ -59,15 +59,2 @@ this.selfSigned = false;

/**
* Set Mode
*
* @param string value
*
* @return self
*/
setMode(value) {
this.addHeader('X-Appwrite-Mode', value);
return this;
}
/***

@@ -74,0 +61,0 @@ * @param bool status

@@ -40,5 +40,5 @@ const Service = require('../service.js');

* @param string name
* @param array read
* @param array write
* @param array rules
* @param string[] read
* @param string[] write
* @param string[] rules
* @throws Exception

@@ -88,5 +88,5 @@ * @return {}

* @param string name
* @param array read
* @param array write
* @param array rules
* @param string[] read
* @param string[] write
* @param string[] rules
* @throws Exception

@@ -138,3 +138,3 @@ * @return {}

* @param string collectionId
* @param array filters
* @param string[] filters
* @param number offset

@@ -161,5 +161,5 @@ * @param number limit

'limit': limit,
'order-field': orderField,
'order-type': orderType,
'order-cast': orderCast,
'orderField': orderField,
'orderType': orderType,
'orderCast': orderCast,
'search': search,

@@ -178,4 +178,4 @@ 'first': first,

* @param object data
* @param array read
* @param array write
* @param string[] read
* @param string[] write
* @param string parentDocument

@@ -230,4 +230,4 @@ * @param string parentProperty

* @param object data
* @param array read
* @param array write
* @param string[] read
* @param string[] write
* @throws Exception

@@ -270,4 +270,21 @@ * @return {}

}
/**
* Get Collection Logs
*
* @param string collectionId
* @throws Exception
* @return {}
*/
async getCollectionLogs(collectionId) {
let path = '/database/collections/{collectionId}/logs'.replace(new RegExp('{collectionId}', 'g'), collectionId);
return await this.client.call('get', path, {
'content-type': 'application/json',
},
{
});
}
}
module.exports = Database;

@@ -29,3 +29,3 @@ const Service = require('../service.js');

/**
* List Countries
* List Continents
*

@@ -32,0 +32,0 @@ * List of all continents. You can use the locale header to get the data in a

@@ -41,4 +41,4 @@ const Service = require('../service.js');

* @param File file
* @param array read
* @param array write
* @param string[] read
* @param string[] write
* @throws Exception

@@ -87,4 +87,4 @@ * @return {}

* @param string fileId
* @param array read
* @param array write
* @param string[] read
* @param string[] write
* @throws Exception

@@ -91,0 +91,0 @@ * @return {}

@@ -42,3 +42,3 @@ const Service = require('../service.js');

* @param string name
* @param array roles
* @param string[] roles
* @throws Exception

@@ -160,3 +160,3 @@ * @return {}

* @param string email
* @param array roles
* @param string[] roles
* @param string url

@@ -163,0 +163,0 @@ * @param string name

@@ -184,3 +184,3 @@ const Service = require('../service.js');

async deleteSession(userId, sessionId) {
let path = '/users/{userId}/sessions/:session'.replace(new RegExp('{userId}', 'g'), userId);
let path = '/users/{userId}/sessions/{sessionId}'.replace(new RegExp('{userId}', 'g'), userId).replace(new RegExp('{sessionId}', 'g'), sessionId);

@@ -191,3 +191,2 @@ return await this.client.call('delete', path, {

{
'sessionId': sessionId
});

@@ -194,0 +193,0 @@ }

{
"name": "node-appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)",
"version": "1.0.32",
"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": "1.1.0",
"license": "BSD-3-Clause",

@@ -7,0 +7,0 @@ "main": "index.js",

@@ -1,7 +0,9 @@

# Appwrite SDK for NodeJS
# Appwrite Node.js SDK
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.5.0-blue.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.6.0-blue.svg?v=1)
Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
Use the Node.js SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)

@@ -20,4 +22,8 @@

## Contribution
This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
## License
Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.