@abaplint/transpiler-cli 2.14.40 → 2.14.42
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/README.md +19 -0
- package/build/bundle.js +6489 -1748
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,6 +8,25 @@ Call `abap_transpile` on the command line, see example in
|
|
|
8
8
|
|
|
9
9
|
https://github.com/larshp/abap-advent-2020/blob/main/package.json#L8
|
|
10
10
|
|
|
11
|
+
`WRITE '@KERNEL <js>'.` emits the literal as raw JavaScript, which runs with
|
|
12
|
+
the privileges of the host. To restrict it, set `options.kernel.allow` to the
|
|
13
|
+
list of regular expressions (matched case insensitively against the object
|
|
14
|
+
name) that may use it, an empty list allows none. A `@KERNEL` literal in any
|
|
15
|
+
other object fails the transpile with the issue of the abaplint rule
|
|
16
|
+
`forbidden_kernel_write`, naming file and line. Libraries
|
|
17
|
+
are allowed the same way, by listing the object name patterns they use, for
|
|
18
|
+
example `"^CL_"` and `"^KERNEL_"` for open-abap-core:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"options": {
|
|
23
|
+
"kernel": {"allow": ["^CL_", "^KERNEL_", "^ZCL_MY_FFI$"]}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Omit `kernel` to allow `@KERNEL` everywhere (the default).
|
|
29
|
+
|
|
11
30
|
## Output layout
|
|
12
31
|
|
|
13
32
|
The CLI writes generated project files into `output_folder/project/`. All
|