@openfin/remote-adapter 42.100.33 → 42.100.35

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.
@@ -7568,7 +7568,7 @@ const eventAggregator_1 = __importDefault$5(eventAggregator);
7568
7568
  const me_1$1 = me;
7569
7569
  const errors_1$2 = errors;
7570
7570
  class Transport extends events_1$5.EventEmitter {
7571
- constructor(WireType, environment, config) {
7571
+ constructor(factory, environment, config) {
7572
7572
  super();
7573
7573
  this.wireListeners = new Map();
7574
7574
  this.topicRefMap = new Map();
@@ -7586,7 +7586,7 @@ class Transport extends events_1$5.EventEmitter {
7586
7586
  const wire = __classPrivateFieldGet$f(this, _Transport_wire, "f");
7587
7587
  return wire.getPort();
7588
7588
  };
7589
- __classPrivateFieldSet$e(this, _Transport_wire, new WireType(this.onmessage.bind(this)), "f");
7589
+ __classPrivateFieldSet$e(this, _Transport_wire, factory(this.onmessage.bind(this)), "f");
7590
7590
  this.environment = environment;
7591
7591
  this.sendRaw = __classPrivateFieldGet$f(this, _Transport_wire, "f").send.bind(__classPrivateFieldGet$f(this, _Transport_wire, "f"));
7592
7592
  this.registerMessageHandler(this.handleMessage.bind(this));
@@ -9663,7 +9663,7 @@ class System extends base_1$g.EmitterBase {
9663
9663
  * ```
9664
9664
  */
9665
9665
  async getDomainSettings() {
9666
- const { payload: { data } } = await this.wire.sendAction('get-domain-settings', this.identity);
9666
+ const { payload: { data } } = await this.wire.sendAction('get-domain-settings');
9667
9667
  return data;
9668
9668
  }
9669
9669
  /**
@@ -9724,7 +9724,13 @@ class System extends base_1$g.EmitterBase {
9724
9724
  * ```
9725
9725
  */
9726
9726
  async setDomainSettings(domainSettings) {
9727
- await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
9727
+ await this.wire.sendAction('set-domain-settings', { domainSettings });
9728
+ }
9729
+ async getCurrentDomainSettings(identity) {
9730
+ return (await this.wire.sendAction('get-current-domain-settings', { identity })).payload.data;
9731
+ }
9732
+ async resolveDomainSettings(url) {
9733
+ return (await this.wire.sendAction('resolve-domain-settings', { url })).payload.data;
9728
9734
  }
9729
9735
  /**
9730
9736
  * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
@@ -17514,10 +17520,7 @@ async function getRemoteConnectionPayload(fin, uuid = `browser-connection-${Math
17514
17520
  }
17515
17521
  var getRemoteConnectionPayload_1 = browser.getRemoteConnectionPayload = getRemoteConnectionPayload;
17516
17522
  async function remoteConnect({ uuid, token, address, interopProviderId, withInterop }) {
17517
- const wire = new transport_1.Transport(websocket_1.default, new browser_1.BrowserEnvironment(), {
17518
- uuid,
17519
- name: uuid
17520
- });
17523
+ const wire = new transport_1.Transport((onmessage) => new websocket_1.default(onmessage), new browser_1.BrowserEnvironment(), { uuid, name: uuid });
17521
17524
  await wire.connect({ uuid, address, token });
17522
17525
  if (withInterop) {
17523
17526
  return remoteConnectInterop(new fin_1.Fin(wire), interopProviderId);
@@ -17595,7 +17598,10 @@ async function connect(options) {
17595
17598
  await Promise.all([bridge.initializeMessageReceiver(pipe), backchannel$1.opened]);
17596
17599
  const { payload } = await payloadPromise;
17597
17600
  const { uuid, token } = payload;
17598
- const wire = new Transport_1(_default, new BrowserEnvironment_1(), { uuid, name: uuid });
17601
+ const wire = new Transport_1((onmessage) => new _default(onmessage), new BrowserEnvironment_1(), {
17602
+ uuid,
17603
+ name: uuid
17604
+ });
17599
17605
  const connectionPayload = { uuid, token, receiver: pipe };
17600
17606
  await wire.connect(connectionPayload);
17601
17607
  // Casting as unknown rather than expect-error to avoid skipLibCheck: true exceptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "42.100.33",
3
+ "version": "42.100.35",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -20,6 +20,6 @@
20
20
  "author": "OpenFin",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.21",
23
- "@openfin/core": "42.100.33"
23
+ "@openfin/core": "42.100.35"
24
24
  }
25
25
  }