@openfin/node-adapter 36.79.4 → 36.79.5

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.
@@ -37,7 +37,7 @@ function getDefaultExportFromCjs (x) {
37
37
 
38
38
  var main$1 = {};
39
39
 
40
- var fin = {};
40
+ var fin$1 = {};
41
41
 
42
42
  var system$1 = {};
43
43
 
@@ -12042,6 +12042,9 @@ class PlatformModule extends base_1$4.Base {
12042
12042
  * @experimental
12043
12043
  */
12044
12044
  async init(options) {
12045
+ if (!fin.__internal_.isPlatform || fin.me.name !== fin.me.uuid) {
12046
+ throw new Error('fin.Platform.init should only be called from a custom platform provider running in the main window of the application.');
12047
+ }
12045
12048
  return this.wire.environment.initPlatform(this.fin, options);
12046
12049
  }
12047
12050
  /**
@@ -15316,8 +15319,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
15316
15319
  __exportStar(Instance, exports);
15317
15320
  } (snapshotSource));
15318
15321
 
15319
- Object.defineProperty(fin, "__esModule", { value: true });
15320
- fin.Fin = void 0;
15322
+ Object.defineProperty(fin$1, "__esModule", { value: true });
15323
+ fin$1.Fin = void 0;
15321
15324
  const events_1$3 = require$$0;
15322
15325
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
15323
15326
  const index_1 = system$1;
@@ -15363,7 +15366,7 @@ class Fin extends events_1$3.EventEmitter {
15363
15366
  });
15364
15367
  }
15365
15368
  }
15366
- fin.Fin = Fin;
15369
+ fin$1.Fin = Fin;
15367
15370
 
15368
15371
  var wire = {};
15369
15372
 
@@ -16716,7 +16719,7 @@ function requireMain () {
16716
16719
  (function (exports) {
16717
16720
  Object.defineProperty(exports, "__esModule", { value: true });
16718
16721
  exports.ChannelProvider = exports.ChannelClient = exports.Frame = exports.View = exports.System = exports.Window = exports.Application = exports.Fin = exports.launch = exports.connect = void 0;
16719
- const fin_1 = fin;
16722
+ const fin_1 = fin$1;
16720
16723
  Object.defineProperty(exports, "Fin", { enumerable: true, get: function () { return fin_1.Fin; } });
16721
16724
  const index_1 = requireApplication();
16722
16725
  Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return index_1.Application; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "36.79.4",
3
+ "version": "36.79.5",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",