@accelbyte/sdk 0.2.0-beta.1 → 0.2.0-beta.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.2.0-beta.2 - 2023-02-16
2
+
3
+ - Further refactor SDK to use `interface` to prevent auto-expansion of types in Visual Studio Code
4
+
1
5
  ### 0.2.0-beta.1 - 2023-02-15
2
6
 
3
7
  - Release Web SDK as a Beta Version
package/README.md CHANGED
@@ -4,7 +4,7 @@ This folder contains the source code of the AccelByte Web SDK.
4
4
 
5
5
  ## Key directories
6
6
 
7
- - [docs](./docs): Markdown documentations of the AccelByte Web SDK.
8
- - [examples](./examples): Example usages of the AccelByte Web SDK, such as Node.js® (as a script), Next.js, and vite.
9
- - [src](./src): The source files of the AccelByte Web SDK.
10
- - [test](./test): The test files of the AccelByte Web SDK.
7
+ - [docs](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/docs): Markdown documentations of the AccelByte Web SDK.
8
+ - [examples](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/examples): Example usages of the AccelByte Web SDK, such as Node.js® (as a script), Next.js, and vite.
9
+ - [src](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/src): The source files of the AccelByte Web SDK.
10
+ - [test](https://github.com/AccelByte/accelbyte-web-sdk/tree/main/packages/sdk/test): The test files of the AccelByte Web SDK.
@@ -8539,7 +8539,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
8539
8539
  };
8540
8540
 
8541
8541
  /*
8542
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
8542
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
8543
8543
  * This is licensed software from AccelByte Inc, for limitations
8544
8544
  * and restrictions contact your company contract manager.
8545
8545
  */
@@ -15259,7 +15259,7 @@ var rabbitLegacy = {exports: {}};
15259
15259
  var cryptoJs = cryptoJs$1.exports;
15260
15260
 
15261
15261
  /*
15262
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
15262
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
15263
15263
  * This is licensed software from AccelByte Inc, for limitations
15264
15264
  * and restrictions contact your company contract manager.
15265
15265
  */
@@ -16740,7 +16740,7 @@ class UserAuthorization {
16740
16740
  const axios = Network.create(config);
16741
16741
  const data = {
16742
16742
  grant_type: 'authorization_code',
16743
- code: code,
16743
+ code,
16744
16744
  code_verifier: codeVerifier,
16745
16745
  client_id: this.options.clientId,
16746
16746
  redirect_uri: this.options.redirectURI
@@ -16759,9 +16759,8 @@ class UserAuthorization {
16759
16759
  const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
16760
16760
  if (!doesMFADataExist)
16761
16761
  return;
16762
- // eslint-disable-next-line camelcase
16763
- const { mfa_token, factors, default_factor, email } = errorResponse.data;
16764
- const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
16762
+ const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
16763
+ const result = { mfaToken, factors, defaultFactor, email };
16765
16764
  if (BrowserHelper.isOnBrowser()) {
16766
16765
  localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
16767
16766
  }
@@ -39725,7 +39724,7 @@ const PageConfig = mod.object({
39725
39724
  });
39726
39725
 
39727
39726
  /*
39728
- * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
39727
+ * Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
39729
39728
  * This is licensed software from AccelByte Inc, for limitations
39730
39729
  * and restrictions contact your company contract manager.
39731
39730
  */