@fnet/cli 1.0.2 → 1.0.3

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": "@fnet/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "template"
@@ -81,25 +81,25 @@
81
81
 
82
82
  {% if context.transform.new !== undefined %}
83
83
  {# For constructor calls, use instance as context #}
84
- const result = Array.isArray(callArgs)? await callLib.apply(instance,callArgs): await callLib.call(instance,callArgs);
84
+ const result = Array.isArray(callArgs)? await callLib.apply(instance,callArgs): await callLib(callArgs);
85
85
  {% else %}
86
86
  {# For regular calls, use _this as context #}
87
87
  {% if context.transform.context !== undefined %}
88
88
  const result = Array.isArray(callArgs)? await callLib.apply({{context.transform.context | safe}},callArgs): await callLib.call({{context.transform.context | safe}},callArgs);
89
89
  {% else %}
90
- const result = Array.isArray(callArgs)? await callLib.apply(_this,callArgs): await callLib.call(_this,callArgs);
90
+ const result = Array.isArray(callArgs)? await callLib.apply(_this,callArgs): await callLib(callArgs);
91
91
  {% endif %}
92
92
 
93
93
  {% endif %}
94
94
 
95
95
  {% else %}
96
96
  {% if context.transform.new !== undefined %}
97
- const result = await callLib.call(instance);
97
+ const result = await callLib();
98
98
  {% else %}
99
99
  {% if context.transform.context !== undefined %}
100
100
  const result = await callLib.call({{context.transform.context | safe}});
101
101
  {% else %}
102
- const result = await callLib.call(_this);
102
+ const result = await callLib();
103
103
  {% endif %}
104
104
  {% endif %}
105
105
  {% endif %}
@@ -49,7 +49,7 @@
49
49
  {% endif %}
50
50
 
51
51
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
52
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
52
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
53
53
 
54
54
  if(nextBlock?.type==='return') return resolve(nextBlock);
55
55
  else if(nextBlock?.type!=='block') break;
@@ -33,7 +33,7 @@
33
33
 
34
34
  const nextBlock = Array.isArray(args)
35
35
  ? await current.run.apply(current, args)
36
- : await current.run.call(current, args);
36
+ : await current.run(args);
37
37
 
38
38
  return nextBlock;
39
39
  })());
@@ -26,7 +26,7 @@
26
26
  {% endif %}
27
27
 
28
28
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
29
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
29
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
30
30
 
31
31
  if(nextBlock?.type==='return') return resolve(nextBlock);
32
32
  else if(nextBlock?.type!=='block') break;
@@ -39,7 +39,7 @@
39
39
  console.log(new Date().toLocaleString(),' * ',_this.constructor.IndexKey,' -> ',current.constructor.IndexKey);
40
40
  {% endif %}
41
41
 
42
- return resolve(Array.isArray(args)? await current.run.apply(current,args) : await current.run.call(current,args));
42
+ return resolve(Array.isArray(args)? await current.run.apply(current,args) : await current.run(args));
43
43
  }
44
44
  {% endfor%}
45
45
 
@@ -31,7 +31,7 @@
31
31
  {% endif %}
32
32
 
33
33
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
34
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
34
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
35
35
 
36
36
  if(nextBlock?.type==='return') return resolve(nextBlock);
37
37
  else if(nextBlock?.type!=='block') break;
@@ -60,7 +60,7 @@
60
60
  {% endif %}
61
61
 
62
62
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
63
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
63
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
64
64
 
65
65
  if(nextBlock?.type==='return') return resolve(nextBlock);
66
66
  else if(nextBlock?.type!=='block') break;
@@ -101,7 +101,7 @@
101
101
  do {
102
102
 
103
103
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
104
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
104
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
105
105
 
106
106
  if(nextBlock?.type==='return') return resolve(nextBlock);
107
107
  else if(nextBlock?.type!=='block') break;
@@ -92,7 +92,7 @@ export default class Workflow extends Object {
92
92
  {% endif %}
93
93
 
94
94
  const nextBlock= typeof currentArgs==='undefined'? await current.run()
95
- : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run.call(current, currentArgs) ;
95
+ : Array.isArray(currentArgs)? await current.run.apply(current,currentArgs) : await current.run(currentArgs) ;
96
96
 
97
97
 
98
98
  if(nextBlock?.type==='return') return nextBlock;