@futdevpro/fsm-dynamo 1.9.24 → 1.9.26

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 (39) hide show
  1. package/build/_collections/utils/math/box-bounds.util.d.ts +21 -11
  2. package/build/_collections/utils/math/box-bounds.util.d.ts.map +1 -1
  3. package/build/_collections/utils/math/box-bounds.util.js +14 -4
  4. package/build/_collections/utils/math/box-bounds.util.js.map +1 -1
  5. package/build/_collections/utils/math/vector2.util.d.ts +64 -38
  6. package/build/_collections/utils/math/vector2.util.d.ts.map +1 -1
  7. package/build/_collections/utils/math/vector2.util.js +97 -52
  8. package/build/_collections/utils/math/vector2.util.js.map +1 -1
  9. package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
  10. package/build/_models/control-models/data-property-params.control-model.js +4 -7
  11. package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
  12. package/build/_models/control-models/error.control-model.d.ts.map +1 -1
  13. package/build/_models/control-models/error.control-model.js +1 -14
  14. package/build/_models/control-models/error.control-model.js.map +1 -1
  15. package/build/_models/control-models/poll.control-model.d.ts.map +1 -1
  16. package/build/_models/control-models/poll.control-model.js +1 -1
  17. package/build/_models/control-models/poll.control-model.js.map +1 -1
  18. package/build/_models/interfaces/vector2.interface.d.ts +5 -0
  19. package/build/_models/interfaces/vector2.interface.d.ts.map +1 -0
  20. package/build/_models/interfaces/vector2.interface.js +3 -0
  21. package/build/_models/interfaces/vector2.interface.js.map +1 -0
  22. package/build/_modules/pipe/_collections/utils/multi-pipe-pipe.util.d.ts.map +1 -1
  23. package/build/_modules/pipe/_collections/utils/multi-pipe-pipe.util.js +2 -4
  24. package/build/_modules/pipe/_collections/utils/multi-pipe-pipe.util.js.map +1 -1
  25. package/build/index.d.ts +1 -0
  26. package/build/index.d.ts.map +1 -1
  27. package/build/index.js +1 -0
  28. package/build/index.js.map +1 -1
  29. package/futdevpro-fsm-dynamo-01.09.26.tgz +0 -0
  30. package/package.json +6 -16
  31. package/src/_collections/utils/math/box-bounds.util.ts +28 -20
  32. package/src/_collections/utils/math/vector2.util.ts +148 -80
  33. package/src/_models/control-models/data-property-params.control-model.ts +6 -9
  34. package/src/_models/control-models/error.control-model.ts +3 -16
  35. package/src/_models/control-models/poll.control-model.ts +2 -1
  36. package/src/_models/interfaces/vector2.interface.ts +10 -0
  37. package/src/_modules/pipe/_collections/utils/multi-pipe-pipe.util.ts +2 -5
  38. package/src/index.ts +1 -0
  39. package/futdevpro-fsm-dynamo-01.09.24.tgz +0 -0
@@ -51,28 +51,25 @@ export class DyFM_DataProperty_Params extends DyFM_DataProperty_Settings {
51
51
 
52
52
  if (set) {
53
53
  if (!set.key || !set.type) {
54
- console.log(
55
- `DYNAMO ERROR: ` +
54
+ console.error(
55
+ `DYNAMO ERROR: `,
56
56
  `\n key or type is missing from DynamoBEDataPropertyParams`,
57
- '\n\n', new Error()
58
57
  );
59
58
  }
60
59
 
61
60
  if (set.isDependencyHook && !set.dependencyDataName) {
62
- console.log(
63
- `DYNAMO ERROR: ` +
61
+ console.error(
62
+ `DYNAMO ERROR: `,
64
63
  `\n dependencyName missing for dependencyHook from ` +
65
64
  `DynamoBEDataPropertyParams (${set.key})`,
66
- '\n\n', new Error()
67
65
  );
68
66
  }
69
67
 
70
68
  Object.assign(this, set);
71
69
  } else {
72
- console.log(
73
- 'DYNAMO ERROR: ' +
70
+ console.error(
71
+ 'DYNAMO ERROR: ',
74
72
  '\nMISSING DynamoBEDataPropertyParams constructor input',
75
- '\n\n', new Error()
76
73
  );
77
74
  }
78
75
  }
@@ -148,8 +148,8 @@ export class DyFM_Error extends DyFM_Metadata {
148
148
 
149
149
  if ((set as DyFM_AnyError).stack) {
150
150
  this.stack = (set as DyFM_AnyError).stack;
151
- } else if ((set.error as DyFM_AnyError).stack) {
152
- this.stack = (set.error as DyFM_AnyError).stack;
151
+ } else if (set.error.stack) {
152
+ this.stack = set.error.stack;
153
153
  } else {
154
154
  this.stack = new Error().stack;
155
155
  }
@@ -315,19 +315,6 @@ export class DyFM_Error extends DyFM_Metadata {
315
315
  }
316
316
 
317
317
  getErrorSimplified(): DyFM_Error_Settings {
318
- /* const error: DyFM_Error = { ...this };
319
-
320
- delete error.errors;
321
-
322
- if ((error.error as DyFM_Error)?.error) {
323
- delete (error.error as DyFM_Error).error;
324
- }
325
-
326
- if ((error.error as DyFM_Error)?.errors) {
327
- delete (error.error as DyFM_Error).errors;
328
- }
329
-
330
- return error; */
331
318
  return {
332
319
  errorCode: this._errorCode,
333
320
  message: this._message,
@@ -372,7 +359,7 @@ export class DyFM_Error extends DyFM_Metadata {
372
359
  '\n ErrorCode:', this._errorCode,
373
360
  '\n Message:', this._message.replaceAll('\n', '\n '),
374
361
  '\n UserMessage:', this.__userMessage.replaceAll('\n', '\n '),
375
- '\n Stack:', this.stack.replaceAll('\n', '\n ')
362
+ '\n\n Stack:', this.stack.replaceAll('\n', '\n ')
376
363
  );
377
364
  }
378
365
  }
@@ -41,7 +41,8 @@ export class DyFM_Poll<T> {
41
41
  if (set.pollPeriod === 0) {
42
42
  console.error(
43
43
  'DYNAMO ERROR: creating polls with 0ms period is not supported! ' +
44
- '(it will reset to 1000ms (1s))', new Error());
44
+ '(it will reset to 1000ms (1s))',
45
+ );
45
46
  }
46
47
  this.pollPeriod = set.pollPeriod ? set.pollPeriod : 1000;
47
48
 
@@ -0,0 +1,10 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+ export interface DyFM_Vector2 {
8
+ x: number;
9
+ y: number;
10
+ }
@@ -90,11 +90,9 @@ export function DyFM_multiPipe_pipeTransform(
90
90
  } else {
91
91
  if (!DyFM_multiPipeAngularPipes[pipeName]) {
92
92
  console.error(
93
- 'DYNAMO ERROR: ' +
93
+ 'DYNAMO ERROR: ',
94
94
  '\nMultiPipe: Angular pipe "' + pipeName + '" is not defined...',
95
95
  '\nPlease set the pipe in the DyFM_multiPipeAngularPipes object.',
96
- '\n\n',
97
- new Error()
98
96
  );
99
97
 
100
98
  return value;
@@ -144,8 +142,7 @@ function stackPipes(pipes: DyFM_MultiPipe_Setting[]): void {
144
142
  'DYNAMO ERROR: ' +
145
143
  '\nMultiPipe: SmartReplacePipe has no arguments...' +
146
144
  '\nSmartReplacePipe needs at least one argument: replaceTo.' +
147
- '\nMaybe you forgot to put the replacerObject in an array?' +
148
- '\n\n'
145
+ '\nMaybe you forgot to put the replacerObject in an array?'
149
146
  );
150
147
  }
151
148
 
package/src/index.ts CHANGED
@@ -55,4 +55,5 @@ export * from './_models/interfaces/error-defaults.interface';
55
55
  export * from './_models/interfaces/paged.interface';
56
56
  export * from './_models/interfaces/random-weight.interface';
57
57
  export * from './_models/interfaces/route-settings.interface';
58
+ export * from './_models/interfaces/vector2.interface';
58
59
 
Binary file