Skip to content

Commit 26d10dd

Browse files
authored
Merge pull request #162 from appwrite/dev
chore: regenerate sdks
2 parents e2eebe6 + 3adf307 commit 26d10dd

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

.github/workflows/npm-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup binfmt with QEMU
1515
run: |
1616
sudo apt update
17-
sudo apt install qemu binfmt-support qemu-user-static
17+
sudo apt install qemu-system binfmt-support qemu-user-static
1818
update-binfmts --display
1919
- name: Setup ldid
2020
run: |

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
6.2.1
32+
6.2.2
3333
```
3434

3535
### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6060
Once the installation completes, you can verify your install using
6161
```
6262
$ appwrite -v
63-
6.2.1
63+
6.2.2
6464
```
6565

6666
## Getting Started

install.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.1/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.1/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ printSuccess() {
9797
downloadBinary() {
9898
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9999

100-
GITHUB_LATEST_VERSION="6.2.1"
100+
GITHUB_LATEST_VERSION="6.2.2"
101101
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102102
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103103

lib/client.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Client {
1616
'x-sdk-name': 'Command Line',
1717
'x-sdk-platform': 'console',
1818
'x-sdk-language': 'cli',
19-
'x-sdk-version': '6.2.1',
20-
'user-agent' : `AppwriteCLI/6.2.1 (${os.type()} ${os.version()}; ${os.arch()})`,
19+
'x-sdk-version': '6.2.2',
20+
'user-agent' : `AppwriteCLI/6.2.2 (${os.type()} ${os.version()}; ${os.arch()})`,
2121
'X-Appwrite-Response-Format' : '1.6.0',
2222
};
2323
}
@@ -208,7 +208,7 @@ class Client {
208208
globalConfig.setCurrentSession('');
209209
globalConfig.removeSession(current);
210210
}
211-
throw new AppwriteException(json.message, json.code, json.type, json);
211+
throw new AppwriteException(json.message, json.code, json.type, text);
212212
}
213213

214214
if (responseType === "arraybuffer") {

lib/commands/push.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,12 @@ const getObjectChanges = (remote, local, index, what) => {
450450
return changes;
451451
}
452452

453-
const createAttribute = async (databaseId, collectionId, attribute) => {
453+
const createAttribute = (databaseId, collectionId, attribute) => {
454454
switch (attribute.type) {
455455
case 'string':
456456
switch (attribute.format) {
457457
case 'email':
458-
return await databasesCreateEmailAttribute({
458+
return databasesCreateEmailAttribute({
459459
databaseId,
460460
collectionId,
461461
key: attribute.key,
@@ -465,7 +465,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
465465
parseOutput: false
466466
})
467467
case 'url':
468-
return await databasesCreateUrlAttribute({
468+
return databasesCreateUrlAttribute({
469469
databaseId,
470470
collectionId,
471471
key: attribute.key,
@@ -475,7 +475,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
475475
parseOutput: false
476476
})
477477
case 'ip':
478-
return await databasesCreateIpAttribute({
478+
return databasesCreateIpAttribute({
479479
databaseId,
480480
collectionId,
481481
key: attribute.key,
@@ -485,7 +485,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
485485
parseOutput: false
486486
})
487487
case 'enum':
488-
return await databasesCreateEnumAttribute({
488+
return databasesCreateEnumAttribute({
489489
databaseId,
490490
collectionId,
491491
key: attribute.key,
@@ -496,7 +496,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
496496
parseOutput: false
497497
})
498498
default:
499-
return await databasesCreateStringAttribute({
499+
return databasesCreateStringAttribute({
500500
databaseId,
501501
collectionId,
502502
key: attribute.key,
@@ -509,7 +509,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
509509

510510
}
511511
case 'integer':
512-
return await databasesCreateIntegerAttribute({
512+
return databasesCreateIntegerAttribute({
513513
databaseId,
514514
collectionId,
515515
key: attribute.key,
@@ -567,12 +567,12 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
567567
}
568568
}
569569

570-
const updateAttribute = async (databaseId, collectionId, attribute) => {
570+
const updateAttribute = (databaseId, collectionId, attribute) => {
571571
switch (attribute.type) {
572572
case 'string':
573573
switch (attribute.format) {
574574
case 'email':
575-
return await databasesUpdateEmailAttribute({
575+
return databasesUpdateEmailAttribute({
576576
databaseId,
577577
collectionId,
578578
key: attribute.key,
@@ -582,7 +582,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
582582
parseOutput: false
583583
})
584584
case 'url':
585-
return await databasesUpdateUrlAttribute({
585+
return databasesUpdateUrlAttribute({
586586
databaseId,
587587
collectionId,
588588
key: attribute.key,
@@ -592,7 +592,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
592592
parseOutput: false
593593
})
594594
case 'ip':
595-
return await databasesUpdateIpAttribute({
595+
return databasesUpdateIpAttribute({
596596
databaseId,
597597
collectionId,
598598
key: attribute.key,
@@ -602,7 +602,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
602602
parseOutput: false
603603
})
604604
case 'enum':
605-
return await databasesUpdateEnumAttribute({
605+
return databasesUpdateEnumAttribute({
606606
databaseId,
607607
collectionId,
608608
key: attribute.key,
@@ -613,7 +613,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
613613
parseOutput: false
614614
})
615615
default:
616-
return await databasesUpdateStringAttribute({
616+
return databasesUpdateStringAttribute({
617617
databaseId,
618618
collectionId,
619619
key: attribute.key,
@@ -626,7 +626,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
626626

627627
}
628628
case 'integer':
629-
return await databasesUpdateIntegerAttribute({
629+
return databasesUpdateIntegerAttribute({
630630
databaseId,
631631
collectionId,
632632
key: attribute.key,
@@ -882,7 +882,7 @@ const createAttributes = async (attributes, collection) => {
882882
const result = await awaitPools.expectAttributes(
883883
collection['databaseId'],
884884
collection['$id'],
885-
collection.attributes.map(attribute => attribute.key)
885+
collection.attributes.filter(attribute => attribute.side !== 'child').map(attribute => attribute.key)
886886
);
887887

888888
if (!result) {

lib/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const parseError = (err) => {
120120
} catch {
121121
}
122122

123-
const version = '6.2.1';
123+
const version = '6.2.2';
124124
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
125125
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud}`;
126126

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "appwrite-cli",
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": "6.2.1",
5+
"version": "6.2.2",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

scoop/appwrite.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3-
"version": "6.2.1",
3+
"version": "6.2.2",
44
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
55
"homepage": "https://github.com/appwrite/sdk-for-cli",
66
"license": "BSD-3-Clause",
77
"architecture": {
88
"64bit": {
9-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.1/appwrite-cli-win-x64.exe",
9+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-x64.exe",
1010
"bin": [
1111
[
1212
"appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"arm64": {
18-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.1/appwrite-cli-win-arm64.exe",
18+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.2.2/appwrite-cli-win-arm64.exe",
1919
"bin": [
2020
[
2121
"appwrite-cli-win-arm64.exe",

0 commit comments

Comments
 (0)