You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should first execute the idService request and in the same `enqueueRequest` the tracking request irregardless of failure of the idService endpoint',async()=>{
232
+
it('should first execute the cookieExtensionService request and in the same `enqueueRequest` the tracking request irregardless of failure of the cookieExtensionService endpoint',async()=>{
it('should first execute the idService request and in the same `enqueueRequest` the tracking request irregardless of failure of the idService endpoint',async()=>{
260
+
it('should first execute the cookieExtensionService request and in the same `enqueueRequest` the tracking request irregardless of failure of the cookieExtensionService endpoint',async()=>{
* Id service full URL. This URL will be added to the queue and will be called using a GET method.
110
+
* Cookie extension service full URL. This URL will be added to the queue and will be called using a GET method.
111
111
* This option is there to allow the service URL to be called in order to set any required identifiers e.g. extra cookies.
112
112
*
113
113
* The request respects the `anonymousTracking` option, including the SP-Anonymous header if needed, and any additional custom headers from the customHeaders option.
114
114
*/
115
+
cookieExtensionService?: string;
116
+
/**
117
+
* @deprecated Use `cookieExtensionService` instead.
118
+
*/
115
119
idService?: string;
116
120
/**
117
121
* Indicates that the request should be allowed to outlive the webpage that initiated it.
@@ -208,6 +212,7 @@ export function newEmitter({
208
212
serverAnonymization,
209
213
connectionTimeout,
210
214
keepalive,
215
+
cookieExtensionService,
211
216
idService,
212
217
dontRetryStatusCodes =[],
213
218
retryStatusCodes =[],
@@ -219,7 +224,10 @@ export function newEmitter({
219
224
eventStore =newInMemoryEventStore({}),
220
225
credentials,
221
226
}: EmitterConfiguration): Emitter{
222
-
letidServiceCalled=false;
227
+
/* `cookieExtensionService` gets priority until `idService` is completely removed. */
0 commit comments