@abaplint/transpiler-cli 2.13.69 → 2.13.70
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 +1 -4
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -105923,11 +105923,8 @@ class NewObjectTranspiler {
|
|
|
105923
105923
|
}
|
|
105924
105924
|
else {
|
|
105925
105925
|
const source = node.findFirstExpression(abaplint.Expressions.Source);
|
|
105926
|
-
if (source === undefined) {
|
|
105927
|
-
throw new Error("NewObjectTranspiler: DataReference source not found");
|
|
105928
|
-
}
|
|
105929
105926
|
const typeCode = transpile_types_1.TranspileTypes.toType(type);
|
|
105930
|
-
const sourceCode = traversal.traverse(source).getCode();
|
|
105927
|
+
const sourceCode = source === undefined ? typeCode : traversal.traverse(source).getCode();
|
|
105931
105928
|
ret.appendString("((() => {const r = new abap.types.DataReference(" + typeCode + "); r.assign(" + sourceCode + "); return r; })())");
|
|
105932
105929
|
}
|
|
105933
105930
|
return ret;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.70",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.120.42",
|
|
31
|
-
"@abaplint/transpiler": "^2.13.
|
|
31
|
+
"@abaplint/transpiler": "^2.13.70",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.13.3",
|
|
34
34
|
"@types/progress": "^2.0.7",
|