@maxzima/wa-communicator 1.0.14 → 1.0.15
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/engine/Communicator/Public/Communicator.js +1 -1
- package/dist/types/TCommunicator.d.ts +1 -1
- package/package.json +1 -1
- package/src/engine/Communicator/Public/Communicator.ts +1 -1
- package/src/types/TCommunicator.ts +1 -1
- package/test/__snapshots__/communicator.spec.ts.snap +1 -1
- package/test/testunits/communicator/requests.ts +1 -1
|
@@ -151,7 +151,7 @@ export class Communicator {
|
|
|
151
151
|
}
|
|
152
152
|
setStorageValues(data) {
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const headers = this.getHeaders(data.
|
|
154
|
+
const headers = this.getHeaders(data.accessToken);
|
|
155
155
|
const body = JSON.stringify({
|
|
156
156
|
seo_source: data.origin,
|
|
157
157
|
});
|
|
@@ -120,7 +120,7 @@ declare type TRegistrationRequestData = {
|
|
|
120
120
|
origin: TRegistrationRequestBodySource['origin'];
|
|
121
121
|
};
|
|
122
122
|
declare type TStorageRequestData = {
|
|
123
|
-
|
|
123
|
+
accessToken: string;
|
|
124
124
|
origin: string;
|
|
125
125
|
};
|
|
126
126
|
export { TRegistrationRequestBodySourceDeviceType, TChallenge, TAuditSource, TRequestProps, TRequestQueryParams, TResponse, TSignInStartRequestBody, TAccountMeta, TAccountBrowserData, TSignInByMobileRequestData, TSignInByMobileResponse, TSignUpStartRequestBody, TSignUpByMobileRequestData, TSetupChallengeRequestData, TSetupChallengeResponse, TVerifyChallengeRequestBody, TVerifyChallengeRequestData, TVerifyChallengeResponse, TEmailUpdateRequestData, TCreateSessionRequestData, TCreateSessionResponse, TGetCurrentUserProfileResponseUser, TGetCurrentUserProfileRequestData, TRegistrationRequestData, TStorageRequestData, };
|
package/package.json
CHANGED
|
@@ -147,7 +147,7 @@ export class Communicator {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
public async setStorageValues(data: TStorageRequestData) {
|
|
150
|
-
const headers = this.getHeaders(data.
|
|
150
|
+
const headers = this.getHeaders(data.accessToken);
|
|
151
151
|
const body = JSON.stringify({
|
|
152
152
|
seo_source: data.origin,
|
|
153
153
|
});
|
|
@@ -86,7 +86,7 @@ Object {
|
|
|
86
86
|
"body": "{\\"seo_source\\":\\"_origin_\\"}",
|
|
87
87
|
"headers": Object {
|
|
88
88
|
"Accept": "application/json, text/plain, */*",
|
|
89
|
-
"Authorization": "Bearer
|
|
89
|
+
"Authorization": "Bearer _accessToken_",
|
|
90
90
|
"Content-Type": "application/json",
|
|
91
91
|
},
|
|
92
92
|
"method": "POST",
|
|
@@ -55,7 +55,7 @@ const registrationData: TRegistrationRequestData = {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
const setStorageValuesData: TStorageRequestData = {
|
|
58
|
-
|
|
58
|
+
accessToken: communicatorTestData.accessToken,
|
|
59
59
|
origin: communicatorTestData.origin,
|
|
60
60
|
};
|
|
61
61
|
|