Skip to content

Commit fc3b6be

Browse files
fix: query class export
1 parent a93117a commit fc3b6be

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Node.js SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-0.12.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-0.12.1-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

index.d.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ declare module "node-appwrite" {
311311
/**
312312
* Attribute size.
313313
*/
314-
size: string;
314+
size: number;
315315
/**
316316
* Default value for attribute when not provided. Cannot be set when attribute is required.
317317
*/
@@ -1450,8 +1450,9 @@ declare module "node-appwrite" {
14501450
/**
14511451
* Update Account Preferences
14521452
*
1453-
* Update currently logged in user account preferences. You can pass only the
1454-
* specific settings you wish to update.
1453+
* Update currently logged in user account preferences. The object you pass is
1454+
* stored as is, and replaces any previous value. The maximum allowed prefs
1455+
* size is 64kB and throws error if exceeded.
14551456
*
14561457
* @param {object} prefs
14571458
* @throws {AppwriteException}
@@ -2806,8 +2807,9 @@ declare module "node-appwrite" {
28062807
/**
28072808
* Update User Preferences
28082809
*
2809-
* Update the user preferences by its unique ID. You can pass only the
2810-
* specific settings you wish to update.
2810+
* Update the user preferences by its unique ID. The object you pass is stored
2811+
* as is, and replaces any previous value. The maximum allowed prefs size is
2812+
* 64kB and throws error if exceeded.
28112813
*
28122814
* @param {string} userId
28132815
* @param {object} prefs

lib/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Client {
99
this.endpoint = 'https://HOSTNAME/v1';
1010
this.headers = {
1111
'content-type': '',
12-
'x-sdk-version': 'appwrite:nodejs:4.0.1',
12+
'x-sdk-version': 'appwrite:nodejs:4.0.2',
1313
'X-Appwrite-Response-Format' : '0.12.0',
1414
};
1515
this.selfSigned = false;

lib/query.js

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ class Query {
3232
? `"${value}"`
3333
: `${value}`;
3434
}
35+
36+
module.exports = Query;

lib/services/account.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ class Account extends Service {
190190
/**
191191
* Update Account Preferences
192192
*
193-
* Update currently logged in user account preferences. You can pass only the
194-
* specific settings you wish to update.
193+
* Update currently logged in user account preferences. The object you pass is
194+
* stored as is, and replaces any previous value. The maximum allowed prefs
195+
* size is 64kB and throws error if exceeded.
195196
*
196197
* @param {object} prefs
197198
* @throws {AppwriteException}

lib/services/users.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,9 @@ class Users extends Service {
294294
/**
295295
* Update User Preferences
296296
*
297-
* Update the user preferences by its unique ID. You can pass only the
298-
* specific settings you wish to update.
297+
* Update the user preferences by its unique ID. The object you pass is stored
298+
* as is, and replaces any previous value. The maximum allowed prefs size is
299+
* 64kB and throws error if exceeded.
299300
*
300301
* @param {string} userId
301302
* @param {object} prefs

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"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",
5-
"version": "4.0.1",
5+
"version": "4.0.2",
66
"license": "BSD-3-Clause",
77
"main": "./index.js",
88
"types": "./index.d.ts",

0 commit comments

Comments
 (0)