@4site/engrid-scripts 0.27.5 → 0.27.6
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/swap-amounts.js +13 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/swap-amounts.js
CHANGED
|
@@ -47,8 +47,17 @@ export class SwapAmounts {
|
|
|
47
47
|
this.hasRecurringNSG = !!(window.EngagingNetworks.suggestedGift &&
|
|
48
48
|
window.EngagingNetworks.suggestedGift.recurring &&
|
|
49
49
|
window.EngagingNetworks.suggestedGift.recurring.length > 0);
|
|
50
|
+
if (this.hasOneTimeNSG) {
|
|
51
|
+
ENGrid.setBodyData("en-nsg-onetime", true);
|
|
52
|
+
}
|
|
53
|
+
if (this.hasRecurringNSG) {
|
|
54
|
+
ENGrid.setBodyData("en-nsg-recurring", true);
|
|
55
|
+
}
|
|
50
56
|
if (this.hasOneTimeNSG || this.hasRecurringNSG) {
|
|
51
|
-
|
|
57
|
+
ENGrid.setBodyData("en-nsg", true);
|
|
58
|
+
this.logger.log("Detected NSG amounts", {
|
|
59
|
+
suggestedGift: window.EngagingNetworks.suggestedGift,
|
|
60
|
+
});
|
|
52
61
|
}
|
|
53
62
|
if (!this.shouldRun())
|
|
54
63
|
return;
|
|
@@ -110,7 +119,9 @@ export class SwapAmounts {
|
|
|
110
119
|
if (!config)
|
|
111
120
|
return;
|
|
112
121
|
if (this.shouldUseNSG(freq, config)) {
|
|
113
|
-
this.logger.log(`NSG present for ${freq}, using NSG amounts`, {
|
|
122
|
+
this.logger.log(`NSG present for ${freq}, using NSG amounts`, {
|
|
123
|
+
suggestedGift: window.EngagingNetworks.suggestedGift,
|
|
124
|
+
});
|
|
114
125
|
window.EngagingNetworks.require._defined.enjs.swapList("donationAmt", this.toEnAmountListNSG(window.EngagingNetworks.suggestedGift, freq), { ignoreCurrentValue: true });
|
|
115
126
|
this._amount.load();
|
|
116
127
|
this.swapped = true;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.27.
|
|
1
|
+
export declare const AppVersion = "0.27.6";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.27.
|
|
1
|
+
export const AppVersion = "0.27.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.6",
|
|
4
4
|
"description": "Scripts for the ENGRID Project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"strongly-typed-events": "^2.0.9"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/4site-interactive-studios/engrid#readme",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "84b8bf12eb84acac7332a55098a2786815912f84",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|