npm package diff
Package: @forge/egress
Versions: 1.4.0-next.0 - 1.4.0-next.1
File: package/out/egress/utils.js
Index: package/out/egress/utils.js
===================================================================
--- package/out/egress/utils.js
+++ package/out/egress/utils.js
@@ -42,15 +42,15 @@
EgressType["Styles"] = "STYLES";
})(EgressType = exports.EgressType || (exports.EgressType = {}));
var EgressCategory;
(function (EgressCategory) {
- EgressCategory["ANALYTICS"] = "analytics";
+ EgressCategory["ANALYTICS"] = "ANALYTICS";
})(EgressCategory = exports.EgressCategory || (exports.EgressCategory = {}));
const getEgressesBasedOnToggles = (input) => {
const filteredEgresses = input.egress.filter((egress) => {
- if (egress.category === EgressCategory.ANALYTICS) {
+ if (egress.category?.toUpperCase() === EgressCategory.ANALYTICS) {
if (input.installationConfig) {
- const analyticsConfig = input.installationConfig.find((config) => config.key === 'ALLOW_EGRESS_ANALYTICS');
+ const analyticsConfig = input.installationConfig.find((config) => config.key.toUpperCase() === 'ALLOW_EGRESS_ANALYTICS');
return analyticsConfig?.value !== false;
}
else {
return input.overrides.ALLOW_EGRESS_ANALYTICS !== false;