@openfin/node-adapter 34.78.10 → 34.78.12
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/node-adapter-alpha.d.ts +571 -130
- package/out/node-adapter-beta.d.ts +571 -130
- package/out/node-adapter-public.d.ts +571 -130
- package/out/node-adapter.d.ts +579 -109
- package/out/node-adapter.js +163 -601
- package/package.json +4 -4
package/out/node-adapter.js
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var require$$0 = require('events');
|
5
6
|
var require$$3 = require('lodash');
|
6
|
-
var require$$0$
|
7
|
+
var require$$0$2 = require('fs');
|
7
8
|
var require$$1$1 = require('crypto');
|
8
9
|
var require$$2$1 = require('ws');
|
9
10
|
var require$$1 = require('net');
|
10
|
-
var require$$0$
|
11
|
-
var require$$0$
|
11
|
+
var require$$0$3 = require('path');
|
12
|
+
var require$$0$4 = require('os');
|
12
13
|
var require$$4 = require('timers');
|
13
14
|
var require$$2 = require('child_process');
|
14
|
-
var require$$0 = require('node:url');
|
15
|
+
var require$$0$1 = require('node:url');
|
15
16
|
|
16
17
|
function _mergeNamespaces(n, m) {
|
17
18
|
m.forEach(function (e) {
|
@@ -34,486 +35,6 @@ var main$1 = {};
|
|
34
35
|
|
35
36
|
var fin = {};
|
36
37
|
|
37
|
-
var eventsExports = {};
|
38
|
-
var events = {
|
39
|
-
get exports(){ return eventsExports; },
|
40
|
-
set exports(v){ eventsExports = v; },
|
41
|
-
};
|
42
|
-
|
43
|
-
var R = typeof Reflect === 'object' ? Reflect : null;
|
44
|
-
var ReflectApply = R && typeof R.apply === 'function'
|
45
|
-
? R.apply
|
46
|
-
: function ReflectApply(target, receiver, args) {
|
47
|
-
return Function.prototype.apply.call(target, receiver, args);
|
48
|
-
};
|
49
|
-
|
50
|
-
var ReflectOwnKeys;
|
51
|
-
if (R && typeof R.ownKeys === 'function') {
|
52
|
-
ReflectOwnKeys = R.ownKeys;
|
53
|
-
} else if (Object.getOwnPropertySymbols) {
|
54
|
-
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
55
|
-
return Object.getOwnPropertyNames(target)
|
56
|
-
.concat(Object.getOwnPropertySymbols(target));
|
57
|
-
};
|
58
|
-
} else {
|
59
|
-
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
60
|
-
return Object.getOwnPropertyNames(target);
|
61
|
-
};
|
62
|
-
}
|
63
|
-
|
64
|
-
function ProcessEmitWarning(warning) {
|
65
|
-
if (console && console.warn) console.warn(warning);
|
66
|
-
}
|
67
|
-
|
68
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
69
|
-
return value !== value;
|
70
|
-
};
|
71
|
-
|
72
|
-
function EventEmitter() {
|
73
|
-
EventEmitter.init.call(this);
|
74
|
-
}
|
75
|
-
events.exports = EventEmitter;
|
76
|
-
eventsExports.once = once;
|
77
|
-
|
78
|
-
// Backwards-compat with node 0.10.x
|
79
|
-
EventEmitter.EventEmitter = EventEmitter;
|
80
|
-
|
81
|
-
EventEmitter.prototype._events = undefined;
|
82
|
-
EventEmitter.prototype._eventsCount = 0;
|
83
|
-
EventEmitter.prototype._maxListeners = undefined;
|
84
|
-
|
85
|
-
// By default EventEmitters will print a warning if more than 10 listeners are
|
86
|
-
// added to it. This is a useful default which helps finding memory leaks.
|
87
|
-
var defaultMaxListeners = 10;
|
88
|
-
|
89
|
-
function checkListener(listener) {
|
90
|
-
if (typeof listener !== 'function') {
|
91
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
96
|
-
enumerable: true,
|
97
|
-
get: function() {
|
98
|
-
return defaultMaxListeners;
|
99
|
-
},
|
100
|
-
set: function(arg) {
|
101
|
-
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
102
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
103
|
-
}
|
104
|
-
defaultMaxListeners = arg;
|
105
|
-
}
|
106
|
-
});
|
107
|
-
|
108
|
-
EventEmitter.init = function() {
|
109
|
-
|
110
|
-
if (this._events === undefined ||
|
111
|
-
this._events === Object.getPrototypeOf(this)._events) {
|
112
|
-
this._events = Object.create(null);
|
113
|
-
this._eventsCount = 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
this._maxListeners = this._maxListeners || undefined;
|
117
|
-
};
|
118
|
-
|
119
|
-
// Obviously not all Emitters should be limited to 10. This function allows
|
120
|
-
// that to be increased. Set to zero for unlimited.
|
121
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
122
|
-
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
123
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
124
|
-
}
|
125
|
-
this._maxListeners = n;
|
126
|
-
return this;
|
127
|
-
};
|
128
|
-
|
129
|
-
function _getMaxListeners(that) {
|
130
|
-
if (that._maxListeners === undefined)
|
131
|
-
return EventEmitter.defaultMaxListeners;
|
132
|
-
return that._maxListeners;
|
133
|
-
}
|
134
|
-
|
135
|
-
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
136
|
-
return _getMaxListeners(this);
|
137
|
-
};
|
138
|
-
|
139
|
-
EventEmitter.prototype.emit = function emit(type) {
|
140
|
-
var args = [];
|
141
|
-
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
142
|
-
var doError = (type === 'error');
|
143
|
-
|
144
|
-
var events = this._events;
|
145
|
-
if (events !== undefined)
|
146
|
-
doError = (doError && events.error === undefined);
|
147
|
-
else if (!doError)
|
148
|
-
return false;
|
149
|
-
|
150
|
-
// If there is no 'error' event listener then throw.
|
151
|
-
if (doError) {
|
152
|
-
var er;
|
153
|
-
if (args.length > 0)
|
154
|
-
er = args[0];
|
155
|
-
if (er instanceof Error) {
|
156
|
-
// Note: The comments on the `throw` lines are intentional, they show
|
157
|
-
// up in Node's output if this results in an unhandled exception.
|
158
|
-
throw er; // Unhandled 'error' event
|
159
|
-
}
|
160
|
-
// At least give some kind of context to the user
|
161
|
-
var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
|
162
|
-
err.context = er;
|
163
|
-
throw err; // Unhandled 'error' event
|
164
|
-
}
|
165
|
-
|
166
|
-
var handler = events[type];
|
167
|
-
|
168
|
-
if (handler === undefined)
|
169
|
-
return false;
|
170
|
-
|
171
|
-
if (typeof handler === 'function') {
|
172
|
-
ReflectApply(handler, this, args);
|
173
|
-
} else {
|
174
|
-
var len = handler.length;
|
175
|
-
var listeners = arrayClone(handler, len);
|
176
|
-
for (var i = 0; i < len; ++i)
|
177
|
-
ReflectApply(listeners[i], this, args);
|
178
|
-
}
|
179
|
-
|
180
|
-
return true;
|
181
|
-
};
|
182
|
-
|
183
|
-
function _addListener(target, type, listener, prepend) {
|
184
|
-
var m;
|
185
|
-
var events;
|
186
|
-
var existing;
|
187
|
-
|
188
|
-
checkListener(listener);
|
189
|
-
|
190
|
-
events = target._events;
|
191
|
-
if (events === undefined) {
|
192
|
-
events = target._events = Object.create(null);
|
193
|
-
target._eventsCount = 0;
|
194
|
-
} else {
|
195
|
-
// To avoid recursion in the case that type === "newListener"! Before
|
196
|
-
// adding it to the listeners, first emit "newListener".
|
197
|
-
if (events.newListener !== undefined) {
|
198
|
-
target.emit('newListener', type,
|
199
|
-
listener.listener ? listener.listener : listener);
|
200
|
-
|
201
|
-
// Re-assign `events` because a newListener handler could have caused the
|
202
|
-
// this._events to be assigned to a new object
|
203
|
-
events = target._events;
|
204
|
-
}
|
205
|
-
existing = events[type];
|
206
|
-
}
|
207
|
-
|
208
|
-
if (existing === undefined) {
|
209
|
-
// Optimize the case of one listener. Don't need the extra array object.
|
210
|
-
existing = events[type] = listener;
|
211
|
-
++target._eventsCount;
|
212
|
-
} else {
|
213
|
-
if (typeof existing === 'function') {
|
214
|
-
// Adding the second element, need to change to array.
|
215
|
-
existing = events[type] =
|
216
|
-
prepend ? [listener, existing] : [existing, listener];
|
217
|
-
// If we've already got an array, just append.
|
218
|
-
} else if (prepend) {
|
219
|
-
existing.unshift(listener);
|
220
|
-
} else {
|
221
|
-
existing.push(listener);
|
222
|
-
}
|
223
|
-
|
224
|
-
// Check for listener leak
|
225
|
-
m = _getMaxListeners(target);
|
226
|
-
if (m > 0 && existing.length > m && !existing.warned) {
|
227
|
-
existing.warned = true;
|
228
|
-
// No error code for this since it is a Warning
|
229
|
-
// eslint-disable-next-line no-restricted-syntax
|
230
|
-
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
231
|
-
existing.length + ' ' + String(type) + ' listeners ' +
|
232
|
-
'added. Use emitter.setMaxListeners() to ' +
|
233
|
-
'increase limit');
|
234
|
-
w.name = 'MaxListenersExceededWarning';
|
235
|
-
w.emitter = target;
|
236
|
-
w.type = type;
|
237
|
-
w.count = existing.length;
|
238
|
-
ProcessEmitWarning(w);
|
239
|
-
}
|
240
|
-
}
|
241
|
-
|
242
|
-
return target;
|
243
|
-
}
|
244
|
-
|
245
|
-
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
246
|
-
return _addListener(this, type, listener, false);
|
247
|
-
};
|
248
|
-
|
249
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
250
|
-
|
251
|
-
EventEmitter.prototype.prependListener =
|
252
|
-
function prependListener(type, listener) {
|
253
|
-
return _addListener(this, type, listener, true);
|
254
|
-
};
|
255
|
-
|
256
|
-
function onceWrapper() {
|
257
|
-
if (!this.fired) {
|
258
|
-
this.target.removeListener(this.type, this.wrapFn);
|
259
|
-
this.fired = true;
|
260
|
-
if (arguments.length === 0)
|
261
|
-
return this.listener.call(this.target);
|
262
|
-
return this.listener.apply(this.target, arguments);
|
263
|
-
}
|
264
|
-
}
|
265
|
-
|
266
|
-
function _onceWrap(target, type, listener) {
|
267
|
-
var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
|
268
|
-
var wrapped = onceWrapper.bind(state);
|
269
|
-
wrapped.listener = listener;
|
270
|
-
state.wrapFn = wrapped;
|
271
|
-
return wrapped;
|
272
|
-
}
|
273
|
-
|
274
|
-
EventEmitter.prototype.once = function once(type, listener) {
|
275
|
-
checkListener(listener);
|
276
|
-
this.on(type, _onceWrap(this, type, listener));
|
277
|
-
return this;
|
278
|
-
};
|
279
|
-
|
280
|
-
EventEmitter.prototype.prependOnceListener =
|
281
|
-
function prependOnceListener(type, listener) {
|
282
|
-
checkListener(listener);
|
283
|
-
this.prependListener(type, _onceWrap(this, type, listener));
|
284
|
-
return this;
|
285
|
-
};
|
286
|
-
|
287
|
-
// Emits a 'removeListener' event if and only if the listener was removed.
|
288
|
-
EventEmitter.prototype.removeListener =
|
289
|
-
function removeListener(type, listener) {
|
290
|
-
var list, events, position, i, originalListener;
|
291
|
-
|
292
|
-
checkListener(listener);
|
293
|
-
|
294
|
-
events = this._events;
|
295
|
-
if (events === undefined)
|
296
|
-
return this;
|
297
|
-
|
298
|
-
list = events[type];
|
299
|
-
if (list === undefined)
|
300
|
-
return this;
|
301
|
-
|
302
|
-
if (list === listener || list.listener === listener) {
|
303
|
-
if (--this._eventsCount === 0)
|
304
|
-
this._events = Object.create(null);
|
305
|
-
else {
|
306
|
-
delete events[type];
|
307
|
-
if (events.removeListener)
|
308
|
-
this.emit('removeListener', type, list.listener || listener);
|
309
|
-
}
|
310
|
-
} else if (typeof list !== 'function') {
|
311
|
-
position = -1;
|
312
|
-
|
313
|
-
for (i = list.length - 1; i >= 0; i--) {
|
314
|
-
if (list[i] === listener || list[i].listener === listener) {
|
315
|
-
originalListener = list[i].listener;
|
316
|
-
position = i;
|
317
|
-
break;
|
318
|
-
}
|
319
|
-
}
|
320
|
-
|
321
|
-
if (position < 0)
|
322
|
-
return this;
|
323
|
-
|
324
|
-
if (position === 0)
|
325
|
-
list.shift();
|
326
|
-
else {
|
327
|
-
spliceOne(list, position);
|
328
|
-
}
|
329
|
-
|
330
|
-
if (list.length === 1)
|
331
|
-
events[type] = list[0];
|
332
|
-
|
333
|
-
if (events.removeListener !== undefined)
|
334
|
-
this.emit('removeListener', type, originalListener || listener);
|
335
|
-
}
|
336
|
-
|
337
|
-
return this;
|
338
|
-
};
|
339
|
-
|
340
|
-
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
341
|
-
|
342
|
-
EventEmitter.prototype.removeAllListeners =
|
343
|
-
function removeAllListeners(type) {
|
344
|
-
var listeners, events, i;
|
345
|
-
|
346
|
-
events = this._events;
|
347
|
-
if (events === undefined)
|
348
|
-
return this;
|
349
|
-
|
350
|
-
// not listening for removeListener, no need to emit
|
351
|
-
if (events.removeListener === undefined) {
|
352
|
-
if (arguments.length === 0) {
|
353
|
-
this._events = Object.create(null);
|
354
|
-
this._eventsCount = 0;
|
355
|
-
} else if (events[type] !== undefined) {
|
356
|
-
if (--this._eventsCount === 0)
|
357
|
-
this._events = Object.create(null);
|
358
|
-
else
|
359
|
-
delete events[type];
|
360
|
-
}
|
361
|
-
return this;
|
362
|
-
}
|
363
|
-
|
364
|
-
// emit removeListener for all listeners on all events
|
365
|
-
if (arguments.length === 0) {
|
366
|
-
var keys = Object.keys(events);
|
367
|
-
var key;
|
368
|
-
for (i = 0; i < keys.length; ++i) {
|
369
|
-
key = keys[i];
|
370
|
-
if (key === 'removeListener') continue;
|
371
|
-
this.removeAllListeners(key);
|
372
|
-
}
|
373
|
-
this.removeAllListeners('removeListener');
|
374
|
-
this._events = Object.create(null);
|
375
|
-
this._eventsCount = 0;
|
376
|
-
return this;
|
377
|
-
}
|
378
|
-
|
379
|
-
listeners = events[type];
|
380
|
-
|
381
|
-
if (typeof listeners === 'function') {
|
382
|
-
this.removeListener(type, listeners);
|
383
|
-
} else if (listeners !== undefined) {
|
384
|
-
// LIFO order
|
385
|
-
for (i = listeners.length - 1; i >= 0; i--) {
|
386
|
-
this.removeListener(type, listeners[i]);
|
387
|
-
}
|
388
|
-
}
|
389
|
-
|
390
|
-
return this;
|
391
|
-
};
|
392
|
-
|
393
|
-
function _listeners(target, type, unwrap) {
|
394
|
-
var events = target._events;
|
395
|
-
|
396
|
-
if (events === undefined)
|
397
|
-
return [];
|
398
|
-
|
399
|
-
var evlistener = events[type];
|
400
|
-
if (evlistener === undefined)
|
401
|
-
return [];
|
402
|
-
|
403
|
-
if (typeof evlistener === 'function')
|
404
|
-
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
405
|
-
|
406
|
-
return unwrap ?
|
407
|
-
unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
408
|
-
}
|
409
|
-
|
410
|
-
EventEmitter.prototype.listeners = function listeners(type) {
|
411
|
-
return _listeners(this, type, true);
|
412
|
-
};
|
413
|
-
|
414
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
415
|
-
return _listeners(this, type, false);
|
416
|
-
};
|
417
|
-
|
418
|
-
EventEmitter.listenerCount = function(emitter, type) {
|
419
|
-
if (typeof emitter.listenerCount === 'function') {
|
420
|
-
return emitter.listenerCount(type);
|
421
|
-
} else {
|
422
|
-
return listenerCount.call(emitter, type);
|
423
|
-
}
|
424
|
-
};
|
425
|
-
|
426
|
-
EventEmitter.prototype.listenerCount = listenerCount;
|
427
|
-
function listenerCount(type) {
|
428
|
-
var events = this._events;
|
429
|
-
|
430
|
-
if (events !== undefined) {
|
431
|
-
var evlistener = events[type];
|
432
|
-
|
433
|
-
if (typeof evlistener === 'function') {
|
434
|
-
return 1;
|
435
|
-
} else if (evlistener !== undefined) {
|
436
|
-
return evlistener.length;
|
437
|
-
}
|
438
|
-
}
|
439
|
-
|
440
|
-
return 0;
|
441
|
-
}
|
442
|
-
|
443
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
444
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
445
|
-
};
|
446
|
-
|
447
|
-
function arrayClone(arr, n) {
|
448
|
-
var copy = new Array(n);
|
449
|
-
for (var i = 0; i < n; ++i)
|
450
|
-
copy[i] = arr[i];
|
451
|
-
return copy;
|
452
|
-
}
|
453
|
-
|
454
|
-
function spliceOne(list, index) {
|
455
|
-
for (; index + 1 < list.length; index++)
|
456
|
-
list[index] = list[index + 1];
|
457
|
-
list.pop();
|
458
|
-
}
|
459
|
-
|
460
|
-
function unwrapListeners(arr) {
|
461
|
-
var ret = new Array(arr.length);
|
462
|
-
for (var i = 0; i < ret.length; ++i) {
|
463
|
-
ret[i] = arr[i].listener || arr[i];
|
464
|
-
}
|
465
|
-
return ret;
|
466
|
-
}
|
467
|
-
|
468
|
-
function once(emitter, name) {
|
469
|
-
return new Promise(function (resolve, reject) {
|
470
|
-
function errorListener(err) {
|
471
|
-
emitter.removeListener(name, resolver);
|
472
|
-
reject(err);
|
473
|
-
}
|
474
|
-
|
475
|
-
function resolver() {
|
476
|
-
if (typeof emitter.removeListener === 'function') {
|
477
|
-
emitter.removeListener('error', errorListener);
|
478
|
-
}
|
479
|
-
resolve([].slice.call(arguments));
|
480
|
-
}
|
481
|
-
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
482
|
-
if (name !== 'error') {
|
483
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
484
|
-
}
|
485
|
-
});
|
486
|
-
}
|
487
|
-
|
488
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
489
|
-
if (typeof emitter.on === 'function') {
|
490
|
-
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
491
|
-
}
|
492
|
-
}
|
493
|
-
|
494
|
-
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
495
|
-
if (typeof emitter.on === 'function') {
|
496
|
-
if (flags.once) {
|
497
|
-
emitter.once(name, listener);
|
498
|
-
} else {
|
499
|
-
emitter.on(name, listener);
|
500
|
-
}
|
501
|
-
} else if (typeof emitter.addEventListener === 'function') {
|
502
|
-
// EventTarget does not have `error` event semantics like Node
|
503
|
-
// EventEmitters, we do not listen for `error` events here.
|
504
|
-
emitter.addEventListener(name, function wrapListener(arg) {
|
505
|
-
// IE does not have builtin `{ once: true }` support so we
|
506
|
-
// have to do it manually.
|
507
|
-
if (flags.once) {
|
508
|
-
emitter.removeEventListener(name, wrapListener);
|
509
|
-
}
|
510
|
-
listener(arg);
|
511
|
-
});
|
512
|
-
} else {
|
513
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
514
|
-
}
|
515
|
-
}
|
516
|
-
|
517
38
|
var system = {};
|
518
39
|
|
519
40
|
var base = {};
|
@@ -657,16 +178,11 @@ class EmitterBase extends Base {
|
|
657
178
|
// This will only be reached if unsubscribe from event that does not exist but do not want to error here
|
658
179
|
return Promise.resolve();
|
659
180
|
};
|
660
|
-
this.addListener = this.on;
|
661
181
|
__classPrivateFieldSet$d(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
|
662
182
|
this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
|
663
183
|
}
|
664
184
|
/**
|
665
185
|
* Adds a listener to the end of the listeners array for the specified event.
|
666
|
-
*
|
667
|
-
* @param eventType
|
668
|
-
* @param listener
|
669
|
-
* @param options
|
670
186
|
*/
|
671
187
|
async on(eventType, listener, options) {
|
672
188
|
await this.registerEventListener(eventType, options, (emitter) => {
|
@@ -676,12 +192,14 @@ class EmitterBase extends Base {
|
|
676
192
|
});
|
677
193
|
return this;
|
678
194
|
}
|
195
|
+
/**
|
196
|
+
* Adds a listener to the end of the listeners array for the specified event.
|
197
|
+
*/
|
198
|
+
async addListener(eventType, listener, options) {
|
199
|
+
return this.on(eventType, listener, options);
|
200
|
+
}
|
679
201
|
/**
|
680
202
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
681
|
-
*
|
682
|
-
* @param eventType
|
683
|
-
* @param listener
|
684
|
-
* @param options
|
685
203
|
*/
|
686
204
|
async once(eventType, listener, options) {
|
687
205
|
const deregister = () => this.deregisterEventListener(eventType);
|
@@ -696,10 +214,6 @@ class EmitterBase extends Base {
|
|
696
214
|
}
|
697
215
|
/**
|
698
216
|
* Adds a listener to the beginning of the listeners array for the specified event.
|
699
|
-
*
|
700
|
-
* @param eventType
|
701
|
-
* @param listener
|
702
|
-
* @param options
|
703
217
|
*/
|
704
218
|
async prependListener(eventType, listener, options) {
|
705
219
|
await this.registerEventListener(eventType, options, (emitter) => {
|
@@ -712,10 +226,6 @@ class EmitterBase extends Base {
|
|
712
226
|
/**
|
713
227
|
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
|
714
228
|
* after which it is removed. The listener is added to the beginning of the listeners array.
|
715
|
-
*
|
716
|
-
* @param eventType
|
717
|
-
* @param listener
|
718
|
-
* @param options
|
719
229
|
*/
|
720
230
|
async prependOnceListener(eventType, listener, options) {
|
721
231
|
const deregister = () => this.deregisterEventListener(eventType);
|
@@ -732,10 +242,6 @@ class EmitterBase extends Base {
|
|
732
242
|
* Remove a listener from the listener array for the specified event.
|
733
243
|
*
|
734
244
|
* @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
|
735
|
-
*
|
736
|
-
* @param eventType
|
737
|
-
* @param listener
|
738
|
-
* @param options
|
739
245
|
*/
|
740
246
|
async removeListener(eventType, listener, options) {
|
741
247
|
const emitter = await this.deregisterEventListener(eventType, options);
|
@@ -762,7 +268,6 @@ class EmitterBase extends Base {
|
|
762
268
|
/**
|
763
269
|
* Removes all listeners, or those of the specified event.
|
764
270
|
*
|
765
|
-
* @param eventType
|
766
271
|
*/
|
767
272
|
async removeAllListeners(eventType) {
|
768
273
|
const removeByEvent = async (event) => {
|
@@ -1268,7 +773,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
1268
773
|
};
|
1269
774
|
Object.defineProperty(exports, "__esModule", { value: true });
|
1270
775
|
__exportStar(channelsConsumer, exports);
|
1271
|
-
__exportStar(channelsExposer, exports);
|
776
|
+
__exportStar(channelsExposer, exports);
|
1272
777
|
} (openfinChannels));
|
1273
778
|
|
1274
779
|
(function (exports) {
|
@@ -1287,7 +792,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
1287
792
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
1288
793
|
};
|
1289
794
|
Object.defineProperty(exports, "__esModule", { value: true });
|
1290
|
-
__exportStar(openfinChannels, exports);
|
795
|
+
__exportStar(openfinChannels, exports);
|
1291
796
|
} (strategies));
|
1292
797
|
|
1293
798
|
(function (exports) {
|
@@ -1309,7 +814,7 @@ channelsExposer.ChannelsExposer = ChannelsExposer;
|
|
1309
814
|
__exportStar(apiConsumer, exports);
|
1310
815
|
__exportStar(apiExposer, exports);
|
1311
816
|
__exportStar(strategies, exports);
|
1312
|
-
__exportStar(decorators, exports);
|
817
|
+
__exportStar(decorators, exports);
|
1313
818
|
} (apiExposer$1));
|
1314
819
|
|
1315
820
|
var channelApiRelay = {};
|
@@ -3547,9 +3052,9 @@ function requireView () {
|
|
3547
3052
|
};
|
3548
3053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3549
3054
|
/**
|
3550
|
-
* Entry points for the OpenFin `View` API.
|
3055
|
+
* Entry points for the OpenFin `View` API (`fin.View`).
|
3551
3056
|
*
|
3552
|
-
* * {@link ViewModule} contains static
|
3057
|
+
* * {@link ViewModule} contains static members of the `View` API, accessible through `fin.View`.
|
3553
3058
|
* * {@link View} describes an instance of an OpenFin View, e.g. as returned by `fin.View.getCurrent`.
|
3554
3059
|
*
|
3555
3060
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -3558,8 +3063,8 @@ function requireView () {
|
|
3558
3063
|
* @packageDocumentation
|
3559
3064
|
*/
|
3560
3065
|
__exportStar(requireFactory$3(), exports);
|
3561
|
-
__exportStar(requireInstance$2(), exports);
|
3562
|
-
} (view));
|
3066
|
+
__exportStar(requireInstance$2(), exports);
|
3067
|
+
} (view));
|
3563
3068
|
return view;
|
3564
3069
|
}
|
3565
3070
|
|
@@ -4685,9 +4190,9 @@ function requireApplication () {
|
|
4685
4190
|
};
|
4686
4191
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4687
4192
|
/**
|
4688
|
-
* Entry points for the OpenFin `Application` API.
|
4193
|
+
* Entry points for the OpenFin `Application` API (`fin.Application`).
|
4689
4194
|
*
|
4690
|
-
* * {@link ApplicationModule} contains static
|
4195
|
+
* * {@link ApplicationModule} contains static members of the `Application` API, accessible through `fin.Application`.
|
4691
4196
|
* * {@link Application} describes an instance of an OpenFin Application, e.g. as returned by `fin.Application.getCurrent`.
|
4692
4197
|
*
|
4693
4198
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -4696,8 +4201,8 @@ function requireApplication () {
|
|
4696
4201
|
* @packageDocumentation
|
4697
4202
|
*/
|
4698
4203
|
__exportStar(requireFactory$2(), exports);
|
4699
|
-
__exportStar(requireInstance$1(), exports);
|
4700
|
-
} (application));
|
4204
|
+
__exportStar(requireInstance$1(), exports);
|
4205
|
+
} (application));
|
4701
4206
|
return application;
|
4702
4207
|
}
|
4703
4208
|
|
@@ -6738,9 +6243,9 @@ function requireWindow () {
|
|
6738
6243
|
};
|
6739
6244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6740
6245
|
/**
|
6741
|
-
* Entry points for the OpenFin `Window` API.
|
6246
|
+
* Entry points for the OpenFin `Window` API (`fin.Window`).
|
6742
6247
|
*
|
6743
|
-
* * {@link _WindowModule} contains static
|
6248
|
+
* * {@link _WindowModule} contains static members of the `Window` API, accessible through `fin.Window`.
|
6744
6249
|
* * {@link _Window} describes an instance of an OpenFin Window, e.g. as returned by `fin.Window.getCurrent`.
|
6745
6250
|
*
|
6746
6251
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -6751,17 +6256,24 @@ function requireWindow () {
|
|
6751
6256
|
* @packageDocumentation
|
6752
6257
|
*/
|
6753
6258
|
__exportStar(requireFactory$1(), exports);
|
6754
|
-
__exportStar(requireInstance(), exports);
|
6755
|
-
} (window$1));
|
6259
|
+
__exportStar(requireInstance(), exports);
|
6260
|
+
} (window$1));
|
6756
6261
|
return window$1;
|
6757
6262
|
}
|
6758
6263
|
|
6264
|
+
/**
|
6265
|
+
* Entry point for the OpenFin `System` API (`fin.System`).
|
6266
|
+
*
|
6267
|
+
* * {@link System} contains static members of the `System` API (available under `fin.System`)
|
6268
|
+
*
|
6269
|
+
* @packageDocumentation
|
6270
|
+
*/
|
6759
6271
|
Object.defineProperty(system, "__esModule", { value: true });
|
6760
6272
|
system.System = void 0;
|
6761
6273
|
const base_1$j = base;
|
6762
6274
|
const transport_errors_1$2 = transportErrors;
|
6763
6275
|
const window_1 = requireWindow();
|
6764
|
-
const events_1$6 =
|
6276
|
+
const events_1$6 = require$$0;
|
6765
6277
|
/**
|
6766
6278
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
6767
6279
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
@@ -10465,6 +9977,15 @@ class ConnectionManager extends base_1$g.Base {
|
|
10465
9977
|
connectionManager.ConnectionManager = ConnectionManager;
|
10466
9978
|
_ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnectionManager = new WeakMap();
|
10467
9979
|
|
9980
|
+
/**
|
9981
|
+
* Entry points for the `Channel` subset of the `InterApplicationBus` API (`fin.InterApplicationBus.Channel`).
|
9982
|
+
*
|
9983
|
+
* * {@link Channel} contains static members of the `Channel` API, accessible through `fin.InterApplicationBus.Channel`.
|
9984
|
+
* * {@link OpenFin.ChannelClient} describes a client of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.connect`.
|
9985
|
+
* * {@link OpenFin.ChannelProvider} describes a provider of a channel, e.g. as returned by `fin.InterApplicationBus.Channel.create`.
|
9986
|
+
*
|
9987
|
+
* @packageDocumentation
|
9988
|
+
*/
|
10468
9989
|
var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
10469
9990
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
10470
9991
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
@@ -10480,7 +10001,7 @@ var _Channel_connectionManager, _Channel_internalEmitter, _Channel_readyToConnec
|
|
10480
10001
|
Object.defineProperty(channel$1, "__esModule", { value: true });
|
10481
10002
|
channel$1.Channel = void 0;
|
10482
10003
|
/* eslint-disable no-console */
|
10483
|
-
const events_1$5 =
|
10004
|
+
const events_1$5 = require$$0;
|
10484
10005
|
const lazy_1$1 = lazy;
|
10485
10006
|
const base_1$f = base;
|
10486
10007
|
const client_1 = client;
|
@@ -10800,7 +10321,14 @@ _Channel_connectionManager = new WeakMap(), _Channel_internalEmitter = new WeakM
|
|
10800
10321
|
|
10801
10322
|
Object.defineProperty(interappbus, "__esModule", { value: true });
|
10802
10323
|
interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
10803
|
-
|
10324
|
+
/**
|
10325
|
+
* Entry point for the OpenFin `InterApplicationBus` API (`fin.InterApplicationBus`).
|
10326
|
+
*
|
10327
|
+
* * {@link InterApplicationBus} contains static members of the `InterApplicationBus` API, accessible through `fin.InterApplicationBus`.
|
10328
|
+
*
|
10329
|
+
* @packageDocumentation
|
10330
|
+
*/
|
10331
|
+
const events_1$4 = require$$0;
|
10804
10332
|
const base_1$e = base;
|
10805
10333
|
const ref_counter_1 = refCounter;
|
10806
10334
|
const index_1$2 = channel$1;
|
@@ -11008,6 +10536,13 @@ function createKey(...toHash) {
|
|
11008
10536
|
|
11009
10537
|
var clipboard = {};
|
11010
10538
|
|
10539
|
+
/**
|
10540
|
+
* Entry point for the OpenFin `Clipboard` API (`fin.Clipboard`).
|
10541
|
+
*
|
10542
|
+
* * {@link Clipboard} contains static members of the `Clipboard` API, accessible through `fin.Clipboard`.
|
10543
|
+
*
|
10544
|
+
* @packageDocumentation
|
10545
|
+
*/
|
11011
10546
|
Object.defineProperty(clipboard, "__esModule", { value: true });
|
11012
10547
|
clipboard.Clipboard = void 0;
|
11013
10548
|
const base_1$d = base;
|
@@ -11398,9 +10933,9 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
11398
10933
|
};
|
11399
10934
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11400
10935
|
/**
|
11401
|
-
* Entry points for the OpenFin `ExternalApplication` API.
|
10936
|
+
* Entry points for the OpenFin `ExternalApplication` API (`fin.ExternalApplication`).
|
11402
10937
|
*
|
11403
|
-
* * {@link ExternalApplicationModule} contains static
|
10938
|
+
* * {@link ExternalApplicationModule} contains static members of the `ExternalApplication` type, accessible through `fin.ExternalApplication`.
|
11404
10939
|
* * {@link ExternalApplication} describes an instance of an OpenFin ExternalApplication, e.g. as returned by `fin.ExternalApplication.getCurrent`.
|
11405
10940
|
*
|
11406
10941
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -11409,7 +10944,7 @@ Factory$5.ExternalApplicationModule = ExternalApplicationModule;
|
|
11409
10944
|
* @packageDocumentation
|
11410
10945
|
*/
|
11411
10946
|
__exportStar(Factory$5, exports);
|
11412
|
-
__exportStar(Instance$4, exports);
|
10947
|
+
__exportStar(Instance$4, exports);
|
11413
10948
|
} (externalApplication));
|
11414
10949
|
|
11415
10950
|
var frame = {};
|
@@ -11649,9 +11184,9 @@ Factory$4._FrameModule = _FrameModule;
|
|
11649
11184
|
|
11650
11185
|
(function (exports) {
|
11651
11186
|
/**
|
11652
|
-
* Entry points for the OpenFin `Frame` API.
|
11187
|
+
* Entry points for the OpenFin `Frame` API (`fin.Frame`).
|
11653
11188
|
*
|
11654
|
-
* * {@link _FrameModule} contains static
|
11189
|
+
* * {@link _FrameModule} contains static members of the `Frame` API, accessible through `fin.Frame`.
|
11655
11190
|
* * {@link _Frame} describes an instance of an OpenFin Frame, e.g. as returned by `fin.Frame.getCurrent`.
|
11656
11191
|
*
|
11657
11192
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -11677,7 +11212,7 @@ Factory$4._FrameModule = _FrameModule;
|
|
11677
11212
|
};
|
11678
11213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
11679
11214
|
__exportStar(Factory$4, exports);
|
11680
|
-
__exportStar(Instance$3, exports);
|
11215
|
+
__exportStar(Instance$3, exports);
|
11681
11216
|
} (frame));
|
11682
11217
|
|
11683
11218
|
var globalHotkey = {};
|
@@ -13213,9 +12748,9 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
|
|
13213
12748
|
|
13214
12749
|
(function (exports) {
|
13215
12750
|
/**
|
13216
|
-
* Entry point for the OpenFin `Layout`
|
12751
|
+
* Entry point for the OpenFin `Layout` subset of the `Platform` API (`fin.Platform.Layout`).
|
13217
12752
|
*
|
13218
|
-
* * {@link LayoutModule} contains static
|
12753
|
+
* * {@link LayoutModule} contains static members of the `Layout` API, accessible through `fin.Platform.Layout`.
|
13219
12754
|
* * {@link Layout} describes an instance of an OpenFin Layout, e.g. as returned by `fin.Platform.Layout.getCurrent`.
|
13220
12755
|
*
|
13221
12756
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -13240,7 +12775,7 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap();
|
|
13240
12775
|
};
|
13241
12776
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13242
12777
|
__exportStar(Factory$2, exports);
|
13243
|
-
__exportStar(Instance$1, exports);
|
12778
|
+
__exportStar(Instance$1, exports);
|
13244
12779
|
} (layout));
|
13245
12780
|
|
13246
12781
|
Object.defineProperty(Factory$3, "__esModule", { value: true });
|
@@ -13494,9 +13029,9 @@ Factory$3.PlatformModule = PlatformModule;
|
|
13494
13029
|
};
|
13495
13030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13496
13031
|
/**
|
13497
|
-
* Entry points for the OpenFin `Platform` API.
|
13032
|
+
* Entry points for the OpenFin `Platform` API (`fin.Platform`)
|
13498
13033
|
*
|
13499
|
-
* * {@link PlatformModule} contains static
|
13034
|
+
* * {@link PlatformModule} contains static members of the `Platform` API, accessible through `fin.Platform`.
|
13500
13035
|
* * {@link Platform} describes an instance of an OpenFin Platform, e.g. as returned by `fin.Platform.getCurrent`.
|
13501
13036
|
*
|
13502
13037
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -13505,7 +13040,7 @@ Factory$3.PlatformModule = PlatformModule;
|
|
13505
13040
|
* @packageDocumentation
|
13506
13041
|
*/
|
13507
13042
|
__exportStar(Factory$3, exports);
|
13508
|
-
__exportStar(Instance$2, exports);
|
13043
|
+
__exportStar(Instance$2, exports);
|
13509
13044
|
} (platform));
|
13510
13045
|
|
13511
13046
|
var me = {};
|
@@ -13643,7 +13178,7 @@ var me = {};
|
|
13643
13178
|
};
|
13644
13179
|
}
|
13645
13180
|
}
|
13646
|
-
exports.getMe = getMe;
|
13181
|
+
exports.getMe = getMe;
|
13647
13182
|
} (me));
|
13648
13183
|
|
13649
13184
|
var interop = {};
|
@@ -13882,7 +13417,7 @@ var utils$1 = {};
|
|
13882
13417
|
}
|
13883
13418
|
};
|
13884
13419
|
};
|
13885
|
-
exports.wrapIntentHandler = wrapIntentHandler;
|
13420
|
+
exports.wrapIntentHandler = wrapIntentHandler;
|
13886
13421
|
} (utils$1));
|
13887
13422
|
|
13888
13423
|
var PrivateChannelProvider = {};
|
@@ -16267,39 +15802,46 @@ class InteropClient extends base_1$2.Base {
|
|
16267
15802
|
InteropClient$1.InteropClient = InteropClient;
|
16268
15803
|
_InteropClient_clientPromise = new WeakMap(), _InteropClient_sessionContextGroups = new WeakMap();
|
16269
15804
|
|
16270
|
-
var overrideCheck
|
15805
|
+
var overrideCheck = {};
|
16271
15806
|
|
16272
|
-
|
16273
|
-
|
16274
|
-
|
16275
|
-
|
16276
|
-
|
16277
|
-
|
16278
|
-
|
16279
|
-
|
16280
|
-
|
16281
|
-
|
16282
|
-
|
16283
|
-
|
16284
|
-
|
16285
|
-
|
16286
|
-
|
16287
|
-
|
16288
|
-
|
16289
|
-
|
16290
|
-
|
16291
|
-
|
16292
|
-
|
16293
|
-
|
16294
|
-
|
16295
|
-
|
16296
|
-
|
16297
|
-
|
16298
|
-
|
16299
|
-
|
16300
|
-
|
15807
|
+
var hasRequiredOverrideCheck;
|
15808
|
+
|
15809
|
+
function requireOverrideCheck () {
|
15810
|
+
if (hasRequiredOverrideCheck) return overrideCheck;
|
15811
|
+
hasRequiredOverrideCheck = 1;
|
15812
|
+
Object.defineProperty(overrideCheck, "__esModule", { value: true });
|
15813
|
+
overrideCheck.overrideCheck = overrideCheck.getDefaultViewFdc3VersionFromAppInfo = void 0;
|
15814
|
+
const InteropBroker_1 = requireInteropBroker();
|
15815
|
+
function getDefaultViewFdc3VersionFromAppInfo({ manifest, initialOptions }) {
|
15816
|
+
var _a, _b, _c, _d;
|
15817
|
+
const setVersion = (_c = (_b = (_a = manifest.platform) === null || _a === void 0 ? void 0 : _a.defaultViewOptions) === null || _b === void 0 ? void 0 : _b.fdc3InteropApi) !== null && _c !== void 0 ? _c : (_d = initialOptions.defaultViewOptions) === null || _d === void 0 ? void 0 : _d.fdc3InteropApi;
|
15818
|
+
return ['1.2', '2.0'].includes(setVersion !== null && setVersion !== void 0 ? setVersion : '') ? setVersion : undefined;
|
15819
|
+
}
|
15820
|
+
overrideCheck.getDefaultViewFdc3VersionFromAppInfo = getDefaultViewFdc3VersionFromAppInfo;
|
15821
|
+
// TODO: Unit test this
|
15822
|
+
function overrideCheck$1(overriddenBroker, fdc3InteropApi) {
|
15823
|
+
if (fdc3InteropApi && fdc3InteropApi === '2.0') {
|
15824
|
+
const mustOverrideAPIs = [
|
15825
|
+
'fdc3HandleFindInstances',
|
15826
|
+
'handleInfoForIntent',
|
15827
|
+
'handleInfoForIntentsByContext',
|
15828
|
+
'fdc3HandleGetAppMetadata',
|
15829
|
+
'fdc3HandleGetInfo',
|
15830
|
+
'fdc3HandleOpen',
|
15831
|
+
'handleFiredIntent',
|
15832
|
+
'handleFiredIntentForContext'
|
15833
|
+
];
|
15834
|
+
const notOverridden = mustOverrideAPIs.filter((api) => {
|
15835
|
+
return overriddenBroker[api] === InteropBroker_1.InteropBroker.prototype[api];
|
15836
|
+
});
|
15837
|
+
if (notOverridden.length > 0) {
|
15838
|
+
console.warn(`WARNING: FDC3 2.0 has been set as a default option for Views in this Platform, but the required InteropBroker APIs for FDC3 2.0 compliance have not all been overridden.\nThe following APIs need to be overridden:\n${notOverridden.join('\n')}`);
|
15839
|
+
}
|
15840
|
+
}
|
15841
|
+
}
|
15842
|
+
overrideCheck.overrideCheck = overrideCheck$1;
|
15843
|
+
return overrideCheck;
|
16301
15844
|
}
|
16302
|
-
overrideCheck$1.overrideCheck = overrideCheck;
|
16303
15845
|
|
16304
15846
|
var hasRequiredFactory;
|
16305
15847
|
|
@@ -16313,7 +15855,7 @@ function requireFactory () {
|
|
16313
15855
|
const base_1 = base;
|
16314
15856
|
const InteropBroker_1 = requireInteropBroker();
|
16315
15857
|
const InteropClient_1 = InteropClient$1;
|
16316
|
-
const overrideCheck_1 =
|
15858
|
+
const overrideCheck_1 = requireOverrideCheck();
|
16317
15859
|
const common_utils_1 = commonUtils;
|
16318
15860
|
const defaultOverride = (Class) => new Class();
|
16319
15861
|
const BrokerParamAccessError = 'You have attempted to use or modify InteropBroker parameters, which is not allowed. You are likely using an older InteropBroker override scheme. Please consult our Interop docs for guidance on migrating to the new override scheme.';
|
@@ -16420,9 +15962,9 @@ function requireInterop () {
|
|
16420
15962
|
hasRequiredInterop = 1;
|
16421
15963
|
(function (exports) {
|
16422
15964
|
/**
|
16423
|
-
* Entry point for the OpenFin Interop
|
15965
|
+
* Entry point for the OpenFin `Interop` API (`fin.Interop`).
|
16424
15966
|
*
|
16425
|
-
* * {@link InteropModule} contains static members of the `Interop`
|
15967
|
+
* * {@link InteropModule} contains static members of the `Interop` API (available under `fin.Interop`)
|
16426
15968
|
* * {@link InteropClient} and {@link InteropBroker} document instances of their respective classes.
|
16427
15969
|
*
|
16428
15970
|
* @packageDocumentation
|
@@ -16444,8 +15986,8 @@ function requireInterop () {
|
|
16444
15986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16445
15987
|
__exportStar(requireFactory(), exports);
|
16446
15988
|
__exportStar(InteropClient$1, exports);
|
16447
|
-
__exportStar(requireInteropBroker(), exports);
|
16448
|
-
} (interop));
|
15989
|
+
__exportStar(requireInteropBroker(), exports);
|
15990
|
+
} (interop));
|
16449
15991
|
return interop;
|
16450
15992
|
}
|
16451
15993
|
|
@@ -16484,6 +16026,8 @@ const connectionMap = new Map();
|
|
16484
16026
|
/**
|
16485
16027
|
* Enables configuring a SnapshotSource with custom getSnapshot and applySnapshot methods.
|
16486
16028
|
*
|
16029
|
+
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
16030
|
+
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
16487
16031
|
*/
|
16488
16032
|
class SnapshotSource extends base_1$1.Base {
|
16489
16033
|
/**
|
@@ -16629,6 +16173,9 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16629
16173
|
/**
|
16630
16174
|
* Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
|
16631
16175
|
*
|
16176
|
+
* @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
|
16177
|
+
* custom snapshot implementations for legacy applications to define their own snapshot format.
|
16178
|
+
*
|
16632
16179
|
* @example
|
16633
16180
|
* ```js
|
16634
16181
|
* const snapshotProvider = {
|
@@ -16644,6 +16191,7 @@ class SnapshotSourceModule extends base_1.Base {
|
|
16644
16191
|
*
|
16645
16192
|
* await fin.SnapshotSource.init(snapshotProvider);
|
16646
16193
|
* ```
|
16194
|
+
*
|
16647
16195
|
*/
|
16648
16196
|
async init(provider) {
|
16649
16197
|
this.wire.sendAction('snapshot-source-init').catch((e) => {
|
@@ -16698,9 +16246,9 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16698
16246
|
|
16699
16247
|
(function (exports) {
|
16700
16248
|
/**
|
16701
|
-
* Entry points for the OpenFin `SnapshotSource` API.
|
16249
|
+
* Entry points for the OpenFin `SnapshotSource` API (`fin.SnapshotSource`).
|
16702
16250
|
*
|
16703
|
-
* * {@link SnapshotSourceModule} contains static
|
16251
|
+
* * {@link SnapshotSourceModule} contains static members of the `SnapshotSource` API, accessible through `fin.SnapshotSource`.
|
16704
16252
|
* * {@link SnapshotSource} describes an instance of an OpenFin SnapshotSource, e.g. as returned by `fin.SnapshotSource.wrap`.
|
16705
16253
|
*
|
16706
16254
|
* These are separate code entities, and are documented separately. In the [previous version of the API documentation](https://cdn.openfin.co/docs/javascript/canary/index.html),
|
@@ -16724,12 +16272,12 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16724
16272
|
};
|
16725
16273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16726
16274
|
__exportStar(Factory, exports);
|
16727
|
-
__exportStar(Instance, exports);
|
16275
|
+
__exportStar(Instance, exports);
|
16728
16276
|
} (snapshotSource));
|
16729
16277
|
|
16730
16278
|
Object.defineProperty(fin, "__esModule", { value: true });
|
16731
16279
|
fin.Fin = void 0;
|
16732
|
-
const events_1$3 =
|
16280
|
+
const events_1$3 = require$$0;
|
16733
16281
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
16734
16282
|
const index_1 = system;
|
16735
16283
|
const index_2 = requireWindow();
|
@@ -16744,6 +16292,9 @@ const index_10 = platform;
|
|
16744
16292
|
const me_1$1 = me;
|
16745
16293
|
const interop_1 = requireInterop();
|
16746
16294
|
const snapshot_source_1 = snapshotSource;
|
16295
|
+
/**
|
16296
|
+
* @internal
|
16297
|
+
*/
|
16747
16298
|
class Fin extends events_1$3.EventEmitter {
|
16748
16299
|
/**
|
16749
16300
|
* @internal
|
@@ -16832,8 +16383,8 @@ var http = {};
|
|
16832
16383
|
(function (exports) {
|
16833
16384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16834
16385
|
exports.fetchJson = exports.downloadFile = exports.fetch = exports.getRequestOptions = exports.getProxy = void 0;
|
16835
|
-
const node_url_1 = require$$0; // This must explicitly use node builtin to avoid accidentally bundling npm:url.
|
16836
|
-
const fs = require$$0$
|
16386
|
+
const node_url_1 = require$$0$1; // This must explicitly use node builtin to avoid accidentally bundling npm:url.
|
16387
|
+
const fs = require$$0$2;
|
16837
16388
|
const getProxyVar = () => {
|
16838
16389
|
return process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy;
|
16839
16390
|
};
|
@@ -16918,13 +16469,13 @@ var http = {};
|
|
16918
16469
|
const res = await (0, exports.fetch)(url);
|
16919
16470
|
return JSON.parse(res);
|
16920
16471
|
};
|
16921
|
-
exports.fetchJson = fetchJson;
|
16472
|
+
exports.fetchJson = fetchJson;
|
16922
16473
|
} (http));
|
16923
16474
|
|
16924
16475
|
Object.defineProperty(util, "__esModule", { value: true });
|
16925
16476
|
util.resolveDir = util.first = util.resolveRuntimeVersion = util.rmDir = util.unzip = util.exists = void 0;
|
16926
|
-
const path$1 = require$$0$
|
16927
|
-
const fs$1 = require$$0$
|
16477
|
+
const path$1 = require$$0$3;
|
16478
|
+
const fs$1 = require$$0$2;
|
16928
16479
|
const child_process_1$1 = require$$2;
|
16929
16480
|
const promises_1$1 = promises;
|
16930
16481
|
const http_1$1 = http;
|
@@ -17026,7 +16577,7 @@ async function resolveDir(base, paths) {
|
|
17026
16577
|
util.resolveDir = resolveDir;
|
17027
16578
|
|
17028
16579
|
Object.defineProperty(winLaunch, "__esModule", { value: true });
|
17029
|
-
const path = require$$0$
|
16580
|
+
const path = require$$0$3;
|
17030
16581
|
const child_process_1 = require$$2;
|
17031
16582
|
const util_1 = util;
|
17032
16583
|
function launchRVM(config, manifestLocation, namedPipeName, rvm) {
|
@@ -17110,8 +16661,8 @@ function requireServices () {
|
|
17110
16661
|
const startServices = async (services) => {
|
17111
16662
|
await (0, promises_1.promiseMapSerial)(services, exports.launchService);
|
17112
16663
|
};
|
17113
|
-
exports.startServices = startServices;
|
17114
|
-
} (services));
|
16664
|
+
exports.startServices = startServices;
|
16665
|
+
} (services));
|
17115
16666
|
return services;
|
17116
16667
|
}
|
17117
16668
|
|
@@ -17122,8 +16673,8 @@ function requireNixLaunch () {
|
|
17122
16673
|
hasRequiredNixLaunch = 1;
|
17123
16674
|
Object.defineProperty(nixLaunch, "__esModule", { value: true });
|
17124
16675
|
nixLaunch.install = nixLaunch.getRuntimePath = nixLaunch.download = nixLaunch.getUrl = void 0;
|
17125
|
-
const fs = require$$0$
|
17126
|
-
const path = require$$0$
|
16676
|
+
const fs = require$$0$2;
|
16677
|
+
const path = require$$0$3;
|
17127
16678
|
const child_process_1 = require$$2;
|
17128
16679
|
const promises_1 = promises;
|
17129
16680
|
const util_1 = util;
|
@@ -17230,8 +16781,8 @@ function requireLauncher () {
|
|
17230
16781
|
if (hasRequiredLauncher) return launcher;
|
17231
16782
|
hasRequiredLauncher = 1;
|
17232
16783
|
Object.defineProperty(launcher, "__esModule", { value: true });
|
17233
|
-
const os = require$$0$
|
17234
|
-
const path = require$$0$
|
16784
|
+
const os = require$$0$4;
|
16785
|
+
const path = require$$0$3;
|
17235
16786
|
const win_launch_1 = winLaunch;
|
17236
16787
|
const nix_launch_1 = requireNixLaunch();
|
17237
16788
|
class Launcher {
|
@@ -17306,10 +16857,10 @@ function requirePortDiscovery () {
|
|
17306
16857
|
hasRequiredPortDiscovery = 1;
|
17307
16858
|
Object.defineProperty(portDiscovery, "__esModule", { value: true });
|
17308
16859
|
/* eslint-disable @typescript-eslint/naming-convention */
|
17309
|
-
const fs = require$$0$
|
16860
|
+
const fs = require$$0$2;
|
17310
16861
|
const net = require$$1;
|
17311
|
-
const path = require$$0$
|
17312
|
-
const os = require$$0$
|
16862
|
+
const path = require$$0$3;
|
16863
|
+
const os = require$$0$4;
|
17313
16864
|
const timers_1 = require$$4;
|
17314
16865
|
const wire_1 = wire;
|
17315
16866
|
const launcher_1 = requireLauncher();
|
@@ -17584,7 +17135,7 @@ function requireNodeEnv () {
|
|
17584
17135
|
hasRequiredNodeEnv = 1;
|
17585
17136
|
Object.defineProperty(nodeEnv, "__esModule", { value: true });
|
17586
17137
|
/* eslint-disable class-methods-use-this */
|
17587
|
-
const fs_1 = require$$0$
|
17138
|
+
const fs_1 = require$$0$2;
|
17588
17139
|
const crypto_1 = require$$1$1;
|
17589
17140
|
const WS = require$$2$1;
|
17590
17141
|
const environment_1 = environment;
|
@@ -17664,7 +17215,7 @@ var emitterMap = {};
|
|
17664
17215
|
|
17665
17216
|
Object.defineProperty(emitterMap, "__esModule", { value: true });
|
17666
17217
|
emitterMap.EmitterMap = void 0;
|
17667
|
-
const events_1$2 =
|
17218
|
+
const events_1$2 = require$$0;
|
17668
17219
|
class EmitterMap {
|
17669
17220
|
constructor() {
|
17670
17221
|
this.storage = new Map();
|
@@ -17746,7 +17297,7 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
|
|
17746
17297
|
var _Transport_wire, _Transport_fin;
|
17747
17298
|
Object.defineProperty(transport, "__esModule", { value: true });
|
17748
17299
|
transport.Transport = void 0;
|
17749
|
-
const events_1$1 =
|
17300
|
+
const events_1$1 = require$$0;
|
17750
17301
|
const wire_1$1 = wire;
|
17751
17302
|
const transport_errors_1$1 = transportErrors;
|
17752
17303
|
const eventAggregator_1 = eventAggregator;
|
@@ -17954,7 +17505,7 @@ _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
|
|
17954
17505
|
var websocket = {};
|
17955
17506
|
|
17956
17507
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
17957
|
-
const events_1 =
|
17508
|
+
const events_1 = require$$0;
|
17958
17509
|
const transport_errors_1 = transportErrors;
|
17959
17510
|
/* `READY_STATE` is an instance var set by `constructor` to reference the `WebTransportSocket.READY_STATE` enum.
|
17960
17511
|
* This is syntactic sugar that makes the enum accessible through the `wire` property of the various `fin` singletons.
|
@@ -18014,8 +17565,8 @@ var normalizeConfig$1 = {};
|
|
18014
17565
|
|
18015
17566
|
Object.defineProperty(normalizeConfig$1, "__esModule", { value: true });
|
18016
17567
|
normalizeConfig$1.validateConfig = normalizeConfig$1.normalizeConfig = void 0;
|
18017
|
-
const fs = require$$0$
|
18018
|
-
const node_url_1 = require$$0; // This must explicitly use node builtin to avoid accidentally bundling npm:url
|
17568
|
+
const fs = require$$0$2;
|
17569
|
+
const node_url_1 = require$$0$1; // This must explicitly use node builtin to avoid accidentally bundling npm:url
|
18019
17570
|
const wire_1 = wire;
|
18020
17571
|
const promises_1 = promises;
|
18021
17572
|
const http_1 = http;
|
@@ -18115,8 +17666,8 @@ function requireMain () {
|
|
18115
17666
|
const pd = new port_discovery_1.default(normalized, environment);
|
18116
17667
|
return pd.retrievePort();
|
18117
17668
|
}
|
18118
|
-
exports.launch = launch;
|
18119
|
-
} (main$1));
|
17669
|
+
exports.launch = launch;
|
17670
|
+
} (main$1));
|
18120
17671
|
return main$1;
|
18121
17672
|
}
|
18122
17673
|
|
@@ -18124,6 +17675,17 @@ var mainExports = requireMain();
|
|
18124
17675
|
|
18125
17676
|
var OpenFin$1 = {};
|
18126
17677
|
|
17678
|
+
/**
|
17679
|
+
* Top-level namespace for types referenced by the OpenFin API. Contains:
|
17680
|
+
*
|
17681
|
+
* * The type of the global `fin` entry point ({@link FinApi})
|
17682
|
+
* * Classes that act as static namespaces returned from the `fin` global (e.g. {@link ApplicationModule}, accessible via `fin.Application`)
|
17683
|
+
* * Instance classes that are returned from API calls (e.g. {@link Application}, accessible via `fin.Application.getCurrentSync()`)
|
17684
|
+
* * Parameter shapes for API methods (e.g. {@link ApplicationOptions}, used in `fin.Application.start()`)
|
17685
|
+
* * Event namespaces and payload union types (e.g. {@link ApplicationEvents} and {@link ApplicationEvent})
|
17686
|
+
*
|
17687
|
+
* @packageDocumentation
|
17688
|
+
*/
|
18127
17689
|
Object.defineProperty(OpenFin$1, "__esModule", { value: true });
|
18128
17690
|
|
18129
17691
|
var OpenFin = /*#__PURE__*/_mergeNamespaces({
|