@abaplint/cli 2.102.12 → 2.102.14

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.
Files changed (2) hide show
  1. package/build/cli.js +20 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -48557,7 +48557,7 @@ class Registry {
48557
48557
  }
48558
48558
  static abaplintVersion() {
48559
48559
  // magic, see build script "version.sh"
48560
- return "2.102.12";
48560
+ return "2.102.14";
48561
48561
  }
48562
48562
  getDDICReferences() {
48563
48563
  return this.ddicReferences;
@@ -53194,6 +53194,7 @@ const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplin
53194
53194
  const _builtin_1 = __webpack_require__(/*! ../abap/5_syntax/_builtin */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_builtin.js");
53195
53195
  const _scope_type_1 = __webpack_require__(/*! ../abap/5_syntax/_scope_type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_scope_type.js");
53196
53196
  const statements_1 = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
53197
+ const crypto = __webpack_require__(/*! crypto */ "crypto");
53197
53198
  // todo: refactor each sub-rule to new classes?
53198
53199
  // todo: add configuration
53199
53200
  class DownportConf extends _basic_rule_config_1.BasicRuleConfig {
@@ -55712,8 +55713,14 @@ ${indentation} output = ${uniqueName}.\n`;
55712
55713
  this.counter++;
55713
55714
  return name;
55714
55715
  }
55716
+ let postfix = "";
55717
+ if (spag.getIdentifier().stype === _scope_type_1.ScopeType.ClassDefinition) {
55718
+ // try making sure this name is not used in subclasses
55719
+ const hash = crypto.createHash("sha1").update(spag.getIdentifier().sname).digest("hex");
55720
+ postfix = "_" + hash.substring(0, 10);
55721
+ }
55715
55722
  while (true) {
55716
- const name = "temp" + this.counter;
55723
+ const name = "temp" + this.counter + postfix;
55717
55724
  const exists = this.existsRecursive(spag, name);
55718
55725
  this.counter++;
55719
55726
  if (exists === false) {
@@ -80927,6 +80934,17 @@ module.exports = require("child_process");
80927
80934
 
80928
80935
  /***/ }),
80929
80936
 
80937
+ /***/ "crypto":
80938
+ /*!*************************!*\
80939
+ !*** external "crypto" ***!
80940
+ \*************************/
80941
+ /***/ ((module) => {
80942
+
80943
+ "use strict";
80944
+ module.exports = require("crypto");
80945
+
80946
+ /***/ }),
80947
+
80930
80948
  /***/ "events":
80931
80949
  /*!*************************!*\
80932
80950
  !*** external "events" ***!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.12",
3
+ "version": "2.102.14",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.12",
41
+ "@abaplint/core": "^2.102.14",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",