@cyklang/cli 0.17.6 → 0.17.7
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 +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/test/t38.output +11 -0
- package/test/t38.xml +8 -0
- package/test/t39.output +1 -0
- package/test/t39.xml +37 -0
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.17.
|
|
185
|
+
.version('0.17.7');
|
|
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.17.
|
|
3
|
+
"version": "0.17.7",
|
|
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.
|
|
22
|
+
"@cyklang/core": "^0.42.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.17.
|
|
179
|
+
.version('0.17.7')
|
|
180
180
|
program.addCommand(new StartCommand('start'))
|
|
181
181
|
program.addCommand(new StopCommand('stop'))
|
|
182
182
|
program.addCommand(new InstallCommand('install'))
|
package/test/t38.output
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
taille du tableau = 128
|
|
2
|
+
test( 004 ) = Exonération de cotisations au titre de l'emploi d'un salarié en contrat d'accès à l'emploi
|
|
3
|
+
test( 100 ) = Contribution au financement du dialogue social
|
|
4
|
+
test( 101 ) = Association Mutualisation du Coût Inaptitude
|
|
5
|
+
test( 108 ) = Demi-rôle marin
|
|
6
|
+
test( 115 ) = Cotisation Assurance Maladie pour le Régime Local Alsace Moselle
|
|
7
|
+
test( 116 ) = Cotisation absente de la norme en cas de régularisation prudhomale
|
|
8
|
+
test( 128 ) = Contribution à la formation professionnelle (CFP)
|
|
9
|
+
test( 130 ) = Part principale de la taxe d'apprentissage
|
|
10
|
+
test( 131 ) = Cotisation régime unifié Agirc-Arrco
|
|
11
|
+
test( 913 ) = Indemnité inflation
|
package/test/t38.xml
CHANGED
|
@@ -551,6 +551,14 @@
|
|
|
551
551
|
<function name="test">
|
|
552
552
|
<string name="nom"/>
|
|
553
553
|
<block>
|
|
554
|
+
<if>
|
|
555
|
+
<condition> ! codes_cotis_indiv.has(nom)</condition>
|
|
556
|
+
<then>
|
|
557
|
+
<print>format("test( {0} ) NOT FOUND ", nom)</print>
|
|
558
|
+
<break></break>
|
|
559
|
+
</then>
|
|
560
|
+
</if>
|
|
561
|
+
|
|
554
562
|
<object name="record">codes_cotis_indiv.get(nom)</object>
|
|
555
563
|
<if>
|
|
556
564
|
<condition><![CDATA[ ! record || ! record.has("label") ]]></condition>
|
package/test/t39.output
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SUCCES : item_codes has 120 with max = 120
|
package/test/t39.xml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
|
+
<module>
|
|
3
|
+
<number name="max">120</number>
|
|
4
|
+
<number name="lookfor">120</number>
|
|
5
|
+
|
|
6
|
+
<object name="item_codes"/>
|
|
7
|
+
<number name="cpt">0</number>
|
|
8
|
+
<while>
|
|
9
|
+
<condition><![CDATA[ cpt < max ]]></condition>
|
|
10
|
+
<then>
|
|
11
|
+
<set name="cpt">cpt + 1</set>
|
|
12
|
+
<if>
|
|
13
|
+
<condition>item_codes.has(cpt)</condition>
|
|
14
|
+
<then>
|
|
15
|
+
<print>format("item_codes.has({0})",cpt)</print>
|
|
16
|
+
<break></break>
|
|
17
|
+
</then>
|
|
18
|
+
</if>
|
|
19
|
+
<call object="item_codes" method="setnamevariable">
|
|
20
|
+
<string name="name">cpt</string>
|
|
21
|
+
<number name="variable">1</number>
|
|
22
|
+
</call>
|
|
23
|
+
</then>
|
|
24
|
+
</while>
|
|
25
|
+
|
|
26
|
+
<if>
|
|
27
|
+
<condition> ! item_codes.has(lookfor)</condition>
|
|
28
|
+
<then>
|
|
29
|
+
<print>format("ERREUR : item_codes has not {0} with max = {1}",lookfor,max)</print>
|
|
30
|
+
</then>
|
|
31
|
+
<else>
|
|
32
|
+
<print>format("SUCCES : item_codes has {0} with max = {1}",lookfor,max)</print>
|
|
33
|
+
</else>
|
|
34
|
+
|
|
35
|
+
</if>
|
|
36
|
+
|
|
37
|
+
</module>
|