@onecx/accelerator 8.6.0 → 8.6.1
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
|
@@ -689,17 +689,15 @@ function getOneCXSharedRecommendations(libraryName, sharedConfig) {
|
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
// libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts
|
|
692
|
-
|
|
692
|
+
function getNodeRequire() {
|
|
693
693
|
try {
|
|
694
694
|
if (typeof process !== "undefined" && process?.versions?.node) {
|
|
695
695
|
return eval("require");
|
|
696
|
-
} else {
|
|
697
|
-
throw new Error("Node.js environment is required for dynamic require.");
|
|
698
696
|
}
|
|
699
697
|
} catch {
|
|
700
|
-
throw new Error("Node.js environment is required for dynamic require.");
|
|
701
698
|
}
|
|
702
|
-
|
|
699
|
+
return null;
|
|
700
|
+
}
|
|
703
701
|
var angularCore = "@angular/core";
|
|
704
702
|
var EXPORTS_BLACKLIST = [".", "./package.json"];
|
|
705
703
|
var DEFAULT_DEPENDENCY_BLACKLIST = [
|
|
@@ -741,6 +739,7 @@ function isDependencyBlacklisted(dependency) {
|
|
|
741
739
|
});
|
|
742
740
|
}
|
|
743
741
|
function readDependencyPackageJson(dependency) {
|
|
742
|
+
const nodeRequire = getNodeRequire();
|
|
744
743
|
if (!nodeRequire) return null;
|
|
745
744
|
let packagePath;
|
|
746
745
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -639,17 +639,15 @@ function getOneCXSharedRecommendations(libraryName, sharedConfig) {
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
// libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts
|
|
642
|
-
|
|
642
|
+
function getNodeRequire() {
|
|
643
643
|
try {
|
|
644
644
|
if (typeof process !== "undefined" && process?.versions?.node) {
|
|
645
645
|
return eval("require");
|
|
646
|
-
} else {
|
|
647
|
-
throw new Error("Node.js environment is required for dynamic require.");
|
|
648
646
|
}
|
|
649
647
|
} catch {
|
|
650
|
-
throw new Error("Node.js environment is required for dynamic require.");
|
|
651
648
|
}
|
|
652
|
-
|
|
649
|
+
return null;
|
|
650
|
+
}
|
|
653
651
|
var angularCore = "@angular/core";
|
|
654
652
|
var EXPORTS_BLACKLIST = [".", "./package.json"];
|
|
655
653
|
var DEFAULT_DEPENDENCY_BLACKLIST = [
|
|
@@ -691,6 +689,7 @@ function isDependencyBlacklisted(dependency) {
|
|
|
691
689
|
});
|
|
692
690
|
}
|
|
693
691
|
function readDependencyPackageJson(dependency) {
|
|
692
|
+
const nodeRequire = getNodeRequire();
|
|
694
693
|
if (!nodeRequire) return null;
|
|
695
694
|
let packagePath;
|
|
696
695
|
try {
|
package/package.json
CHANGED
|
@@ -2,21 +2,20 @@ import { getOneCXSharedRecommendations } from "./get-onecx-shared-recommendation
|
|
|
2
2
|
/**
|
|
3
3
|
* As we have { platform: 'browser'} in accelerator's & integration-interface project.json.
|
|
4
4
|
* We use dynamic require (provided by Node.js) to read package.json of dependencies, which is not supported in browser environment.
|
|
5
|
-
*
|
|
5
|
+
* Resolved lazily on first call so that merely importing this module from a browser bundle does not throw.
|
|
6
|
+
* Only `getOneCXSharedLibraryConfig` (build-time webpack config) calls into the file system helpers below.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
function getNodeRequire() {
|
|
8
9
|
try {
|
|
9
10
|
if (typeof process !== 'undefined' && process?.versions?.node) {
|
|
10
11
|
return eval('require');
|
|
11
12
|
}
|
|
12
|
-
else {
|
|
13
|
-
throw new Error('Node.js environment is required for dynamic require.');
|
|
14
|
-
}
|
|
15
13
|
}
|
|
16
14
|
catch {
|
|
17
|
-
|
|
15
|
+
// fall through
|
|
18
16
|
}
|
|
19
|
-
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
20
19
|
const angularCore = '@angular/core';
|
|
21
20
|
/**
|
|
22
21
|
* Blacklist of export paths to exclude when generating subpackage entries.
|
|
@@ -86,6 +85,7 @@ function isDependencyBlacklisted(dependency) {
|
|
|
86
85
|
* @returns {Object|null} Parsed package.json or null if not found
|
|
87
86
|
*/
|
|
88
87
|
function readDependencyPackageJson(dependency) {
|
|
88
|
+
const nodeRequire = getNodeRequire();
|
|
89
89
|
if (!nodeRequire)
|
|
90
90
|
return null;
|
|
91
91
|
let packagePath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-onecx-shared-library-config.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAuB,MAAM,oCAAoC,CAAC;AAGxG
|
|
1
|
+
{"version":3,"file":"get-onecx-shared-library-config.js","sourceRoot":"","sources":["../../../../../../libs/accelerator/src/lib/utils/get-onecx-shared-library-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAuB,MAAM,oCAAoC,CAAC;AAGxG;;;;;GAKG;AACH,SAAS,cAAc;IACrB,IAAI,CAAC;QACH,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAC9D,OAAO,IAAI,CAAC,SAAS,CAAmB,CAAC;QAC3C,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,eAAe;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,WAAW,GAAG,eAAe,CAAC;AAapC;;GAEG;AACH,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,4BAA4B,GAAa;IAC7C,cAAc;IACd,6BAA6B;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,8BAA8B,GAAG;IACrC,kCAAkC;IAClC,2BAA2B;IAC3B,yBAAyB;IACzB,4BAA4B;IAC5B,8CAA8C;IAC9C,wCAAwC;IACxC,0CAA0C;IAC1C,4CAA4C;IAC5C,yBAAyB;IAC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,CAAC;QAC7C,CAAC;QAED,MAAM,mBAAmB,GAAG,6BAA6B,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QAC9F,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,OAAO,GAAG,CAAC;QACb,CAAC;QAED,mFAAmF;QACnF,MAAM,kBAAkB,GAAG,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChI,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE,CAAC;YACjE,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;QACzD,CAAC;QAED,OAAO;YACL,GAAG,GAAG;YACN,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;gBACnB,GAAG,mBAAmB;aACvB;SACF,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
package/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const LIB_NAME = "@onecx/accelerator";
|
|
2
|
-
export declare const LIB_VERSION = "8.6.
|
|
2
|
+
export declare const LIB_VERSION = "8.6.1";
|
package/src/version.js
CHANGED