@4site/engrid-scripts 0.19.12 → 0.19.13

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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AppVersion = "0.19.12";
1
+ export declare const AppVersion = "0.19.13";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const AppVersion = "0.19.12";
1
+ export const AppVersion = "0.19.13";
@@ -2,6 +2,7 @@ export declare class WelcomeBack {
2
2
  private supporterDetails;
3
3
  private options;
4
4
  private rememberMeEvents;
5
+ private hasRun;
5
6
  constructor();
6
7
  private run;
7
8
  private shouldRun;
@@ -15,6 +15,7 @@ export class WelcomeBack {
15
15
  this.supporterDetails = {};
16
16
  this.options = (_a = ENGrid.getOption("WelcomeBack")) !== null && _a !== void 0 ? _a : false;
17
17
  this.rememberMeEvents = RememberMeEvents.getInstance();
18
+ this.hasRun = false;
18
19
  if (!this.shouldRun())
19
20
  return;
20
21
  if (ENGrid.getOption("RememberMe")) {
@@ -30,6 +31,9 @@ export class WelcomeBack {
30
31
  }
31
32
  }
32
33
  run() {
34
+ if (this.hasRun)
35
+ return;
36
+ this.hasRun = true;
33
37
  this.supporterDetails = {
34
38
  firstName: ENGrid.getFieldValue("supporter.firstName"),
35
39
  lastName: ENGrid.getFieldValue("supporter.lastName"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4site/engrid-scripts",
3
- "version": "0.19.12",
3
+ "version": "0.19.13",
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": "3797669bb45cad103c45ce0e0fe984e89f53bf43",
28
+ "gitHead": "aad6c3aff1ee8afa1d8bfd11b0bc43967cab9d99",
29
29
  "devDependencies": {
30
30
  "nodemon": "^2.0.20"
31
31
  }