Skip to content

Commit ead5533

Browse files
Merge pull request #109 from appwrite/dev
Dev
2 parents b72ade6 + cfb4b44 commit ead5533

24 files changed

+605
-1439
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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-
4.2.1
32+
4.2.2
3333
```
3434

3535
### Install using prebuilt binaries
@@ -63,7 +63,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6363
Once the installation completes, you can verify your install using
6464
```
6565
$ appwrite -v
66-
4.2.1
66+
4.2.2
6767
```
6868

6969
## Getting Started

install.ps1

Lines changed: 2 additions & 2 deletions
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/4.2.1/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.1/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.2/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/4.2.2/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

Lines changed: 1 addition & 1 deletion
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="4.2.1"
100+
GITHUB_LATEST_VERSION="4.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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Client {
1515
'x-sdk-name': 'Command Line',
1616
'x-sdk-platform': 'console',
1717
'x-sdk-language': 'cli',
18-
'x-sdk-version': '4.2.1',
19-
'user-agent' : `AppwriteCLI/4.2.1 (${os.type()} ${os.version()}; ${os.arch()})`,
18+
'x-sdk-version': '4.2.2',
19+
'user-agent' : `AppwriteCLI/4.2.2 (${os.type()} ${os.version()}; ${os.arch()})`,
2020
'X-Appwrite-Response-Format' : '1.4.0',
2121
};
2222
}
@@ -202,6 +202,11 @@ class Client {
202202
return data;
203203
}
204204

205+
let cookies = response.headers.getSetCookie();
206+
if (cookies && cookies.length > 0) {
207+
globalConfig.setCookie(cookies[0]);
208+
}
209+
205210
const text = await response.text();
206211
let json = undefined;
207212
try {

0 commit comments

Comments
 (0)