@openfin/core 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.
- package/out/mock-alpha.d.ts +35 -22
- package/out/mock-beta.d.ts +35 -22
- package/out/mock-public.d.ts +35 -22
- package/out/stub.d.ts +35 -22
- package/out/stub.js +8 -53
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -4197,7 +4197,7 @@ declare type CpuInfo = {
|
|
|
4197
4197
|
declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
4198
4198
|
topic: 'application';
|
|
4199
4199
|
type: 'crashed';
|
|
4200
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4200
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4201
4201
|
exitCode: number;
|
|
4202
4202
|
details: {
|
|
4203
4203
|
reason: string;
|
|
@@ -4211,7 +4211,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
|
4211
4211
|
*/
|
|
4212
4212
|
declare type CrashedEvent_2 = NamedEvent & {
|
|
4213
4213
|
type: 'crashed';
|
|
4214
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4214
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4215
4215
|
exitCode: number;
|
|
4216
4216
|
details: {
|
|
4217
4217
|
reason: string;
|
|
@@ -4779,20 +4779,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4779
|
eventNames: () => (string | symbol)[];
|
|
4780
4780
|
/* Excluded from this release type: emit */
|
|
4781
4781
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4782
|
private getOrCreateEmitter;
|
|
4792
4783
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4784
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4785
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4786
|
+
private deregisterEventListener;
|
|
4796
4787
|
/**
|
|
4797
4788
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4789
|
*
|
|
@@ -4828,7 +4819,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4819
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4820
|
*/
|
|
4830
4821
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4822
|
+
private deregisterAllListeners;
|
|
4832
4823
|
/**
|
|
4833
4824
|
* Removes all listeners, or those of the specified event.
|
|
4834
4825
|
*
|
|
@@ -8706,7 +8697,36 @@ declare type LogInfo = {
|
|
|
8706
8697
|
*/
|
|
8707
8698
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8699
|
|
|
8709
|
-
|
|
8700
|
+
/**
|
|
8701
|
+
* Log types
|
|
8702
|
+
*
|
|
8703
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8704
|
+
*/
|
|
8705
|
+
declare type LogTypes =
|
|
8706
|
+
/**
|
|
8707
|
+
* Uploads app logs
|
|
8708
|
+
*/
|
|
8709
|
+
'app'
|
|
8710
|
+
/**
|
|
8711
|
+
* Uploads rvm logs
|
|
8712
|
+
*/
|
|
8713
|
+
| 'rvm'
|
|
8714
|
+
/**
|
|
8715
|
+
* Uploads all debug logs
|
|
8716
|
+
*/
|
|
8717
|
+
| 'debug'
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads the most current debug log the current application
|
|
8720
|
+
*/
|
|
8721
|
+
| 'debug:self'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads all debug logs for the current application
|
|
8724
|
+
*/
|
|
8725
|
+
| 'debug:self:archive'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads the last two debug logs for the current application
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug:self:archive:last';
|
|
8710
8730
|
|
|
8711
8731
|
/**
|
|
8712
8732
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8794,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8794
|
manifests?: string[];
|
|
8775
8795
|
/**
|
|
8776
8796
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8797
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8798
|
*/
|
|
8787
8799
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9887,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9887
|
PlatformOptions,
|
|
9876
9888
|
LogUploaderOptions,
|
|
9877
9889
|
LogUploaderUIOptions,
|
|
9890
|
+
LogTypes,
|
|
9878
9891
|
LogUploadOptions,
|
|
9879
9892
|
Manifest,
|
|
9880
9893
|
LayoutContent,
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -4197,7 +4197,7 @@ declare type CpuInfo = {
|
|
|
4197
4197
|
declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
4198
4198
|
topic: 'application';
|
|
4199
4199
|
type: 'crashed';
|
|
4200
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4200
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4201
4201
|
exitCode: number;
|
|
4202
4202
|
details: {
|
|
4203
4203
|
reason: string;
|
|
@@ -4211,7 +4211,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
|
4211
4211
|
*/
|
|
4212
4212
|
declare type CrashedEvent_2 = NamedEvent & {
|
|
4213
4213
|
type: 'crashed';
|
|
4214
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4214
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4215
4215
|
exitCode: number;
|
|
4216
4216
|
details: {
|
|
4217
4217
|
reason: string;
|
|
@@ -4779,20 +4779,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4779
|
eventNames: () => (string | symbol)[];
|
|
4780
4780
|
/* Excluded from this release type: emit */
|
|
4781
4781
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4782
|
private getOrCreateEmitter;
|
|
4792
4783
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4784
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4785
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4786
|
+
private deregisterEventListener;
|
|
4796
4787
|
/**
|
|
4797
4788
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4789
|
*
|
|
@@ -4828,7 +4819,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4819
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4820
|
*/
|
|
4830
4821
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4822
|
+
private deregisterAllListeners;
|
|
4832
4823
|
/**
|
|
4833
4824
|
* Removes all listeners, or those of the specified event.
|
|
4834
4825
|
*
|
|
@@ -8706,7 +8697,36 @@ declare type LogInfo = {
|
|
|
8706
8697
|
*/
|
|
8707
8698
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8699
|
|
|
8709
|
-
|
|
8700
|
+
/**
|
|
8701
|
+
* Log types
|
|
8702
|
+
*
|
|
8703
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8704
|
+
*/
|
|
8705
|
+
declare type LogTypes =
|
|
8706
|
+
/**
|
|
8707
|
+
* Uploads app logs
|
|
8708
|
+
*/
|
|
8709
|
+
'app'
|
|
8710
|
+
/**
|
|
8711
|
+
* Uploads rvm logs
|
|
8712
|
+
*/
|
|
8713
|
+
| 'rvm'
|
|
8714
|
+
/**
|
|
8715
|
+
* Uploads all debug logs
|
|
8716
|
+
*/
|
|
8717
|
+
| 'debug'
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads the most current debug log the current application
|
|
8720
|
+
*/
|
|
8721
|
+
| 'debug:self'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads all debug logs for the current application
|
|
8724
|
+
*/
|
|
8725
|
+
| 'debug:self:archive'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads the last two debug logs for the current application
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug:self:archive:last';
|
|
8710
8730
|
|
|
8711
8731
|
/**
|
|
8712
8732
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8794,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8794
|
manifests?: string[];
|
|
8775
8795
|
/**
|
|
8776
8796
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8797
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8798
|
*/
|
|
8787
8799
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9887,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9887
|
PlatformOptions,
|
|
9876
9888
|
LogUploaderOptions,
|
|
9877
9889
|
LogUploaderUIOptions,
|
|
9890
|
+
LogTypes,
|
|
9878
9891
|
LogUploadOptions,
|
|
9879
9892
|
Manifest,
|
|
9880
9893
|
LayoutContent,
|
package/out/mock-public.d.ts
CHANGED
|
@@ -4197,7 +4197,7 @@ declare type CpuInfo = {
|
|
|
4197
4197
|
declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
4198
4198
|
topic: 'application';
|
|
4199
4199
|
type: 'crashed';
|
|
4200
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4200
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4201
4201
|
exitCode: number;
|
|
4202
4202
|
details: {
|
|
4203
4203
|
reason: string;
|
|
@@ -4211,7 +4211,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
|
4211
4211
|
*/
|
|
4212
4212
|
declare type CrashedEvent_2 = NamedEvent & {
|
|
4213
4213
|
type: 'crashed';
|
|
4214
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4214
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4215
4215
|
exitCode: number;
|
|
4216
4216
|
details: {
|
|
4217
4217
|
reason: string;
|
|
@@ -4779,20 +4779,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4779
4779
|
eventNames: () => (string | symbol)[];
|
|
4780
4780
|
/* Excluded from this release type: emit */
|
|
4781
4781
|
private hasEmitter;
|
|
4782
|
-
/**
|
|
4783
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4784
|
-
* `once` subscription.
|
|
4785
|
-
*
|
|
4786
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4787
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4788
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4789
|
-
*/
|
|
4790
|
-
private cleanUpRemovedListener;
|
|
4791
4782
|
private getOrCreateEmitter;
|
|
4792
4783
|
listeners: (type: string | symbol) => Function[];
|
|
4793
4784
|
listenerCount: (type: string | symbol) => number;
|
|
4794
4785
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4795
|
-
|
|
4786
|
+
private deregisterEventListener;
|
|
4796
4787
|
/**
|
|
4797
4788
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4798
4789
|
*
|
|
@@ -4828,7 +4819,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4828
4819
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4829
4820
|
*/
|
|
4830
4821
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4831
|
-
|
|
4822
|
+
private deregisterAllListeners;
|
|
4832
4823
|
/**
|
|
4833
4824
|
* Removes all listeners, or those of the specified event.
|
|
4834
4825
|
*
|
|
@@ -8706,7 +8697,36 @@ declare type LogInfo = {
|
|
|
8706
8697
|
*/
|
|
8707
8698
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
8708
8699
|
|
|
8709
|
-
|
|
8700
|
+
/**
|
|
8701
|
+
* Log types
|
|
8702
|
+
*
|
|
8703
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
8704
|
+
*/
|
|
8705
|
+
declare type LogTypes =
|
|
8706
|
+
/**
|
|
8707
|
+
* Uploads app logs
|
|
8708
|
+
*/
|
|
8709
|
+
'app'
|
|
8710
|
+
/**
|
|
8711
|
+
* Uploads rvm logs
|
|
8712
|
+
*/
|
|
8713
|
+
| 'rvm'
|
|
8714
|
+
/**
|
|
8715
|
+
* Uploads all debug logs
|
|
8716
|
+
*/
|
|
8717
|
+
| 'debug'
|
|
8718
|
+
/**
|
|
8719
|
+
* Uploads the most current debug log the current application
|
|
8720
|
+
*/
|
|
8721
|
+
| 'debug:self'
|
|
8722
|
+
/**
|
|
8723
|
+
* Uploads all debug logs for the current application
|
|
8724
|
+
*/
|
|
8725
|
+
| 'debug:self:archive'
|
|
8726
|
+
/**
|
|
8727
|
+
* Uploads the last two debug logs for the current application
|
|
8728
|
+
*/
|
|
8729
|
+
| 'debug:self:archive:last';
|
|
8710
8730
|
|
|
8711
8731
|
/**
|
|
8712
8732
|
* Options for the Log Uploader.
|
|
@@ -8774,14 +8794,6 @@ declare type LogUploadOptions = {
|
|
|
8774
8794
|
manifests?: string[];
|
|
8775
8795
|
/**
|
|
8776
8796
|
* An array of strings that specifies which logs should be uploaded.
|
|
8777
|
-
* app: Uploads app logs
|
|
8778
|
-
* rvm: Uploads rvm logs
|
|
8779
|
-
* debug: Uploads debug logs
|
|
8780
|
-
* debug:self: Uploads the most current debug log the current application
|
|
8781
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
8782
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
8783
|
-
*
|
|
8784
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
8785
8797
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
8786
8798
|
*/
|
|
8787
8799
|
logs?: LogTypes[];
|
|
@@ -9875,6 +9887,7 @@ declare namespace OpenFin_2 {
|
|
|
9875
9887
|
PlatformOptions,
|
|
9876
9888
|
LogUploaderOptions,
|
|
9877
9889
|
LogUploaderUIOptions,
|
|
9890
|
+
LogTypes,
|
|
9878
9891
|
LogUploadOptions,
|
|
9879
9892
|
Manifest,
|
|
9880
9893
|
LayoutContent,
|
package/out/stub.d.ts
CHANGED
|
@@ -4256,7 +4256,7 @@ declare type CpuInfo = {
|
|
|
4256
4256
|
declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
4257
4257
|
topic: 'application';
|
|
4258
4258
|
type: 'crashed';
|
|
4259
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4259
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4260
4260
|
exitCode: number;
|
|
4261
4261
|
details: {
|
|
4262
4262
|
reason: string;
|
|
@@ -4270,7 +4270,7 @@ declare type CrashedEvent = BaseEvents.IdentityEvent & {
|
|
|
4270
4270
|
*/
|
|
4271
4271
|
declare type CrashedEvent_2 = NamedEvent & {
|
|
4272
4272
|
type: 'crashed';
|
|
4273
|
-
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure';
|
|
4273
|
+
reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory' | 'integrity-failure' | 'memory-eviction';
|
|
4274
4274
|
exitCode: number;
|
|
4275
4275
|
details: {
|
|
4276
4276
|
reason: string;
|
|
@@ -4843,20 +4843,11 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4843
4843
|
type: EventType;
|
|
4844
4844
|
}>, ...args: any[]) => boolean;
|
|
4845
4845
|
private hasEmitter;
|
|
4846
|
-
/**
|
|
4847
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
4848
|
-
* `once` subscription.
|
|
4849
|
-
*
|
|
4850
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
4851
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
4852
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
4853
|
-
*/
|
|
4854
|
-
private cleanUpRemovedListener;
|
|
4855
4846
|
private getOrCreateEmitter;
|
|
4856
4847
|
listeners: (type: string | symbol) => Function[];
|
|
4857
4848
|
listenerCount: (type: string | symbol) => number;
|
|
4858
4849
|
protected registerEventListener: (eventType: EmitterEventType, options: OpenFin_2.SubscriptionOptions | undefined, applySubscription: (emitter: EventEmitter) => void, undoSubscription: (emitter: EventEmitter) => void) => Promise<void>;
|
|
4859
|
-
|
|
4850
|
+
private deregisterEventListener;
|
|
4860
4851
|
/**
|
|
4861
4852
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
4862
4853
|
*
|
|
@@ -4892,7 +4883,7 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
|
|
|
4892
4883
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
4893
4884
|
*/
|
|
4894
4885
|
removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin_2.SubscriptionOptions): Promise<this>;
|
|
4895
|
-
|
|
4886
|
+
private deregisterAllListeners;
|
|
4896
4887
|
/**
|
|
4897
4888
|
* Removes all listeners, or those of the specified event.
|
|
4898
4889
|
*
|
|
@@ -9015,7 +9006,36 @@ declare type LogInfo = {
|
|
|
9015
9006
|
*/
|
|
9016
9007
|
declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
|
|
9017
9008
|
|
|
9018
|
-
|
|
9009
|
+
/**
|
|
9010
|
+
* Log types
|
|
9011
|
+
*
|
|
9012
|
+
* Note: For the debug log options, the one with the most specific matching pattern will be used.
|
|
9013
|
+
*/
|
|
9014
|
+
declare type LogTypes =
|
|
9015
|
+
/**
|
|
9016
|
+
* Uploads app logs
|
|
9017
|
+
*/
|
|
9018
|
+
'app'
|
|
9019
|
+
/**
|
|
9020
|
+
* Uploads rvm logs
|
|
9021
|
+
*/
|
|
9022
|
+
| 'rvm'
|
|
9023
|
+
/**
|
|
9024
|
+
* Uploads all debug logs
|
|
9025
|
+
*/
|
|
9026
|
+
| 'debug'
|
|
9027
|
+
/**
|
|
9028
|
+
* Uploads the most current debug log the current application
|
|
9029
|
+
*/
|
|
9030
|
+
| 'debug:self'
|
|
9031
|
+
/**
|
|
9032
|
+
* Uploads all debug logs for the current application
|
|
9033
|
+
*/
|
|
9034
|
+
| 'debug:self:archive'
|
|
9035
|
+
/**
|
|
9036
|
+
* Uploads the last two debug logs for the current application
|
|
9037
|
+
*/
|
|
9038
|
+
| 'debug:self:archive:last';
|
|
9019
9039
|
|
|
9020
9040
|
/**
|
|
9021
9041
|
* Options for the Log Uploader.
|
|
@@ -9083,14 +9103,6 @@ declare type LogUploadOptions = {
|
|
|
9083
9103
|
manifests?: string[];
|
|
9084
9104
|
/**
|
|
9085
9105
|
* An array of strings that specifies which logs should be uploaded.
|
|
9086
|
-
* app: Uploads app logs
|
|
9087
|
-
* rvm: Uploads rvm logs
|
|
9088
|
-
* debug: Uploads debug logs
|
|
9089
|
-
* debug:self: Uploads the most current debug log the current application
|
|
9090
|
-
* debug:self:archive: Uploads all debug logs for the current application
|
|
9091
|
-
* debug:self:archive:last: Uploads the last two debug logs for the current application
|
|
9092
|
-
*
|
|
9093
|
-
* For the debug log options, the one with the most specific matching pattern will be used.
|
|
9094
9106
|
* @defaultValue ['app', 'rvm', 'debug']
|
|
9095
9107
|
*/
|
|
9096
9108
|
logs?: LogTypes[];
|
|
@@ -10209,6 +10221,7 @@ declare namespace OpenFin_2 {
|
|
|
10209
10221
|
PlatformOptions,
|
|
10210
10222
|
LogUploaderOptions,
|
|
10211
10223
|
LogUploaderUIOptions,
|
|
10224
|
+
LogTypes,
|
|
10212
10225
|
LogUploadOptions,
|
|
10213
10226
|
Manifest,
|
|
10214
10227
|
LayoutContent,
|
package/out/stub.js
CHANGED
|
@@ -332,35 +332,6 @@ var system = {};
|
|
|
332
332
|
|
|
333
333
|
var base = {};
|
|
334
334
|
|
|
335
|
-
var promises = {};
|
|
336
|
-
|
|
337
|
-
Object.defineProperty(promises, "__esModule", { value: true });
|
|
338
|
-
promises.promiseMapSerial = promises.serial = promises.promiseMap = promises.promisify = void 0;
|
|
339
|
-
function promisify(func) {
|
|
340
|
-
return (...args) => new Promise((resolve, reject) => {
|
|
341
|
-
func(...args, (err, val) => (err ? reject(err) : resolve(val)));
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
promises.promisify = promisify;
|
|
345
|
-
async function promiseMap(arr, asyncF) {
|
|
346
|
-
return Promise.all(arr.map(asyncF));
|
|
347
|
-
}
|
|
348
|
-
promises.promiseMap = promiseMap;
|
|
349
|
-
async function serial(arr) {
|
|
350
|
-
const ret = [];
|
|
351
|
-
for (const func of arr) {
|
|
352
|
-
// eslint-disable-next-line no-await-in-loop
|
|
353
|
-
const next = await func();
|
|
354
|
-
ret.push(next);
|
|
355
|
-
}
|
|
356
|
-
return ret;
|
|
357
|
-
}
|
|
358
|
-
promises.serial = serial;
|
|
359
|
-
async function promiseMapSerial(arr, func) {
|
|
360
|
-
return serial(arr.map((value, index, array) => () => func(value, index, array)));
|
|
361
|
-
}
|
|
362
|
-
promises.promiseMapSerial = promiseMapSerial;
|
|
363
|
-
|
|
364
335
|
var __classPrivateFieldSet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
365
336
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
366
337
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -375,7 +346,6 @@ var __classPrivateFieldGet$i = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
375
346
|
var _EmitterBase_emitterAccessor, _EmitterBase_deregisterOnceListeners;
|
|
376
347
|
Object.defineProperty(base, "__esModule", { value: true });
|
|
377
348
|
base.Reply = base.EmitterBase = base.Base = void 0;
|
|
378
|
-
const promises_1 = promises;
|
|
379
349
|
class Base {
|
|
380
350
|
/**
|
|
381
351
|
* @internal
|
|
@@ -453,27 +423,8 @@ class EmitterBase extends Base {
|
|
|
453
423
|
return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
|
|
454
424
|
};
|
|
455
425
|
this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
456
|
-
/**
|
|
457
|
-
* Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
|
|
458
|
-
* `once` subscription.
|
|
459
|
-
*
|
|
460
|
-
* @remarks Implementing this as a `removeListener` handler ensures that direct removal of a listener
|
|
461
|
-
* on the base emitter will not leak additional core handlers. We could do this in the forwarding method,
|
|
462
|
-
* which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
|
|
463
|
-
*/
|
|
464
|
-
this.cleanUpRemovedListener = (eventType, listener) => {
|
|
465
|
-
const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
466
|
-
if (deregister) {
|
|
467
|
-
const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
468
|
-
emitter.removeListener(eventType, deregister);
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
426
|
this.getOrCreateEmitter = () => {
|
|
472
|
-
|
|
473
|
-
if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
|
|
474
|
-
emitter.on('removeListener', this.cleanUpRemovedListener);
|
|
475
|
-
}
|
|
476
|
-
return emitter;
|
|
427
|
+
return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
477
428
|
};
|
|
478
429
|
this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
|
|
479
430
|
this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
|
|
@@ -513,7 +464,6 @@ class EmitterBase extends Base {
|
|
|
513
464
|
};
|
|
514
465
|
__classPrivateFieldSet$h(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
|
515
466
|
__classPrivateFieldSet$h(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
|
|
516
|
-
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
|
517
467
|
}
|
|
518
468
|
/**
|
|
519
469
|
* Adds a listener to the end of the listeners array for the specified event.
|
|
@@ -591,6 +541,10 @@ class EmitterBase extends Base {
|
|
|
591
541
|
const emitter = await this.deregisterEventListener(eventType, options);
|
|
592
542
|
if (emitter) {
|
|
593
543
|
emitter.removeListener(eventType, listener);
|
|
544
|
+
const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
|
|
545
|
+
if (deregister) {
|
|
546
|
+
emitter.removeListener(eventType, deregister);
|
|
547
|
+
}
|
|
594
548
|
this.deleteEmitterIfNothingRegistered(emitter);
|
|
595
549
|
}
|
|
596
550
|
return this;
|
|
@@ -626,12 +580,13 @@ class EmitterBase extends Base {
|
|
|
626
580
|
}
|
|
627
581
|
else if (this.hasEmitter()) {
|
|
628
582
|
const events = this.getOrCreateEmitter().eventNames();
|
|
629
|
-
await (
|
|
583
|
+
await Promise.all(events.map(removeByEvent));
|
|
630
584
|
}
|
|
631
585
|
return this;
|
|
632
586
|
}
|
|
633
587
|
deleteEmitterIfNothingRegistered(emitter) {
|
|
634
|
-
|
|
588
|
+
// TODO: maybe emitterMap should clean up itself..
|
|
589
|
+
if (emitter.eventNames().length === 0) {
|
|
635
590
|
this.wire.eventAggregator.delete(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
|
|
636
591
|
}
|
|
637
592
|
}
|