@fincity/kirun-js 1.4.12 → 1.4.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fincity/kirun-js",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "Javascript Runtime for Kinetic Instructions",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -15,11 +15,7 @@ const INDEX = 'index';
15
15
 
16
16
  const SIGNATURE = new FunctionSignature('CountLoop')
17
17
  .setNamespace(Namespaces.SYSTEM_LOOP)
18
- .setParameters(
19
- new Map([
20
- Parameter.ofEntry(COUNT, Schema.of(COUNT, SchemaType.INTEGER).setDefaultValue(1)),
21
- ]),
22
- )
18
+ .setParameters(new Map([Parameter.ofEntry(COUNT, Schema.of(COUNT, SchemaType.INTEGER))]))
23
19
  .setEvents(
24
20
  new Map([
25
21
  Event.eventMapEntry(
@@ -42,7 +38,7 @@ export class CountLoop extends AbstractFunction {
42
38
  return new FunctionOutput({
43
39
  next(): EventResult {
44
40
  if (current >= count) {
45
- return EventResult.outputOf(new Map([[VALUE, current]]));
41
+ return EventResult.outputOf(new Map([[VALUE, count]]));
46
42
  }
47
43
 
48
44
  const eve = EventResult.of(Event.ITERATION, new Map([[INDEX, current]]));