Skip to content

Commit a11f02b

Browse files
committed
Release candidate for 1.5.x
1 parent b5e5045 commit a11f02b

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
3333
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3"></script>
3737
```
3838

3939

docs/examples/account/add-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client, , Account } from "appwrite";
1+
import { Client, AuthenticatorType, Account } from "appwrite";
22

33
const client = new Client();
44

@@ -9,7 +9,7 @@ client
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111

12-
const promise = account.addAuthenticator(.Totp);
12+
const promise = account.addAuthenticator(AuthenticatorType.Totp);
1313

1414
promise.then(function (response) {
1515
console.log(response); // Success

docs/examples/account/create2f-a-challenge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client, , Account } from "appwrite";
1+
import { Client, AuthenticationFactor, Account } from "appwrite";
22

33
const client = new Client();
44

@@ -9,7 +9,7 @@ client
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111

12-
const promise = account.create2FAChallenge(.Totp);
12+
const promise = account.create2FAChallenge(AuthenticationFactor.Totp);
1313

1414
promise.then(function (response) {
1515
console.log(response); // Success

docs/examples/account/delete-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client, , Account } from "appwrite";
1+
import { Client, AuthenticatorType, Account } from "appwrite";
22

33
const client = new Client();
44

@@ -9,7 +9,7 @@ client
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111

12-
const promise = account.deleteAuthenticator(.Totp, '[OTP]');
12+
const promise = account.deleteAuthenticator(AuthenticatorType.Totp, '[OTP]');
1313

1414
promise.then(function (response) {
1515
console.log(response); // Success

docs/examples/account/verify-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client, , Account } from "appwrite";
1+
import { Client, AuthenticatorType, Account } from "appwrite";
22

33
const client = new Client();
44

@@ -9,7 +9,7 @@ client
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111

12-
const promise = account.verifyAuthenticator(.Totp, '[OTP]');
12+
const promise = account.verifyAuthenticator(AuthenticatorType.Totp, '[OTP]');
1313

1414
promise.then(function (response) {
1515
console.log(response); // Success

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "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": "14.0.0-rc.2",
5+
"version": "14.0.0-rc.3",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class Client {
103103
'x-sdk-name': 'Web',
104104
'x-sdk-platform': 'client',
105105
'x-sdk-language': 'web',
106-
'x-sdk-version': '14.0.0-rc.2',
107-
'X-Appwrite-Response-Format': '1.4.0',
106+
'x-sdk-version': '14.0.0-rc.3',
107+
'X-Appwrite-Response-Format': '1.5.0',
108108
};
109109

110110
/**

src/enums/factor.ts renamed to src/enums/authentication-factor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export enum Factor {
1+
export enum AuthenticationFactor {
22
Totp = 'totp',
33
Phone = 'phone',
44
Email = 'email',

src/enums/authenticator-type.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export enum AuthenticatorType {
2+
Totp = 'totp',
3+
}

src/enums/type.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)