pols-validator 2.3.7 → 2.3.8

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/rules.js CHANGED
@@ -99,12 +99,12 @@ class PRules extends rulesEngine_1.PRulesEngine {
99
99
  if (hours >= 1 && hours <= 12) {
100
100
  if (middle === 'p')
101
101
  hours += 12;
102
- wrapper.value = `${pols_utils_1.PUtilsString.padLeft(hours, 2)}:${pols_utils_1.PUtilsString.padLeft(minutes, 2)}:${pols_utils_1.PUtilsString.padLeft(seconds, 2)}`;
102
+ wrapper.value = `${pols_utils_1.PUtilsString.padStart(hours, 2)}:${pols_utils_1.PUtilsString.padStart(minutes, 2)}:${pols_utils_1.PUtilsString.padStart(seconds, 2)}`;
103
103
  return;
104
104
  }
105
105
  }
106
106
  else if (hours >= 0 && hours <= 23) {
107
- wrapper.value = `${pols_utils_1.PUtilsString.padLeft(hours, 2)}:${pols_utils_1.PUtilsString.padLeft(minutes, 2)}:${pols_utils_1.PUtilsString.padLeft(seconds, 2)}`;
107
+ wrapper.value = `${pols_utils_1.PUtilsString.padStart(hours, 2)}:${pols_utils_1.PUtilsString.padStart(minutes, 2)}:${pols_utils_1.PUtilsString.padStart(seconds, 2)}`;
108
108
  return;
109
109
  }
110
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pols-validator",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "isomorphic-dompurify": "^2.21.0",
32
- "pols-date": "^1.2.2",
33
- "pols-utils": "^5.0.1"
32
+ "pols-date": "^1.3.1",
33
+ "pols-utils": "^5.2.0"
34
34
  }
35
35
  }
package/src/rules.ts CHANGED
@@ -94,11 +94,11 @@ export class PRules extends PRulesEngine {
94
94
  if (middle) {
95
95
  if (hours >= 1 && hours <= 12) {
96
96
  if (middle === 'p') hours += 12
97
- wrapper.value = `${PUtilsString.padLeft(hours, 2)}:${PUtilsString.padLeft(minutes, 2)}:${PUtilsString.padLeft(seconds, 2)}`
97
+ wrapper.value = `${PUtilsString.padStart(hours, 2)}:${PUtilsString.padStart(minutes, 2)}:${PUtilsString.padStart(seconds, 2)}`
98
98
  return
99
99
  }
100
100
  } else if (hours >= 0 && hours <= 23) {
101
- wrapper.value = `${PUtilsString.padLeft(hours, 2)}:${PUtilsString.padLeft(minutes, 2)}:${PUtilsString.padLeft(seconds, 2)}`
101
+ wrapper.value = `${PUtilsString.padStart(hours, 2)}:${PUtilsString.padStart(minutes, 2)}:${PUtilsString.padStart(seconds, 2)}`
102
102
  return
103
103
  }
104
104
  }