@openfin/node-adapter 34.78.38 → 34.78.42
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 +18 -0
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -429,6 +429,20 @@ var view$1 = {};
|
|
429
429
|
|
430
430
|
var Factory$6 = {};
|
431
431
|
|
432
|
+
var warnings = {};
|
433
|
+
|
434
|
+
Object.defineProperty(warnings, "__esModule", { value: true });
|
435
|
+
warnings.handleDeprecatedWarnings = void 0;
|
436
|
+
const handleDeprecatedWarnings = (options) => {
|
437
|
+
if (options.contentNavigation?.whitelist ||
|
438
|
+
options.contentNavigation?.blacklist ||
|
439
|
+
options.contentRedirect?.whitelist ||
|
440
|
+
options.contentRedirect?.blacklist) {
|
441
|
+
console.warn(`The properties 'whitelist' and 'blacklist' have been marked as deprecated and will be removed in a future version. Please use 'allowlist' and 'denylist'.`);
|
442
|
+
}
|
443
|
+
};
|
444
|
+
warnings.handleDeprecatedWarnings = handleDeprecatedWarnings;
|
445
|
+
|
432
446
|
var hasRequiredFactory$3;
|
433
447
|
|
434
448
|
function requireFactory$3 () {
|
@@ -439,6 +453,7 @@ function requireFactory$3 () {
|
|
439
453
|
const base_1 = base$1;
|
440
454
|
const validate_1 = validate;
|
441
455
|
const index_1 = requireView();
|
456
|
+
const warnings_1 = warnings;
|
442
457
|
/**
|
443
458
|
* Static namespace for OpenFin API methods that interact with the {@link View} class, available under `fin.View`.
|
444
459
|
*/
|
@@ -476,6 +491,7 @@ function requireFactory$3 () {
|
|
476
491
|
if (!options.name || typeof options.name !== 'string') {
|
477
492
|
throw new Error('Please provide a name property as a string in order to create a View.');
|
478
493
|
}
|
494
|
+
(0, warnings_1.handleDeprecatedWarnings)(options);
|
479
495
|
if (this.wire.environment.childViews) {
|
480
496
|
await this.wire.environment.createChildContent({
|
481
497
|
entityType: 'view',
|
@@ -4376,6 +4392,7 @@ function requireInstance () {
|
|
4376
4392
|
const application_1 = requireApplication();
|
4377
4393
|
const main_1 = main;
|
4378
4394
|
const view_1 = requireView();
|
4395
|
+
const warnings_1 = warnings;
|
4379
4396
|
/**
|
4380
4397
|
* @PORTED
|
4381
4398
|
* @typedef { object } Margins
|
@@ -4985,6 +5002,7 @@ function requireInstance () {
|
|
4985
5002
|
if (options.autoShow === undefined) {
|
4986
5003
|
options.autoShow = true;
|
4987
5004
|
}
|
5005
|
+
(0, warnings_1.handleDeprecatedWarnings)(options);
|
4988
5006
|
const windowCreation = this.wire.environment.createChildContent({ entityType: 'window', options });
|
4989
5007
|
Promise.all([pageResponse, windowCreation])
|
4990
5008
|
.then((resolvedArr) => {
|