@abaplint/cli 2.120.17 → 2.120.18
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/cli.js +48 -17
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -27609,7 +27609,7 @@ class TypeUtils {
|
|
|
27609
27609
|
return this.isAssignable(source, target);
|
|
27610
27610
|
}
|
|
27611
27611
|
isAssignableStrict(source, target, node) {
|
|
27612
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
27612
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
27613
27613
|
const calculated = node ? this.isCalculated(node) : false;
|
|
27614
27614
|
/*
|
|
27615
27615
|
console.dir(source);
|
|
@@ -27620,6 +27620,17 @@ class TypeUtils {
|
|
|
27620
27620
|
&& (target instanceof basic_1.XStringType || target instanceof basic_1.XSequenceType)) {
|
|
27621
27621
|
return false;
|
|
27622
27622
|
}
|
|
27623
|
+
if (target instanceof basic_1.NumericType
|
|
27624
|
+
&& (source instanceof basic_1.CharacterType || source instanceof basic_1.StringType)
|
|
27625
|
+
&& ((_a = source.getAbstractTypeData()) === null || _a === void 0 ? void 0 : _a.derivedFromConstant) === true) {
|
|
27626
|
+
const constant = node === null || node === void 0 ? void 0 : node.concatTokens();
|
|
27627
|
+
if (constant !== undefined
|
|
27628
|
+
&& ((constant.startsWith("'") && constant.endsWith("'"))
|
|
27629
|
+
|| (constant.startsWith("`") && constant.endsWith("`")))
|
|
27630
|
+
&& /^\d*$/.test(constant.substring(1, constant.length - 1)) === false) {
|
|
27631
|
+
return false;
|
|
27632
|
+
}
|
|
27633
|
+
}
|
|
27623
27634
|
if (calculated) {
|
|
27624
27635
|
return this.isAssignable(source, target);
|
|
27625
27636
|
}
|
|
@@ -27636,25 +27647,25 @@ class TypeUtils {
|
|
|
27636
27647
|
}
|
|
27637
27648
|
if (source instanceof basic_1.CharacterType) {
|
|
27638
27649
|
if (target instanceof basic_1.CharacterType) {
|
|
27639
|
-
if (((
|
|
27650
|
+
if (((_b = source.getAbstractTypeData()) === null || _b === void 0 ? void 0 : _b.derivedFromConstant) === true) {
|
|
27640
27651
|
return source.getLength() <= target.getLength();
|
|
27641
27652
|
}
|
|
27642
27653
|
return source.getLength() === target.getLength();
|
|
27643
27654
|
}
|
|
27644
27655
|
else if (target instanceof basic_1.IntegerType) {
|
|
27645
|
-
if (((
|
|
27656
|
+
if (((_c = source.getAbstractTypeData()) === null || _c === void 0 ? void 0 : _c.derivedFromConstant) === true) {
|
|
27646
27657
|
return true;
|
|
27647
27658
|
}
|
|
27648
27659
|
return false;
|
|
27649
27660
|
}
|
|
27650
27661
|
else if (target instanceof basic_1.XStringType) {
|
|
27651
|
-
if (((
|
|
27662
|
+
if (((_d = source.getAbstractTypeData()) === null || _d === void 0 ? void 0 : _d.derivedFromConstant) === true) {
|
|
27652
27663
|
return (node === null || node === void 0 ? void 0 : node.concatTokens()) !== "''";
|
|
27653
27664
|
}
|
|
27654
27665
|
return false;
|
|
27655
27666
|
}
|
|
27656
27667
|
else if (target instanceof basic_1.StringType) {
|
|
27657
|
-
if (((
|
|
27668
|
+
if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
|
|
27658
27669
|
return true;
|
|
27659
27670
|
}
|
|
27660
27671
|
return false;
|
|
@@ -27662,7 +27673,7 @@ class TypeUtils {
|
|
|
27662
27673
|
}
|
|
27663
27674
|
else if (source instanceof basic_1.HexType) {
|
|
27664
27675
|
if (target instanceof basic_1.HexType) {
|
|
27665
|
-
if (((
|
|
27676
|
+
if (((_f = source.getAbstractTypeData()) === null || _f === void 0 ? void 0 : _f.derivedFromConstant) === true) {
|
|
27666
27677
|
return source.getLength() <= target.getLength();
|
|
27667
27678
|
}
|
|
27668
27679
|
return source.getLength() === target.getLength();
|
|
@@ -27671,7 +27682,7 @@ class TypeUtils {
|
|
|
27671
27682
|
return false;
|
|
27672
27683
|
}
|
|
27673
27684
|
else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
|
|
27674
|
-
if (((
|
|
27685
|
+
if (((_g = source.getAbstractTypeData()) === null || _g === void 0 ? void 0 : _g.derivedFromConstant) === true) {
|
|
27675
27686
|
return true;
|
|
27676
27687
|
}
|
|
27677
27688
|
return false;
|
|
@@ -27682,13 +27693,13 @@ class TypeUtils {
|
|
|
27682
27693
|
return false;
|
|
27683
27694
|
}
|
|
27684
27695
|
else if (target instanceof basic_1.CharacterType) {
|
|
27685
|
-
if (((
|
|
27696
|
+
if (((_h = source.getAbstractTypeData()) === null || _h === void 0 ? void 0 : _h.derivedFromConstant) === true) {
|
|
27686
27697
|
return true;
|
|
27687
27698
|
}
|
|
27688
27699
|
return false;
|
|
27689
27700
|
}
|
|
27690
27701
|
else if (target instanceof basic_1.IntegerType) {
|
|
27691
|
-
if (((
|
|
27702
|
+
if (((_j = source.getAbstractTypeData()) === null || _j === void 0 ? void 0 : _j.derivedFromConstant) === true) {
|
|
27692
27703
|
return true;
|
|
27693
27704
|
}
|
|
27694
27705
|
return false;
|
|
@@ -27698,7 +27709,7 @@ class TypeUtils {
|
|
|
27698
27709
|
return false;
|
|
27699
27710
|
}
|
|
27700
27711
|
else if (target instanceof basic_1.XSequenceType || target instanceof basic_1.XStringType) {
|
|
27701
|
-
if (((
|
|
27712
|
+
if (((_k = source.getAbstractTypeData()) === null || _k === void 0 ? void 0 : _k.derivedFromConstant) === true) {
|
|
27702
27713
|
return true;
|
|
27703
27714
|
}
|
|
27704
27715
|
return false;
|
|
@@ -27742,7 +27753,7 @@ class TypeUtils {
|
|
|
27742
27753
|
return false;
|
|
27743
27754
|
}
|
|
27744
27755
|
else if (target instanceof basic_1.Integer8Type || target instanceof basic_1.PackedType) {
|
|
27745
|
-
if (((
|
|
27756
|
+
if (((_l = source.getAbstractTypeData()) === null || _l === void 0 ? void 0 : _l.derivedFromConstant) === true) {
|
|
27746
27757
|
return true;
|
|
27747
27758
|
}
|
|
27748
27759
|
return false;
|
|
@@ -69460,7 +69471,7 @@ class Registry {
|
|
|
69460
69471
|
}
|
|
69461
69472
|
static abaplintVersion() {
|
|
69462
69473
|
// magic, see build script "version.js"
|
|
69463
|
-
return "2.120.
|
|
69474
|
+
return "2.120.18";
|
|
69464
69475
|
}
|
|
69465
69476
|
getDDICReferences() {
|
|
69466
69477
|
return this.ddicReferences;
|
|
@@ -101339,6 +101350,28 @@ exports.Total = Total;
|
|
|
101339
101350
|
|
|
101340
101351
|
/***/ },
|
|
101341
101352
|
|
|
101353
|
+
/***/ "./build/src/git_clone.js"
|
|
101354
|
+
/*!********************************!*\
|
|
101355
|
+
!*** ./build/src/git_clone.js ***!
|
|
101356
|
+
\********************************/
|
|
101357
|
+
(__unused_webpack_module, exports) {
|
|
101358
|
+
|
|
101359
|
+
"use strict";
|
|
101360
|
+
|
|
101361
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
101362
|
+
exports.buildGitCloneArguments = buildGitCloneArguments;
|
|
101363
|
+
function buildGitCloneArguments(url, branch) {
|
|
101364
|
+
const args = ["clone", "--quiet", "--depth", "1"];
|
|
101365
|
+
if (branch) {
|
|
101366
|
+
args.push("-b", branch);
|
|
101367
|
+
}
|
|
101368
|
+
args.push("--", url, ".");
|
|
101369
|
+
return args;
|
|
101370
|
+
}
|
|
101371
|
+
//# sourceMappingURL=git_clone.js.map
|
|
101372
|
+
|
|
101373
|
+
/***/ },
|
|
101374
|
+
|
|
101342
101375
|
/***/ "./build/src/index.js"
|
|
101343
101376
|
/*!****************************!*\
|
|
101344
101377
|
!*** ./build/src/index.js ***!
|
|
@@ -101397,6 +101430,7 @@ const _format_1 = __webpack_require__(/*! ./formatters/_format */ "./build/src/f
|
|
|
101397
101430
|
const file_operations_1 = __webpack_require__(/*! ./file_operations */ "./build/src/file_operations.js");
|
|
101398
101431
|
const apack_dependency_provider_1 = __webpack_require__(/*! ./apack_dependency_provider */ "./build/src/apack_dependency_provider.js");
|
|
101399
101432
|
const fixes_1 = __webpack_require__(/*! ./fixes */ "./build/src/fixes.js");
|
|
101433
|
+
const git_clone_1 = __webpack_require__(/*! ./git_clone */ "./build/src/git_clone.js");
|
|
101400
101434
|
const rename_1 = __webpack_require__(/*! ./rename */ "./build/src/rename.js");
|
|
101401
101435
|
exports.GENERIC_ERROR = "generic_error";
|
|
101402
101436
|
class Progress {
|
|
@@ -101518,11 +101552,8 @@ async function loadDependencies(config, compress, bar, base) {
|
|
|
101518
101552
|
if (d.url) {
|
|
101519
101553
|
process.stderr.write("Clone: " + d.url + "\n");
|
|
101520
101554
|
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "abaplint-"));
|
|
101521
|
-
|
|
101522
|
-
|
|
101523
|
-
branch = "-b " + d.branch + " ";
|
|
101524
|
-
}
|
|
101525
|
-
childProcess.execSync("git clone --quiet --depth 1 " + branch + d.url + " .", { cwd: dir, stdio: "inherit" });
|
|
101555
|
+
const args = (0, git_clone_1.buildGitCloneArguments)(d.url, d.branch);
|
|
101556
|
+
childProcess.execFileSync("git", args, { cwd: dir, stdio: "inherit" });
|
|
101526
101557
|
const names = file_operations_1.FileOperations.loadFileNames(file_operations_1.FileOperations.toUnixPath(dir) + d.files);
|
|
101527
101558
|
files = files.concat(await file_operations_1.FileOperations.loadFiles(compress, names, bar));
|
|
101528
101559
|
file_operations_1.FileOperations.deleteFolderRecursive(dir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.120.
|
|
3
|
+
"version": "2.120.18",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.120.
|
|
42
|
+
"@abaplint/core": "^2.120.18",
|
|
43
43
|
"@types/chai": "^4.3.20",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|