@openfin/node-adapter 38.82.69 → 38.83.71

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.
Files changed (2) hide show
  1. package/out/node-adapter.js +80 -17
  2. package/package.json +2 -2
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('events');
4
- var require$$3 = require('lodash');
4
+ var require$$0$1 = require('lodash/cloneDeep');
5
+ var require$$3 = require('lodash/isEqual');
5
6
  var fs = require('fs');
6
7
  var crypto = require('crypto');
7
8
  var _WS = require('ws');
@@ -531,7 +532,9 @@ function requireFactory$3 () {
531
532
  * @experimental
532
533
  */
533
534
  async wrap(identity) {
534
- this.wire.sendAction('view-wrap');
535
+ this.wire.sendAction('view-wrap').catch((e) => {
536
+ // we do not want to expose this error, just continue if this analytics-only call fails
537
+ });
535
538
  const errorMsg = (0, validate_1.validateIdentity)(identity);
536
539
  if (errorMsg) {
537
540
  throw new Error(errorMsg);
@@ -7507,6 +7510,22 @@ class System extends base_1$i.EmitterBase {
7507
7510
  async setDomainSettings(domainSettings) {
7508
7511
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
7509
7512
  }
7513
+ /**
7514
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
7515
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
7516
+ * will be installed/enabled.
7517
+ */
7518
+ async refreshExtensions() {
7519
+ const { payload } = await this.wire.sendAction('refresh-extensions');
7520
+ return payload.data;
7521
+ }
7522
+ /**
7523
+ * Gets the currently-installed
7524
+ */
7525
+ async getInstalledExtensions() {
7526
+ const { payload } = await this.wire.sendAction('get-installed-extensions');
7527
+ return payload.data;
7528
+ }
7510
7529
  }
7511
7530
  system.System = System;
7512
7531
 
@@ -9160,6 +9179,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
9160
9179
  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");
9161
9180
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
9162
9181
  };
9182
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
9183
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9184
+ };
9163
9185
  var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
9164
9186
  Object.defineProperty(connectionManager, "__esModule", { value: true });
9165
9187
  connectionManager.ConnectionManager = void 0;
@@ -9171,7 +9193,7 @@ const ice_manager_1 = iceManager;
9171
9193
  const provider_1$1 = provider;
9172
9194
  const message_receiver_1 = messageReceiver$1;
9173
9195
  const protocol_manager_1 = protocolManager;
9174
- const strategy_3 = strategy;
9196
+ const strategy_3 = __importDefault$1(strategy);
9175
9197
  class ConnectionManager extends base_1$f.Base {
9176
9198
  static getProtocolOptionsFromStrings(protocols) {
9177
9199
  return protocols.map((protocol) => {
@@ -13050,13 +13072,16 @@ function requireInteropBroker () {
13050
13072
  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");
13051
13073
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
13052
13074
  };
13075
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
13076
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13077
+ };
13053
13078
  var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
13054
13079
  Object.defineProperty(InteropBroker, "__esModule", { value: true });
13055
13080
  InteropBroker.InteropBroker = void 0;
13056
13081
  const base_1 = base;
13057
- const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
13082
+ const SessionContextGroupBroker_1 = __importDefault(requireSessionContextGroupBroker());
13058
13083
  const utils_1 = utils$3;
13059
- const lodash_1 = require$$3;
13084
+ const isEqual_1 = __importDefault(require$$3);
13060
13085
  const PrivateChannelProvider_1 = requirePrivateChannelProvider();
13061
13086
  const lazy_1 = lazy;
13062
13087
  const defaultContextGroups = [
@@ -13254,7 +13279,7 @@ function requireInteropBroker () {
13254
13279
  constructor(...unused) {
13255
13280
  if (unused.length) {
13256
13281
  const [_ignore1, ignore2, opts] = unused;
13257
- if (opts && typeof opts === 'object' && !(0, lodash_1.isEqual)(opts, args[2])) {
13282
+ if (opts && typeof opts === 'object' && !(0, isEqual_1.default)(opts, args[2])) {
13258
13283
  // eslint-disable-next-line no-console
13259
13284
  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.');
13260
13285
  super(args[0], args[1], opts);
@@ -14431,9 +14456,32 @@ var utils$2 = {};
14431
14456
 
14432
14457
  var PrivateChannelClient$1 = {};
14433
14458
 
14459
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14460
+ if (k2 === undefined) k2 = k;
14461
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14462
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14463
+ desc = { enumerable: true, get: function() { return m[k]; } };
14464
+ }
14465
+ Object.defineProperty(o, k2, desc);
14466
+ }) : (function(o, m, k, k2) {
14467
+ if (k2 === undefined) k2 = k;
14468
+ o[k2] = m[k];
14469
+ }));
14470
+ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
14471
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14472
+ }) : function(o, v) {
14473
+ o["default"] = v;
14474
+ });
14475
+ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
14476
+ if (mod && mod.__esModule) return mod;
14477
+ var result = {};
14478
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
14479
+ __setModuleDefault(result, mod);
14480
+ return result;
14481
+ };
14434
14482
  Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
14435
14483
  PrivateChannelClient$1.PrivateChannelClient = void 0;
14436
- const utils$1 = utils$3;
14484
+ const utils$1 = __importStar(utils$3);
14437
14485
  class PrivateChannelClient {
14438
14486
  constructor(client, id) {
14439
14487
  this.id = id;
@@ -14522,11 +14570,14 @@ class PrivateChannelClient {
14522
14570
  PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
14523
14571
 
14524
14572
  (function (exports) {
14573
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14574
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14575
+ };
14525
14576
  Object.defineProperty(exports, "__esModule", { value: true });
14526
14577
  exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
14527
14578
  const utils_1 = utils$3;
14528
14579
  const PrivateChannelClient_1 = PrivateChannelClient$1;
14529
- const lodash_1 = require$$3;
14580
+ const isEqual_1 = __importDefault(require$$3);
14530
14581
  const getUnsupportedChannelApis = (channelType) => {
14531
14582
  return {
14532
14583
  addContextListener: () => {
@@ -14654,7 +14705,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
14654
14705
  const wrappedHandler = (context, contextMetadata) => {
14655
14706
  if (first) {
14656
14707
  first = false;
14657
- if ((0, lodash_1.isEqual)(currentContext, context)) {
14708
+ if ((0, isEqual_1.default)(currentContext, context)) {
14658
14709
  return;
14659
14710
  }
14660
14711
  }
@@ -14776,13 +14827,16 @@ function requireFdc3Common () {
14776
14827
  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");
14777
14828
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14778
14829
  };
14830
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14831
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14832
+ };
14779
14833
  var _FDC3ModuleBase_producer;
14780
14834
  Object.defineProperty(fdc3Common, "__esModule", { value: true });
14781
14835
  fdc3Common.FDC3ModuleBase = void 0;
14782
14836
  const utils_1 = utils$2;
14783
14837
  const utils_2 = utils$3;
14784
14838
  const InteropClient_1 = requireInteropClient();
14785
- const lodash_1 = require$$3;
14839
+ const isEqual_1 = __importDefault(require$$3);
14786
14840
  class FDC3ModuleBase {
14787
14841
  get client() {
14788
14842
  return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
@@ -14971,7 +15025,7 @@ function requireFdc3Common () {
14971
15025
  const wrappedHandler = (context, contextMetadata) => {
14972
15026
  if (first) {
14973
15027
  first = false;
14974
- if ((0, lodash_1.isEqual)(currentContext, context)) {
15028
+ if ((0, isEqual_1.default)(currentContext, context)) {
14975
15029
  return;
14976
15030
  }
14977
15031
  }
@@ -15584,11 +15638,14 @@ function requireInteropClient () {
15584
15638
  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");
15585
15639
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15586
15640
  };
15641
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
15642
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15643
+ };
15587
15644
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
15588
15645
  Object.defineProperty(InteropClient, "__esModule", { value: true });
15589
15646
  InteropClient.InteropClient = void 0;
15590
15647
  const base_1 = base;
15591
- const SessionContextGroupClient_1 = SessionContextGroupClient$1;
15648
+ const SessionContextGroupClient_1 = __importDefault(SessionContextGroupClient$1);
15592
15649
  const fdc3_1_2_1 = requireFdc31_2();
15593
15650
  const fdc3_2_0_1 = requireFdc32_0();
15594
15651
  const utils_1 = utils$3;
@@ -16228,9 +16285,12 @@ var hasRequiredFactory;
16228
16285
  function requireFactory () {
16229
16286
  if (hasRequiredFactory) return Factory$1;
16230
16287
  hasRequiredFactory = 1;
16288
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
16289
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16290
+ };
16231
16291
  Object.defineProperty(Factory$1, "__esModule", { value: true });
16232
16292
  Factory$1.InteropModule = void 0;
16233
- const lodash_1 = require$$3;
16293
+ const cloneDeep_1 = __importDefault(require$$0$1);
16234
16294
  const inaccessibleObject_1 = inaccessibleObject;
16235
16295
  const base_1 = base;
16236
16296
  const InteropBroker_1 = requireInteropBroker();
@@ -16267,7 +16327,7 @@ function requireFactory () {
16267
16327
  // Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
16268
16328
  const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
16269
16329
  const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
16270
- const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(options));
16330
+ const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, cloneDeep_1.default)(options));
16271
16331
  const getProvider = () => {
16272
16332
  return this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`);
16273
16333
  };
@@ -17449,7 +17509,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17449
17509
  };
17450
17510
  }
17451
17511
  getAdapterVersionSync() {
17452
- return "38.82.69";
17512
+ return "38.83.71";
17453
17513
  }
17454
17514
  observeBounds(element, onChange) {
17455
17515
  throw new Error('Method not implemented.');
@@ -17580,13 +17640,16 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
17580
17640
  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");
17581
17641
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17582
17642
  };
17643
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
17644
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17645
+ };
17583
17646
  var _Transport_wire, _Transport_fin;
17584
17647
  Object.defineProperty(transport, "__esModule", { value: true });
17585
17648
  var Transport_1 = transport.Transport = void 0;
17586
17649
  const events_1$1 = require$$0;
17587
17650
  const wire_1 = wire;
17588
17651
  const transport_errors_1$1 = transportErrors;
17589
- const eventAggregator_1 = eventAggregator;
17652
+ const eventAggregator_1 = __importDefault(eventAggregator);
17590
17653
  const me_1 = me;
17591
17654
  const errors_1 = errors;
17592
17655
  class Transport extends events_1$1.EventEmitter {
@@ -17887,7 +17950,7 @@ async function loadConfig(config) {
17887
17950
  return await readLocalConfig(config.manifestUrl);
17888
17951
  }
17889
17952
  catch (error) {
17890
- throw new Error(`Could not locate JSON at supplied manifestUrl: ${config.manifestUrl}`);
17953
+ throw new Error(`Could not fetch and read local JSON at supplied manifestUrl: ${config.manifestUrl} Error caught: ${error.stack}`);
17891
17954
  }
17892
17955
  }
17893
17956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "38.82.69",
3
+ "version": "38.83.71",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -23,7 +23,7 @@
23
23
  "author": "OpenFin",
24
24
  "dependencies": {
25
25
  "@types/node": "^20.14.2",
26
- "@openfin/core": "38.82.69",
26
+ "@openfin/core": "38.83.71",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }