@abaplint/transpiler-cli 2.1.16 → 2.1.17
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/build/bundle.js +1 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -13007,7 +13007,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
|
|
|
13007
13007
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
13008
13008
|
|
|
13009
13009
|
"use strict";
|
|
13010
|
-
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DatabaseSetup = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst sqlite_database_schema_1 = __webpack_require__(/*! ./sqlite_database_schema */ \"./node_modules/@abaplint/transpiler/build/src/db/sqlite_database_schema.js\");\r\nclass DatabaseSetup {\r\n constructor(reg) {\r\n this.reg = reg;\r\n }\r\n run() {\r\n return {\r\n schemas: {\r\n sqlite: new sqlite_database_schema_1.SQLiteDatabaseSchema(this.reg).run(),\r\n hdb: \"todo\",\r\n pg: \"todo\",\r\n },\r\n insert: this.buildInsert(),\r\n };\r\n }\r\n ////////////////////\r\n buildInsert() {\r\n let insert = \"\";\r\n // INSERT data\r\n for (const obj of this.reg.getObjects()) {\r\n if (obj instanceof abaplint.Objects.MessageClass) {\r\n insert += this.messageClass(obj);\r\n }\r\n }\r\n insert += this.t000Insert();\r\n return insert;\r\n }\r\n t000Insert() {\r\n const obj = this.reg.getObject(\"TABL\", \"T000\");\r\n if (obj === undefined) {\r\n return \"\";\r\n }\r\n const type = obj.parseType(this.reg);\r\n if (type instanceof abaplint.BasicTypes.StructureType && type.getComponents().length === 3) {\r\n // todo, this should take the client number from the settings\r\n return `INSERT INTO t000 VALUES ('123', '', '');\\n`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n messageClass(msag) {\r\n // ignore if T100 is unknown\r\n if (this.reg.getObject(\"TABL\", \"T100\") === undefined) {\r\n return \"\";\r\n }\r\n let ret = \"\";\r\n for (const m of msag.getMessages()) {\r\n ret += `INSERT INTO t100 VALUES ('E', '${msag.getName()}', '${m.getNumber()}', '${m.getMessage()}');\\n`;\r\n }\r\n return ret;\r\n }\r\n}\r\nexports.DatabaseSetup = DatabaseSetup;\r\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/db/index.js?");
|
|
13010
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DatabaseSetup = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst sqlite_database_schema_1 = __webpack_require__(/*! ./sqlite_database_schema */ \"./node_modules/@abaplint/transpiler/build/src/db/sqlite_database_schema.js\");\r\nclass DatabaseSetup {\r\n constructor(reg) {\r\n this.reg = reg;\r\n }\r\n run() {\r\n return {\r\n schemas: {\r\n sqlite: new sqlite_database_schema_1.SQLiteDatabaseSchema(this.reg).run(),\r\n hdb: \"todo\",\r\n pg: \"todo\",\r\n },\r\n insert: this.buildInsert(),\r\n };\r\n }\r\n ////////////////////\r\n buildInsert() {\r\n let insert = \"\";\r\n // INSERT data\r\n for (const obj of this.reg.getObjects()) {\r\n if (obj instanceof abaplint.Objects.MessageClass) {\r\n insert += this.messageClass(obj);\r\n }\r\n }\r\n insert += this.t000Insert();\r\n return insert;\r\n }\r\n t000Insert() {\r\n const obj = this.reg.getObject(\"TABL\", \"T000\");\r\n if (obj === undefined) {\r\n return \"\";\r\n }\r\n const type = obj.parseType(this.reg);\r\n if (type instanceof abaplint.BasicTypes.StructureType && type.getComponents().length === 3) {\r\n // todo, this should take the client number from the settings\r\n return `INSERT INTO t000 VALUES ('123', '', '');\\n`;\r\n }\r\n else {\r\n return \"\";\r\n }\r\n }\r\n messageClass(msag) {\r\n // ignore if T100 is unknown\r\n if (this.reg.getObject(\"TABL\", \"T100\") === undefined) {\r\n return \"\";\r\n }\r\n let ret = \"\";\r\n for (const m of msag.getMessages()) {\r\n ret += `INSERT INTO t100 VALUES ('E', '${msag.getName()}', '${m.getNumber()}', '${m.getMessage().replace(/\\'/g, \"''\")}');\\n`;\r\n }\r\n return ret;\r\n }\r\n}\r\nexports.DatabaseSetup = DatabaseSetup;\r\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/db/index.js?");
|
|
13011
13011
|
|
|
13012
13012
|
/***/ }),
|
|
13013
13013
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.1.
|
|
28
|
+
"@abaplint/transpiler": "^2.1.17",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|