@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/README.md +1762 -1762
- package/dist/{chunk-BTV72WJH.js → chunk-77N5VUZS.js} +2 -2
- package/dist/chunk-77N5VUZS.js.map +1 -0
- package/dist/{chunk-Q5CO6LH3.js → chunk-EKYKAW3F.js} +114 -10
- package/dist/chunk-EKYKAW3F.js.map +1 -0
- package/dist/{chunk-7Y7FWND5.js → chunk-ZBLHFIBW.js} +3 -3
- package/dist/chunk-ZBLHFIBW.js.map +1 -0
- package/dist/index.cjs +113 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +110 -6
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-7Y7FWND5.js.map +0 -1
- package/dist/chunk-BTV72WJH.js.map +0 -1
- package/dist/chunk-Q5CO6LH3.js.map +0 -1
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-
|
|
2
|
-
import { GraphQLClient, isPlainObject } from './chunk-
|
|
3
|
-
import './chunk-
|
|
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);
|