@futdevpro/fsm-dynamo 1.11.17 → 1.11.19

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 (47) hide show
  1. package/build/_collections/utils/log.util.d.ts +4 -4
  2. package/build/_collections/utils/log.util.d.ts.map +1 -1
  3. package/build/_collections/utils/log.util.js +17 -17
  4. package/build/_collections/utils/log.util.js.map +1 -1
  5. package/build/_collections/utils/log.util.spec.js +260 -212
  6. package/build/_collections/utils/log.util.spec.js.map +1 -1
  7. package/build/_collections/utils/regex/password-regex.util.js +2 -2
  8. package/build/_collections/utils/regex/password-regex.util.js.map +1 -1
  9. package/build/_collections/utils/stack.util.js +2 -3
  10. package/build/_collections/utils/stack.util.js.map +1 -1
  11. package/build/_collections/utils/utilities.util.js +17 -17
  12. package/build/_collections/utils/utilities.util.js.map +1 -1
  13. package/build/_models/control-models/data-property-params.control-model.d.ts +1 -1
  14. package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
  15. package/build/_models/control-models/data-property-params.control-model.js +5 -5
  16. package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
  17. package/build/_modules/crypto/_collections/crypto.util.js +1 -1
  18. package/build/_modules/crypto/_collections/crypto.util.js.map +1 -1
  19. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js +1 -2
  20. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.js.map +1 -1
  21. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js +1 -2
  22. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.js.map +1 -1
  23. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js +1 -2
  24. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.js.map +1 -1
  25. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js +1 -2
  26. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.js.map +1 -1
  27. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js +2 -2
  28. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.js.map +1 -1
  29. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js +1 -2
  30. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.js.map +1 -1
  31. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js +1 -2
  32. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.js.map +1 -1
  33. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js +1 -2
  34. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.js.map +1 -1
  35. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js +1 -2
  36. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.js.map +1 -1
  37. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js +1 -2
  38. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.js.map +1 -1
  39. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js +1 -2
  40. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.js.map +1 -1
  41. package/futdevpro-fsm-dynamo-01.11.19.tgz +0 -0
  42. package/package.json +3 -3
  43. package/src/_collections/utils/log.util.spec.ts +317 -266
  44. package/src/_collections/utils/log.util.ts +20 -20
  45. package/src/_models/control-models/data-property-params.control-model.ts +6 -6
  46. package/src/_modules/crypto/_collections/crypto.util.ts +1 -1
  47. package/futdevpro-fsm-dynamo-01.11.17.tgz +0 -0
@@ -19,13 +19,13 @@ export class DyFM_Log {
19
19
  static readonly boldStyle: string = DyFM_LogStyle.bold;
20
20
 
21
21
  // eslint-disable-next-line max-len
22
- private static readonly h_solid: string = '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||';
22
+ static readonly h_test: string = '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||';
23
23
  // eslint-disable-next-line max-len
24
- private static readonly h_before: string = '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\';
24
+ static readonly h_before: string = '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\';
25
25
  // eslint-disable-next-line max-len
26
- private static readonly h_after: string = '/////////////////////////////////////////////////////////////////////////////';
26
+ static readonly h_after: string = '/////////////////////////////////////////////////////////////////////////////';
27
27
  // eslint-disable-next-line max-len
28
- private static readonly h_small: string = '-----------------------------------------------------------------------------';
28
+ static readonly h_small: string = '-----------------------------------------------------------------------------';
29
29
 
30
30
 
31
31
  /**
@@ -213,9 +213,9 @@ export class DyFM_Log {
213
213
  */
214
214
  static testLog(message: string, ...optionalParams: any[]): void {
215
215
  this.log(
216
- '\n\n' + this.h_solid +
216
+ '\n\n' + this.h_test +
217
217
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
218
- '\n\n' + this.h_solid + '\n\n'
218
+ '\n\n' + this.h_test + '\n\n'
219
219
  );
220
220
  }
221
221
  static readonly test = DyFM_Log.testLog;
@@ -243,7 +243,7 @@ export class DyFM_Log {
243
243
  this.info(
244
244
  this.h_small +
245
245
  '\n ' + this.asfel(message, 2), ...this.asfesop(optionalParams, 2),
246
- '\n' + this.h_small
246
+ '\n' + this.infoStyle + this.h_small
247
247
  );
248
248
  }
249
249
  static readonly S_info = DyFM_Log.smallInfo;
@@ -255,9 +255,9 @@ export class DyFM_Log {
255
255
  */
256
256
  static testInfo(message: string, ...optionalParams: any[]): void {
257
257
  this.info(
258
- '\n\n' + this.h_solid +
258
+ '\n\n' + this.h_test +
259
259
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
260
- '\n\n' + this.infoStyle + this.h_solid + '\n\n'
260
+ '\n\n' + this.infoStyle + this.h_test + '\n\n'
261
261
  );
262
262
  }
263
263
  static readonly T_info = DyFM_Log.testInfo;
@@ -284,7 +284,7 @@ export class DyFM_Log {
284
284
  this.error(
285
285
  this.h_small +
286
286
  '\n ' + this.asfel(message, 2), ...this.asfesop(optionalParams, 2),
287
- '\n' + this.h_small
287
+ '\n' + this.errorStyle + this.h_small
288
288
  );
289
289
  }
290
290
  static readonly S_error = DyFM_Log.smallError;
@@ -296,9 +296,9 @@ export class DyFM_Log {
296
296
  */
297
297
  static testError(message: string, ...optionalParams: any[]): void {
298
298
  this.error(
299
- '\n\n' + this.h_solid +
299
+ '\n\n' + this.h_test +
300
300
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
301
- '\n\n' + this.errorStyle + this.h_solid + '\n\n'
301
+ '\n\n' + this.errorStyle + this.h_test + '\n\n'
302
302
  );
303
303
  }
304
304
  static readonly T_error = DyFM_Log.testError;
@@ -314,7 +314,7 @@ export class DyFM_Log {
314
314
  '\n ' + this.h_before +
315
315
  '\n ' + this.h_before +
316
316
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
317
- '\n\n ' + this.warnStyle + this.h_after +
317
+ '\n\n ' + this.errorStyle + this.h_after +
318
318
  '\n ' + this.h_after +
319
319
  '\n' + this.h_after + '\n\n'
320
320
  );
@@ -325,7 +325,7 @@ export class DyFM_Log {
325
325
  this.warn(
326
326
  this.h_small +
327
327
  '\n ' + this.asfel(message, 2), ...this.asfesop(optionalParams, 2),
328
- '\n' + this.h_small
328
+ '\n' + this.warnStyle + this.h_small
329
329
  );
330
330
  }
331
331
  static readonly S_warn = DyFM_Log.smallWarn;
@@ -337,9 +337,9 @@ export class DyFM_Log {
337
337
  */
338
338
  static testWarn(message: string, ...optionalParams: any[]): void {
339
339
  this.warn(
340
- '\n\n' + this.h_solid +
340
+ '\n\n' + this.h_test +
341
341
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
342
- '\n\n' + this.warnStyle + this.h_solid + '\n\n'
342
+ '\n\n' + this.warnStyle + this.h_test + '\n\n'
343
343
  );
344
344
  }
345
345
  static readonly T_warn = DyFM_Log.testWarn;
@@ -366,7 +366,7 @@ export class DyFM_Log {
366
366
  this.success(
367
367
  this.h_small +
368
368
  '\n ' + this.asfel(message, 2), ...this.asfesop(optionalParams, 2),
369
- '\n' + this.h_small
369
+ '\n' + this.successStyle + this.h_small
370
370
  );
371
371
  }
372
372
  static readonly S_success = DyFM_Log.smallSuccess;
@@ -378,9 +378,9 @@ export class DyFM_Log {
378
378
  */
379
379
  static testSuccess(message: string, ...optionalParams: any[]): void {
380
380
  this.success(
381
- '\n\n' + this.h_solid +
381
+ '\n\n' + this.h_test +
382
382
  '\n\n ' + this.asfel(message, 4), ...this.asfesop(optionalParams, 4),
383
- '\n\n' + this.successStyle + this.h_solid + '\n\n'
383
+ '\n\n' + this.successStyle + this.h_test + '\n\n'
384
384
  );
385
385
  }
386
386
  static readonly T_success = DyFM_Log.testSuccess;
@@ -410,7 +410,7 @@ export class DyFM_Log {
410
410
  */
411
411
  static removeLogStyles(message: string): string {
412
412
  for (const styleKey of DyFM_allLogStyles) {
413
- message = message.replace(new RegExp(styleKey, 'g'), '');
413
+ message = message.replaceAll(styleKey, '');
414
414
  }
415
415
 
416
416
  return message;
@@ -89,7 +89,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
89
89
 
90
90
  constructor(
91
91
  set: DyFM_DataProperty_Settings<T>,
92
- parentDataParams: DyFM_DataModel_Params<any>,
92
+ parentDataParams?: DyFM_DataModel_Params<any>,
93
93
  ) {
94
94
  super();
95
95
 
@@ -98,7 +98,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
98
98
  DyFM_Log.error(
99
99
  'DYNAMO ERROR: ',
100
100
  `\n type is missing from DynamoBEDataPropertyParams at "${set.key}" in ` +
101
- `"${parentDataParams.dataName}" model.` +
101
+ `"${parentDataParams?.dataName}" model.` +
102
102
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
103
103
  );
104
104
  }
@@ -108,14 +108,14 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
108
108
  DyFM_Log.warn(
109
109
  'DYNAMO WARNING: ',
110
110
  `\n required is not recommended to be false if dependency is set at "${set.key}" in ` +
111
- `"${parentDataParams.dataName}" model.` +
111
+ `"${parentDataParams?.dataName}" model.` +
112
112
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
113
113
  );
114
114
  } else if (set.required === undefined) {
115
115
  DyFM_Log.warn(
116
116
  'DYNAMO WARNING: ',
117
117
  `\n required is recommended to be set if dependency is set at "${set.key}" in ` +
118
- `"${parentDataParams.dataName}" model.` +
118
+ `"${parentDataParams?.dataName}" model.` +
119
119
  `\n It will be set to true by while you are not setting it. ` +
120
120
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
121
121
  );
@@ -128,7 +128,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
128
128
  DyFM_Log.warn(
129
129
  'DYNAMO WARNING: ',
130
130
  `\n vectorizedFrom and index are not recommended to be set at the same time at "${set.key}" in ` +
131
- `"${parentDataParams.dataName}" model.` +
131
+ `"${parentDataParams?.dataName}" model.` +
132
132
  `\n It will be set to false by while you are not setting it. ` +
133
133
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
134
134
  );
@@ -139,7 +139,7 @@ export class DyFM_DataProperty_Params<T> extends DyFM_DataProperty_Settings<T> {
139
139
  if (!set.vectorizeUseIndex) {
140
140
  throw new Error(
141
141
  `\n vectorizeUseIndex is required if vectorizedFrom is set at "${set.key}" in ` +
142
- `"${parentDataParams.dataName}" model.` +
142
+ `"${parentDataParams?.dataName}" model.` +
143
143
  `\n stackLocation: ${DyFM_getConstructionStackLocation(2)}`
144
144
  );
145
145
  }
@@ -62,7 +62,7 @@ export class DyFM_Crypto {
62
62
  throw new DyFM_Error({
63
63
  ...this.getDefaultErrorSettings('validateInput'),
64
64
  errorCode: 'DyFM-CRY-IDT',
65
- message: 'Invalid data to encrypt/decrypt'
65
+ message: `Invalid data to encrypt/decrypt (is "${data}")`
66
66
  });
67
67
  }
68
68
  }
Binary file