@openfin/remote-adapter 38.82.69 → 38.83.70
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/remote-adapter.js +90 -24
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var require$$
|
|
4
|
-
var require$$
|
|
3
|
+
var require$$0 = require('lodash/cloneDeep');
|
|
4
|
+
var require$$3 = require('lodash/isEqual');
|
|
5
|
+
var require$$0$1 = require('events');
|
|
5
6
|
var bridge = require('./bridge-ef11968f.js');
|
|
6
7
|
var crypto = require('crypto');
|
|
7
8
|
var backchannel = require('./backchannel.js');
|
|
@@ -528,9 +529,32 @@ var utils$2 = {};
|
|
|
528
529
|
|
|
529
530
|
var PrivateChannelClient$1 = {};
|
|
530
531
|
|
|
532
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
533
|
+
if (k2 === undefined) k2 = k;
|
|
534
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
535
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
536
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
537
|
+
}
|
|
538
|
+
Object.defineProperty(o, k2, desc);
|
|
539
|
+
}) : (function(o, m, k, k2) {
|
|
540
|
+
if (k2 === undefined) k2 = k;
|
|
541
|
+
o[k2] = m[k];
|
|
542
|
+
}));
|
|
543
|
+
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
544
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
545
|
+
}) : function(o, v) {
|
|
546
|
+
o["default"] = v;
|
|
547
|
+
});
|
|
548
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
549
|
+
if (mod && mod.__esModule) return mod;
|
|
550
|
+
var result = {};
|
|
551
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
552
|
+
__setModuleDefault(result, mod);
|
|
553
|
+
return result;
|
|
554
|
+
};
|
|
531
555
|
Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
|
|
532
556
|
PrivateChannelClient$1.PrivateChannelClient = void 0;
|
|
533
|
-
const utils$1 = utils$3;
|
|
557
|
+
const utils$1 = __importStar(utils$3);
|
|
534
558
|
class PrivateChannelClient {
|
|
535
559
|
constructor(client, id) {
|
|
536
560
|
this.id = id;
|
|
@@ -619,11 +643,14 @@ class PrivateChannelClient {
|
|
|
619
643
|
PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
620
644
|
|
|
621
645
|
(function (exports) {
|
|
646
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
647
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
648
|
+
};
|
|
622
649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
623
650
|
exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
|
|
624
651
|
const utils_1 = utils$3;
|
|
625
652
|
const PrivateChannelClient_1 = PrivateChannelClient$1;
|
|
626
|
-
const
|
|
653
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
627
654
|
const getUnsupportedChannelApis = (channelType) => {
|
|
628
655
|
return {
|
|
629
656
|
addContextListener: () => {
|
|
@@ -751,7 +778,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
|
|
|
751
778
|
const wrappedHandler = (context, contextMetadata) => {
|
|
752
779
|
if (first) {
|
|
753
780
|
first = false;
|
|
754
|
-
if ((0,
|
|
781
|
+
if ((0, isEqual_1.default)(currentContext, context)) {
|
|
755
782
|
return;
|
|
756
783
|
}
|
|
757
784
|
}
|
|
@@ -873,13 +900,16 @@ function requireFdc3Common () {
|
|
|
873
900
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
874
901
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
875
902
|
};
|
|
903
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
904
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
905
|
+
};
|
|
876
906
|
var _FDC3ModuleBase_producer;
|
|
877
907
|
Object.defineProperty(fdc3Common, "__esModule", { value: true });
|
|
878
908
|
fdc3Common.FDC3ModuleBase = void 0;
|
|
879
909
|
const utils_1 = utils$2;
|
|
880
910
|
const utils_2 = utils$3;
|
|
881
911
|
const InteropClient_1 = requireInteropClient();
|
|
882
|
-
const
|
|
912
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
883
913
|
class FDC3ModuleBase {
|
|
884
914
|
get client() {
|
|
885
915
|
return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
|
|
@@ -1068,7 +1098,7 @@ function requireFdc3Common () {
|
|
|
1068
1098
|
const wrappedHandler = (context, contextMetadata) => {
|
|
1069
1099
|
if (first) {
|
|
1070
1100
|
first = false;
|
|
1071
|
-
if ((0,
|
|
1101
|
+
if ((0, isEqual_1.default)(currentContext, context)) {
|
|
1072
1102
|
return;
|
|
1073
1103
|
}
|
|
1074
1104
|
}
|
|
@@ -1681,11 +1711,14 @@ function requireInteropClient () {
|
|
|
1681
1711
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1682
1712
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1683
1713
|
};
|
|
1714
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
1715
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1716
|
+
};
|
|
1684
1717
|
var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
|
|
1685
1718
|
Object.defineProperty(InteropClient, "__esModule", { value: true });
|
|
1686
1719
|
InteropClient.InteropClient = void 0;
|
|
1687
1720
|
const base_1 = base;
|
|
1688
|
-
const SessionContextGroupClient_1 = SessionContextGroupClient$1;
|
|
1721
|
+
const SessionContextGroupClient_1 = __importDefault(SessionContextGroupClient$1);
|
|
1689
1722
|
const fdc3_1_2_1 = requireFdc31_2();
|
|
1690
1723
|
const fdc3_2_0_1 = requireFdc32_0();
|
|
1691
1724
|
const utils_1 = utils$3;
|
|
@@ -2303,9 +2336,12 @@ var hasRequiredFactory$3;
|
|
|
2303
2336
|
function requireFactory$3 () {
|
|
2304
2337
|
if (hasRequiredFactory$3) return Factory$8;
|
|
2305
2338
|
hasRequiredFactory$3 = 1;
|
|
2339
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2340
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2341
|
+
};
|
|
2306
2342
|
Object.defineProperty(Factory$8, "__esModule", { value: true });
|
|
2307
2343
|
Factory$8.InteropModule = void 0;
|
|
2308
|
-
const
|
|
2344
|
+
const cloneDeep_1 = __importDefault(require$$0);
|
|
2309
2345
|
const inaccessibleObject_1 = inaccessibleObject;
|
|
2310
2346
|
const base_1 = base;
|
|
2311
2347
|
const InteropBroker_1 = requireInteropBroker();
|
|
@@ -2342,7 +2378,7 @@ function requireFactory$3 () {
|
|
|
2342
2378
|
// Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
|
|
2343
2379
|
const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
|
|
2344
2380
|
const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
|
|
2345
|
-
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0,
|
|
2381
|
+
const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, cloneDeep_1.default)(options));
|
|
2346
2382
|
const getProvider = () => {
|
|
2347
2383
|
return this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`);
|
|
2348
2384
|
};
|
|
@@ -2908,13 +2944,16 @@ function requireInteropBroker () {
|
|
|
2908
2944
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2909
2945
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2910
2946
|
};
|
|
2947
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
2948
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2949
|
+
};
|
|
2911
2950
|
var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
|
|
2912
2951
|
Object.defineProperty(InteropBroker, "__esModule", { value: true });
|
|
2913
2952
|
InteropBroker.InteropBroker = void 0;
|
|
2914
2953
|
const base_1 = base;
|
|
2915
|
-
const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
|
|
2954
|
+
const SessionContextGroupBroker_1 = __importDefault(requireSessionContextGroupBroker());
|
|
2916
2955
|
const utils_1 = utils$3;
|
|
2917
|
-
const
|
|
2956
|
+
const isEqual_1 = __importDefault(require$$3);
|
|
2918
2957
|
const PrivateChannelProvider_1 = requirePrivateChannelProvider();
|
|
2919
2958
|
const lazy_1 = lazy;
|
|
2920
2959
|
const defaultContextGroups = [
|
|
@@ -3112,7 +3151,7 @@ function requireInteropBroker () {
|
|
|
3112
3151
|
constructor(...unused) {
|
|
3113
3152
|
if (unused.length) {
|
|
3114
3153
|
const [_ignore1, ignore2, opts] = unused;
|
|
3115
|
-
if (opts && typeof opts === 'object' && !(0,
|
|
3154
|
+
if (opts && typeof opts === 'object' && !(0, isEqual_1.default)(opts, args[2])) {
|
|
3116
3155
|
// eslint-disable-next-line no-console
|
|
3117
3156
|
console.warn('You have modified the parameters of the InteropOverride constructor. This behavior is deprecated and will be removed in a future version. You can modify these options in your manifest. Please consult our Interop docs for guidance on migrating to the new override scheme.');
|
|
3118
3157
|
super(args[0], args[1], opts);
|
|
@@ -4467,7 +4506,7 @@ var emitterMap = {};
|
|
|
4467
4506
|
|
|
4468
4507
|
Object.defineProperty(emitterMap, "__esModule", { value: true });
|
|
4469
4508
|
emitterMap.EmitterMap = void 0;
|
|
4470
|
-
const events_1$6 = require$$0;
|
|
4509
|
+
const events_1$6 = require$$0$1;
|
|
4471
4510
|
class EmitterMap {
|
|
4472
4511
|
constructor() {
|
|
4473
4512
|
this.storage = new Map();
|
|
@@ -4644,7 +4683,9 @@ function requireFactory$2 () {
|
|
|
4644
4683
|
* @experimental
|
|
4645
4684
|
*/
|
|
4646
4685
|
async wrap(identity) {
|
|
4647
|
-
this.wire.sendAction('view-wrap')
|
|
4686
|
+
this.wire.sendAction('view-wrap').catch((e) => {
|
|
4687
|
+
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
4688
|
+
});
|
|
4648
4689
|
const errorMsg = (0, validate_1.validateIdentity)(identity);
|
|
4649
4690
|
if (errorMsg) {
|
|
4650
4691
|
throw new Error(errorMsg);
|
|
@@ -10196,13 +10237,16 @@ var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
10196
10237
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10197
10238
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
10198
10239
|
};
|
|
10240
|
+
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10241
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10242
|
+
};
|
|
10199
10243
|
var _Transport_wire, _Transport_fin;
|
|
10200
10244
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
10201
10245
|
var Transport_1 = transport.Transport = void 0;
|
|
10202
|
-
const events_1$5 = require$$0;
|
|
10246
|
+
const events_1$5 = require$$0$1;
|
|
10203
10247
|
const wire_1 = wire;
|
|
10204
10248
|
const transport_errors_1$2 = transportErrors;
|
|
10205
|
-
const eventAggregator_1 = eventAggregator;
|
|
10249
|
+
const eventAggregator_1 = __importDefault$2(eventAggregator);
|
|
10206
10250
|
const me_1$1 = me;
|
|
10207
10251
|
const errors_1$1 = errors;
|
|
10208
10252
|
class Transport extends events_1$5.EventEmitter {
|
|
@@ -10416,7 +10460,7 @@ _Transport_wire = new WeakMap(), _Transport_fin = new WeakMap();
|
|
|
10416
10460
|
var websocket = {};
|
|
10417
10461
|
|
|
10418
10462
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
|
10419
|
-
const events_1$4 = require$$0;
|
|
10463
|
+
const events_1$4 = require$$0$1;
|
|
10420
10464
|
const transport_errors_1$1 = transportErrors;
|
|
10421
10465
|
const messageReceiver_1 = bridge.messageReceiver;
|
|
10422
10466
|
/* `READY_STATE` is an instance var set by `constructor` to reference the `WebTransportSocket.READY_STATE` enum.
|
|
@@ -10493,7 +10537,7 @@ system.System = void 0;
|
|
|
10493
10537
|
const base_1$d = base;
|
|
10494
10538
|
const transport_errors_1 = transportErrors;
|
|
10495
10539
|
const window_1 = requireWindow();
|
|
10496
|
-
const events_1$3 = require$$0;
|
|
10540
|
+
const events_1$3 = require$$0$1;
|
|
10497
10541
|
/**
|
|
10498
10542
|
* An object representing the core of OpenFin Runtime. Allows the developer
|
|
10499
10543
|
* to perform system-level actions, such as accessing logs, viewing processes,
|
|
@@ -12348,6 +12392,22 @@ class System extends base_1$d.EmitterBase {
|
|
|
12348
12392
|
async setDomainSettings(domainSettings) {
|
|
12349
12393
|
await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
|
|
12350
12394
|
}
|
|
12395
|
+
/**
|
|
12396
|
+
* Attempts to install and enable extensions for the security realm. Users may want to call this function in response
|
|
12397
|
+
* to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
|
|
12398
|
+
* will be installed/enabled.
|
|
12399
|
+
*/
|
|
12400
|
+
async refreshExtensions() {
|
|
12401
|
+
const { payload } = await this.wire.sendAction('refresh-extensions');
|
|
12402
|
+
return payload.data;
|
|
12403
|
+
}
|
|
12404
|
+
/**
|
|
12405
|
+
* Gets the currently-installed
|
|
12406
|
+
*/
|
|
12407
|
+
async getInstalledExtensions() {
|
|
12408
|
+
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
12409
|
+
return payload.data;
|
|
12410
|
+
}
|
|
12351
12411
|
}
|
|
12352
12412
|
system.System = System;
|
|
12353
12413
|
|
|
@@ -13986,6 +14046,9 @@ var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateF
|
|
|
13986
14046
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
13987
14047
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
13988
14048
|
};
|
|
14049
|
+
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
14050
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14051
|
+
};
|
|
13989
14052
|
var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
|
|
13990
14053
|
Object.defineProperty(connectionManager, "__esModule", { value: true });
|
|
13991
14054
|
connectionManager.ConnectionManager = void 0;
|
|
@@ -13997,7 +14060,7 @@ const ice_manager_1 = iceManager;
|
|
|
13997
14060
|
const provider_1$1 = provider;
|
|
13998
14061
|
const message_receiver_1 = messageReceiver;
|
|
13999
14062
|
const protocol_manager_1 = protocolManager;
|
|
14000
|
-
const strategy_3 = strategy;
|
|
14063
|
+
const strategy_3 = __importDefault$1(strategy);
|
|
14001
14064
|
class ConnectionManager extends base_1$a.Base {
|
|
14002
14065
|
static getProtocolOptionsFromStrings(protocols) {
|
|
14003
14066
|
return protocols.map((protocol) => {
|
|
@@ -14244,7 +14307,7 @@ var _Channel_connectionManager, _Channel_internalEmitter, _Channel_readyToConnec
|
|
|
14244
14307
|
Object.defineProperty(channel$1, "__esModule", { value: true });
|
|
14245
14308
|
channel$1.Channel = void 0;
|
|
14246
14309
|
/* eslint-disable no-console */
|
|
14247
|
-
const events_1$2 = require$$0;
|
|
14310
|
+
const events_1$2 = require$$0$1;
|
|
14248
14311
|
const lazy_1$1 = lazy;
|
|
14249
14312
|
const base_1$9 = base;
|
|
14250
14313
|
const client_1 = client;
|
|
@@ -14571,7 +14634,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
|
|
|
14571
14634
|
*
|
|
14572
14635
|
* @packageDocumentation
|
|
14573
14636
|
*/
|
|
14574
|
-
const events_1$1 = require$$0;
|
|
14637
|
+
const events_1$1 = require$$0$1;
|
|
14575
14638
|
const base_1$8 = base;
|
|
14576
14639
|
const ref_counter_1 = refCounter;
|
|
14577
14640
|
const index_1$2 = channel$1;
|
|
@@ -17138,7 +17201,7 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
|
17138
17201
|
|
|
17139
17202
|
Object.defineProperty(fin$1, "__esModule", { value: true });
|
|
17140
17203
|
var Fin_1 = fin$1.Fin = void 0;
|
|
17141
|
-
const events_1 = require$$0;
|
|
17204
|
+
const events_1 = require$$0$1;
|
|
17142
17205
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
|
17143
17206
|
const index_1 = system;
|
|
17144
17207
|
const index_2 = requireWindow();
|
|
@@ -17187,12 +17250,15 @@ Fin_1 = fin$1.Fin = Fin;
|
|
|
17187
17250
|
|
|
17188
17251
|
var browser = {};
|
|
17189
17252
|
|
|
17253
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
17254
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17255
|
+
};
|
|
17190
17256
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
17191
17257
|
browser.remoteConnectInterop = browser.remoteConnect = getRemoteConnectionPayload_1 = browser.getRemoteConnectionPayload = void 0;
|
|
17192
17258
|
const fin_1 = fin$1;
|
|
17193
17259
|
const browser_1 = browser$1;
|
|
17194
17260
|
const transport_1 = transport;
|
|
17195
|
-
const websocket_1 = websocket;
|
|
17261
|
+
const websocket_1 = __importDefault(websocket);
|
|
17196
17262
|
async function getRemoteConnectionPayload(fin, uuid = `browser-connection-${Math.random().toString().slice(2)}`, interopProviderId = fin.me.uuid) {
|
|
17197
17263
|
const { token } = await fin.System.registerExternalConnection(uuid);
|
|
17198
17264
|
const { port } = await fin.System.getRuntimeInfo();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.83.70",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"author": "OpenFin",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"@openfin/core": "38.
|
|
22
|
+
"@openfin/core": "38.83.70"
|
|
23
23
|
}
|
|
24
24
|
}
|