@opexa/portal-sdk 0.57.15 → 0.57.17
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.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3868,7 +3868,7 @@ var AccountService = class {
|
|
|
3868
3868
|
};
|
|
3869
3869
|
}
|
|
3870
3870
|
async registerMemberAccountByMobileNumber__next(variables) {
|
|
3871
|
-
const { reCAPTCHAResponse, domain, testPass, ...others } = variables;
|
|
3871
|
+
const { reCAPTCHAResponse, domain, testPass, fingerprint, ...others } = variables;
|
|
3872
3872
|
const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION__NEXT, others, {
|
|
3873
3873
|
headers: {
|
|
3874
3874
|
...reCAPTCHAResponse && {
|
|
@@ -3879,6 +3879,9 @@ var AccountService = class {
|
|
|
3879
3879
|
},
|
|
3880
3880
|
...domain && {
|
|
3881
3881
|
Domain: domain
|
|
3882
|
+
},
|
|
3883
|
+
...fingerprint && {
|
|
3884
|
+
Fingerprint: fingerprint
|
|
3882
3885
|
}
|
|
3883
3886
|
}
|
|
3884
3887
|
});
|
|
@@ -8995,7 +8998,7 @@ var Sdk = class {
|
|
|
8995
8998
|
get fingerprintMiddleware() {
|
|
8996
8999
|
return async (request) => {
|
|
8997
9000
|
const fingerprint = await this.fingerprint();
|
|
8998
|
-
if (fingerprint) {
|
|
9001
|
+
if (fingerprint && !request.headers.has("Fingerprint")) {
|
|
8999
9002
|
request.headers.set("Fingerprint", fingerprint);
|
|
9000
9003
|
}
|
|
9001
9004
|
return request;
|
|
@@ -9424,6 +9427,9 @@ var Sdk = class {
|
|
|
9424
9427
|
reCAPTCHAResponse: input.reCAPTCHAResponse,
|
|
9425
9428
|
...this.webDomain && {
|
|
9426
9429
|
domain: this.webDomain
|
|
9430
|
+
},
|
|
9431
|
+
...input.fingerprint && {
|
|
9432
|
+
fingerprint: input.fingerprint
|
|
9427
9433
|
}
|
|
9428
9434
|
});
|
|
9429
9435
|
return res2.ok ? { ok: true, data: { id } } : res2;
|