@abaplint/runtime 1.6.28 → 1.6.32
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
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.condense = void 0;
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function condense(input) {
|
|
6
|
-
|
|
6
|
+
let str = "";
|
|
7
|
+
if (typeof input.val === "string") {
|
|
8
|
+
str = input.val;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
str = input.val.get().toString();
|
|
12
|
+
}
|
|
13
|
+
str = str.replace(/ +$/, "");
|
|
14
|
+
str = str.replace(/^ +/, "");
|
|
15
|
+
return new types_1.String().set(str.replace(/ {2,}/g, " "));
|
|
7
16
|
}
|
|
8
17
|
exports.condense = condense;
|
|
9
18
|
//# sourceMappingURL=condense.js.map
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.condense = void 0;
|
|
4
4
|
function condense(input, options) {
|
|
5
|
-
let trimmed = input.get().
|
|
5
|
+
let trimmed = input.get().replace(/ +$/, "");
|
|
6
|
+
trimmed = trimmed.replace(/^ +/, "");
|
|
6
7
|
if (options.nogaps) {
|
|
7
|
-
trimmed = trimmed.replace(
|
|
8
|
+
trimmed = trimmed.replace(/ */g, "");
|
|
8
9
|
}
|
|
9
10
|
else {
|
|
10
|
-
trimmed = trimmed.replace(
|
|
11
|
+
trimmed = trimmed.replace(/ {2,}/g, " ");
|
|
11
12
|
}
|
|
12
13
|
input.set(trimmed);
|
|
13
14
|
}
|
package/package.json
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "1.6.
|
|
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
|
-
"prepublishOnly": "rm -rf build && npm run test",
|
|
14
|
-
"pretest": "npm run compile",
|
|
15
|
-
"test": "mocha"
|
|
16
|
-
},
|
|
17
|
-
"mocha": {
|
|
18
|
-
"recursive": true,
|
|
19
|
-
"reporter": "progress",
|
|
20
|
-
"spec": "build/test/**/*.js",
|
|
21
|
-
"require": "source-map-support/register"
|
|
22
|
-
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"ABAP",
|
|
25
|
-
"abaplint"
|
|
26
|
-
],
|
|
27
|
-
"author": "abaplint",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"@types/
|
|
35
|
-
"@types/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abaplint/runtime",
|
|
3
|
+
"version": "1.6.32",
|
|
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
|
+
"prepublishOnly": "rm -rf build && npm run test",
|
|
14
|
+
"pretest": "npm run compile",
|
|
15
|
+
"test": "mocha"
|
|
16
|
+
},
|
|
17
|
+
"mocha": {
|
|
18
|
+
"recursive": true,
|
|
19
|
+
"reporter": "progress",
|
|
20
|
+
"spec": "build/test/**/*.js",
|
|
21
|
+
"require": "source-map-support/register"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"ABAP",
|
|
25
|
+
"abaplint"
|
|
26
|
+
],
|
|
27
|
+
"author": "abaplint",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"hdb": "^0.18.3",
|
|
31
|
+
"sql.js": "^1.6.1"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/chai": "^4.2.22",
|
|
35
|
+
"@types/mocha": "^9.0.0",
|
|
36
|
+
"@types/sql.js": "^1.4.3",
|
|
37
|
+
"chai": "^4.3.4",
|
|
38
|
+
"mocha": "^9.1.2",
|
|
39
|
+
"source-map-support": "^0.5.20",
|
|
40
|
+
"typescript": "^4.4.3"
|
|
41
|
+
}
|
|
42
|
+
}
|