@abaplint/runtime 2.3.62 → 2.3.64

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.
@@ -2,13 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.substring = void 0;
4
4
  const string_1 = require("../types/string");
5
+ const throw_error_1 = require("../throw_error");
5
6
  function substring(input) {
6
7
  var _a, _b;
7
8
  let off = (_a = input === null || input === void 0 ? void 0 : input.off) === null || _a === void 0 ? void 0 : _a.get();
8
9
  if (off === undefined) {
9
10
  off = 0;
10
11
  }
12
+ if (off < 0) {
13
+ (0, throw_error_1.throwError)("CX_SY_RANGE_OUT_OF_BOUNDS");
14
+ }
11
15
  const len = (_b = input === null || input === void 0 ? void 0 : input.len) === null || _b === void 0 ? void 0 : _b.get();
16
+ if (len && len < 0) {
17
+ (0, throw_error_1.throwError)("CX_SY_RANGE_OUT_OF_BOUNDS");
18
+ }
12
19
  let sub = "";
13
20
  if (typeof input.val === "string") {
14
21
  sub = input.val.substr(off, len);
@@ -9,13 +9,14 @@ export * from "./eq";
9
9
  export * from "./ge";
10
10
  export * from "./gt";
11
11
  export * from "./initial";
12
+ export * from "./instance_of";
12
13
  export * from "./le";
13
14
  export * from "./lt";
14
- export * from "./o";
15
- export * from "./z";
16
15
  export * from "./m";
17
- export * from "./ne";
18
16
  export * from "./na";
19
- export * from "./ns";
17
+ export * from "./ne";
20
18
  export * from "./np";
19
+ export * from "./ns";
20
+ export * from "./o";
21
+ export * from "./z";
21
22
  export { compareIn as in } from "./in";
@@ -26,15 +26,16 @@ __exportStar(require("./eq"), exports);
26
26
  __exportStar(require("./ge"), exports);
27
27
  __exportStar(require("./gt"), exports);
28
28
  __exportStar(require("./initial"), exports);
29
+ __exportStar(require("./instance_of"), exports);
29
30
  __exportStar(require("./le"), exports);
30
31
  __exportStar(require("./lt"), exports);
31
- __exportStar(require("./o"), exports);
32
- __exportStar(require("./z"), exports);
33
32
  __exportStar(require("./m"), exports);
34
- __exportStar(require("./ne"), exports);
35
33
  __exportStar(require("./na"), exports);
36
- __exportStar(require("./ns"), exports);
34
+ __exportStar(require("./ne"), exports);
37
35
  __exportStar(require("./np"), exports);
36
+ __exportStar(require("./ns"), exports);
37
+ __exportStar(require("./o"), exports);
38
+ __exportStar(require("./z"), exports);
38
39
  var in_1 = require("./in");
39
40
  Object.defineProperty(exports, "in", { enumerable: true, get: function () { return in_1.compareIn; } });
40
41
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import { ABAPObject } from "../types";
2
+ export declare function instance_of(val: ABAPObject, cname: any): boolean;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.instance_of = void 0;
4
+ function instance_of(val, cname) {
5
+ return val.get() instanceof cname;
6
+ }
7
+ exports.instance_of = instance_of;
8
+ //# sourceMappingURL=instance_of.js.map
@@ -14,6 +14,7 @@ import { collect } from "./collect";
14
14
  import { overlay } from "./overlay";
15
15
  import { cast } from "./cast";
16
16
  import { getBit } from "./get_bit";
17
+ import { raiseEvent } from "./raise_event";
17
18
  import { getLocale } from "./get_locale";
18
19
  import { getParameter } from "./get_parameter";
19
20
  import { setLocale } from "./set_locale";
@@ -33,6 +34,7 @@ import { rollback } from "./rollback";
33
34
  import { setBit } from "./set_bit";
34
35
  import { shift } from "./shift";
35
36
  import { sort } from "./sort";
37
+ import { setHandler } from "./set_handler";
36
38
  import { split } from "./split";
37
39
  import { translate } from "./translate";
38
40
  import { IUpdateDatabaseOptions } from "./update_database";
@@ -49,8 +51,8 @@ export declare class Statements {
49
51
  assign: typeof assign;
50
52
  cast: typeof cast;
51
53
  clear: typeof clear;
52
- commit: typeof commit;
53
54
  collect: typeof collect;
55
+ commit: typeof commit;
54
56
  concatenate: typeof concatenate;
55
57
  condense: typeof condense;
56
58
  convert: typeof convert;
@@ -58,20 +60,22 @@ export declare class Statements {
58
60
  deleteInternal: typeof deleteInternal;
59
61
  describe: typeof describe;
60
62
  find: typeof find;
61
- overlay: typeof overlay;
62
- getParameter: typeof getParameter;
63
63
  getBit: typeof getBit;
64
64
  getLocale: typeof getLocale;
65
+ getParameter: typeof getParameter;
65
66
  getRunTime: typeof getRunTime;
66
67
  getTime: typeof getTime;
67
68
  insertInternal: typeof insertInternal;
68
69
  loop: typeof loop;
69
70
  modifyInternal: typeof modifyInternal;
70
71
  moveCorresponding: typeof moveCorresponding;
72
+ overlay: typeof overlay;
73
+ raiseEvent: typeof raiseEvent;
71
74
  readTable: typeof readTable;
72
75
  replace: typeof replace;
73
76
  rollback: typeof rollback;
74
77
  setBit: typeof setBit;
78
+ setHandler: typeof setHandler;
75
79
  setLocale: typeof setLocale;
76
80
  shift: typeof shift;
77
81
  sort: typeof sort;
@@ -17,6 +17,7 @@ const collect_1 = require("./collect");
17
17
  const overlay_1 = require("./overlay");
18
18
  const cast_1 = require("./cast");
19
19
  const get_bit_1 = require("./get_bit");
20
+ const raise_event_1 = require("./raise_event");
20
21
  const get_locale_1 = require("./get_locale");
21
22
  const get_parameter_1 = require("./get_parameter");
22
23
  const set_locale_1 = require("./set_locale");
@@ -37,6 +38,7 @@ const select_1 = require("./select");
37
38
  const set_bit_1 = require("./set_bit");
38
39
  const shift_1 = require("./shift");
39
40
  const sort_1 = require("./sort");
41
+ const set_handler_1 = require("./set_handler");
40
42
  const split_1 = require("./split");
41
43
  const translate_1 = require("./translate");
42
44
  const update_database_1 = require("./update_database");
@@ -51,8 +53,8 @@ class Statements {
51
53
  this.assign = assign_1.assign;
52
54
  this.cast = cast_1.cast;
53
55
  this.clear = clear_1.clear;
54
- this.commit = commit_1.commit;
55
56
  this.collect = collect_1.collect;
57
+ this.commit = commit_1.commit;
56
58
  this.concatenate = concatenate_1.concatenate;
57
59
  this.condense = condense_1.condense;
58
60
  this.convert = convert_1.convert;
@@ -60,20 +62,22 @@ class Statements {
60
62
  this.deleteInternal = delete_internal_1.deleteInternal;
61
63
  this.describe = describe_1.describe;
62
64
  this.find = find_1.find;
63
- this.overlay = overlay_1.overlay;
64
- this.getParameter = get_parameter_1.getParameter;
65
65
  this.getBit = get_bit_1.getBit;
66
66
  this.getLocale = get_locale_1.getLocale;
67
+ this.getParameter = get_parameter_1.getParameter;
67
68
  this.getRunTime = get_run_time_1.getRunTime;
68
69
  this.getTime = get_time_1.getTime;
69
70
  this.insertInternal = insert_internal_1.insertInternal;
70
71
  this.loop = loop_1.loop;
71
72
  this.modifyInternal = modify_internal_1.modifyInternal;
72
73
  this.moveCorresponding = move_corresponding_1.moveCorresponding;
74
+ this.overlay = overlay_1.overlay;
75
+ this.raiseEvent = raise_event_1.raiseEvent;
73
76
  this.readTable = read_table_1.readTable;
74
77
  this.replace = replace_1.replace;
75
78
  this.rollback = rollback_1.rollback;
76
79
  this.setBit = set_bit_1.setBit;
80
+ this.setHandler = set_handler_1.setHandler;
77
81
  this.setLocale = set_locale_1.setLocale;
78
82
  this.shift = shift_1.shift;
79
83
  this.sort = sort_1.sort;
@@ -0,0 +1 @@
1
+ export declare function raiseEvent(): void;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.raiseEvent = void 0;
4
+ function raiseEvent() {
5
+ // todo
6
+ return;
7
+ }
8
+ exports.raiseEvent = raiseEvent;
9
+ //# sourceMappingURL=raise_event.js.map
@@ -0,0 +1,3 @@
1
+ import { ABAPObject, FieldSymbol } from "../types";
2
+ import { ICharacter } from "../types/_character";
3
+ export declare function setHandler(_methods: any[], _f: ABAPObject | FieldSymbol, _activation: ICharacter): void;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setHandler = void 0;
4
+ function setHandler(_methods, _f, _activation) {
5
+ // todo
6
+ return;
7
+ }
8
+ exports.setHandler = setHandler;
9
+ //# sourceMappingURL=set_handler.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.62",
3
+ "version": "2.3.64",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "@types/chai": "^4.3.4",
32
- "@types/mocha": "^10.0.0",
32
+ "@types/mocha": "^10.0.1",
33
33
  "chai": "^4.3.7",
34
34
  "mocha": "^10.1.0",
35
35
  "source-map-support": "^0.5.21",