@cyklang/cli 0.14.13 → 0.14.14

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.
@@ -96,7 +96,7 @@ async function runFile(filename) {
96
96
  await modLang.execute(structure.scope);
97
97
  const langMap = modLang.objectData?.variables.getData(user_lang);
98
98
  if (langMap !== null && langMap !== undefined) {
99
- await structure.setLang(user_lang, langMap);
99
+ await structure.scope.setLang(user_lang, langMap);
100
100
  }
101
101
  }
102
102
  }
@@ -98,7 +98,7 @@ async function testfile(filename) {
98
98
  await modLang.execute(structure.scope);
99
99
  const langMap = modLang.objectData?.variables.getData(user_lang);
100
100
  if (langMap !== null && langMap !== undefined) {
101
- await structure.setLang(user_lang, langMap);
101
+ await structure.scope.setLang(user_lang, langMap);
102
102
  outfilename = filename + "__" + user_lang + ".output";
103
103
  }
104
104
  }
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.14.12');
185
+ .version('0.14.14');
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.14.13",
3
+ "version": "0.14.14",
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.14.0",
22
+ "@cyklang/core": "^0.14.1",
23
23
  "commander": "^9.4.0",
24
24
  "dotenv": "^16.0.1",
25
25
  "form-data": "^4.0.0",
package/src/RunCommand.ts CHANGED
@@ -76,7 +76,7 @@ export async function runFile(filename: string): Promise<void> {
76
76
  const langMap = modLang.objectData?.variables.getData(user_lang)
77
77
 
78
78
  if (langMap !== null && langMap !== undefined) {
79
- await structure.setLang(user_lang, langMap as MapData)
79
+ await structure.scope.setLang(user_lang, langMap as MapData)
80
80
  }
81
81
  }
82
82
  }
@@ -80,7 +80,7 @@ async function testfile(filename: string): Promise<boolean> {
80
80
  const langMap = modLang.objectData?.variables.getData(user_lang)
81
81
 
82
82
  if (langMap !== null && langMap !== undefined) {
83
- await structure.setLang(user_lang, langMap as MapData)
83
+ await structure.scope.setLang(user_lang, langMap as MapData)
84
84
 
85
85
  outfilename = filename + "__" + user_lang + ".output"
86
86
  }
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.14.13')
179
+ .version('0.14.14')
180
180
  program.addCommand(new StartCommand('start'))
181
181
  program.addCommand(new StopCommand('stop'))
182
182
  program.addCommand(new InstallCommand('install'))
package/test/t31.xml CHANGED
@@ -28,8 +28,8 @@
28
28
  <print>"resume: " + resume</print>
29
29
 
30
30
  <datetime name="dtbirth">datetime("1963-11-04 14:00")</datetime>
31
- <print>"dtbirth: " + dateformat(dtbirth, "DD/MM/YYYY HH:mm")</print>
32
- <print>"dtbirth: " + dateformat(dtbirth, "MMMM YYYY", "fr")</print>
31
+ <print>"dtbirth: " + dateformat(dtbirth, "dd/MM/yyyy HH:mm")</print>
32
+ <print>"dtbirth: " + dateformat(dtbirth, "MMMM yyyy")</print>
33
33
 
34
34
  <print>"numberformat(123456.789) : " + numberformat(123456.789)</print>
35
35
  <print>"moneyformat(123456.789) : " + moneyformat(123456.789)</print>