@openfin/node-adapter 34.78.37 → 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.
@@ -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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "34.78.37",
3
+ "version": "34.78.42",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -9,7 +9,8 @@
9
9
  "scripts": {
10
10
  "prebuild": "rimraf ./out",
11
11
  "build": "rollup --config",
12
- "dev": "npm run build -- --environment MODE:development"
12
+ "dev": "npm run build -- --environment MODE:development",
13
+ "watch": "rollup --config --watch --environment MODE:development && echo 'oh shit_________'"
13
14
  },
14
15
  "files": [
15
16
  "out/*",
@@ -20,7 +21,7 @@
20
21
  "@openfin/core-ci-tools": "0.0.1",
21
22
  "@rollup/plugin-typescript": "11.1.1",
22
23
  "@rollup/plugin-commonjs": "25.0.2",
23
- "rollup": "3.21.3",
24
+ "rollup": "3.24.1",
24
25
  "typescript": "4.9.5"
25
26
  },
26
27
  "dependencies": {