Skip to content

Commit 1953e82

Browse files
committed
Fix header casting and more minor fixes
1 parent 2122b2a commit 1953e82

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/examples/functions/create-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ client
1212
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1313
;
1414

15-
let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', fs.createReadStream(__dirname + '/file.png')));
15+
let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', '');
1616

1717
promise.then(function (response) {
1818
console.log(response);

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ client
1212
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1313
;
1414

15-
let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png')));
15+
let promise = storage.createFile('');
1616

1717
promise.then(function (response) {
1818
console.log(response);

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Client {
99
this.endpoint = 'https://appwrite.io/v1';
1010
this.headers = {
1111
'content-type': '',
12-
'x-sdk-version': 'appwrite:nodejs:2.2.1',
12+
'x-sdk-version': 'appwrite:nodejs:2.2.2',
1313
'X-Appwrite-Response-Format' : '0.8.0',
1414
};
1515
this.selfSigned = false;

lib/services/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Functions extends Service {
273273
*
274274
* @param string functionId
275275
* @param string command
276-
* @param File code
276+
* @param string code
277277
* @throws Exception
278278
* @return {}
279279
*/

lib/services/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Storage extends Service {
3737
* assigned to read and write access unless he has passed custom values for
3838
* read and write arguments.
3939
*
40-
* @param File file
40+
* @param string file
4141
* @param string[] read
4242
* @param string[] write
4343
* @throws Exception

package.json

Lines changed: 1 addition & 1 deletion
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": "2.2.1",
5+
"version": "2.2.2",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"repository": {

0 commit comments

Comments
 (0)