@forwardslashns/taskit-validation-messages 1.0.13 → 1.0.15

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.
@@ -35,7 +35,7 @@ const getValidationMessage = (feature, featureError, params) => {
35
35
  }
36
36
  }
37
37
  expectedParams.forEach((param) => {
38
- message = message.replace(`{${param}}`, inputParams[param]);
38
+ message = message.replaceAll(`{${param}}`, inputParams[param]);
39
39
  });
40
40
  return message;
41
41
  };
@@ -114,8 +114,8 @@ export declare const VALIDATION_MESSAGES: {
114
114
  readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
115
115
  };
116
116
  readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATES_STARTING_DATE: {
117
- readonly message: "Adjust the start date to be on or after the client's date established, {domesticStateStartingDate}.";
118
- readonly params: readonly ["domesticStateStartingDate"];
117
+ readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
118
+ readonly params: readonly ["clientStartDate"];
119
119
  };
120
120
  readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATES_STARTING_DATE: {
121
121
  readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
@@ -121,9 +121,9 @@ exports.VALIDATION_MESSAGES = {
121
121
  ],
122
122
  },
123
123
  NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATES_STARTING_DATE: {
124
- message: `Adjust the start date to be on or after the client's date established, {domesticStateStartingDate}.`,
124
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
125
125
  params: [
126
- 'domesticStateStartingDate',
126
+ 'clientStartDate',
127
127
  ],
128
128
  },
129
129
  NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATES_STARTING_DATE: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -71,7 +71,7 @@ export const getValidationMessage = <
71
71
  }
72
72
 
73
73
  expectedParams.forEach((param) => {
74
- message = message.replace(
74
+ message = message.replaceAll(
75
75
  `{${param}}`,
76
76
  (inputParams as Record<string, string>)[param]
77
77
  );
@@ -118,9 +118,9 @@ export const VALIDATION_MESSAGES = {
118
118
  ],
119
119
  },
120
120
  NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATES_STARTING_DATE: {
121
- message: `Adjust the start date to be on or after the client's date established, {domesticStateStartingDate}.`,
121
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
122
122
  params: [
123
- 'domesticStateStartingDate',
123
+ 'clientStartDate',
124
124
  ],
125
125
  },
126
126
  NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATES_STARTING_DATE: {