@onecx/integration-interface 8.6.1 → 8.7.0

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/dist/index.cjs CHANGED
@@ -483,20 +483,23 @@ function getOneCXSharedRecommendations(libraryName, sharedConfig) {
483
483
  }
484
484
 
485
485
  // libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts
486
+ var angularCore = "@angular/core";
487
+ var logger = createLogger("getOneCXSharedLibraryConfig");
486
488
  function getNodeRequire() {
487
489
  try {
488
490
  if (typeof process !== "undefined" && process?.versions?.node) {
489
491
  return eval("require");
490
492
  }
491
493
  } catch {
494
+ logger.warn(`Node require is not available.`);
492
495
  }
493
496
  return null;
494
497
  }
495
- var angularCore = "@angular/core";
496
498
  var EXPORTS_BLACKLIST = [".", "./package.json"];
497
499
  var DEFAULT_DEPENDENCY_BLACKLIST = [
498
500
  /^@nx(\/.*)?$/,
499
- /^@module-federation(\/.*)?$/
501
+ /^@module-federation(\/.*)?$/,
502
+ /^@onecx\/build-utils(\/.*)?$/
500
503
  ];
501
504
  var DEFAULT_FULL_PACKAGE_BLACKLIST = [
502
505
  "@angular/common/locales/global/*",
@@ -622,7 +625,7 @@ var import_BehaviorSubject = require("rxjs/internal/BehaviorSubject");
622
625
  var createLogger2 = createLoggerFactory("@onecx/integration-interface");
623
626
 
624
627
  // libs/integration-interface/src/lib/topics/current-page/v1/current-page.topic.ts
625
- var logger = createLogger2("CurrentPageTopic");
628
+ var logger2 = createLogger2("CurrentPageTopic");
626
629
  var CurrentPageTopic = class extends Topic {
627
630
  currentPath$ = new import_BehaviorSubject.BehaviorSubject(document.location.pathname);
628
631
  constructor() {
@@ -637,7 +640,7 @@ var CurrentPageTopic = class extends Topic {
637
640
  watchForPathChanges() {
638
641
  const body = document.querySelector("body");
639
642
  if (body === null) {
640
- logger.error("could not listen to location changes");
643
+ logger2.error("could not listen to location changes");
641
644
  throw new Error("could not listen to location changes");
642
645
  }
643
646
  const observer = new MutationObserver(() => {
package/dist/index.mjs CHANGED
@@ -392,20 +392,23 @@ function getOneCXSharedRecommendations(libraryName, sharedConfig) {
392
392
  }
393
393
 
394
394
  // libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts
395
+ var angularCore = "@angular/core";
396
+ var logger = createLogger("getOneCXSharedLibraryConfig");
395
397
  function getNodeRequire() {
396
398
  try {
397
399
  if (typeof process !== "undefined" && process?.versions?.node) {
398
400
  return eval("require");
399
401
  }
400
402
  } catch {
403
+ logger.warn(`Node require is not available.`);
401
404
  }
402
405
  return null;
403
406
  }
404
- var angularCore = "@angular/core";
405
407
  var EXPORTS_BLACKLIST = [".", "./package.json"];
406
408
  var DEFAULT_DEPENDENCY_BLACKLIST = [
407
409
  /^@nx(\/.*)?$/,
408
- /^@module-federation(\/.*)?$/
410
+ /^@module-federation(\/.*)?$/,
411
+ /^@onecx\/build-utils(\/.*)?$/
409
412
  ];
410
413
  var DEFAULT_FULL_PACKAGE_BLACKLIST = [
411
414
  "@angular/common/locales/global/*",
@@ -531,7 +534,7 @@ import { BehaviorSubject as BehaviorSubject3 } from "rxjs/internal/BehaviorSubje
531
534
  var createLogger2 = createLoggerFactory("@onecx/integration-interface");
532
535
 
533
536
  // libs/integration-interface/src/lib/topics/current-page/v1/current-page.topic.ts
534
- var logger = createLogger2("CurrentPageTopic");
537
+ var logger2 = createLogger2("CurrentPageTopic");
535
538
  var CurrentPageTopic = class extends Topic {
536
539
  currentPath$ = new BehaviorSubject3(document.location.pathname);
537
540
  constructor() {
@@ -546,7 +549,7 @@ var CurrentPageTopic = class extends Topic {
546
549
  watchForPathChanges() {
547
550
  const body = document.querySelector("body");
548
551
  if (body === null) {
549
- logger.error("could not listen to location changes");
552
+ logger2.error("could not listen to location changes");
550
553
  throw new Error("could not listen to location changes");
551
554
  }
552
555
  const observer = new MutationObserver(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/integration-interface",
3
- "version": "8.6.1",
3
+ "version": "8.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "peerDependencies": {
10
10
  "rxjs": "^7.8.1",
11
- "@onecx/accelerator": "^8.6.1"
11
+ "@onecx/accelerator": "^8.7.0"
12
12
  },
13
13
  "type": "module",
14
14
  "dependencies": {
package/src/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const LIB_NAME = "@onecx/integration-interface";
2
- export declare const LIB_VERSION = "8.6.1";
2
+ export declare const LIB_VERSION = "8.7.0";
package/src/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export const LIB_NAME = '@onecx/integration-interface';
2
- export const LIB_VERSION = '8.6.1';
2
+ export const LIB_VERSION = '8.7.0';
3
3
  //# sourceMappingURL=version.js.map