@openfin/node-adapter 38.82.63 → 38.82.65

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 +70 -18
  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);
@@ -2754,9 +2757,14 @@ function requireInstance$2 () {
2754
2757
  // don't expose
2755
2758
  });
2756
2759
  const layoutWindow = await this.getCurrentWindow();
2760
+ let layoutWindowIdentity = layoutWindow.identity;
2761
+ // TODO: CORE-1857 - when we tearout active layout or drag a view out of a window, the above identity includes the whole window info.
2762
+ if (layoutWindowIdentity.identity) {
2763
+ layoutWindowIdentity = layoutWindowIdentity.identity;
2764
+ }
2757
2765
  try {
2758
2766
  const providerChannelClient = await __classPrivateFieldGet(this, _View_providerChannelClient, "f").getValue();
2759
- const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindow.identity);
2767
+ const client = await layout_entities_1.LayoutNode.newLayoutEntitiesClient(providerChannelClient, layout_constants_1.LAYOUT_CONTROLLER_ID, layoutWindowIdentity);
2760
2768
  const layoutIdentity = await client.getLayoutIdentityForViewOrThrow(this.identity);
2761
2769
  return this.fin.Platform.Layout.wrap(layoutIdentity);
2762
2770
  }
@@ -2769,7 +2777,7 @@ function requireInstance$2 () {
2769
2777
  throw e;
2770
2778
  }
2771
2779
  // fallback logic for missing endpoint
2772
- return this.fin.Platform.Layout.wrap(layoutWindow.identity);
2780
+ return this.fin.Platform.Layout.wrap(layoutWindowIdentity);
2773
2781
  }
2774
2782
  };
2775
2783
  /**
@@ -9155,6 +9163,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
9155
9163
  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");
9156
9164
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
9157
9165
  };
9166
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
9167
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9168
+ };
9158
9169
  var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
9159
9170
  Object.defineProperty(connectionManager, "__esModule", { value: true });
9160
9171
  connectionManager.ConnectionManager = void 0;
@@ -9166,7 +9177,7 @@ const ice_manager_1 = iceManager;
9166
9177
  const provider_1$1 = provider;
9167
9178
  const message_receiver_1 = messageReceiver$1;
9168
9179
  const protocol_manager_1 = protocolManager;
9169
- const strategy_3 = strategy;
9180
+ const strategy_3 = __importDefault$1(strategy);
9170
9181
  class ConnectionManager extends base_1$f.Base {
9171
9182
  static getProtocolOptionsFromStrings(protocols) {
9172
9183
  return protocols.map((protocol) => {
@@ -13045,13 +13056,16 @@ function requireInteropBroker () {
13045
13056
  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");
13046
13057
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
13047
13058
  };
13059
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
13060
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13061
+ };
13048
13062
  var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
13049
13063
  Object.defineProperty(InteropBroker, "__esModule", { value: true });
13050
13064
  InteropBroker.InteropBroker = void 0;
13051
13065
  const base_1 = base;
13052
- const SessionContextGroupBroker_1 = requireSessionContextGroupBroker();
13066
+ const SessionContextGroupBroker_1 = __importDefault(requireSessionContextGroupBroker());
13053
13067
  const utils_1 = utils$3;
13054
- const lodash_1 = require$$3;
13068
+ const isEqual_1 = __importDefault(require$$3);
13055
13069
  const PrivateChannelProvider_1 = requirePrivateChannelProvider();
13056
13070
  const lazy_1 = lazy;
13057
13071
  const defaultContextGroups = [
@@ -13249,7 +13263,7 @@ function requireInteropBroker () {
13249
13263
  constructor(...unused) {
13250
13264
  if (unused.length) {
13251
13265
  const [_ignore1, ignore2, opts] = unused;
13252
- if (opts && typeof opts === 'object' && !(0, lodash_1.isEqual)(opts, args[2])) {
13266
+ if (opts && typeof opts === 'object' && !(0, isEqual_1.default)(opts, args[2])) {
13253
13267
  // eslint-disable-next-line no-console
13254
13268
  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.');
13255
13269
  super(args[0], args[1], opts);
@@ -14426,9 +14440,32 @@ var utils$2 = {};
14426
14440
 
14427
14441
  var PrivateChannelClient$1 = {};
14428
14442
 
14443
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14444
+ if (k2 === undefined) k2 = k;
14445
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14446
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14447
+ desc = { enumerable: true, get: function() { return m[k]; } };
14448
+ }
14449
+ Object.defineProperty(o, k2, desc);
14450
+ }) : (function(o, m, k, k2) {
14451
+ if (k2 === undefined) k2 = k;
14452
+ o[k2] = m[k];
14453
+ }));
14454
+ var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
14455
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
14456
+ }) : function(o, v) {
14457
+ o["default"] = v;
14458
+ });
14459
+ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
14460
+ if (mod && mod.__esModule) return mod;
14461
+ var result = {};
14462
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
14463
+ __setModuleDefault(result, mod);
14464
+ return result;
14465
+ };
14429
14466
  Object.defineProperty(PrivateChannelClient$1, "__esModule", { value: true });
14430
14467
  PrivateChannelClient$1.PrivateChannelClient = void 0;
14431
- const utils$1 = utils$3;
14468
+ const utils$1 = __importStar(utils$3);
14432
14469
  class PrivateChannelClient {
14433
14470
  constructor(client, id) {
14434
14471
  this.id = id;
@@ -14517,11 +14554,14 @@ class PrivateChannelClient {
14517
14554
  PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
14518
14555
 
14519
14556
  (function (exports) {
14557
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14558
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14559
+ };
14520
14560
  Object.defineProperty(exports, "__esModule", { value: true });
14521
14561
  exports.getIntentResolution = exports.isChannel = exports.isContext = exports.connectPrivateChannel = exports.buildAppChannelObject = exports.buildPrivateChannelObject = exports.ChannelError = exports.ResultError = exports.UnsupportedChannelApiError = exports.getUnsupportedChannelApis = void 0;
14522
14562
  const utils_1 = utils$3;
14523
14563
  const PrivateChannelClient_1 = PrivateChannelClient$1;
14524
- const lodash_1 = require$$3;
14564
+ const isEqual_1 = __importDefault(require$$3);
14525
14565
  const getUnsupportedChannelApis = (channelType) => {
14526
14566
  return {
14527
14567
  addContextListener: () => {
@@ -14649,7 +14689,7 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
14649
14689
  const wrappedHandler = (context, contextMetadata) => {
14650
14690
  if (first) {
14651
14691
  first = false;
14652
- if ((0, lodash_1.isEqual)(currentContext, context)) {
14692
+ if ((0, isEqual_1.default)(currentContext, context)) {
14653
14693
  return;
14654
14694
  }
14655
14695
  }
@@ -14771,13 +14811,16 @@ function requireFdc3Common () {
14771
14811
  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");
14772
14812
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14773
14813
  };
14814
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14815
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14816
+ };
14774
14817
  var _FDC3ModuleBase_producer;
14775
14818
  Object.defineProperty(fdc3Common, "__esModule", { value: true });
14776
14819
  fdc3Common.FDC3ModuleBase = void 0;
14777
14820
  const utils_1 = utils$2;
14778
14821
  const utils_2 = utils$3;
14779
14822
  const InteropClient_1 = requireInteropClient();
14780
- const lodash_1 = require$$3;
14823
+ const isEqual_1 = __importDefault(require$$3);
14781
14824
  class FDC3ModuleBase {
14782
14825
  get client() {
14783
14826
  return __classPrivateFieldGet(this, _FDC3ModuleBase_producer, "f").call(this);
@@ -14966,7 +15009,7 @@ function requireFdc3Common () {
14966
15009
  const wrappedHandler = (context, contextMetadata) => {
14967
15010
  if (first) {
14968
15011
  first = false;
14969
- if ((0, lodash_1.isEqual)(currentContext, context)) {
15012
+ if ((0, isEqual_1.default)(currentContext, context)) {
14970
15013
  return;
14971
15014
  }
14972
15015
  }
@@ -15579,11 +15622,14 @@ function requireInteropClient () {
15579
15622
  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");
15580
15623
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15581
15624
  };
15625
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
15626
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15627
+ };
15582
15628
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups;
15583
15629
  Object.defineProperty(InteropClient, "__esModule", { value: true });
15584
15630
  InteropClient.InteropClient = void 0;
15585
15631
  const base_1 = base;
15586
- const SessionContextGroupClient_1 = SessionContextGroupClient$1;
15632
+ const SessionContextGroupClient_1 = __importDefault(SessionContextGroupClient$1);
15587
15633
  const fdc3_1_2_1 = requireFdc31_2();
15588
15634
  const fdc3_2_0_1 = requireFdc32_0();
15589
15635
  const utils_1 = utils$3;
@@ -16223,9 +16269,12 @@ var hasRequiredFactory;
16223
16269
  function requireFactory () {
16224
16270
  if (hasRequiredFactory) return Factory$1;
16225
16271
  hasRequiredFactory = 1;
16272
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
16273
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16274
+ };
16226
16275
  Object.defineProperty(Factory$1, "__esModule", { value: true });
16227
16276
  Factory$1.InteropModule = void 0;
16228
- const lodash_1 = require$$3;
16277
+ const cloneDeep_1 = __importDefault(require$$0$1);
16229
16278
  const inaccessibleObject_1 = inaccessibleObject;
16230
16279
  const base_1 = base;
16231
16280
  const InteropBroker_1 = requireInteropBroker();
@@ -16262,7 +16311,7 @@ function requireFactory () {
16262
16311
  // Allows for manifest-level configuration, without having to override. (e.g. specifying custom context groups)
16263
16312
  const options = await this.wire.environment.getInteropInfo(this.wire.getFin());
16264
16313
  const objectThatThrows = (0, inaccessibleObject_1.createUnusableObject)(BrokerParamAccessError);
16265
- const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, lodash_1.cloneDeep)(options));
16314
+ const warningOptsClone = (0, inaccessibleObject_1.createWarningObject)(BrokerParamAccessError, (0, cloneDeep_1.default)(options));
16266
16315
  const getProvider = () => {
16267
16316
  return this.fin.InterApplicationBus.Channel.create(`interop-broker-${name}`);
16268
16317
  };
@@ -17444,7 +17493,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17444
17493
  };
17445
17494
  }
17446
17495
  getAdapterVersionSync() {
17447
- return "38.82.63";
17496
+ return "38.82.65";
17448
17497
  }
17449
17498
  observeBounds(element, onChange) {
17450
17499
  throw new Error('Method not implemented.');
@@ -17575,13 +17624,16 @@ var __classPrivateFieldGet = (commonjsGlobal && commonjsGlobal.__classPrivateFie
17575
17624
  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");
17576
17625
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17577
17626
  };
17627
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
17628
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17629
+ };
17578
17630
  var _Transport_wire, _Transport_fin;
17579
17631
  Object.defineProperty(transport, "__esModule", { value: true });
17580
17632
  var Transport_1 = transport.Transport = void 0;
17581
17633
  const events_1$1 = require$$0;
17582
17634
  const wire_1 = wire;
17583
17635
  const transport_errors_1$1 = transportErrors;
17584
- const eventAggregator_1 = eventAggregator;
17636
+ const eventAggregator_1 = __importDefault(eventAggregator);
17585
17637
  const me_1 = me;
17586
17638
  const errors_1 = errors;
17587
17639
  class Transport extends events_1$1.EventEmitter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "38.82.63",
3
+ "version": "38.82.65",
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.63",
26
+ "@openfin/core": "38.82.65",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }