@abaplint/cli 2.101.29 → 2.101.31

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 +40 -33
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -21720,7 +21720,10 @@ class TypeUtils {
21720
21720
  }
21721
21721
  }
21722
21722
  else if (source instanceof basic_1.XStringType) {
21723
- if (target instanceof basic_1.CLikeType) {
21723
+ if (target instanceof basic_1.CLikeType
21724
+ || target instanceof basic_1.IntegerType
21725
+ || target instanceof basic_1.ObjectReferenceType
21726
+ || target instanceof basic_1.HexType) {
21724
21727
  return false;
21725
21728
  }
21726
21729
  }
@@ -27093,22 +27096,22 @@ const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modu
27093
27096
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
27094
27097
  class Assign {
27095
27098
  runSyntax(node, scope, filename) {
27096
- var _a, _b;
27097
- const sources = node.findAllExpressions(Expressions.Source);
27098
- const firstSource = sources[0];
27099
- let sourceType = new source_1.Source().runSyntax(firstSource, scope, filename);
27100
- if (sourceType === undefined || ((_a = node.findDirectExpression(Expressions.AssignSource)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(Expressions.Dynamic))) {
27099
+ var _a, _b, _c;
27100
+ const sources = ((_a = node.findDirectExpression(Expressions.AssignSource)) === null || _a === void 0 ? void 0 : _a.findDirectExpressions(Expressions.Source)) || [];
27101
+ const theSource = sources[sources.length - 1];
27102
+ let sourceType = new source_1.Source().runSyntax(theSource, scope, filename);
27103
+ if (sourceType === undefined || ((_b = node.findDirectExpression(Expressions.AssignSource)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(Expressions.Dynamic))) {
27101
27104
  sourceType = new basic_1.VoidType("DynamicAssign");
27102
27105
  }
27103
- for (const d of ((_b = node.findDirectExpression(Expressions.AssignSource)) === null || _b === void 0 ? void 0 : _b.findAllExpressions(Expressions.Dynamic)) || []) {
27106
+ for (const d of ((_c = node.findDirectExpression(Expressions.AssignSource)) === null || _c === void 0 ? void 0 : _c.findAllExpressions(Expressions.Dynamic)) || []) {
27104
27107
  new dynamic_1.Dynamic().runSyntax(d, scope, filename);
27105
27108
  }
27106
27109
  const target = node.findDirectExpression(Expressions.FSTarget);
27107
27110
  if (target) {
27108
27111
  new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
27109
27112
  }
27110
- for (const s of sources) {
27111
- if (s === firstSource) {
27113
+ for (const s of node.findAllExpressions(Expressions.Source)) {
27114
+ if (s === theSource) {
27112
27115
  continue;
27113
27116
  }
27114
27117
  new source_1.Source().runSyntax(s, scope, filename);
@@ -48462,7 +48465,7 @@ class Registry {
48462
48465
  }
48463
48466
  static abaplintVersion() {
48464
48467
  // magic, see build script "version.sh"
48465
- return "2.101.29";
48468
+ return "2.101.31";
48466
48469
  }
48467
48470
  getDDICReferences() {
48468
48471
  return this.ddicReferences;
@@ -57102,9 +57105,11 @@ class FunctionModuleRecommendationsConf extends _basic_rule_config_1.BasicRuleCo
57102
57105
  constructor() {
57103
57106
  super(...arguments);
57104
57107
  /** Tuple of Function Module Name to be replaced, the recommended alternative and
57105
- * the version from which the recommendation is valid.*/
57108
+ * the version from which the recommendation is valid.
57109
+ * @uniqueItems true
57110
+ */
57106
57111
  this.recommendations = [
57107
- { name: "CALCULATE_HASH_FOR_RAW", replace: "use CL_ABAP_HMAC" },
57112
+ { name: "CALCULATE_HASH_FOR_RAW", replace: "use CL_ABAP_HMAC or CL_ABAP_MESSAGE_DIGEST" },
57108
57113
  { name: "ECATT_CONV_XSTRING_TO_STRING", replace: "use CL_BINARY_CONVERT" },
57109
57114
  { name: "F4_FILENAME", replace: "use CL_GUI_FRONTEND_SERVICES" },
57110
57115
  { name: "FUNCTION_EXISTS", replace: "surround with try-catch CX_SY_DYN_CALL_ILLEGAL_METHOD instead" },
@@ -57113,10 +57118,11 @@ class FunctionModuleRecommendationsConf extends _basic_rule_config_1.BasicRuleCo
57113
57118
  { name: "GUID_CREATE", replace: "use CL_SYSTEM_UUID" },
57114
57119
  { name: "IGN_TIMESTAMP_DIFFERENCE", replace: "use CL_ABAP_TSTMP" },
57115
57120
  { name: "IGN_TIMESTAMP_PLUSMINUS", replace: "use CL_ABAP_TSTMP" },
57121
+ { name: "ISM_SD_GET_PRICING_CONDITIONS", replace: "use CL_PRC_RESULT_FACTORY as per note 2220005" },
57116
57122
  { name: "JOB_CREATE", replace: "use CL_BP_ABAP_JOB" },
57117
57123
  { name: "JOB_SUBMIT", replace: "use CL_BP_ABAP_JOB" },
57118
- { name: "POPUP_TO_DECIDE", replace: "use POPUP_TO_CONFIRM" },
57119
57124
  { name: "POPUP_TO_CONFIRM_STEP", replace: "use POPUP_TO_CONFIRM" },
57125
+ { name: "POPUP_TO_DECIDE", replace: "use POPUP_TO_CONFIRM" },
57120
57126
  { name: "POPUP_TO_GET_VALUE", replace: "use POPUP_GET_VALUES" },
57121
57127
  { name: "REUSE_ALV_GRID_DISPLAY", replace: "use CL_SALV_TABLE=>FACTORY or CL_GUI_ALV_GRID" },
57122
57128
  { name: "ROUND", replace: "use built in function: round()" },
@@ -80775,27 +80781,27 @@ module.exports = require("zlib");
80775
80781
  __webpack_require__.r(__webpack_exports__);
80776
80782
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
80777
80783
  /* harmony export */ Chalk: () => (/* binding */ Chalk),
80778
- /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
80779
- /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
80784
+ /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
80785
+ /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
80780
80786
  /* harmony export */ chalkStderr: () => (/* binding */ chalkStderr),
80781
- /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
80782
- /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
80787
+ /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
80788
+ /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
80783
80789
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
80784
- /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
80785
- /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
80786
- /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
80787
- /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
80790
+ /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
80791
+ /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
80792
+ /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
80793
+ /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
80788
80794
  /* harmony export */ supportsColor: () => (/* binding */ stdoutColor),
80789
80795
  /* harmony export */ supportsColorStderr: () => (/* binding */ stderrColor)
80790
80796
  /* harmony export */ });
80791
- /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
80792
- /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
80797
+ /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
80798
+ /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
80793
80799
  /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utilities.js */ "./node_modules/chalk/source/utilities.js");
80794
80800
 
80795
80801
 
80796
80802
 
80797
80803
 
80798
- const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_1__["default"];
80804
+ const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_0__["default"];
80799
80805
 
80800
80806
  const GENERATOR = Symbol('GENERATOR');
80801
80807
  const STYLER = Symbol('STYLER');
@@ -80843,7 +80849,7 @@ function createChalk(options) {
80843
80849
 
80844
80850
  Object.setPrototypeOf(createChalk.prototype, Function.prototype);
80845
80851
 
80846
- for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"])) {
80852
+ for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"])) {
80847
80853
  styles[styleName] = {
80848
80854
  get() {
80849
80855
  const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
@@ -80864,21 +80870,21 @@ styles.visible = {
80864
80870
  const getModelAnsi = (model, level, type, ...arguments_) => {
80865
80871
  if (model === 'rgb') {
80866
80872
  if (level === 'ansi16m') {
80867
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi16m(...arguments_);
80873
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi16m(...arguments_);
80868
80874
  }
80869
80875
 
80870
80876
  if (level === 'ansi256') {
80871
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi256(...arguments_));
80877
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi256(...arguments_));
80872
80878
  }
80873
80879
 
80874
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi(...arguments_));
80880
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi(...arguments_));
80875
80881
  }
80876
80882
 
80877
80883
  if (model === 'hex') {
80878
- return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].hexToRgb(...arguments_));
80884
+ return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].hexToRgb(...arguments_));
80879
80885
  }
80880
80886
 
80881
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type][model](...arguments_);
80887
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type][model](...arguments_);
80882
80888
  };
80883
80889
 
80884
80890
  const usedModels = ['rgb', 'hex', 'ansi256'];
@@ -80888,7 +80894,7 @@ for (const model of usedModels) {
80888
80894
  get() {
80889
80895
  const {level} = this;
80890
80896
  return function (...arguments_) {
80891
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].color.close, this[STYLER]);
80897
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].color.close, this[STYLER]);
80892
80898
  return createBuilder(this, styler, this[IS_EMPTY]);
80893
80899
  };
80894
80900
  },
@@ -80899,7 +80905,7 @@ for (const model of usedModels) {
80899
80905
  get() {
80900
80906
  const {level} = this;
80901
80907
  return function (...arguments_) {
80902
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].bgColor.close, this[STYLER]);
80908
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].bgColor.close, this[STYLER]);
80903
80909
  return createBuilder(this, styler, this[IS_EMPTY]);
80904
80910
  };
80905
80911
  },
@@ -81314,6 +81320,7 @@ __webpack_require__.r(__webpack_exports__);
81314
81320
 
81315
81321
 
81316
81322
  // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
81323
+ /// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
81317
81324
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process__WEBPACK_IMPORTED_MODULE_0__.argv) {
81318
81325
  const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
81319
81326
  const position = argv.indexOf(prefix + flag);
@@ -81422,7 +81429,7 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
81422
81429
  }
81423
81430
 
81424
81431
  if ('CI' in env) {
81425
- if ('GITHUB_ACTIONS' in env) {
81432
+ if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
81426
81433
  return 3;
81427
81434
  }
81428
81435
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.29",
3
+ "version": "2.101.31",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.101.29",
41
+ "@abaplint/core": "^2.101.31",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",
45
45
  "@types/mocha": "^10.0.1",
46
- "@types/node": "^20.3.2",
46
+ "@types/node": "^20.3.3",
47
47
  "@types/progress": "^2.0.5",
48
48
  "chai": "^4.3.7",
49
- "chalk": "^5.2.0",
50
- "eslint": "^8.43.0",
49
+ "chalk": "^5.3.0",
50
+ "eslint": "^8.44.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.2.0",