@abaplint/runtime 2.3.92 → 2.3.94
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 +2 -2
- package/build/src/statements/translate.js +13 -1
- package/package.json +41 -41
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @abaplint/runtime
|
|
2
|
-
|
|
1
|
+
# @abaplint/runtime
|
|
2
|
+
|
|
3
3
|
Runtime
|
|
@@ -15,8 +15,20 @@ function translate(input, i) {
|
|
|
15
15
|
else {
|
|
16
16
|
const chunks = c.match(/.{1,2}/g);
|
|
17
17
|
for (const chunk of chunks || []) {
|
|
18
|
-
|
|
18
|
+
let search = chunk.substr(0, 1);
|
|
19
19
|
const replace = chunk.substr(1, 1);
|
|
20
|
+
// regexp escaping
|
|
21
|
+
if (search === "+"
|
|
22
|
+
|| search === "."
|
|
23
|
+
|| search === "^"
|
|
24
|
+
|| search === "$"
|
|
25
|
+
|| search === "|"
|
|
26
|
+
|| search === "["
|
|
27
|
+
|| search === "]"
|
|
28
|
+
|| search === "("
|
|
29
|
+
|| search === ")") {
|
|
30
|
+
search = "\\" + search;
|
|
31
|
+
}
|
|
20
32
|
input.set(input.get().replace(new RegExp(search, "g"), replace));
|
|
21
33
|
}
|
|
22
34
|
}
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.3.
|
|
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.4",
|
|
32
|
-
"@types/mocha": "^10.0.1",
|
|
33
|
-
"chai": "^4.3.7",
|
|
34
|
-
"mocha": "^10.2.0",
|
|
35
|
-
"source-map-support": "^0.5.21",
|
|
36
|
-
"typescript": "^4.8.4"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"temporal-polyfill": "^0.0.8"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abaplint/runtime",
|
|
3
|
+
"version": "2.3.94",
|
|
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.4",
|
|
32
|
+
"@types/mocha": "^10.0.1",
|
|
33
|
+
"chai": "^4.3.7",
|
|
34
|
+
"mocha": "^10.2.0",
|
|
35
|
+
"source-map-support": "^0.5.21",
|
|
36
|
+
"typescript": "^4.8.4"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"temporal-polyfill": "^0.0.8"
|
|
40
|
+
}
|
|
41
|
+
}
|