@abaplint/runtime 2.10.19 → 2.10.21

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Lars Hvam Petersen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Lars Hvam Petersen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @abaplint/runtime
2
-
1
+ # @abaplint/runtime
2
+
3
3
  Runtime
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.abs = abs;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function abs(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ceil = ceil;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function ceil(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cos = cos;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function cos(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.escape = escape;
4
- /* eslint-disable @typescript-eslint/ban-types */
5
4
  const types_1 = require("../types");
6
5
  function escape(input) {
7
6
  let val = typeof input.val === "string" ? input.val : input.val.get();
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.floor = floor;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function floor(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.frac = frac;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function frac(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.from_mixed = from_mixed;
4
- /* eslint-disable @typescript-eslint/ban-types */
5
4
  const throw_error_1 = require("../throw_error");
6
5
  const types_1 = require("../types");
7
6
  function from_mixed(input) {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sin = sin;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function sin(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sqrt = sqrt;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function sqrt(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tan = tan;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function tan(input) {
7
6
  let num_in = undefined;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.to_mixed = to_mixed;
4
- /* eslint-disable @typescript-eslint/ban-types */
5
4
  const throw_error_1 = require("../throw_error");
6
5
  const types_1 = require("../types");
7
6
  function to_mixed(input) {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.trunc = trunc;
4
- /* eslint-disable radix */
5
4
  const types_1 = require("../types");
6
5
  function trunc(input) {
7
6
  let num_in = undefined;
@@ -36,18 +36,15 @@ async function deleteDatabase(table, options, context) {
36
36
  // @ts-ignore
37
37
  abap.builtin.sy.get().dbcnt.set(dbcnt);
38
38
  }
39
- else if (options.where) {
39
+ else {
40
40
  const { subrc, dbcnt } = await context.defaultDB().delete({
41
41
  table: (0, prefix_1.buildDbTableName)(table),
42
- where: options.where,
42
+ where: options.where || "",
43
43
  });
44
44
  // @ts-ignore
45
45
  abap.builtin.sy.get().subrc.set(subrc);
46
46
  // @ts-ignore
47
47
  abap.builtin.sy.get().dbcnt.set(dbcnt);
48
48
  }
49
- else {
50
- throw "deleteDatabase todo";
51
- }
52
49
  }
53
50
  //# sourceMappingURL=delete_database.js.map
@@ -164,7 +164,6 @@ class HexUInt8 {
164
164
  // const str = Buffer.from(this.value.subarray(offset, length ? offset + length : undefined)).toString("hex").toUpperCase();
165
165
  let str = "";
166
166
  const until = length ? offset + length : this.value.length;
167
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
168
167
  for (let idx = offset; idx < until; idx++) {
169
168
  str += LUT_HEX_8b[this.value[idx]];
170
169
  }
@@ -264,7 +264,6 @@ class HashedTable {
264
264
  tmp.set(new string_1.String().set(item));
265
265
  return tmp;
266
266
  // @ts-ignore
267
- // eslint-disable-next-line max-len
268
267
  }
269
268
  else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() !== "" && item.getQualifiedName() === this.rowType.getQualifiedName()) {
270
269
  // types match, so no need to do conversions, just clone the item
@@ -469,7 +468,6 @@ class Table {
469
468
  tmp.set(new string_1.String().set(item));
470
469
  return tmp;
471
470
  // @ts-ignore
472
- // eslint-disable-next-line max-len
473
471
  }
474
472
  else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() !== "" && item.getQualifiedName() === this.rowType.getQualifiedName()) {
475
473
  // types match, so no need to do conversions, just clone the item
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@abaplint/runtime",
3
- "version": "2.10.19",
4
- "description": "Transpiler - Runtime",
5
- "main": "build/src/index.js",
6
- "typings": "build/src/index.d.ts",
7
- "funding": "https://github.com/sponsors/larshp",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/abaplint/transpiler.git"
11
- },
12
- "scripts": {
13
- "compile": "tsc",
14
- "publish:major": "npm --no-git-tag-version version major && rm -rf build && npm install && npm run test && npm publish --access public",
15
- "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
16
- "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public",
17
- "test": "npm run compile && mocha"
18
- },
19
- "mocha": {
20
- "recursive": true,
21
- "reporter": "progress",
22
- "spec": "build/test/**/*.js",
23
- "require": "source-map-support/register"
24
- },
25
- "keywords": [
26
- "ABAP",
27
- "abaplint"
28
- ],
29
- "author": "abaplint",
30
- "license": "MIT",
31
- "devDependencies": {
32
- "@types/chai": "^4.3.19",
33
- "@types/mocha": "^10.0.7",
34
- "chai": "^4.5.0",
35
- "mocha": "^10.7.3",
36
- "source-map-support": "^0.5.21",
37
- "typescript": "^5.6.2"
38
- },
39
- "dependencies": {
40
- "temporal-polyfill": "^0.2.5"
41
- }
42
- }
1
+ {
2
+ "name": "@abaplint/runtime",
3
+ "version": "2.10.21",
4
+ "description": "Transpiler - Runtime",
5
+ "main": "build/src/index.js",
6
+ "typings": "build/src/index.d.ts",
7
+ "funding": "https://github.com/sponsors/larshp",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/abaplint/transpiler.git"
11
+ },
12
+ "scripts": {
13
+ "compile": "tsc",
14
+ "publish:major": "npm --no-git-tag-version version major && rm -rf build && npm install && npm run test && npm publish --access public",
15
+ "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
16
+ "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public",
17
+ "test": "npm run compile && mocha"
18
+ },
19
+ "mocha": {
20
+ "recursive": true,
21
+ "reporter": "progress",
22
+ "spec": "build/test/**/*.js",
23
+ "require": "source-map-support/register"
24
+ },
25
+ "keywords": [
26
+ "ABAP",
27
+ "abaplint"
28
+ ],
29
+ "author": "abaplint",
30
+ "license": "MIT",
31
+ "devDependencies": {
32
+ "@types/chai": "^4.3.20",
33
+ "@types/mocha": "^10.0.10",
34
+ "chai": "^4.5.0",
35
+ "mocha": "^10.8.2",
36
+ "source-map-support": "^0.5.21",
37
+ "typescript": "^5.7.2"
38
+ },
39
+ "dependencies": {
40
+ "temporal-polyfill": "^0.2.5"
41
+ }
42
+ }