Skip to content

Commit 5eedc30

Browse files
authored
Update npm dependencies and fix syntax (#714)
1 parent fb95a90 commit 5eedc30

File tree

3 files changed

+99
-65
lines changed

3 files changed

+99
-65
lines changed

generate/cl_run.clas.abap

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CLASS cl_run DEFINITION PUBLIC FINAL CREATE PUBLIC.
44
IMPORTING
55
main_object_type TYPE string
66
sub_object_type TYPE string
7-
format_version TYPE string
7+
format_version TYPE i
88
RETURNING
99
VALUE(result) TYPE string.
1010
ENDCLASS.
@@ -19,6 +19,7 @@ CLASS cl_run IMPLEMENTATION.
1919
DATA schema_id TYPE string.
2020
DATA ref TYPE REF TO data.
2121
FIELD-SYMBOLS <row> LIKE LINE OF string_tab.
22+
FIELD-SYMBOLS <ref> TYPE any.
2223

2324
schema_id = |https://github.com/SAP/abap-file-formats/blob/main/file-formats/{ to_lower( main_object_type ) }/{ to_lower( sub_object_type ) }-v{ format_version }.json|.
2425
type_name = to_upper( |ZIF_AFF_{ sub_object_type }_V{ format_version }=>TY_MAIN| ).
@@ -34,7 +35,8 @@ CLASS cl_run IMPLEMENTATION.
3435
EXPORTING
3536
writer = writer.
3637

37-
string_tab = generator->zif_aff_generator~generate_type( ref->* ).
38+
ASSIGN ref->* TO <ref>.
39+
string_tab = generator->zif_aff_generator~generate_type( <ref> ).
3840

3941
* workaround for transpiler/JS keywords
4042
LOOP AT string_tab ASSIGNING <row>.
@@ -43,7 +45,7 @@ CLASS cl_run IMPLEMENTATION.
4345
ENDIF.
4446
ENDLOOP.
4547

46-
CONCATENATE LINES OF string_tab INTO result SEPARATED BY |\n|.
48+
CONCATENATE LINES OF string_tab INTO result SEPARATED BY cl_abap_char_utilities=>newline.
4749
ENDMETHOD.
4850

4951
ENDCLASS.

generate/package-lock.json

Lines changed: 89 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
},
2323
"homepage": "https://github.com/SAP/abap-file-formats#readme",
2424
"dependencies": {
25-
"@abaplint/database-sqlite": "^2.7.96",
26-
"@abaplint/runtime": "^2.7.100",
27-
"@abaplint/transpiler-cli": "^2.7.100",
28-
"@actions/core": "^1.10.1",
29-
"oras-pull": "^0.1.5"
25+
"@abaplint/database-sqlite": "^2.10.24",
26+
"@abaplint/runtime": "^2.10.75",
27+
"@abaplint/transpiler-cli": "^2.10.75",
28+
"@actions/core": "^1.11.1",
29+
"oras-pull": "^0.1.7"
3030
}
3131
}

0 commit comments

Comments
 (0)