@futdevpro/fsm-dynamo 1.8.4 → 1.9.1

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.
Files changed (263) hide show
  1. package/.eslintrc.json +9 -6
  2. package/lib/_constants/error-defaults.const.d.ts +2 -2
  3. package/lib/_constants/error-defaults.const.d.ts.map +1 -1
  4. package/lib/_constants/error-defaults.const.js +2 -2
  5. package/lib/_constants/error-defaults.const.js.map +1 -1
  6. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +6 -2
  7. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts.map +1 -1
  8. package/lib/_constants/module-settings/custom-data-module-settings.const.js +9 -4
  9. package/lib/_constants/module-settings/custom-data-module-settings.const.js.map +1 -1
  10. package/lib/_constants/module-settings/test-module-settings.const.d.ts +8 -2
  11. package/lib/_constants/module-settings/test-module-settings.const.d.ts.map +1 -1
  12. package/lib/_constants/module-settings/test-module-settings.const.js +13 -8
  13. package/lib/_constants/module-settings/test-module-settings.const.js.map +1 -1
  14. package/lib/_constants/module-settings/usage-module-settings.const.d.ts +8 -2
  15. package/lib/_constants/module-settings/usage-module-settings.const.d.ts.map +1 -1
  16. package/lib/_constants/module-settings/usage-module-settings.const.js +13 -6
  17. package/lib/_constants/module-settings/usage-module-settings.const.js.map +1 -1
  18. package/lib/_enums/basic-property-type.enum.d.ts +1 -1
  19. package/lib/_enums/basic-property-type.enum.d.ts.map +1 -1
  20. package/lib/_enums/basic-property-type.enum.js +9 -9
  21. package/lib/_enums/basic-property-type.enum.js.map +1 -1
  22. package/lib/_enums/data-model-type.enum.d.ts +1 -1
  23. package/lib/_enums/data-model-type.enum.d.ts.map +1 -1
  24. package/lib/_enums/data-model-type.enum.js +7 -7
  25. package/lib/_enums/data-model-type.enum.js.map +1 -1
  26. package/lib/_enums/day-of-week.enum.d.ts +4 -4
  27. package/lib/_enums/day-of-week.enum.d.ts.map +1 -1
  28. package/lib/_enums/day-of-week.enum.js +21 -21
  29. package/lib/_enums/day-of-week.enum.js.map +1 -1
  30. package/lib/_enums/error-level.enum.d.ts +1 -1
  31. package/lib/_enums/error-level.enum.d.ts.map +1 -1
  32. package/lib/_enums/error-level.enum.js +13 -13
  33. package/lib/_enums/error-level.enum.js.map +1 -1
  34. package/lib/_enums/log-style.enum.d.ts +1 -1
  35. package/lib/_enums/log-style.enum.d.ts.map +1 -1
  36. package/lib/_enums/log-style.enum.js +27 -27
  37. package/lib/_enums/log-style.enum.js.map +1 -1
  38. package/lib/_enums/month.enum.d.ts +1 -1
  39. package/lib/_enums/month.enum.d.ts.map +1 -1
  40. package/lib/_enums/month.enum.js +16 -16
  41. package/lib/_enums/month.enum.js.map +1 -1
  42. package/lib/_enums/region.enum.d.ts +1 -1
  43. package/lib/_enums/region.enum.d.ts.map +1 -1
  44. package/lib/_enums/region.enum.js +9 -9
  45. package/lib/_enums/region.enum.js.map +1 -1
  46. package/lib/_enums/relative-date.enum.d.ts +1 -1
  47. package/lib/_enums/relative-date.enum.d.ts.map +1 -1
  48. package/lib/_enums/relative-date.enum.js +10 -10
  49. package/lib/_enums/relative-date.enum.js.map +1 -1
  50. package/lib/_enums/sub-region.enum.d.ts +1 -1
  51. package/lib/_enums/sub-region.enum.d.ts.map +1 -1
  52. package/lib/_enums/sub-region.enum.js +21 -21
  53. package/lib/_enums/sub-region.enum.js.map +1 -1
  54. package/lib/_enums/subdivision-region-type.enum.d.ts +1 -1
  55. package/lib/_enums/subdivision-region-type.enum.d.ts.map +1 -1
  56. package/lib/_enums/subdivision-region-type.enum.js +42 -42
  57. package/lib/_enums/subdivision-region-type.enum.js.map +1 -1
  58. package/lib/_models/control-models/daily-usage-data.control-model.d.ts +5 -5
  59. package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
  60. package/lib/_models/control-models/daily-usage-data.control-model.js +3 -3
  61. package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
  62. package/lib/_models/control-models/data-model-params.control-model.d.ts +13 -14
  63. package/lib/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
  64. package/lib/_models/control-models/data-model-params.control-model.js +9 -15
  65. package/lib/_models/control-models/data-model-params.control-model.js.map +1 -1
  66. package/lib/_models/control-models/data-property-params.control-model.d.ts +9 -9
  67. package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
  68. package/lib/_models/control-models/data-property-params.control-model.js +10 -10
  69. package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
  70. package/lib/_models/control-models/error.control-model.d.ts +15 -15
  71. package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
  72. package/lib/_models/control-models/error.control-model.js +18 -18
  73. package/lib/_models/control-models/error.control-model.js.map +1 -1
  74. package/lib/_models/control-models/error.control-model.spec.js +34 -34
  75. package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
  76. package/lib/_models/control-models/poll.control-model.d.ts +2 -2
  77. package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
  78. package/lib/_models/control-models/poll.control-model.js +8 -8
  79. package/lib/_models/control-models/poll.control-model.js.map +1 -1
  80. package/lib/_models/control-models/range-value.control-model.d.ts +20 -20
  81. package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
  82. package/lib/_models/control-models/range-value.control-model.js +15 -15
  83. package/lib/_models/control-models/range-value.control-model.js.map +1 -1
  84. package/lib/_models/control-models/usage-action.control-model.d.ts +3 -3
  85. package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -1
  86. package/lib/_models/control-models/usage-action.control-model.js +3 -3
  87. package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
  88. package/lib/_models/control-models/usage-data.control-model.d.ts +6 -6
  89. package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -1
  90. package/lib/_models/control-models/usage-data.control-model.js +3 -3
  91. package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
  92. package/lib/_models/data-models/custom-data.data-model.d.ts +7 -7
  93. package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
  94. package/lib/_models/data-models/custom-data.data-model.js +4 -4
  95. package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
  96. package/lib/_models/data-models/metadata.data-model.d.ts +5 -5
  97. package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
  98. package/lib/_models/data-models/metadata.data-model.js +3 -3
  99. package/lib/_models/data-models/metadata.data-model.js.map +1 -1
  100. package/lib/_models/data-models/usage-session.data-model.d.ts +10 -10
  101. package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
  102. package/lib/_models/data-models/usage-session.data-model.js +4 -4
  103. package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
  104. package/lib/_models/interfaces/error-defaults.interface.d.ts +1 -1
  105. package/lib/_models/interfaces/error-defaults.interface.d.ts.map +1 -1
  106. package/lib/_models/interfaces/location/country-division.interface.d.ts +1 -1
  107. package/lib/_models/interfaces/location/country-division.interface.d.ts.map +1 -1
  108. package/lib/_models/interfaces/location/country-iso.interface.d.ts +7 -7
  109. package/lib/_models/interfaces/location/country-iso.interface.d.ts.map +1 -1
  110. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +1 -1
  111. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts.map +1 -1
  112. package/lib/_models/interfaces/location/division-collection.interface.d.ts +1 -1
  113. package/lib/_models/interfaces/location/division-collection.interface.d.ts.map +1 -1
  114. package/lib/_models/interfaces/location/division-region-data.interface.d.ts +4 -4
  115. package/lib/_models/interfaces/location/division-region-data.interface.d.ts.map +1 -1
  116. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +1 -1
  117. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts.map +1 -1
  118. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +1 -1
  119. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts.map +1 -1
  120. package/lib/_models/interfaces/paged.interace.d.ts +1 -1
  121. package/lib/_models/interfaces/paged.interace.d.ts.map +1 -1
  122. package/lib/_models/interfaces/random-weight.interface.d.ts +1 -1
  123. package/lib/_models/interfaces/random-weight.interface.d.ts.map +1 -1
  124. package/lib/_models/interfaces/route-settings.interface.d.ts +4 -4
  125. package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -1
  126. package/lib/_utils/array.util.d.ts +4 -4
  127. package/lib/_utils/array.util.d.ts.map +1 -1
  128. package/lib/_utils/array.util.js +3 -3
  129. package/lib/_utils/array.util.js.map +1 -1
  130. package/lib/_utils/array.util.spec.js +5 -5
  131. package/lib/_utils/array.util.spec.js.map +1 -1
  132. package/lib/_utils/box-bounds.util.d.ts +12 -12
  133. package/lib/_utils/box-bounds.util.d.ts.map +1 -1
  134. package/lib/_utils/box-bounds.util.js +7 -7
  135. package/lib/_utils/box-bounds.util.js.map +1 -1
  136. package/lib/_utils/index.d.ts +0 -1
  137. package/lib/_utils/index.d.ts.map +1 -1
  138. package/lib/_utils/index.js +0 -1
  139. package/lib/_utils/index.js.map +1 -1
  140. package/lib/_utils/location.util.d.ts +4 -4
  141. package/lib/_utils/location.util.d.ts.map +1 -1
  142. package/lib/_utils/location.util.js +9 -9
  143. package/lib/_utils/location.util.js.map +1 -1
  144. package/lib/_utils/log.util.d.ts +17 -17
  145. package/lib/_utils/log.util.d.ts.map +1 -1
  146. package/lib/_utils/log.util.js +25 -25
  147. package/lib/_utils/log.util.js.map +1 -1
  148. package/lib/_utils/math.util.d.ts +1 -1
  149. package/lib/_utils/math.util.d.ts.map +1 -1
  150. package/lib/_utils/math.util.js +3 -3
  151. package/lib/_utils/math.util.js.map +1 -1
  152. package/lib/_utils/random.util.d.ts +5 -5
  153. package/lib/_utils/random.util.d.ts.map +1 -1
  154. package/lib/_utils/random.util.js +3 -3
  155. package/lib/_utils/random.util.js.map +1 -1
  156. package/lib/_utils/regex/password-regex.util.d.ts +2 -2
  157. package/lib/_utils/regex/password-regex.util.d.ts.map +1 -1
  158. package/lib/_utils/regex/password-regex.util.js +7 -7
  159. package/lib/_utils/regex/password-regex.util.js.map +1 -1
  160. package/lib/_utils/regex/username-regex.util.d.ts +1 -1
  161. package/lib/_utils/regex/username-regex.util.d.ts.map +1 -1
  162. package/lib/_utils/regex/username-regex.util.js +3 -3
  163. package/lib/_utils/regex/username-regex.util.js.map +1 -1
  164. package/lib/_utils/regex.util.d.ts +1 -1
  165. package/lib/_utils/regex.util.d.ts.map +1 -1
  166. package/lib/_utils/regex.util.js +2 -2
  167. package/lib/_utils/regex.util.js.map +1 -1
  168. package/lib/_utils/regions.util.d.ts +12 -12
  169. package/lib/_utils/regions.util.d.ts.map +1 -1
  170. package/lib/_utils/regions.util.js +13 -13
  171. package/lib/_utils/regions.util.js.map +1 -1
  172. package/lib/_utils/round-list.util.d.ts +2 -2
  173. package/lib/_utils/round-list.util.d.ts.map +1 -1
  174. package/lib/_utils/round-list.util.js +3 -3
  175. package/lib/_utils/round-list.util.js.map +1 -1
  176. package/lib/_utils/shared.static-service.d.ts +2 -2
  177. package/lib/_utils/shared.static-service.d.ts.map +1 -1
  178. package/lib/_utils/shared.static-service.js +8 -8
  179. package/lib/_utils/shared.static-service.js.map +1 -1
  180. package/lib/_utils/time.util.d.ts +16 -16
  181. package/lib/_utils/time.util.d.ts.map +1 -1
  182. package/lib/_utils/time.util.js +29 -29
  183. package/lib/_utils/time.util.js.map +1 -1
  184. package/lib/_utils/trigonometry.util.d.ts +4 -4
  185. package/lib/_utils/trigonometry.util.d.ts.map +1 -1
  186. package/lib/_utils/trigonometry.util.js +3 -3
  187. package/lib/_utils/trigonometry.util.js.map +1 -1
  188. package/lib/_utils/type-cloning-facility.util.d.ts +4 -4
  189. package/lib/_utils/type-cloning-facility.util.d.ts.map +1 -1
  190. package/lib/_utils/type-cloning-facility.util.js +3 -3
  191. package/lib/_utils/type-cloning-facility.util.js.map +1 -1
  192. package/lib/_utils/utilities.util.d.ts +25 -25
  193. package/lib/_utils/utilities.util.d.ts.map +1 -1
  194. package/lib/_utils/utilities.util.js +34 -34
  195. package/lib/_utils/utilities.util.js.map +1 -1
  196. package/lib/_utils/vector2.util.d.ts +36 -36
  197. package/lib/_utils/vector2.util.d.ts.map +1 -1
  198. package/lib/_utils/vector2.util.js +37 -37
  199. package/lib/_utils/vector2.util.js.map +1 -1
  200. package/lib/tsconfig.tsbuildinfo +1 -1
  201. package/package.json +157 -160
  202. package/src/_constants/error-defaults.const.ts +2 -2
  203. package/src/_constants/module-settings/custom-data-module-settings.const.ts +9 -4
  204. package/src/_constants/module-settings/test-module-settings.const.ts +13 -8
  205. package/src/_constants/module-settings/usage-module-settings.const.ts +13 -6
  206. package/src/_enums/basic-property-type.enum.ts +1 -1
  207. package/src/_enums/data-model-type.enum.ts +1 -1
  208. package/src/_enums/day-of-week.enum.ts +11 -11
  209. package/src/_enums/error-level.enum.ts +1 -1
  210. package/src/_enums/log-style.enum.ts +1 -1
  211. package/src/_enums/month.enum.ts +1 -1
  212. package/src/_enums/region.enum.ts +1 -1
  213. package/src/_enums/relative-date.enum.ts +1 -1
  214. package/src/_enums/sub-region.enum.ts +1 -1
  215. package/src/_enums/subdivision-region-type.enum.ts +1 -1
  216. package/src/_models/control-models/daily-usage-data.control-model.ts +5 -5
  217. package/src/_models/control-models/data-model-params.control-model.ts +15 -25
  218. package/src/_models/control-models/data-property-params.control-model.ts +15 -15
  219. package/src/_models/control-models/error.control-model.spec.ts +69 -69
  220. package/src/_models/control-models/error.control-model.ts +80 -80
  221. package/src/_models/control-models/poll.control-model.ts +8 -8
  222. package/src/_models/control-models/range-value.control-model.ts +58 -58
  223. package/src/_models/control-models/usage-action.control-model.ts +3 -3
  224. package/src/_models/control-models/usage-data.control-model.ts +6 -6
  225. package/src/_models/data-models/custom-data.data-model.ts +13 -12
  226. package/src/_models/data-models/metadata.data-model.ts +5 -5
  227. package/src/_models/data-models/usage-session.data-model.ts +28 -27
  228. package/src/_models/interfaces/error-defaults.interface.ts +1 -1
  229. package/src/_models/interfaces/location/country-division.interface.ts +1 -1
  230. package/src/_models/interfaces/location/country-iso.interface.ts +7 -7
  231. package/src/_models/interfaces/location/country-phone-code.interface.ts +1 -1
  232. package/src/_models/interfaces/location/division-collection.interface.ts +1 -1
  233. package/src/_models/interfaces/location/division-region-data.interface.ts +4 -4
  234. package/src/_models/interfaces/location/geo-ip-location.interface.ts +1 -1
  235. package/src/_models/interfaces/location/location-coordinates.interface.ts +1 -1
  236. package/src/_models/interfaces/paged.interace.ts +1 -1
  237. package/src/_models/interfaces/random-weight.interface.ts +1 -1
  238. package/src/_models/interfaces/route-settings.interface.ts +4 -4
  239. package/src/_utils/array.util.spec.ts +7 -7
  240. package/src/_utils/array.util.ts +4 -4
  241. package/src/_utils/box-bounds.util.ts +19 -19
  242. package/src/_utils/index.ts +0 -1
  243. package/src/_utils/location.util.ts +13 -13
  244. package/src/_utils/log.util.ts +36 -36
  245. package/src/_utils/math.util.ts +1 -1
  246. package/src/_utils/random.util.ts +9 -5
  247. package/src/_utils/regex/password-regex.util.ts +5 -5
  248. package/src/_utils/regex/username-regex.util.ts +2 -2
  249. package/src/_utils/regex.util.ts +1 -1
  250. package/src/_utils/regions.util.ts +33 -33
  251. package/src/_utils/round-list.util.ts +2 -2
  252. package/src/_utils/shared.static-service.ts +8 -8
  253. package/src/_utils/time.util.ts +40 -40
  254. package/src/_utils/trigonometry.util.ts +4 -4
  255. package/src/_utils/type-cloning-facility.util.ts +4 -4
  256. package/src/_utils/utilities.util.ts +31 -27
  257. package/src/_utils/vector2.util.ts +67 -67
  258. package/tsconfig.json +2 -1
  259. package/lib/_utils/metadata.util.d.ts +0 -2
  260. package/lib/_utils/metadata.util.d.ts.map +0 -1
  261. package/lib/_utils/metadata.util.js +0 -32
  262. package/lib/_utils/metadata.util.js.map +0 -1
  263. package/src/_utils/metadata.util.ts +0 -31
@@ -1,35 +1,35 @@
1
1
 
2
- import { Dynamo_LogStyle } from '../_enums/log-style.enum';
2
+ import { DynamoFM_LogStyle } from '../_enums/log-style.enum';
3
3
 
4
- /* export class D_Log implements Dynamo_Log {}; */
5
- export type Dynamo_L = Dynamo_Log;
6
- export type D_Log = Dynamo_Log;
7
- export type D_L = Dynamo_Log;
4
+ /* export class D_Log implements DynamoFM_Log {}; */
5
+ export type DynamoFM_L = DynamoFM_Log;
6
+ export type DFM_Log = DynamoFM_Log;
7
+ export type DFM_L = DynamoFM_Log;
8
8
 
9
- export class Dynamo_Log {
9
+ export class DynamoFM_Log {
10
10
 
11
- static setStyle(styles: Dynamo_LogStyle[]): void {
11
+ static setStyle(styles: DynamoFM_LogStyle[]): void {
12
12
  let styleSets = '';
13
13
 
14
- styles.forEach((style: Dynamo_LogStyle): void => {
14
+ styles.forEach((style: DynamoFM_LogStyle): void => {
15
15
  styleSets += style;
16
16
  });
17
17
  console.log(styleSets);
18
18
  }
19
19
  static resetStyle(): void {
20
- console.log(Dynamo_LogStyle.reset);
20
+ console.log(DynamoFM_LogStyle.reset);
21
21
  }
22
22
 
23
- static addStyle(input: string, styles: Dynamo_LogStyle[], dontReset?: boolean): string {
23
+ static addStyle(input: string, styles: DynamoFM_LogStyle[], dontReset?: boolean): string {
24
24
  let result = '';
25
25
 
26
- styles.forEach((style: Dynamo_LogStyle): void => {
26
+ styles.forEach((style: DynamoFM_LogStyle): void => {
27
27
  result += style;
28
28
  });
29
29
  result += input;
30
30
 
31
31
  if (!dontReset) {
32
- result += Dynamo_LogStyle.reset;
32
+ result += DynamoFM_LogStyle.reset;
33
33
  }
34
34
 
35
35
  return result;
@@ -38,17 +38,17 @@ export class Dynamo_Log {
38
38
  static success(message: string, ...optionalParams: any[]): void {
39
39
  if (0 < optionalParams.length) {
40
40
  console.log(
41
- `${Dynamo_LogStyle.green}${Dynamo_LogStyle.bright}${message}`,
42
- ...optionalParams, Dynamo_LogStyle.reset
41
+ `${DynamoFM_LogStyle.green}${DynamoFM_LogStyle.bright}${message}`,
42
+ ...optionalParams, DynamoFM_LogStyle.reset
43
43
  );
44
44
  } else {
45
45
  console.log(
46
- `${Dynamo_LogStyle.green}${Dynamo_LogStyle.bright}${message}${Dynamo_LogStyle.reset}`
46
+ `${DynamoFM_LogStyle.green}${DynamoFM_LogStyle.bright}${message}${DynamoFM_LogStyle.reset}`
47
47
  );
48
48
  }
49
49
  }
50
50
  /**
51
- * @deprecated use Dynamo_Log.success instead
51
+ * @deprecated use DynamoFM_Log.success instead
52
52
  */
53
53
  static logSuccess(message: string, ...optionalParams: any[]): void {
54
54
  this.success(message, ...optionalParams);
@@ -57,17 +57,17 @@ export class Dynamo_Log {
57
57
  static error(message: string, ...optionalParams: any[]): void {
58
58
  if (0 < optionalParams.length) {
59
59
  console.error(
60
- `${Dynamo_LogStyle.red}${Dynamo_LogStyle.bright}${message}`,
61
- ...optionalParams, Dynamo_LogStyle.reset
60
+ `${DynamoFM_LogStyle.red}${DynamoFM_LogStyle.bright}${message}`,
61
+ ...optionalParams, DynamoFM_LogStyle.reset
62
62
  );
63
63
  } else {
64
64
  console.error(
65
- `${Dynamo_LogStyle.red}${Dynamo_LogStyle.bright}${message}${Dynamo_LogStyle.reset}`
65
+ `${DynamoFM_LogStyle.red}${DynamoFM_LogStyle.bright}${message}${DynamoFM_LogStyle.reset}`
66
66
  );
67
67
  }
68
68
  }
69
69
  /**
70
- * @deprecated use Dynamo_Log.error instead
70
+ * @deprecated use DynamoFM_Log.error instead
71
71
  */
72
72
  static logError(message: string, ...optionalParams: any[]): void {
73
73
  this.error(message, ...optionalParams);
@@ -76,23 +76,23 @@ export class Dynamo_Log {
76
76
  static warn(message: string, ...optionalParams: any[]): void {
77
77
  if (0 < optionalParams.length) {
78
78
  console.warn(
79
- `${Dynamo_LogStyle.yellow}${Dynamo_LogStyle.bright}${message}`,
80
- ...optionalParams, Dynamo_LogStyle.reset
79
+ `${DynamoFM_LogStyle.yellow}${DynamoFM_LogStyle.bright}${message}`,
80
+ ...optionalParams, DynamoFM_LogStyle.reset
81
81
  );
82
82
  } else {
83
83
  console.warn(
84
- `${Dynamo_LogStyle.yellow}${Dynamo_LogStyle.bright}${message}${Dynamo_LogStyle.reset}`
84
+ `${DynamoFM_LogStyle.yellow}${DynamoFM_LogStyle.bright}${message}${DynamoFM_LogStyle.reset}`
85
85
  );
86
86
  }
87
87
  }
88
88
  /**
89
- * @deprecated use Dynamo_Log.warn instead
89
+ * @deprecated use DynamoFM_Log.warn instead
90
90
  */
91
91
  static warning(message: string, ...optionalParams: any[]): void {
92
92
  this.warn(message, ...optionalParams);
93
93
  }
94
94
  /**
95
- * @deprecated use Dynamo_Log.warn instead
95
+ * @deprecated use DynamoFM_Log.warn instead
96
96
  */
97
97
  static logWarning(message: string, ...optionalParams: any[]): void {
98
98
  this.warn(message, ...optionalParams);
@@ -109,12 +109,12 @@ export class Dynamo_Log {
109
109
  static highlighted(message: string, ...optionalParams: any[]): void {
110
110
  if (0 < optionalParams.length) {
111
111
  console.log(
112
- `${Dynamo_LogStyle.white}${Dynamo_LogStyle.bright}${message}`,
113
- ...optionalParams, Dynamo_LogStyle.reset
112
+ `${DynamoFM_LogStyle.white}${DynamoFM_LogStyle.bright}${message}`,
113
+ ...optionalParams, DynamoFM_LogStyle.reset
114
114
  );
115
115
  } else {
116
116
  console.log(
117
- `${Dynamo_LogStyle.white}${Dynamo_LogStyle.bright}${message}${Dynamo_LogStyle.reset}`
117
+ `${DynamoFM_LogStyle.white}${DynamoFM_LogStyle.bright}${message}${DynamoFM_LogStyle.reset}`
118
118
  );
119
119
  }
120
120
  }
@@ -123,7 +123,7 @@ export class Dynamo_Log {
123
123
  this.log(message, ...optionalParams);
124
124
  this.log('\n' + this.h_solid + '\n\n');
125
125
  }
126
- static test = Dynamo_Log.testLog;
126
+ static test = DynamoFM_Log.testLog;
127
127
 
128
128
  static highlightedLog(message: string, ...optionalParams: any[]): void {
129
129
  this.log('\n\n' + this.h_before);
@@ -134,7 +134,7 @@ export class Dynamo_Log {
134
134
  this.log(' ' + this.h_after);
135
135
  this.log(this.h_after + '\n\n');
136
136
  }
137
- static H_log = Dynamo_Log.highlightedLog;
137
+ static H_log = DynamoFM_Log.highlightedLog;
138
138
 
139
139
  static testInfo(message: string, ...optionalParams: any[]): void {
140
140
  this.info('\n\n' + this.h_solid + '\n');
@@ -151,7 +151,7 @@ export class Dynamo_Log {
151
151
  this.info(' ' + this.h_after);
152
152
  this.info(this.h_after + '\n\n');
153
153
  }
154
- static H_info = Dynamo_Log.highlightedInfo;
154
+ static H_info = DynamoFM_Log.highlightedInfo;
155
155
 
156
156
  static testError(message: string, ...optionalParams: any[]): void {
157
157
  this.error('\n\n' + this.h_solid + '\n');
@@ -168,7 +168,7 @@ export class Dynamo_Log {
168
168
  this.error(' ' + this.h_after);
169
169
  this.error(this.h_after + '\n\n');
170
170
  }
171
- static H_error = Dynamo_Log.highlightedError;
171
+ static H_error = DynamoFM_Log.highlightedError;
172
172
 
173
173
  static testWarn(message: string, ...optionalParams: any[]): void {
174
174
  this.warn('\n\n' + this.h_solid + '\n');
@@ -185,7 +185,7 @@ export class Dynamo_Log {
185
185
  this.warn(' ' + this.h_after);
186
186
  this.warn(this.h_after + '\n\n');
187
187
  }
188
- static H_warn = Dynamo_Log.highlightedWarn;
188
+ static H_warn = DynamoFM_Log.highlightedWarn;
189
189
 
190
190
  static testSuccess(message: string, ...optionalParams: any[]): void {
191
191
  this.success('\n\n' + this.h_solid + '\n');
@@ -202,7 +202,7 @@ export class Dynamo_Log {
202
202
  this.success(' ' + this.h_after);
203
203
  this.success(this.h_after + '\n\n');
204
204
  }
205
- static H_success = Dynamo_Log.highlightedSuccess;
205
+ static H_success = DynamoFM_Log.highlightedSuccess;
206
206
 
207
207
  // eslint-disable-next-line max-len
208
208
  private static h_solid: string = '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||';
@@ -212,8 +212,8 @@ export class Dynamo_Log {
212
212
  private static h_after: string = '/////////////////////////////////////////////////////////////////////////////';
213
213
 
214
214
  static removeLogStyles(message: string): string {
215
- for (const styleKey of Object(Dynamo_LogStyle)) {
216
- message = message.replace(new RegExp(Dynamo_LogStyle[styleKey], 'g'), '');
215
+ for (const styleKey of Object(DynamoFM_LogStyle)) {
216
+ message = message.replace(new RegExp(DynamoFM_LogStyle[styleKey], 'g'), '');
217
217
  }
218
218
 
219
219
  return message;
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- export class Dynamo_Math {
10
+ export class DynamoFM_Math {
11
11
 
12
12
  static between(value: number, minExclusive: number, maxExclusive: number): boolean {
13
13
  return minExclusive < value && value < maxExclusive;
@@ -1,9 +1,13 @@
1
1
 
2
- import { Dynamo_RandomWeight } from '../_models/interfaces/random-weight.interface';
2
+ import { DynamoFM_RandomWeight } from '../_models/interfaces/random-weight.interface';
3
3
 
4
- export type D_Random = Dynamo_Random;
5
- export class Dynamo_Random {
6
- static getRandomWeightedInt(min: number, max: number, weights: Dynamo_RandomWeight<number>[]): number {
4
+ export type DFM_Random = DynamoFM_Random;
5
+ export class DynamoFM_Random {
6
+ static getRandomWeightedInt(
7
+ min: number,
8
+ max: number,
9
+ weights: DynamoFM_RandomWeight<number>[]
10
+ ): number {
7
11
  weights = weights.sort((a, b): number => b.chance - a.chance);
8
12
  let weightChanceSum = 0;
9
13
 
@@ -44,7 +48,7 @@ export class Dynamo_Random {
44
48
  }
45
49
  }
46
50
 
47
- static getRandomWeighted<T>(weights: Dynamo_RandomWeight<T>[]): T {
51
+ static getRandomWeighted<T>(weights: DynamoFM_RandomWeight<T>[]): T {
48
52
  if (!weights?.length) {
49
53
  return null;
50
54
  }
@@ -1,19 +1,19 @@
1
1
 
2
- export const Dynamo_passwordRegex: RegExp = new RegExp(
2
+ export const DynamoFM_passwordRegex: RegExp = new RegExp(
3
3
  '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*]){6,}'
4
4
  );
5
5
 
6
- /* export const Dynamo_ALLPasswordRegexUserMessages: string =
6
+ /* export const DynamoFM_ALLPasswordRegexUserMessages: string =
7
7
  'Password must include at least one lowercase letter. ' +
8
8
  'Password must include at least one uppercase letter.' +
9
9
  'Password must include at least one digit.' +
10
10
  'Password must include at least one of the !@#$%^&* characters.' +
11
11
  'Password must be at least 6 characters long.'; */
12
12
 
13
- export function Dynamo_getPasswordErrors(password: string): string[] {
13
+ export function DynamoFM_getPasswordErrors(password: string): string[] {
14
14
  const errors: string[] = [];
15
15
 
16
- passwordErrorsOneByOne.forEach((error) => {
16
+ DynamoFM_passwordErrorsOneByOne.forEach((error): void => {
17
17
  if (!error.regex.test(password)) {
18
18
  errors.push(error.message);
19
19
  }
@@ -22,7 +22,7 @@ export function Dynamo_getPasswordErrors(password: string): string[] {
22
22
  return errors;
23
23
  }
24
24
 
25
- const passwordErrorsOneByOne = [
25
+ const DynamoFM_passwordErrorsOneByOne = [
26
26
  {
27
27
  regex: new RegExp('^(?=.*[a-z])'),
28
28
  code: 'pwErrorLowercase',
@@ -1,5 +1,5 @@
1
1
 
2
- export const Dynamo_usernameRegex: RegExp = new RegExp('^[a-zA-Z0-9-_#$%&^|*]{6,}$');
2
+ export const DynamoFM_usernameRegex: RegExp = new RegExp('^[a-zA-Z0-9-_#$%&^|*]{6,}$');
3
3
 
4
4
  /* export const FDP_usernameRegexUserMessage: string =
5
5
  'Username must be at least 6 characters long and can only contain letters, ' +
@@ -17,7 +17,7 @@ export const Dynamo_usernameRegex: RegExp = new RegExp('^[a-zA-Z0-9-_#$%&^|*]{6,
17
17
  return errors;
18
18
  } */
19
19
 
20
- const usernameErrorsOneByOne = [
20
+ const DynamoFM_usernameErrorsOneByOne = [
21
21
  {
22
22
  regex: new RegExp('^(?=.{6,})'),
23
23
  code: 'usernameErrorLength',
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export const Dynamo_emailRegex: RegExp = new RegExp(
3
+ export const DynamoFM_emailRegex: RegExp = new RegExp(
4
4
  '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$'
5
5
  );
6
6
 
@@ -4,55 +4,55 @@ import * as ISOs from '../_constants/location/country-codes-ISO-3166.json';
4
4
  import * as PhoneCodes from '../_constants/location/country-phone-codes.json';
5
5
  import * as Divisions from '../_constants/location/country-divisions-ISO-3166-all-list.json';
6
6
 
7
- import { Dynamo_Region } from '../_enums/region.enum';
8
- import { Dynamo_Error } from '../_models';
7
+ import { DynamoFM_Region } from '../_enums/region.enum';
8
+ import { DynamoFM_Error } from '../_models';
9
9
  import {
10
- Dynamo_CountryPhoneCode
10
+ DynamoFM_CountryPhoneCode
11
11
  } from '../_models/interfaces/location/country-phone-code.interface';
12
- import { Dynamo_CountryISO } from '../_models/interfaces/location/country-iso.interface';
13
- import { Dynamo_CountryDivision } from '../_models/interfaces/location/country-division.interface';
12
+ import { DynamoFM_CountryISO } from '../_models/interfaces/location/country-iso.interface';
13
+ import { DynamoFM_CountryDivision } from '../_models/interfaces/location/country-division.interface';
14
14
 
15
- import { Dynamo_JSONListify } from './utilities.util';
15
+ import { DynamoFM_JSONListify } from './utilities.util';
16
16
 
17
- export type D_Regions = Dynamo_Regions;
18
- export class Dynamo_Regions {
19
- /* static divisions: DivisionCollection = Dynamo_Regions.getSubdivisionCollection(); */
20
- static divisions: Dynamo_CountryDivision[] = Dynamo_Regions.getAllDivisions();
21
- static phoneCodes: Dynamo_CountryPhoneCode[] = Dynamo_Regions.getAllPhoneCodes();
22
- static ISOs: Dynamo_CountryISO[] = Dynamo_Regions.getAllCountryISO();
17
+ export type DFM_Regions = DynamoFM_Regions;
18
+ export class DynamoFM_Regions {
19
+ /* static divisions: DivisionCollection = DynamoFM_Regions.getSubdivisionCollection(); */
20
+ static divisions: DynamoFM_CountryDivision[] = DynamoFM_Regions.getAllDivisions();
21
+ static phoneCodes: DynamoFM_CountryPhoneCode[] = DynamoFM_Regions.getAllPhoneCodes();
22
+ static ISOs: DynamoFM_CountryISO[] = DynamoFM_Regions.getAllCountryISO();
23
23
 
24
- private static getAllDivisions(): Dynamo_CountryDivision[] {
25
- return Dynamo_JSONListify(Divisions);
24
+ private static getAllDivisions(): DynamoFM_CountryDivision[] {
25
+ return DynamoFM_JSONListify(Divisions);
26
26
  }
27
- private static getAllPhoneCodes(): Dynamo_CountryPhoneCode[] {
28
- return Dynamo_JSONListify(PhoneCodes);
27
+ private static getAllPhoneCodes(): DynamoFM_CountryPhoneCode[] {
28
+ return DynamoFM_JSONListify(PhoneCodes);
29
29
  }
30
30
 
31
31
  /* private static getSubdivisionCollection(): DivisionCollection {
32
32
  return Divisions as DivisionCollection;
33
33
  } */
34
- private static getAllCountryISO(): Dynamo_CountryISO[] {
35
- const result: Dynamo_CountryISO[] = Dynamo_JSONListify(ISOs);
34
+ private static getAllCountryISO(): DynamoFM_CountryISO[] {
35
+ const result: DynamoFM_CountryISO[] = DynamoFM_JSONListify(ISOs);
36
36
 
37
- result.forEach((iso: Dynamo_CountryISO): void => {
37
+ result.forEach((iso: DynamoFM_CountryISO): void => {
38
38
  iso.phoneCode = this.phoneCodes.find(
39
- (pc: Dynamo_CountryPhoneCode): boolean => pc.iso === iso.iso2
39
+ (pc: DynamoFM_CountryPhoneCode): boolean => pc.iso === iso.iso2
40
40
  )?.code;
41
41
  iso.divisions = this.divisions.filter(
42
- (d: Dynamo_CountryDivision): boolean => d.iso === iso.iso2
42
+ (d: DynamoFM_CountryDivision): boolean => d.iso === iso.iso2
43
43
  );
44
44
  });
45
45
 
46
46
  return result;
47
47
  }
48
48
 
49
- static isoToCountryIso(iso2: string): Dynamo_CountryISO {
50
- const country: Dynamo_CountryISO = this.ISOs.find(
51
- (iso: Dynamo_CountryISO): boolean => iso.iso2 == iso2
49
+ static isoToCountryIso(iso2: string): DynamoFM_CountryISO {
50
+ const country: DynamoFM_CountryISO = this.ISOs.find(
51
+ (iso: DynamoFM_CountryISO): boolean => iso.iso2 == iso2
52
52
  );
53
53
 
54
54
  if (!country) {
55
- throw new Dynamo_Error({
55
+ throw new DynamoFM_Error({
56
56
  message: `Cannot find ISO-3166 code for this: ${iso2}`
57
57
  });
58
58
  } else {
@@ -60,13 +60,13 @@ export class Dynamo_Regions {
60
60
  }
61
61
  }
62
62
 
63
- static isoToRegion(iso2: string): Dynamo_Region {
64
- const region: Dynamo_Region = this.ISOs.find(
65
- (iso: Dynamo_CountryISO): boolean => iso.iso2 == iso2
63
+ static isoToRegion(iso2: string): DynamoFM_Region {
64
+ const region: DynamoFM_Region = this.ISOs.find(
65
+ (iso: DynamoFM_CountryISO): boolean => iso.iso2 == iso2
66
66
  )?.region;
67
67
 
68
68
  if (!region) {
69
- throw new Dynamo_Error({
69
+ throw new DynamoFM_Error({
70
70
  message: `Cannot find ISO-3166 code for this: ${iso2}`
71
71
  });
72
72
  } else {
@@ -74,13 +74,13 @@ export class Dynamo_Regions {
74
74
  }
75
75
  }
76
76
 
77
- static isoToPhoneCode(iso2: string): Dynamo_CountryPhoneCode {
78
- const phoneCode: Dynamo_CountryPhoneCode = this.phoneCodes.find(
79
- (code: Dynamo_CountryPhoneCode): boolean => code.iso == iso2
77
+ static isoToPhoneCode(iso2: string): DynamoFM_CountryPhoneCode {
78
+ const phoneCode: DynamoFM_CountryPhoneCode = this.phoneCodes.find(
79
+ (code: DynamoFM_CountryPhoneCode): boolean => code.iso == iso2
80
80
  );
81
81
 
82
82
  if (!phoneCode) {
83
- throw new Dynamo_Error({
83
+ throw new DynamoFM_Error({
84
84
  message: `Cannot find ISO-3166 code for this: ${iso2}`
85
85
  });
86
86
  } else {
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- export type D_RoundList = Dynamo_RoundList;
4
- export class Dynamo_RoundList {
3
+ export type DFM_RoundList = DynamoFM_RoundList;
4
+ export class DynamoFM_RoundList {
5
5
  static getOutboundedIndex(listLength: number, outboundIndex: number): number {
6
6
  if (!(0 < listLength)) {
7
7
  throw new Error('roundListPlusIndex failed. list is empty!');
@@ -1,8 +1,8 @@
1
1
 
2
- import { Dynamo_clone } from './utilities.util';
2
+ import { DynamoFM_clone } from './utilities.util';
3
3
 
4
- export type D_Shared = Dynamo_Shared;
5
- export class Dynamo_Shared {
4
+ export type DFM_Shared = DynamoFM_Shared;
5
+ export class DynamoFM_Shared {
6
6
 
7
7
  /**
8
8
  * returns remapped object list by path list
@@ -55,7 +55,7 @@ export class Dynamo_Shared {
55
55
  * @returns data from object by path
56
56
  */
57
57
  static getNestedData(parentObj: object, nestedDataKeys: string[]): any {
58
- let newData = Dynamo_clone(parentObj); // {...parentObj};
58
+ let newData = DynamoFM_clone(parentObj); // {...parentObj};
59
59
 
60
60
  nestedDataKeys.forEach((dk: string): void => {
61
61
  if (newData) {
@@ -74,7 +74,7 @@ export class Dynamo_Shared {
74
74
  * @returns modified data
75
75
  */
76
76
  static nestData(parentObj: object, nestKeys: string[], dataToSet: any): object {
77
- const newData = Dynamo_clone(parentObj); // {...parentObj};
77
+ const newData = DynamoFM_clone(parentObj); // {...parentObj};
78
78
 
79
79
  if (nestKeys.length > 1) {
80
80
  const keys = [...nestKeys];
@@ -96,7 +96,7 @@ export class Dynamo_Shared {
96
96
  * @returns modified data
97
97
  */
98
98
  static addToNestedData(parentObj: object, nestKeys: string[], dataToAdd: any): object {
99
- const newData = Dynamo_clone(parentObj); // {...parentObj};
99
+ const newData = DynamoFM_clone(parentObj); // {...parentObj};
100
100
 
101
101
  if (nestKeys.length > 1) {
102
102
  const keys = [...nestKeys];
@@ -118,7 +118,7 @@ export class Dynamo_Shared {
118
118
  * @returns modified data
119
119
  */
120
120
  static pushToNestedData(parentObj: object, nestKeys: string[], dataToPush: any): object {
121
- const newData = Dynamo_clone(parentObj); // {...parentObj};
121
+ const newData = DynamoFM_clone(parentObj); // {...parentObj};
122
122
 
123
123
  if (nestKeys.length > 1) {
124
124
  const keys = [...nestKeys];
@@ -150,7 +150,7 @@ export class Dynamo_Shared {
150
150
  nestIndexes: number[],
151
151
  dataToSet: any
152
152
  ): T {
153
- const newData = Dynamo_clone(parentObj); // parentObj; // {...parentObj};
153
+ const newData = DynamoFM_clone(parentObj); // parentObj; // {...parentObj};
154
154
 
155
155
  if (nestIndexes.length > 1) {
156
156
  const indexes = [...nestIndexes];
@@ -1,12 +1,12 @@
1
1
 
2
2
  import { day, hour, minute, month, second, week, year } from '../_constants/times.const';
3
- import { Dynamo_Month } from '../_enums';
4
- import { Dynamo_DayOfWeek } from '../_enums/day-of-week.enum';
5
- import { Dynamo_RelativeDate } from '../_enums/relative-date.enum';
3
+ import { DynamoFM_Month } from '../_enums';
4
+ import { DynamoFM_DayOfWeek } from '../_enums/day-of-week.enum';
5
+ import { DynamoFM_RelativeDate } from '../_enums/relative-date.enum';
6
6
 
7
- export type D_Time = Dynamo_Time;
8
- export type D_T = Dynamo_Time;
9
- export class Dynamo_Time {
7
+ export type DFM_Time = DynamoFM_Time;
8
+ export type DFM_T = DynamoFM_Time;
9
+ export class DynamoFM_Time {
10
10
 
11
11
  static readonly second = second;
12
12
  static readonly minute = minute;
@@ -61,24 +61,24 @@ export class Dynamo_Time {
61
61
  * @param relativeDate
62
62
  * @returns
63
63
  */
64
- static getDateByRelativeDate(relativeDate: Dynamo_RelativeDate): Date {
64
+ static getDateByRelativeDate(relativeDate: DynamoFM_RelativeDate): Date {
65
65
  switch (relativeDate) {
66
- case Dynamo_RelativeDate.lastDay:
66
+ case DynamoFM_RelativeDate.lastDay:
67
67
  return this.oneDayAgo();
68
68
 
69
- case Dynamo_RelativeDate.lastWeek:
69
+ case DynamoFM_RelativeDate.lastWeek:
70
70
  return this.oneWeekAgo();
71
71
 
72
- case Dynamo_RelativeDate.lastMonth:
72
+ case DynamoFM_RelativeDate.lastMonth:
73
73
  return this.oneMonthAgo();
74
74
 
75
- case Dynamo_RelativeDate.lastYear:
75
+ case DynamoFM_RelativeDate.lastYear:
76
76
  return this.oneYearAgo();
77
77
 
78
- case Dynamo_RelativeDate.last10Years:
78
+ case DynamoFM_RelativeDate.last10Years:
79
79
  return this.tenYearsAgo();
80
80
 
81
- case Dynamo_RelativeDate.allTime:
81
+ case DynamoFM_RelativeDate.allTime:
82
82
  return new Date(0);
83
83
 
84
84
  default:
@@ -135,45 +135,45 @@ export class Dynamo_Time {
135
135
  }
136
136
 
137
137
  /**
138
- * returns the Dynamo_DayOfWeek type of the current day
138
+ * returns the DynamoFM_DayOfWeek type of the current day
139
139
  * @returns
140
140
  */
141
- static getTodayOfWeek(): Dynamo_DayOfWeek {
142
- return Dynamo_DayOfWeek[
141
+ static getTodayOfWeek(): DynamoFM_DayOfWeek {
142
+ return DynamoFM_DayOfWeek[
143
143
  new Date().toLocaleString('en-us', { weekday: 'long' }).toLocaleLowerCase()
144
144
  ];
145
145
  }
146
146
 
147
147
  /**
148
- * returns the days of the week from today to the end of the week in Dynamo_DayOfWeek format
148
+ * returns the days of the week from today to the end of the week in DynamoFM_DayOfWeek format
149
149
  * @returns
150
150
  */
151
- static getDaysOfWeekFromToday(): Dynamo_DayOfWeek[] {
152
- const today: Dynamo_DayOfWeek = this.getTodayOfWeek();
153
- const daysOfWeek: Dynamo_DayOfWeek[] = Object.values(Dynamo_DayOfWeek);
151
+ static getDaysOfWeekFromToday(): DynamoFM_DayOfWeek[] {
152
+ const today: DynamoFM_DayOfWeek = this.getTodayOfWeek();
153
+ const daysOfWeek: DynamoFM_DayOfWeek[] = Object.values(DynamoFM_DayOfWeek);
154
154
  const todayIndex: number = daysOfWeek.indexOf(today);
155
155
 
156
156
  return daysOfWeek.slice(todayIndex).concat(daysOfWeek.slice(0, todayIndex));
157
157
  }
158
158
 
159
159
  /**
160
- * returns the days of the week to today to the end of the week in Dynamo_DayOfWeek format
160
+ * returns the days of the week to today to the end of the week in DynamoFM_DayOfWeek format
161
161
  * @returns
162
162
  */
163
- static getDaysOfWeekToToday(): Dynamo_DayOfWeek[] {
164
- const today: Dynamo_DayOfWeek = this.getTodayOfWeek();
165
- const daysOfWeek: Dynamo_DayOfWeek[] = Object.values(Dynamo_DayOfWeek);
163
+ static getDaysOfWeekToToday(): DynamoFM_DayOfWeek[] {
164
+ const today: DynamoFM_DayOfWeek = this.getTodayOfWeek();
165
+ const daysOfWeek: DynamoFM_DayOfWeek[] = Object.values(DynamoFM_DayOfWeek);
166
166
  const todayIndex: number = daysOfWeek.indexOf(today);
167
167
 
168
168
  return daysOfWeek.slice(0, todayIndex).reverse().concat(daysOfWeek.slice(todayIndex).reverse());
169
169
  }
170
170
 
171
171
  /**
172
- * returns the Dynamo_Month type of the current month
172
+ * returns the DynamoFM_Month type of the current month
173
173
  * @returns
174
174
  */
175
- static getCurrentMonth(): Dynamo_Month {
176
- return Dynamo_Month[
175
+ static getCurrentMonth(): DynamoFM_Month {
176
+ return DynamoFM_Month[
177
177
  new Date().toLocaleString('en-us', { month: 'long' }).toLocaleLowerCase()
178
178
  ];
179
179
  }
@@ -183,24 +183,24 @@ export class Dynamo_Time {
183
183
  * @param inYear this value is important for february if you want to know if it is a leap year
184
184
  * @returns
185
185
  */
186
- static getMonthLength(month: Dynamo_Month, inYear?: number): number {
186
+ static getMonthLength(month: DynamoFM_Month, inYear?: number): number {
187
187
  switch (month) {
188
- case Dynamo_Month.january:
189
- case Dynamo_Month.march:
190
- case Dynamo_Month.may:
191
- case Dynamo_Month.june:
192
- case Dynamo_Month.august:
193
- case Dynamo_Month.october:
188
+ case DynamoFM_Month.january:
189
+ case DynamoFM_Month.march:
190
+ case DynamoFM_Month.may:
191
+ case DynamoFM_Month.june:
192
+ case DynamoFM_Month.august:
193
+ case DynamoFM_Month.october:
194
194
  return 31;
195
195
 
196
- case Dynamo_Month.april:
197
- case Dynamo_Month.july:
198
- case Dynamo_Month.september:
199
- case Dynamo_Month.november:
200
- case Dynamo_Month.december:
196
+ case DynamoFM_Month.april:
197
+ case DynamoFM_Month.july:
198
+ case DynamoFM_Month.september:
199
+ case DynamoFM_Month.november:
200
+ case DynamoFM_Month.december:
201
201
  return 30;
202
202
 
203
- case Dynamo_Month.february:
203
+ case DynamoFM_Month.february:
204
204
  return this.isLeapYear(inYear ?? new Date().getFullYear()) ? 29 : 28;
205
205
  }
206
206
  }
@@ -1,8 +1,8 @@
1
1
 
2
- export type D_Trigonometry = Dynamo_Trigonometry;
3
- export type D_Trig = Dynamo_Trigonometry;
4
- export type D_Δ = Dynamo_Trigonometry;
5
- export class Dynamo_Trigonometry {
2
+ export type DFM_Trigonometry = DynamoFM_Trigonometry;
3
+ export type DFM_Trig = DynamoFM_Trigonometry;
4
+ export type DFM_Δ = DynamoFM_Trigonometry;
5
+ export class DynamoFM_Trigonometry {
6
6
 
7
7
  /**
8
8
  * Befogó
@@ -1,7 +1,7 @@
1
1
 
2
- export type Dynamo_TCF = Dynamo_TypeCloningFacility;
3
- export type D_TypeCloningFacility = Dynamo_TypeCloningFacility;
4
- export type D_TCF = Dynamo_TCF;
2
+ export type DynamoFM_TCF = DynamoFM_TypeCloningFacility;
3
+ export type DFM_TypeCloningFacility = DynamoFM_TypeCloningFacility;
4
+ export type DFM_TCF = DynamoFM_TCF;
5
5
 
6
6
  /**
7
7
  *
@@ -15,7 +15,7 @@ export type D_TCF = Dynamo_TCF;
15
15
  * WARNING: this function will clone all connected objects!
16
16
  *
17
17
  * */
18
- export class Dynamo_TypeCloningFacility {
18
+ export class DynamoFM_TypeCloningFacility {
19
19
 
20
20
  static clone<T>(
21
21
  object: T,