@fincity/kirun-js 2.8.5 → 2.9.0

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 (46) hide show
  1. package/__tests__/engine/function/system/date/FromDateStringTest.ts +9 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/module.js +1 -1
  5. package/dist/module.js.map +1 -1
  6. package/dist/types.d.ts +3 -0
  7. package/dist/types.d.ts.map +1 -1
  8. package/package.json +8 -8
  9. package/src/engine/function/system/GenerateEvent.ts +23 -21
  10. package/src/engine/function/system/If.ts +2 -3
  11. package/src/engine/function/system/Print.ts +2 -3
  12. package/src/engine/function/system/Wait.ts +2 -3
  13. package/src/engine/function/system/array/ArrayFunctionRepository.ts +7 -9
  14. package/src/engine/function/system/array/Join.ts +29 -28
  15. package/src/engine/function/system/context/Create.ts +20 -22
  16. package/src/engine/function/system/context/Get.ts +19 -19
  17. package/src/engine/function/system/context/SetFunction.ts +17 -14
  18. package/src/engine/function/system/date/DateFunctionRepository.ts +6 -8
  19. package/src/engine/function/system/date/EpochToTimestamp.ts +1 -1
  20. package/src/engine/function/system/date/IsValidISODate.ts +4 -6
  21. package/src/engine/function/system/loop/Break.ts +7 -7
  22. package/src/engine/function/system/loop/CountLoop.ts +13 -14
  23. package/src/engine/function/system/loop/ForEachLoop.ts +18 -19
  24. package/src/engine/function/system/loop/RangeLoop.ts +68 -69
  25. package/src/engine/function/system/math/Add.ts +11 -9
  26. package/src/engine/function/system/math/GenericMathFunction.ts +13 -13
  27. package/src/engine/function/system/math/Hypotenuse.ts +2 -2
  28. package/src/engine/function/system/math/MathFunctionRepository.ts +107 -90
  29. package/src/engine/function/system/math/Maximum.ts +12 -11
  30. package/src/engine/function/system/math/Minimum.ts +12 -11
  31. package/src/engine/function/system/math/Random.ts +2 -2
  32. package/src/engine/function/system/object/AbstractObjectFunction.ts +1 -2
  33. package/src/engine/function/system/object/ObjectConvert.ts +26 -26
  34. package/src/engine/function/system/object/ObjectDeleteKey.ts +1 -2
  35. package/src/engine/function/system/object/ObjectFunctionRepository.ts +18 -14
  36. package/src/engine/function/system/string/Concatenate.ts +8 -7
  37. package/src/engine/function/system/string/Matches.ts +2 -2
  38. package/src/engine/function/system/string/Reverse.ts +2 -2
  39. package/src/engine/function/system/string/Split.ts +16 -15
  40. package/src/engine/function/system/string/StringFunctionRepository.ts +6 -8
  41. package/src/engine/function/system/string/ToString.ts +9 -8
  42. package/src/engine/json/schema/Schema.ts +17 -0
  43. package/src/engine/repository/KIRunFunctionRepository.ts +47 -39
  44. package/src/engine/repository/KIRunSchemaRepository.ts +75 -70
  45. package/src/engine/util/duplicate.ts +1 -1
  46. package/tsconfig.json +4 -2
@@ -1,3 +1,4 @@
1
+ import { getDateTime } from '../../../../../src/engine/function/system/date/common';
1
2
  import { FromDateString } from '../../../../../src/engine/function/system/date/FromDateString';
2
3
  import { KIRunFunctionRepository } from '../../../../../src/engine/repository/KIRunFunctionRepository';
3
4
  import { KIRunSchemaRepository } from '../../../../../src/engine/repository/KIRunSchemaRepository';
@@ -67,6 +68,13 @@ describe('FromDateString', () => {
67
68
  .getResult()
68
69
  .get(FromDateString.EVENT_RESULT_NAME);
69
70
 
70
- expect(result).toEqual('2024-11-03T00:00:12.123+05:30');
71
+ let d: Date = new Date();
72
+ d.setDate(3);
73
+ d.setHours(0);
74
+ d.setMinutes(0);
75
+ d.setSeconds(12);
76
+ d.setMilliseconds(123);
77
+
78
+ expect(new Date(result).getTime()).toEqual(d.getTime());
71
79
  });
72
80
  });