@cyklang/cli 0.18.14 → 0.18.16

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/build/index.js CHANGED
@@ -182,7 +182,7 @@ class StopCommand extends commander_1.Command {
182
182
  */
183
183
  const program = new commander_1.Command();
184
184
  program.name('cyk').description('cyklang CLI')
185
- .version('0.18.14');
185
+ .version('0.18.15');
186
186
  program.addCommand(new StartCommand('start'));
187
187
  program.addCommand(new StopCommand('stop'));
188
188
  program.addCommand(new InstallCommand_1.InstallCommand('install'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyklang/cli",
3
- "version": "0.18.14",
3
+ "version": "0.18.16",
4
4
  "description": "cyklang CLI",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "author": "",
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
- "@cyklang/core": "^0.60.0",
22
+ "@cyklang/core": "^0.62.0",
23
23
  "commander": "^9.4.0",
24
24
  "dotenv": "^16.0.1",
25
25
  "form-data": "^4.0.0",
package/src/index.ts CHANGED
@@ -176,7 +176,7 @@ class StopCommand extends Command {
176
176
  */
177
177
  const program = new Command()
178
178
  program.name('cyk').description('cyklang CLI')
179
- .version('0.18.14')
179
+ .version('0.18.16')
180
180
  program.addCommand(new StartCommand('start'))
181
181
  program.addCommand(new StopCommand('stop'))
182
182
  program.addCommand(new InstallCommand('install'))
@@ -29,3 +29,7 @@ string(presta): <number name="pst_id">
29
29
  </number>
30
30
  <string name="pst_libelle">
31
31
  </string>
32
+ string(true) = true
33
+ string(false) = false
34
+ boolean('true') = true
35
+ boolean('false') = true
package/test/db/t21.xml CHANGED
@@ -110,4 +110,21 @@
110
110
  <object type="dcl.Prestation" name="presta"/>
111
111
  <print>"string(presta): " + string(presta)</print>
112
112
 
113
+ <print>format("string(true) = {0}",string(true))</print>
114
+ <print>format("string(false) = {0}",string(false))</print>
115
+ <print>format("boolean('true') = {0}",boolean('true'))</print>
116
+ <print>format("boolean('false') = {0}",boolean('false'))</print>
117
+
118
+ <object name="compose">
119
+ <string name="chaine">"toto"</string>
120
+ <boolean name="booleen">false</boolean>
121
+ <number name="nombre">0</number>
122
+ <string name="indéfini"></string>
123
+ </object>
124
+
125
+ <print>format("typeof(chaine) = {0}",typeof(compose.chaine))</print>
126
+ <print>format("typeof(booleen) = {0}",typeof(compose.booleen))</print>
127
+ <print>format("typeof(nombre) = {0}",typeof(compose.nombre))</print>
128
+ <print>format("typeof(indéfini) = {0}",typeof(compose.indéfini))</print>
129
+
113
130
  </module>
package/test/t26.output CHANGED
@@ -10,3 +10,4 @@ var1 == var2
10
10
  after set var2 from var1
11
11
  var1 == var2
12
12
  var1 == var3
13
+ json(tableau,'Array') = ["Chaine1","Chaine2","Chaine3"]
package/test/t26.xml CHANGED
@@ -1,4 +1,4 @@
1
- <?xml-model href="cyklang.xsd" ?>
1
+ <?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
2
2
  <module>
3
3
  <map name="hash">
4
4
  <key>nom</key><value>CHANE</value>
@@ -67,6 +67,12 @@
67
67
  </else>
68
68
  </if>
69
69
 
70
+ <object name="tableau">
71
+ <string>"Chaine1"</string>
72
+ <string>"Chaine2"</string>
73
+ <string>"Chaine3"</string>
74
+ </object>
70
75
 
76
+ <print>format("json(tableau,'Array') = {0}", json(tableau, "Array"))</print>
71
77
 
72
78
  </module>
package/test/t35.output CHANGED
@@ -1,5 +1,5 @@
1
1
  function timeout done
2
- duration : 00:00:01
2
+ duration : 00:00:01.000
3
3
  15
4
4
  after timer
5
5
  count = 1