@openfin/node-adapter 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.
- package/out/node-adapter.js +8 -5
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -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
|
|
@@ -13065,6 +13065,9 @@ class PlatformModule extends base_1$4.Base {
|
|
13065
13065
|
* @experimental
|
13066
13066
|
*/
|
13067
13067
|
async init(options) {
|
13068
|
+
if (!fin.__internal_.isPlatform || fin.me.name !== fin.me.uuid) {
|
13069
|
+
throw new Error('fin.Platform.init should only be called from a custom platform provider running in the main window of the application.');
|
13070
|
+
}
|
13068
13071
|
return this.wire.environment.initPlatform(this.fin, options);
|
13069
13072
|
}
|
13070
13073
|
/**
|
@@ -16486,8 +16489,8 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
|
|
16486
16489
|
__exportStar(Instance, exports);
|
16487
16490
|
} (snapshotSource));
|
16488
16491
|
|
16489
|
-
Object.defineProperty(fin, "__esModule", { value: true });
|
16490
|
-
fin.Fin = void 0;
|
16492
|
+
Object.defineProperty(fin$1, "__esModule", { value: true });
|
16493
|
+
fin$1.Fin = void 0;
|
16491
16494
|
const events_1$3 = require$$0;
|
16492
16495
|
// Import from the file rather than the directory in case someone consuming types is using module resolution other than "node"
|
16493
16496
|
const index_1 = system$1;
|
@@ -16533,7 +16536,7 @@ class Fin extends events_1$3.EventEmitter {
|
|
16533
16536
|
});
|
16534
16537
|
}
|
16535
16538
|
}
|
16536
|
-
fin.Fin = Fin;
|
16539
|
+
fin$1.Fin = Fin;
|
16537
16540
|
|
16538
16541
|
var wire = {};
|
16539
16542
|
|
@@ -17875,7 +17878,7 @@ function requireMain () {
|
|
17875
17878
|
(function (exports) {
|
17876
17879
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17877
17880
|
exports.ChannelProvider = exports.ChannelClient = exports.Frame = exports.View = exports.System = exports.Window = exports.Application = exports.Fin = exports.launch = exports.connect = void 0;
|
17878
|
-
const fin_1 = fin;
|
17881
|
+
const fin_1 = fin$1;
|
17879
17882
|
Object.defineProperty(exports, "Fin", { enumerable: true, get: function () { return fin_1.Fin; } });
|
17880
17883
|
const index_1 = requireApplication();
|
17881
17884
|
Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return index_1.Application; } });
|