@abaplint/runtime 2.0.60 → 2.0.63
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
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @abaplint/runtime
|
|
2
|
-
|
|
1
|
+
# @abaplint/runtime
|
|
2
|
+
|
|
3
3
|
Runtime
|
|
@@ -14,6 +14,24 @@ function createData(target, options) {
|
|
|
14
14
|
// @ts-ignore
|
|
15
15
|
target.assign(new abap.types.Table(abap.DDIC[options.name].type));
|
|
16
16
|
}
|
|
17
|
+
else if (options === null || options === void 0 ? void 0 : options.typeHandle) {
|
|
18
|
+
switch (options.typeHandle.get().type_kind.get()) {
|
|
19
|
+
case "F":
|
|
20
|
+
target.assign(new types_1.Float());
|
|
21
|
+
break;
|
|
22
|
+
case "I":
|
|
23
|
+
target.assign(new types_1.Integer());
|
|
24
|
+
break;
|
|
25
|
+
case "D":
|
|
26
|
+
target.assign(new types_1.Date());
|
|
27
|
+
break;
|
|
28
|
+
case "T":
|
|
29
|
+
target.assign(new types_1.Time());
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
throw "CREATE DATA, unknown handle type";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
17
35
|
else if (options === null || options === void 0 ? void 0 : options.name) {
|
|
18
36
|
// @ts-ignore
|
|
19
37
|
if (abap.DDIC[options.name] === undefined) {
|
|
@@ -4,7 +4,8 @@ import { ABAPObject } from "./abap_object";
|
|
|
4
4
|
import { Table } from "./table";
|
|
5
5
|
import { String } from "./string";
|
|
6
6
|
import { Structure } from "./structure";
|
|
7
|
-
|
|
7
|
+
import { Float } from "./float";
|
|
8
|
+
declare type PointerType = INumeric | Table | ICharacter | ABAPObject | undefined | Structure | Float;
|
|
8
9
|
export declare class DataReference {
|
|
9
10
|
private pointer;
|
|
10
11
|
private readonly type;
|
|
@@ -16,7 +17,7 @@ export declare class DataReference {
|
|
|
16
17
|
clear(): void;
|
|
17
18
|
get(): any;
|
|
18
19
|
array(): any;
|
|
19
|
-
set(value: any): void | ABAPObject | ICharacter | INumeric | Table | Structure;
|
|
20
|
+
set(value: any): void | ABAPObject | ICharacter | INumeric | Float | Table | Structure;
|
|
20
21
|
getOffset(input: {
|
|
21
22
|
offset: number;
|
|
22
23
|
length: number;
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Transpiler - Runtime",
|
|
5
|
-
"main": "build/src/index.js",
|
|
6
|
-
"typings": "build/src/index.d.ts",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/abaplint/transpiler.git"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"compile": "tsc",
|
|
13
|
-
"publish:major": "npm --no-git-tag-version version major && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
14
|
-
"publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
15
|
-
"publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
16
|
-
"test": "npm run compile && mocha"
|
|
17
|
-
},
|
|
18
|
-
"mocha": {
|
|
19
|
-
"recursive": true,
|
|
20
|
-
"reporter": "progress",
|
|
21
|
-
"spec": "build/test/**/*.js",
|
|
22
|
-
"require": "source-map-support/register"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"ABAP",
|
|
26
|
-
"abaplint"
|
|
27
|
-
],
|
|
28
|
-
"author": "abaplint",
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/chai": "^4.3.1",
|
|
32
|
-
"@types/mocha": "^9.1.1",
|
|
33
|
-
"chai": "^4.3.6",
|
|
34
|
-
"mocha": "^10.0.0",
|
|
35
|
-
"source-map-support": "^0.5.21",
|
|
36
|
-
"typescript": "^4.7.4"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abaplint/runtime",
|
|
3
|
+
"version": "2.0.63",
|
|
4
|
+
"description": "Transpiler - Runtime",
|
|
5
|
+
"main": "build/src/index.js",
|
|
6
|
+
"typings": "build/src/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/abaplint/transpiler.git"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"compile": "tsc",
|
|
13
|
+
"publish:major": "npm --no-git-tag-version version major && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
14
|
+
"publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
15
|
+
"publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
16
|
+
"test": "npm run compile && mocha"
|
|
17
|
+
},
|
|
18
|
+
"mocha": {
|
|
19
|
+
"recursive": true,
|
|
20
|
+
"reporter": "progress",
|
|
21
|
+
"spec": "build/test/**/*.js",
|
|
22
|
+
"require": "source-map-support/register"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"ABAP",
|
|
26
|
+
"abaplint"
|
|
27
|
+
],
|
|
28
|
+
"author": "abaplint",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/chai": "^4.3.1",
|
|
32
|
+
"@types/mocha": "^9.1.1",
|
|
33
|
+
"chai": "^4.3.6",
|
|
34
|
+
"mocha": "^10.0.0",
|
|
35
|
+
"source-map-support": "^0.5.21",
|
|
36
|
+
"typescript": "^4.7.4"
|
|
37
|
+
}
|
|
38
|
+
}
|