Comparing version 14.0.1 to 15.0.0
@@ -5,3 +5,3 @@ { | ||
"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", | ||
"version": "14.0.1", | ||
"version": "15.0.0", | ||
"license": "BSD-3-Clause", | ||
@@ -36,8 +36,4 @@ "main": "dist/cjs/sdk.js", | ||
}, | ||
"dependencies": { | ||
"cross-fetch": "3.1.5", | ||
"isomorphic-form-data": "2.0.0" | ||
}, | ||
"jsdelivr": "dist/iife/sdk.js", | ||
"unpkg": "dist/iife/sdk.js" | ||
} |
# Appwrite Web SDK | ||
![License](https://img.shields.io/github/license/appwrite/sdk-for-web.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.5.0-blue.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) | ||
@@ -36,3 +36,3 @@ [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/appwrite@14.0.1"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/appwrite@15.0.0"></script> | ||
``` | ||
@@ -39,0 +39,0 @@ |
@@ -5,3 +5,3 @@ import pkg from "./package.json"; | ||
export default { | ||
external: Object.keys(pkg.dependencies), | ||
external: Object.keys(pkg.dependencies ?? {}), | ||
input: "src/index.ts", | ||
@@ -26,8 +26,4 @@ plugins: [typescript()], | ||
extend: true, | ||
globals: { | ||
"cross-fetch": "window", | ||
"FormData": "FormData", | ||
}, | ||
}, | ||
], | ||
}; |
@@ -1,3 +0,1 @@ | ||
import 'isomorphic-form-data'; | ||
import { fetch } from 'cross-fetch'; | ||
import { Models } from './models'; | ||
@@ -106,3 +104,3 @@ import { Service } from './service'; | ||
'x-sdk-language': 'web', | ||
'x-sdk-version': '14.0.1', | ||
'x-sdk-version': '15.0.0', | ||
'X-Appwrite-Response-Format': '1.5.0', | ||
@@ -395,3 +393,6 @@ }; | ||
if (typeof window !== 'undefined' && window.localStorage) { | ||
headers['X-Fallback-Cookies'] = window.localStorage.getItem('cookieFallback') ?? ''; | ||
const cookieFallback = window.localStorage.getItem('cookieFallback'); | ||
if (cookieFallback) { | ||
headers['X-Fallback-Cookies'] = cookieFallback; | ||
} | ||
} | ||
@@ -398,0 +399,0 @@ |
@@ -5,3 +5,3 @@ export enum CreditCard { | ||
Cabal = 'cabal', | ||
Consosud = 'censosud', | ||
Cencosud = 'cencosud', | ||
DinersClub = 'diners', | ||
@@ -8,0 +8,0 @@ Discover = 'discover', |
@@ -143,2 +143,3 @@ export enum Flag { | ||
Poland = 'pl', | ||
FrenchPolynesia = 'pf', | ||
NorthKorea = 'kp', | ||
@@ -145,0 +146,0 @@ Portugal = 'pt', |
@@ -506,2 +506,6 @@ export namespace Models { | ||
/** | ||
* Session update date in ISO 8601 format. | ||
*/ | ||
$updatedAt: string; | ||
/** | ||
* User ID. | ||
@@ -1098,13 +1102,17 @@ */ | ||
/** | ||
* TOTP | ||
* Can TOTP be used for MFA challenge for this account. | ||
*/ | ||
totp: boolean; | ||
/** | ||
* Phone | ||
* Can phone (SMS) be used for MFA challenge for this account. | ||
*/ | ||
phone: boolean; | ||
/** | ||
* Can email be used for MFA challenge for this account. | ||
*/ | ||
email: boolean; | ||
/** | ||
* Can recovery code be used for MFA challenge for this account. | ||
*/ | ||
recoveryCode: boolean; | ||
} | ||
@@ -1111,0 +1119,0 @@ /** |
@@ -257,3 +257,3 @@ import { Service } from '../service'; | ||
* authenticator using the [verify | ||
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator) | ||
* authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) | ||
* method. | ||
@@ -283,4 +283,4 @@ * | ||
* Verify an authenticator app after adding it using the [add | ||
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator) | ||
* method. | ||
* authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) | ||
* method. add | ||
* | ||
@@ -324,3 +324,3 @@ * @param {AuthenticatorType} type | ||
*/ | ||
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>> { | ||
async deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}> { | ||
if (typeof type === 'undefined') { | ||
@@ -327,0 +327,0 @@ throw new AppwriteException('Missing required parameter: "type"'); |
@@ -1,2 +0,1 @@ | ||
import 'isomorphic-form-data'; | ||
import { Models } from './models'; | ||
@@ -3,0 +2,0 @@ declare type Payload = { |
@@ -5,3 +5,3 @@ export declare enum CreditCard { | ||
Cabal = "cabal", | ||
Consosud = "censosud", | ||
Cencosud = "cencosud", | ||
DinersClub = "diners", | ||
@@ -8,0 +8,0 @@ Discover = "discover", |
@@ -143,2 +143,3 @@ export declare enum Flag { | ||
Poland = "pl", | ||
FrenchPolynesia = "pf", | ||
NorthKorea = "kp", | ||
@@ -145,0 +146,0 @@ Portugal = "pt", |
@@ -506,2 +506,6 @@ export declare namespace Models { | ||
/** | ||
* Session update date in ISO 8601 format. | ||
*/ | ||
$updatedAt: string; | ||
/** | ||
* User ID. | ||
@@ -1098,13 +1102,17 @@ */ | ||
/** | ||
* TOTP | ||
* Can TOTP be used for MFA challenge for this account. | ||
*/ | ||
totp: boolean; | ||
/** | ||
* Phone | ||
* Can phone (SMS) be used for MFA challenge for this account. | ||
*/ | ||
phone: boolean; | ||
/** | ||
* Can email be used for MFA challenge for this account. | ||
*/ | ||
email: boolean; | ||
/** | ||
* Can recovery code be used for MFA challenge for this account. | ||
*/ | ||
recoveryCode: boolean; | ||
}; | ||
@@ -1111,0 +1119,0 @@ /** |
@@ -114,3 +114,3 @@ import { Service } from '../service'; | ||
* authenticator using the [verify | ||
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator) | ||
* authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) | ||
* method. | ||
@@ -127,4 +127,4 @@ * | ||
* Verify an authenticator app after adding it using the [add | ||
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator) | ||
* method. | ||
* authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) | ||
* method. add | ||
* | ||
@@ -147,3 +147,3 @@ * @param {AuthenticatorType} type | ||
*/ | ||
deleteMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>; | ||
deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}>; | ||
/** | ||
@@ -150,0 +150,0 @@ * Create 2FA Challenge |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1335643
0
20388
3
- Removedcross-fetch@3.1.5
- Removedisomorphic-form-data@2.0.0
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcross-fetch@3.1.5(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedform-data@2.5.2(transitive)
- Removedisomorphic-form-data@2.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-fetch@2.6.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)