npm package diff
Package: @forge/egress
Versions: 1.3.1 - 1.4.0-next.0
File: package/out/egress/utils.js
Index: package/out/egress/utils.js
===================================================================
--- package/out/egress/utils.js
+++ package/out/egress/utils.js
@@ -47,9 +47,15 @@
})(EgressCategory = exports.EgressCategory || (exports.EgressCategory = {}));
const getEgressesBasedOnToggles = (input) => {
const filteredEgresses = input.egress.filter((egress) => {
if (egress.category === EgressCategory.ANALYTICS) {
- return input.overrides.ALLOW_EGRESS_ANALYTICS !== false;
+ if (input.installationConfig) {
+ const analyticsConfig = input.installationConfig.find((config) => config.key === 'ALLOW_EGRESS_ANALYTICS');
+ return analyticsConfig?.value !== false;
+ }
+ else {
+ return input.overrides.ALLOW_EGRESS_ANALYTICS !== false;
+ }
}
return true;
});
const egressByType = new Map();