@abaplint/transpiler-cli 2.12.13 → 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/build/bundle.js +15 -8
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -40110,7 +40110,12 @@ class CDSLexer {
|
|
|
40110
40110
|
// string handling
|
|
40111
40111
|
if (mode === Mode.String) {
|
|
40112
40112
|
build += next;
|
|
40113
|
-
if (next === "'") {
|
|
40113
|
+
if (next === "'" && nextNext === "'") {
|
|
40114
|
+
// escaped single quote, continue string
|
|
40115
|
+
build += stream.takeNext();
|
|
40116
|
+
col++;
|
|
40117
|
+
}
|
|
40118
|
+
else if (next === "'") {
|
|
40114
40119
|
build = result.add(build, row, col, mode);
|
|
40115
40120
|
mode = Mode.Default;
|
|
40116
40121
|
}
|
|
@@ -41161,7 +41166,7 @@ class CDSString extends combi_1.Expression {
|
|
|
41161
41166
|
getRunnable() {
|
|
41162
41167
|
const abap = (0, combi_1.seq)("abap", ".", (0, combi_1.regex)(/^char'\w'$/));
|
|
41163
41168
|
// https://stackoverflow.com/a/57754227
|
|
41164
|
-
const reg = (0, combi_1.regex)(/^'[A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF:\| -_]*'$/);
|
|
41169
|
+
const reg = (0, combi_1.regex)(/^'([A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF:\| -_]|'')*'$/);
|
|
41165
41170
|
return (0, combi_1.altPrio)(reg, abap);
|
|
41166
41171
|
}
|
|
41167
41172
|
}
|
|
@@ -53893,7 +53898,7 @@ class Registry {
|
|
|
53893
53898
|
}
|
|
53894
53899
|
static abaplintVersion() {
|
|
53895
53900
|
// magic, see build script "version.sh"
|
|
53896
|
-
return "2.114.
|
|
53901
|
+
return "2.114.6";
|
|
53897
53902
|
}
|
|
53898
53903
|
getDDICReferences() {
|
|
53899
53904
|
return this.ddicReferences;
|
|
@@ -66414,6 +66419,7 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
66414
66419
|
this.conf = conf;
|
|
66415
66420
|
}
|
|
66416
66421
|
runParsed(file, obj) {
|
|
66422
|
+
var _a, _b;
|
|
66417
66423
|
const issues = [];
|
|
66418
66424
|
const ddic = new ddic_1.DDIC(this.reg);
|
|
66419
66425
|
if (obj instanceof objects_1.Class) {
|
|
@@ -66438,10 +66444,10 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
66438
66444
|
rowContent = " " + rowContent;
|
|
66439
66445
|
}
|
|
66440
66446
|
let offset = 0;
|
|
66441
|
-
if (rows[i - 1].endsWith("\r")) {
|
|
66447
|
+
if ((_a = rows[i - 1]) === null || _a === void 0 ? void 0 : _a.endsWith("\r")) {
|
|
66442
66448
|
offset = -1;
|
|
66443
66449
|
}
|
|
66444
|
-
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);
|
|
66445
66451
|
const endPos = new position_1.Position(i + 1, rows[i].length + 1);
|
|
66446
66452
|
let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
|
|
66447
66453
|
if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
|
|
@@ -83225,27 +83231,28 @@ exports.HandleDataElement = HandleDataElement;
|
|
|
83225
83231
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
83226
83232
|
exports.HandleEnqu = void 0;
|
|
83227
83233
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
83228
|
-
// view, much like the tables
|
|
83229
83234
|
class HandleEnqu {
|
|
83230
83235
|
runObject(obj, _reg) {
|
|
83231
83236
|
const filename = obj.getXMLFile()?.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
83232
83237
|
if (filename === undefined) {
|
|
83233
83238
|
return [];
|
|
83234
83239
|
}
|
|
83240
|
+
const tableName = obj.getPrimaryTable();
|
|
83235
83241
|
const chunk = new chunk_1.Chunk().appendString(`// enqueue object
|
|
83236
83242
|
abap.FunctionModules["ENQUEUE_${obj.getName().toUpperCase()}"] = async (INPUT) => {
|
|
83237
83243
|
const lookup = abap.Classes["KERNEL_LOCK"];
|
|
83238
83244
|
if (lookup === undefined) {
|
|
83239
83245
|
throw new Error("Lock, kernel class missing");
|
|
83240
83246
|
}
|
|
83241
|
-
await lookup.enqueue(INPUT);
|
|
83247
|
+
await lookup.enqueue({table_name: "${tableName}", enqueue_name: "${obj.getName().toUpperCase()}", input: INPUT.exporting});
|
|
83242
83248
|
};
|
|
83249
|
+
|
|
83243
83250
|
abap.FunctionModules["DEQUEUE_${obj.getName().toUpperCase()}"] = async (INPUT) => {
|
|
83244
83251
|
const lookup = abap.Classes["KERNEL_LOCK"];
|
|
83245
83252
|
if (lookup === undefined) {
|
|
83246
83253
|
throw new Error("Lock, kernel class missing");
|
|
83247
83254
|
}
|
|
83248
|
-
await lookup.dequeue(INPUT);
|
|
83255
|
+
await lookup.dequeue({table_name: "${tableName}", enqueue_name: "${obj.getName().toUpperCase()}", input: INPUT.exporting});
|
|
83249
83256
|
};`);
|
|
83250
83257
|
const output = {
|
|
83251
83258
|
object: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.12.
|
|
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.
|
|
31
|
-
"@abaplint/transpiler": "^2.12.
|
|
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",
|