@openfin/core 34.78.69 → 34.78.73

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/mock.js +8 -5
  2. package/package.json +1 -1
package/out/mock.js CHANGED
@@ -257,7 +257,7 @@ events.WindowEvents = WindowEvents;
257
257
  __exportStar(events, exports);
258
258
  } (OpenFin$1));
259
259
 
260
- var fin = {};
260
+ var fin$1 = {};
261
261
 
262
262
  var system = {};
263
263
 
@@ -13285,6 +13285,9 @@ class PlatformModule extends base_1$4.Base {
13285
13285
  * @experimental
13286
13286
  */
13287
13287
  async init(options) {
13288
+ if (!fin.__internal_.isPlatform || fin.me.name !== fin.me.uuid) {
13289
+ throw new Error('fin.Platform.init should only be called from a custom platform provider running in the main window of the application.');
13290
+ }
13288
13291
  return this.wire.environment.initPlatform(this.fin, options);
13289
13292
  }
13290
13293
  /**
@@ -16706,8 +16709,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
16706
16709
  __exportStar(Instance, exports);
16707
16710
  } (snapshotSource));
16708
16711
 
16709
- Object.defineProperty(fin, "__esModule", { value: true });
16710
- fin.Fin = void 0;
16712
+ Object.defineProperty(fin$1, "__esModule", { value: true });
16713
+ fin$1.Fin = void 0;
16711
16714
  const events_1$3 = require$$0;
16712
16715
  // Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
16713
16716
  const index_1 = system;
@@ -16753,7 +16756,7 @@ class Fin extends events_1$3.EventEmitter {
16753
16756
  });
16754
16757
  }
16755
16758
  }
16756
- fin.Fin = Fin;
16759
+ fin$1.Fin = Fin;
16757
16760
 
16758
16761
  var transport = {};
16759
16762
 
@@ -17205,7 +17208,7 @@ mockWire.MockWire = MockWire;
17205
17208
  Object.defineProperty(mock, "__esModule", { value: true });
17206
17209
  exports.fin = mock.fin = void 0;
17207
17210
  const OpenFin = OpenFin$1;
17208
- const fin_1 = fin;
17211
+ const fin_1 = fin$1;
17209
17212
  const transport_1 = transport;
17210
17213
  const mockEnvironment_1 = mockEnvironment;
17211
17214
  const mockWire_1 = mockWire;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "34.78.69",
3
+ "version": "34.78.73",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",