@openfin/fdc3-api 43.100.97 → 43.100.99

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.
@@ -4194,7 +4194,7 @@ declare type CpuInfo = {
4194
4194
  declare type CrashedEvent = BaseEvents.IdentityEvent & {
4195
4195
  topic: 'application';
4196
4196
  type: 'crashed';
4197
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4197
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4198
4198
  exitCode: number;
4199
4199
  details: {
4200
4200
  reason: string;
@@ -4208,7 +4208,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
4208
4208
  */
4209
4209
  declare type CrashedEvent_2 = NamedEvent & {
4210
4210
  type: 'crashed';
4211
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4211
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4212
4212
  exitCode: number;
4213
4213
  details: {
4214
4214
  reason: string;
@@ -4776,20 +4776,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4776
4776
  eventNames: () => (string | symbol)[];
4777
4777
  /* Excluded from this release type: emit */
4778
4778
  private hasEmitter;
4779
- /**
4780
- * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4781
- * `once` subscription.
4782
- *
4783
- * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4784
- * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4785
- * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4786
- */
4787
- private cleanUpRemovedListener;
4788
4779
  private getOrCreateEmitter;
4789
4780
  listeners: (type: string | symbol) => Function[];
4790
4781
  listenerCount: (type: string | symbol) => number;
4791
4782
  protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
4792
- protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
4783
+ private deregisterEventListener;
4793
4784
  /**
4794
4785
  * Adds a listener to the end of the listeners array for the specified event.
4795
4786
  *
@@ -4825,7 +4816,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4825
4816
  * @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
4826
4817
  */
4827
4818
  removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
4828
- protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
4819
+ private deregisterAllListeners;
4829
4820
  /**
4830
4821
  * Removes all listeners, or those of the specified event.
4831
4822
  *
@@ -9048,7 +9039,36 @@ declare type LogInfo = {
9048
9039
  */
9049
9040
  declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
9050
9041
 
9051
- declare type LogTypes = 'app' | 'debug' | 'rvm' | 'debug:self' | 'debug:self:archive' | 'debug:self:archive:last';
9042
+ /**
9043
+ * Log types
9044
+ *
9045
+ * Note: For the debug log options, the one with the most specific matching pattern will be used.
9046
+ */
9047
+ declare type LogTypes =
9048
+ /**
9049
+ * Uploads app logs
9050
+ */
9051
+ 'app'
9052
+ /**
9053
+ * Uploads rvm logs
9054
+ */
9055
+ | 'rvm'
9056
+ /**
9057
+ * Uploads all debug logs
9058
+ */
9059
+ | 'debug'
9060
+ /**
9061
+ * Uploads the most current debug log the current application
9062
+ */
9063
+ | 'debug:self'
9064
+ /**
9065
+ * Uploads all debug logs for the current application
9066
+ */
9067
+ | 'debug:self:archive'
9068
+ /**
9069
+ * Uploads the last two debug logs for the current application
9070
+ */
9071
+ | 'debug:self:archive:last';
9052
9072
 
9053
9073
  /**
9054
9074
  * Options for the Log Uploader.
@@ -9116,14 +9136,6 @@ declare type LogUploadOptions = {
9116
9136
  manifests?: string[];
9117
9137
  /**
9118
9138
  * An array of strings that specifies which logs should be uploaded.
9119
- * app: Uploads app logs
9120
- * rvm: Uploads rvm logs
9121
- * debug: Uploads debug logs
9122
- * debug:self: Uploads the most current debug log the current application
9123
- * debug:self:archive: Uploads all debug logs for the current application
9124
- * debug:self:archive:last: Uploads the last two debug logs for the current application
9125
- *
9126
- * For the debug log options, the one with the most specific matching pattern will be used.
9127
9139
  * @defaultValue ['app', 'rvm', 'debug']
9128
9140
  */
9129
9141
  logs?: LogTypes[];
@@ -10217,6 +10229,7 @@ declare namespace OpenFin {
10217
10229
  PlatformOptions,
10218
10230
  LogUploaderOptions,
10219
10231
  LogUploaderUIOptions,
10232
+ LogTypes,
10220
10233
  LogUploadOptions,
10221
10234
  Manifest,
10222
10235
  LayoutContent,
@@ -4194,7 +4194,7 @@ declare type CpuInfo = {
4194
4194
  declare type CrashedEvent = BaseEvents.IdentityEvent & {
4195
4195
  topic: 'application';
4196
4196
  type: 'crashed';
4197
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4197
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4198
4198
  exitCode: number;
4199
4199
  details: {
4200
4200
  reason: string;
@@ -4208,7 +4208,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
4208
4208
  */
4209
4209
  declare type CrashedEvent_2 = NamedEvent & {
4210
4210
  type: 'crashed';
4211
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4211
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4212
4212
  exitCode: number;
4213
4213
  details: {
4214
4214
  reason: string;
@@ -4776,20 +4776,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4776
4776
  eventNames: () => (string | symbol)[];
4777
4777
  /* Excluded from this release type: emit */
4778
4778
  private hasEmitter;
4779
- /**
4780
- * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4781
- * `once` subscription.
4782
- *
4783
- * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4784
- * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4785
- * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4786
- */
4787
- private cleanUpRemovedListener;
4788
4779
  private getOrCreateEmitter;
4789
4780
  listeners: (type: string | symbol) => Function[];
4790
4781
  listenerCount: (type: string | symbol) => number;
4791
4782
  protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
4792
- protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
4783
+ private deregisterEventListener;
4793
4784
  /**
4794
4785
  * Adds a listener to the end of the listeners array for the specified event.
4795
4786
  *
@@ -4825,7 +4816,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4825
4816
  * @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
4826
4817
  */
4827
4818
  removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
4828
- protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
4819
+ private deregisterAllListeners;
4829
4820
  /**
4830
4821
  * Removes all listeners, or those of the specified event.
4831
4822
  *
@@ -9048,7 +9039,36 @@ declare type LogInfo = {
9048
9039
  */
9049
9040
  declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
9050
9041
 
9051
- declare type LogTypes = 'app' | 'debug' | 'rvm' | 'debug:self' | 'debug:self:archive' | 'debug:self:archive:last';
9042
+ /**
9043
+ * Log types
9044
+ *
9045
+ * Note: For the debug log options, the one with the most specific matching pattern will be used.
9046
+ */
9047
+ declare type LogTypes =
9048
+ /**
9049
+ * Uploads app logs
9050
+ */
9051
+ 'app'
9052
+ /**
9053
+ * Uploads rvm logs
9054
+ */
9055
+ | 'rvm'
9056
+ /**
9057
+ * Uploads all debug logs
9058
+ */
9059
+ | 'debug'
9060
+ /**
9061
+ * Uploads the most current debug log the current application
9062
+ */
9063
+ | 'debug:self'
9064
+ /**
9065
+ * Uploads all debug logs for the current application
9066
+ */
9067
+ | 'debug:self:archive'
9068
+ /**
9069
+ * Uploads the last two debug logs for the current application
9070
+ */
9071
+ | 'debug:self:archive:last';
9052
9072
 
9053
9073
  /**
9054
9074
  * Options for the Log Uploader.
@@ -9116,14 +9136,6 @@ declare type LogUploadOptions = {
9116
9136
  manifests?: string[];
9117
9137
  /**
9118
9138
  * An array of strings that specifies which logs should be uploaded.
9119
- * app: Uploads app logs
9120
- * rvm: Uploads rvm logs
9121
- * debug: Uploads debug logs
9122
- * debug:self: Uploads the most current debug log the current application
9123
- * debug:self:archive: Uploads all debug logs for the current application
9124
- * debug:self:archive:last: Uploads the last two debug logs for the current application
9125
- *
9126
- * For the debug log options, the one with the most specific matching pattern will be used.
9127
9139
  * @defaultValue ['app', 'rvm', 'debug']
9128
9140
  */
9129
9141
  logs?: LogTypes[];
@@ -10217,6 +10229,7 @@ declare namespace OpenFin {
10217
10229
  PlatformOptions,
10218
10230
  LogUploaderOptions,
10219
10231
  LogUploaderUIOptions,
10232
+ LogTypes,
10220
10233
  LogUploadOptions,
10221
10234
  Manifest,
10222
10235
  LayoutContent,
@@ -4194,7 +4194,7 @@ declare type CpuInfo = {
4194
4194
  declare type CrashedEvent = BaseEvents.IdentityEvent & {
4195
4195
  topic: 'application';
4196
4196
  type: 'crashed';
4197
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4197
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4198
4198
  exitCode: number;
4199
4199
  details: {
4200
4200
  reason: string;
@@ -4208,7 +4208,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
4208
4208
  */
4209
4209
  declare type CrashedEvent_2 = NamedEvent & {
4210
4210
  type: 'crashed';
4211
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4211
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4212
4212
  exitCode: number;
4213
4213
  details: {
4214
4214
  reason: string;
@@ -4776,20 +4776,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4776
4776
  eventNames: () => (string | symbol)[];
4777
4777
  /* Excluded from this release type: emit */
4778
4778
  private hasEmitter;
4779
- /**
4780
- * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4781
- * `once` subscription.
4782
- *
4783
- * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4784
- * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4785
- * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4786
- */
4787
- private cleanUpRemovedListener;
4788
4779
  private getOrCreateEmitter;
4789
4780
  listeners: (type: string | symbol) => Function[];
4790
4781
  listenerCount: (type: string | symbol) => number;
4791
4782
  protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
4792
- protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
4783
+ private deregisterEventListener;
4793
4784
  /**
4794
4785
  * Adds a listener to the end of the listeners array for the specified event.
4795
4786
  *
@@ -4825,7 +4816,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4825
4816
  * @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
4826
4817
  */
4827
4818
  removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
4828
- protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
4819
+ private deregisterAllListeners;
4829
4820
  /**
4830
4821
  * Removes all listeners, or those of the specified event.
4831
4822
  *
@@ -9048,7 +9039,36 @@ declare type LogInfo = {
9048
9039
  */
9049
9040
  declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
9050
9041
 
9051
- declare type LogTypes = 'app' | 'debug' | 'rvm' | 'debug:self' | 'debug:self:archive' | 'debug:self:archive:last';
9042
+ /**
9043
+ * Log types
9044
+ *
9045
+ * Note: For the debug log options, the one with the most specific matching pattern will be used.
9046
+ */
9047
+ declare type LogTypes =
9048
+ /**
9049
+ * Uploads app logs
9050
+ */
9051
+ 'app'
9052
+ /**
9053
+ * Uploads rvm logs
9054
+ */
9055
+ | 'rvm'
9056
+ /**
9057
+ * Uploads all debug logs
9058
+ */
9059
+ | 'debug'
9060
+ /**
9061
+ * Uploads the most current debug log the current application
9062
+ */
9063
+ | 'debug:self'
9064
+ /**
9065
+ * Uploads all debug logs for the current application
9066
+ */
9067
+ | 'debug:self:archive'
9068
+ /**
9069
+ * Uploads the last two debug logs for the current application
9070
+ */
9071
+ | 'debug:self:archive:last';
9052
9072
 
9053
9073
  /**
9054
9074
  * Options for the Log Uploader.
@@ -9116,14 +9136,6 @@ declare type LogUploadOptions = {
9116
9136
  manifests?: string[];
9117
9137
  /**
9118
9138
  * An array of strings that specifies which logs should be uploaded.
9119
- * app: Uploads app logs
9120
- * rvm: Uploads rvm logs
9121
- * debug: Uploads debug logs
9122
- * debug:self: Uploads the most current debug log the current application
9123
- * debug:self:archive: Uploads all debug logs for the current application
9124
- * debug:self:archive:last: Uploads the last two debug logs for the current application
9125
- *
9126
- * For the debug log options, the one with the most specific matching pattern will be used.
9127
9139
  * @defaultValue ['app', 'rvm', 'debug']
9128
9140
  */
9129
9141
  logs?: LogTypes[];
@@ -10217,6 +10229,7 @@ declare namespace OpenFin {
10217
10229
  PlatformOptions,
10218
10230
  LogUploaderOptions,
10219
10231
  LogUploaderUIOptions,
10232
+ LogTypes,
10220
10233
  LogUploadOptions,
10221
10234
  Manifest,
10222
10235
  LayoutContent,
package/out/fdc3-api.d.ts CHANGED
@@ -4253,7 +4253,7 @@ declare type CpuInfo = {
4253
4253
  declare type CrashedEvent = BaseEvents.IdentityEvent & {
4254
4254
  topic: 'application';
4255
4255
  type: 'crashed';
4256
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4256
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4257
4257
  exitCode: number;
4258
4258
  details: {
4259
4259
  reason: string;
@@ -4267,7 +4267,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
4267
4267
  */
4268
4268
  declare type CrashedEvent_2 = NamedEvent & {
4269
4269
  type: 'crashed';
4270
- reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
4270
+ reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
4271
4271
  exitCode: number;
4272
4272
  details: {
4273
4273
  reason: string;
@@ -4840,20 +4840,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4840
4840
  type: EventType;
4841
4841
  }>, ...args: any[]) => boolean;
4842
4842
  private hasEmitter;
4843
- /**
4844
- * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
4845
- * `once` subscription.
4846
- *
4847
- * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
4848
- * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
4849
- * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
4850
- */
4851
- private cleanUpRemovedListener;
4852
4843
  private getOrCreateEmitter;
4853
4844
  listeners: (type: string | symbol) => Function[];
4854
4845
  listenerCount: (type: string | symbol) => number;
4855
4846
  protected registerEventListener: (eventType: EmitterEventType, options: OpenFin.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
4856
- protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
4847
+ private deregisterEventListener;
4857
4848
  /**
4858
4849
  * Adds a listener to the end of the listeners array for the specified event.
4859
4850
  *
@@ -4889,7 +4880,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
4889
4880
  * @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
4890
4881
  */
4891
4882
  removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
4892
- protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
4883
+ private deregisterAllListeners;
4893
4884
  /**
4894
4885
  * Removes all listeners, or those of the specified event.
4895
4886
  *
@@ -9357,7 +9348,36 @@ declare type LogInfo = {
9357
9348
  */
9358
9349
  declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
9359
9350
 
9360
- declare type LogTypes = 'app' | 'debug' | 'rvm' | 'debug:self' | 'debug:self:archive' | 'debug:self:archive:last';
9351
+ /**
9352
+ * Log types
9353
+ *
9354
+ * Note: For the debug log options, the one with the most specific matching pattern will be used.
9355
+ */
9356
+ declare type LogTypes =
9357
+ /**
9358
+ * Uploads app logs
9359
+ */
9360
+ 'app'
9361
+ /**
9362
+ * Uploads rvm logs
9363
+ */
9364
+ | 'rvm'
9365
+ /**
9366
+ * Uploads all debug logs
9367
+ */
9368
+ | 'debug'
9369
+ /**
9370
+ * Uploads the most current debug log the current application
9371
+ */
9372
+ | 'debug:self'
9373
+ /**
9374
+ * Uploads all debug logs for the current application
9375
+ */
9376
+ | 'debug:self:archive'
9377
+ /**
9378
+ * Uploads the last two debug logs for the current application
9379
+ */
9380
+ | 'debug:self:archive:last';
9361
9381
 
9362
9382
  /**
9363
9383
  * Options for the Log Uploader.
@@ -9425,14 +9445,6 @@ declare type LogUploadOptions = {
9425
9445
  manifests?: string[];
9426
9446
  /**
9427
9447
  * An array of strings that specifies which logs should be uploaded.
9428
- * app: Uploads app logs
9429
- * rvm: Uploads rvm logs
9430
- * debug: Uploads debug logs
9431
- * debug:self: Uploads the most current debug log the current application
9432
- * debug:self:archive: Uploads all debug logs for the current application
9433
- * debug:self:archive:last: Uploads the last two debug logs for the current application
9434
- *
9435
- * For the debug log options, the one with the most specific matching pattern will be used.
9436
9448
  * @defaultValue ['app', 'rvm', 'debug']
9437
9449
  */
9438
9450
  logs?: LogTypes[];
@@ -10551,6 +10563,7 @@ declare namespace OpenFin {
10551
10563
  PlatformOptions,
10552
10564
  LogUploaderOptions,
10553
10565
  LogUploaderUIOptions,
10566
+ LogTypes,
10554
10567
  LogUploadOptions,
10555
10568
  Manifest,
10556
10569
  LayoutContent,
package/out/fdc3-api.js CHANGED
@@ -495,35 +495,6 @@ var InteropClient$1 = {};
495
495
 
496
496
  var base = {};
497
497
 
498
- var promises = {};
499
-
500
- Object.defineProperty(promises, "__esModule", { value: true });
501
- promises.promiseMapSerial = promises.serial = promises.promiseMap = promises.promisify = void 0;
502
- function promisify(func) {
503
- return (...args) => new Promise((resolve, reject) => {
504
- func(...args, (err, val) => (err ? reject(err) : resolve(val)));
505
- });
506
- }
507
- promises.promisify = promisify;
508
- async function promiseMap(arr, asyncF) {
509
- return Promise.all(arr.map(asyncF));
510
- }
511
- promises.promiseMap = promiseMap;
512
- async function serial(arr) {
513
- const ret = [];
514
- for (const func of arr) {
515
- // eslint-disable-next-line no-await-in-loop
516
- const next = await func();
517
- ret.push(next);
518
- }
519
- return ret;
520
- }
521
- promises.serial = serial;
522
- async function promiseMapSerial(arr, func) {
523
- return serial(arr.map((value, index, array) => () => func(value, index, array)));
524
- }
525
- promises.promiseMapSerial = promiseMapSerial;
526
-
527
498
  var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
528
499
  if (kind === "m") throw new TypeError("Private method is not writable");
529
500
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -538,7 +509,6 @@ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateF
538
509
  var _EmitterBase_emitterAccessor, _EmitterBase_deregisterOnceListeners;
539
510
  Object.defineProperty(base, "__esModule", { value: true });
540
511
  base.Reply = base.EmitterBase = base.Base = void 0;
541
- const promises_1 = promises;
542
512
  class Base {
543
513
  /**
544
514
  * @internal
@@ -616,27 +586,8 @@ class EmitterBase extends Base {
616
586
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
617
587
  };
618
588
  this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
619
- /**
620
- * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
621
- * `once` subscription.
622
- *
623
- * @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
624
- * on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
625
- * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
626
- */
627
- this.cleanUpRemovedListener = (eventType, listener) => {
628
- const deregister = __classPrivateFieldGet$3(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
629
- if (deregister) {
630
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
631
- emitter.removeListener(eventType, deregister);
632
- }
633
- };
634
589
  this.getOrCreateEmitter = () => {
635
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
636
- if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
637
- emitter.on('removeListener', this.cleanUpRemovedListener);
638
- }
639
- return emitter;
590
+ return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
640
591
  };
641
592
  this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
642
593
  this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
@@ -676,7 +627,6 @@ class EmitterBase extends Base {
676
627
  };
677
628
  __classPrivateFieldSet$3(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
678
629
  __classPrivateFieldSet$3(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
679
- this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
680
630
  }
681
631
  /**
682
632
  * Adds a listener to the end of the listeners array for the specified event.
@@ -754,6 +704,10 @@ class EmitterBase extends Base {
754
704
  const emitter = await this.deregisterEventListener(eventType, options);
755
705
  if (emitter) {
756
706
  emitter.removeListener(eventType, listener);
707
+ const deregister = __classPrivateFieldGet$3(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
708
+ if (deregister) {
709
+ emitter.removeListener(eventType, deregister);
710
+ }
757
711
  this.deleteEmitterIfNothingRegistered(emitter);
758
712
  }
759
713
  return this;
@@ -789,12 +743,13 @@ class EmitterBase extends Base {
789
743
  }
790
744
  else if (this.hasEmitter()) {
791
745
  const events = this.getOrCreateEmitter().eventNames();
792
- await (0, promises_1.promiseMap)(events, removeByEvent);
746
+ await Promise.all(events.map(removeByEvent));
793
747
  }
794
748
  return this;
795
749
  }
796
750
  deleteEmitterIfNothingRegistered(emitter) {
797
- if (emitter.eventNames().every((type) => type === 'removeListener')) {
751
+ // TODO: maybe emitterMap should clean up itself..
752
+ if (emitter.eventNames().length === 0) {
798
753
  this.wire.eventAggregator.delete(__classPrivateFieldGet$3(this, _EmitterBase_emitterAccessor, "f"));
799
754
  }
800
755
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "43.100.97",
3
+ "version": "43.100.99",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,