@opexa/portal-sdk 0.59.137 → 0.59.140

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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint, isIOSPlatform } from './chunk-Q5CO6LH3.js';
2
- import { GraphQLClient, isPlainObject } from './chunk-7Y7FWND5.js';
3
- import './chunk-BTV72WJH.js';
1
+ import { captureFingerprintPreference, CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint, isIOSPlatform } from './chunk-EKYKAW3F.js';
2
+ import { GraphQLClient, isPlainObject } from './chunk-ZBLHFIBW.js';
3
+ import './chunk-77N5VUZS.js';
4
4
  import { ObjectId } from '@opexa/object-id';
5
5
  export { ObjectId } from '@opexa/object-id';
6
6
  import { Capacitor } from '@capacitor/core';
@@ -3649,6 +3649,7 @@ var Sdk = class {
3649
3649
  */
3650
3650
  memberDomain = null;
3651
3651
  constructor(config) {
3652
+ captureFingerprintPreference();
3652
3653
  const {
3653
3654
  /**/
3654
3655
  site,
@@ -3962,6 +3963,7 @@ var Sdk = class {
3962
3963
  */
3963
3964
  get authMiddleware() {
3964
3965
  return async (request) => {
3966
+ captureFingerprintPreference();
3965
3967
  this.logger.info("Checking for session");
3966
3968
  const res = await this.sessionManager.get();
3967
3969
  if (res.data) {
@@ -3981,6 +3983,7 @@ var Sdk = class {
3981
3983
  */
3982
3984
  get fingerprintMiddleware() {
3983
3985
  return async (request) => {
3986
+ captureFingerprintPreference();
3984
3987
  const fingerprint = await this.fingerprint();
3985
3988
  if (fingerprint && !request.headers.has("Fingerprint")) {
3986
3989
  request.headers.set("Fingerprint", fingerprint);