node-appwrite 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +1 -1
- package/lib/services/functions.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -10,7 +10,7 @@ class Client {
|
|
|
10
10
|
this.endpoint = 'https://HOSTNAME/v1';
|
|
11
11
|
this.headers = {
|
|
12
12
|
'content-type': '',
|
|
13
|
-
'x-sdk-version': 'appwrite:nodejs:7.0.
|
|
13
|
+
'x-sdk-version': 'appwrite:nodejs:7.0.1',
|
|
14
14
|
'X-Appwrite-Response-Format' : '0.15.0',
|
|
15
15
|
};
|
|
16
16
|
this.selfSigned = false;
|
|
@@ -393,7 +393,7 @@ class Functions extends Service {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
const stream = Stream.Readable.from(currentChunk);
|
|
396
|
-
payload['code'] = { type: 'file', file: stream, filename:
|
|
396
|
+
payload['code'] = { type: 'file', file: stream, filename: code.filename };
|
|
397
397
|
|
|
398
398
|
response = await selfClient.call('post', path, headers, payload);
|
|
399
399
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "node-appwrite",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"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": "7.0.
|
|
5
|
+
"version": "7.0.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|