@abaplint/transpiler-cli 2.12.14 → 2.12.15

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/abap_transpile CHANGED
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  require("./build/bundle");
package/build/bundle.js CHANGED
@@ -53898,7 +53898,7 @@ class Registry {
53898
53898
  }
53899
53899
  static abaplintVersion() {
53900
53900
  // magic, see build script "version.sh"
53901
- return "2.114.5";
53901
+ return "2.114.6";
53902
53902
  }
53903
53903
  getDDICReferences() {
53904
53904
  return this.ddicReferences;
@@ -66419,6 +66419,7 @@ https://docs.abapopenchecks.org/checks/16/`,
66419
66419
  this.conf = conf;
66420
66420
  }
66421
66421
  runParsed(file, obj) {
66422
+ var _a, _b;
66422
66423
  const issues = [];
66423
66424
  const ddic = new ddic_1.DDIC(this.reg);
66424
66425
  if (obj instanceof objects_1.Class) {
@@ -66443,10 +66444,10 @@ https://docs.abapopenchecks.org/checks/16/`,
66443
66444
  rowContent = " " + rowContent;
66444
66445
  }
66445
66446
  let offset = 0;
66446
- if (rows[i - 1].endsWith("\r")) {
66447
+ if ((_a = rows[i - 1]) === null || _a === void 0 ? void 0 : _a.endsWith("\r")) {
66447
66448
  offset = -1;
66448
66449
  }
66449
- const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
66450
+ const startPos = new position_1.Position(i, ((_b = rows[i - 1]) === null || _b === void 0 ? void 0 : _b.length) + 1 + offset);
66450
66451
  const endPos = new position_1.Position(i + 1, rows[i].length + 1);
66451
66452
  let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
66452
66453
  if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
@@ -83243,7 +83244,7 @@ abap.FunctionModules["ENQUEUE_${obj.getName().toUpperCase()}"] = async (INPUT) =
83243
83244
  if (lookup === undefined) {
83244
83245
  throw new Error("Lock, kernel class missing");
83245
83246
  }
83246
- await lookup.enqueue({TABLE_NAME: "${tableName}", ENQUEUE_NAME: "${obj.getName().toUpperCase()}", ...INPUT});
83247
+ await lookup.enqueue({table_name: "${tableName}", enqueue_name: "${obj.getName().toUpperCase()}", input: INPUT.exporting});
83247
83248
  };
83248
83249
 
83249
83250
  abap.FunctionModules["DEQUEUE_${obj.getName().toUpperCase()}"] = async (INPUT) => {
@@ -83251,7 +83252,7 @@ abap.FunctionModules["DEQUEUE_${obj.getName().toUpperCase()}"] = async (INPUT) =
83251
83252
  if (lookup === undefined) {
83252
83253
  throw new Error("Lock, kernel class missing");
83253
83254
  }
83254
- await lookup.dequeue({TABLE_NAME: "${tableName}", ENQUEUE_NAME: "${obj.getName().toUpperCase()}", ...INPUT});
83255
+ await lookup.dequeue({table_name: "${tableName}", enqueue_name: "${obj.getName().toUpperCase()}", input: INPUT.exporting});
83255
83256
  };`);
83256
83257
  const output = {
83257
83258
  object: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.12.14",
3
+ "version": "2.12.15",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.114.5",
31
- "@abaplint/transpiler": "^2.12.14",
30
+ "@abaplint/core": "^2.114.6",
31
+ "@abaplint/transpiler": "^2.12.15",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.10.1",
34
34
  "@types/progress": "^2.0.7",
package/schema.json ADDED
@@ -0,0 +1,219 @@
1
+ {
2
+ "$ref": "#/definitions/ITranspilerConfig",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "ITranspilerConfig": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "exclude_filter": {
9
+ "description": "list of regex, case insensitive",
10
+ "items": {
11
+ "type": "string"
12
+ },
13
+ "type": "array",
14
+ "uniqueItems": true
15
+ },
16
+ "input_filter": {
17
+ "description": "list of regex, case insensitive, empty gives all files, positive list",
18
+ "items": {
19
+ "type": "string"
20
+ },
21
+ "type": "array",
22
+ "uniqueItems": true
23
+ },
24
+ "input_folder": {
25
+ "anyOf": [
26
+ {
27
+ "type": "string"
28
+ },
29
+ {
30
+ "items": {
31
+ "type": "string"
32
+ },
33
+ "type": "array"
34
+ }
35
+ ]
36
+ },
37
+ "libs": {
38
+ "items": {
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "exclude_filter": {
42
+ "description": "list of regex, case insensitive",
43
+ "items": {
44
+ "type": "string"
45
+ },
46
+ "type": "array",
47
+ "uniqueItems": true
48
+ },
49
+ "files": {
50
+ "anyOf": [
51
+ {
52
+ "type": "string"
53
+ },
54
+ {
55
+ "items": {
56
+ "type": "string"
57
+ },
58
+ "type": "array"
59
+ }
60
+ ]
61
+ },
62
+ "folder": {
63
+ "type": "string"
64
+ },
65
+ "url": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "type": "object"
70
+ },
71
+ "type": "array"
72
+ },
73
+ "options": {
74
+ "$ref": "#/definitions/ITranspilerOptions"
75
+ },
76
+ "output_folder": {
77
+ "type": "string"
78
+ },
79
+ "write_source_map": {
80
+ "type": "boolean"
81
+ },
82
+ "write_unit_tests": {
83
+ "type": "boolean"
84
+ }
85
+ },
86
+ "required": [
87
+ "input_folder",
88
+ "output_folder",
89
+ "options"
90
+ ],
91
+ "type": "object"
92
+ },
93
+ "ITranspilerOptions": {
94
+ "additionalProperties": false,
95
+ "properties": {
96
+ "addCommonJS": {
97
+ "description": "adds common js modules",
98
+ "type": "boolean"
99
+ },
100
+ "addFilenames": {
101
+ "description": "adds filenames as comments in the output js",
102
+ "type": "boolean"
103
+ },
104
+ "ignoreSourceMap": {
105
+ "description": "ignore source map",
106
+ "type": "boolean"
107
+ },
108
+ "ignoreSyntaxCheck": {
109
+ "description": "ignore syntax check, used for internal testing",
110
+ "type": "boolean"
111
+ },
112
+ "importProg": {
113
+ "description": "import programs",
114
+ "type": "boolean"
115
+ },
116
+ "keywords": {
117
+ "description": "list of keywords to rename, if not supplied default will be used",
118
+ "items": {
119
+ "type": "string"
120
+ },
121
+ "type": "array"
122
+ },
123
+ "populateTables": {
124
+ "additionalProperties": false,
125
+ "description": "populate tables, all tables are populated if undefined and they exist",
126
+ "properties": {
127
+ "reposrc": {
128
+ "description": "insert into REPOSRC, skips if equals false",
129
+ "type": "boolean"
130
+ },
131
+ "seosubco": {
132
+ "description": "insert into SEOSUBCO, skips if equals false",
133
+ "type": "boolean"
134
+ },
135
+ "seosubcodf": {
136
+ "description": "insert into SEOSUBCODF, skips if equals false",
137
+ "type": "boolean"
138
+ },
139
+ "seosubcotx": {
140
+ "description": "insert into SEOSUBCOTX, skips if equals false",
141
+ "type": "boolean"
142
+ }
143
+ },
144
+ "type": "object"
145
+ },
146
+ "setup": {
147
+ "additionalProperties": false,
148
+ "description": "extra setup script to be executed during initialization",
149
+ "properties": {
150
+ "filename": {
151
+ "type": "string"
152
+ },
153
+ "postFunction": {
154
+ "type": "string"
155
+ },
156
+ "preFunction": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ "required": [
161
+ "filename"
162
+ ],
163
+ "type": "object"
164
+ },
165
+ "skip": {
166
+ "$ref": "#/definitions/TestMethodList",
167
+ "description": "list of unit tests to skip"
168
+ },
169
+ "skipVersionCheck": {
170
+ "description": "skips version check, not recommended",
171
+ "type": "boolean"
172
+ },
173
+ "unknownTypes": {
174
+ "$ref": "#/definitions/UnknownTypesEnum",
175
+ "description": "sets behavior for unknown types, either fail at compile- or run-time"
176
+ }
177
+ },
178
+ "type": "object"
179
+ },
180
+ "TestMethodList": {
181
+ "items": {
182
+ "additionalProperties": false,
183
+ "properties": {
184
+ "class": {
185
+ "pattern": "^[a-zA-Z0-9_\\/]+$",
186
+ "type": "string"
187
+ },
188
+ "method": {
189
+ "pattern": "^[a-zA-Z0-9_\\/]+$",
190
+ "type": "string"
191
+ },
192
+ "note": {
193
+ "type": "string"
194
+ },
195
+ "object": {
196
+ "pattern": "^[a-zA-Z0-9_\\/]+$",
197
+ "type": "string"
198
+ }
199
+ },
200
+ "required": [
201
+ "object",
202
+ "class",
203
+ "method"
204
+ ],
205
+ "type": "object"
206
+ },
207
+ "type": "array",
208
+ "uniqueItems": true
209
+ },
210
+ "UnknownTypesEnum": {
211
+ "enum": [
212
+ "compileError",
213
+ "runtimeError"
214
+ ],
215
+ "type": "string"
216
+ }
217
+ }
218
+ }
219
+