mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
AAE-30878 Migrating from event-emitter to eventemitter3 which is … (#11116)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import ee from 'event-emitter';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { AuthenticationApi, TicketBody } from '../api/auth-rest-api';
|
||||
import { AlfrescoApiClient } from '../alfrescoApiClient';
|
||||
import { AlfrescoApiConfig } from '../alfrescoApiConfig';
|
||||
@@ -104,8 +104,7 @@ export class ContentAuth extends AlfrescoApiClient {
|
||||
});
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,8 +132,7 @@ export class ContentAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -160,8 +158,7 @@ export class ContentAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import ee from 'event-emitter';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { AlfrescoApiClient } from '../alfrescoApiClient';
|
||||
import { AlfrescoApiConfig } from '../alfrescoApiConfig';
|
||||
import { Authentication } from './authentication';
|
||||
@@ -604,7 +604,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
}
|
||||
);
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
pollingRefreshToken() {
|
||||
@@ -654,9 +654,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
universalBtoa(stringToConvert: string) {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import ee from 'event-emitter';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { AlfrescoApiClient, AlfrescoApiClientPromise } from '../alfrescoApiClient';
|
||||
import { AlfrescoApiConfig } from '../alfrescoApiConfig';
|
||||
import { Authentication } from './authentication';
|
||||
@@ -123,8 +123,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise); // jshint ignore:line
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,8 +153,7 @@ export class ProcessAuth extends AlfrescoApiClient {
|
||||
);
|
||||
});
|
||||
|
||||
ee(promise);
|
||||
return promise;
|
||||
return this.addPromiseListeners(promise, new EventEmitter());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user