@abaplint/transpiler-cli 2.13.49 → 2.13.50
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 +24 -3
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -101260,6 +101260,24 @@ exports.DatabaseSchemaReuse = DatabaseSchemaReuse;
|
|
|
101260
101260
|
|
|
101261
101261
|
/***/ },
|
|
101262
101262
|
|
|
101263
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js"
|
|
101264
|
+
/*!*******************************************************************************************************!*\
|
|
101265
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js ***!
|
|
101266
|
+
\*******************************************************************************************************/
|
|
101267
|
+
(__unused_webpack_module, exports) {
|
|
101268
|
+
|
|
101269
|
+
"use strict";
|
|
101270
|
+
|
|
101271
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
101272
|
+
exports.packedTypeToDatabase = packedTypeToDatabase;
|
|
101273
|
+
function packedTypeToDatabase(type) {
|
|
101274
|
+
const precision = type.getLength() * 2 - 1;
|
|
101275
|
+
return `DECIMAL(${precision},${type.getDecimals()})`;
|
|
101276
|
+
}
|
|
101277
|
+
//# sourceMappingURL=database_schema_generator.js.map
|
|
101278
|
+
|
|
101279
|
+
/***/ },
|
|
101280
|
+
|
|
101263
101281
|
/***/ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/pg_database_schema.js"
|
|
101264
101282
|
/*!************************************************************************************************!*\
|
|
101265
101283
|
!*** ./node_modules/@abaplint/transpiler/build/src/db/schema_generation/pg_database_schema.js ***!
|
|
@@ -101304,6 +101322,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
101304
101322
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
101305
101323
|
exports.PGDatabaseSchema = void 0;
|
|
101306
101324
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
101325
|
+
const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
|
|
101307
101326
|
const _database_schema_reuse_1 = __webpack_require__(/*! ./_database_schema_reuse */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/_database_schema_reuse.js");
|
|
101308
101327
|
const QUOTE = "\"";
|
|
101309
101328
|
class PGDatabaseSchema {
|
|
@@ -101368,7 +101387,7 @@ class PGDatabaseSchema {
|
|
|
101368
101387
|
return `REAL`;
|
|
101369
101388
|
}
|
|
101370
101389
|
else if (type instanceof abaplint.BasicTypes.PackedType) {
|
|
101371
|
-
return
|
|
101390
|
+
return (0, database_schema_generator_1.packedTypeToDatabase)(type);
|
|
101372
101391
|
}
|
|
101373
101392
|
else if (type instanceof abaplint.BasicTypes.VoidType) {
|
|
101374
101393
|
throw `Type of ${errorInfo}-${fieldname} is VoidType(${type.getVoided()}), make sure the type is known, enable strict syntax checking`;
|
|
@@ -101427,6 +101446,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
101427
101446
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
101428
101447
|
exports.SnowflakeDatabaseSchema = void 0;
|
|
101429
101448
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
101449
|
+
const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
|
|
101430
101450
|
class SnowflakeDatabaseSchema {
|
|
101431
101451
|
reg;
|
|
101432
101452
|
constructor(reg) {
|
|
@@ -101490,7 +101510,7 @@ class SnowflakeDatabaseSchema {
|
|
|
101490
101510
|
return `REAL`;
|
|
101491
101511
|
}
|
|
101492
101512
|
else if (type instanceof abaplint.BasicTypes.PackedType) {
|
|
101493
|
-
return
|
|
101513
|
+
return (0, database_schema_generator_1.packedTypeToDatabase)(type);
|
|
101494
101514
|
}
|
|
101495
101515
|
else if (type instanceof abaplint.BasicTypes.VoidType) {
|
|
101496
101516
|
throw `Type of ${errorInfo}-${fieldname} is VoidType(${type.getVoided()}), make sure the type is known, enable strict syntax checking`;
|
|
@@ -101549,6 +101569,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
101549
101569
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
101550
101570
|
exports.SQLiteDatabaseSchema = void 0;
|
|
101551
101571
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
101572
|
+
const database_schema_generator_1 = __webpack_require__(/*! ./database_schema_generator */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/database_schema_generator.js");
|
|
101552
101573
|
const _database_schema_reuse_1 = __webpack_require__(/*! ./_database_schema_reuse */ "./node_modules/@abaplint/transpiler/build/src/db/schema_generation/_database_schema_reuse.js");
|
|
101553
101574
|
const QUOTE = "'";
|
|
101554
101575
|
class SQLiteDatabaseSchema {
|
|
@@ -101614,7 +101635,7 @@ class SQLiteDatabaseSchema {
|
|
|
101614
101635
|
return `REAL`;
|
|
101615
101636
|
}
|
|
101616
101637
|
else if (type instanceof abaplint.BasicTypes.PackedType) {
|
|
101617
|
-
return
|
|
101638
|
+
return (0, database_schema_generator_1.packedTypeToDatabase)(type);
|
|
101618
101639
|
}
|
|
101619
101640
|
else if (type instanceof abaplint.BasicTypes.VoidType) {
|
|
101620
101641
|
throw `Type of ${errorInfo}-${fieldname} is VoidType(${type.getVoided()}), make sure the type is known, enable strict syntax checking`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.50",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.120.18",
|
|
31
|
-
"@abaplint/transpiler": "^2.13.
|
|
31
|
+
"@abaplint/transpiler": "^2.13.50",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.13.3",
|
|
34
34
|
"@types/progress": "^2.0.7",
|