@abaplint/cli 2.85.42 → 2.85.45

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.
@@ -19,7 +19,7 @@ class CodeFrame {
19
19
  const builtIssues = this.convertAllIssues(issues).sort(issueSort); // Make sure it is sorted by filename for caching to work
20
20
  return [
21
21
  ...builtIssues.map(i => this.renderIssue(i)),
22
- (issues.length > 0 ? (0, chalk_1.red)(new total_1.Total().output(issues, fileCount)) : (0, chalk_1.green)(new total_1.Total().output(issues, fileCount))),
22
+ (issues.length > 0 ? chalk_1.default.red(new total_1.Total().output(issues, fileCount)) : chalk_1.default.green(new total_1.Total().output(issues, fileCount))),
23
23
  ].join("\n");
24
24
  }
25
25
  convertAllIssues(issues) {
@@ -48,11 +48,11 @@ class CodeFrame {
48
48
  }
49
49
  }
50
50
  const severityStr = issue.severity === "E"
51
- ? (0, chalk_1.red)(issue.severity)
52
- : (0, chalk_1.yellow)(issue.severity);
51
+ ? chalk_1.default.red(issue.severity)
52
+ : chalk_1.default.yellow(issue.severity);
53
53
  return `[${severityStr}] ${issue.description} (${issue.issueKey}) @ ${issue.location}`
54
54
  + "\n"
55
- + code.map(str => (0, chalk_1.grey)(str)).join("\n")
55
+ + code.map(str => chalk_1.default.grey(str)).join("\n")
56
56
  + "\n";
57
57
  }
58
58
  renderLocation(issue) {
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
- {
2
- "name": "@abaplint/cli",
3
- "version": "2.85.42",
4
- "description": "abaplint - Command Line Interface",
5
- "bin": {
6
- "abaplint": "./abaplint"
7
- },
8
- "main": "./build/src/index.js",
9
- "types": "./build/src/index.d.ts",
10
- "scripts": {
11
- "lint": "eslint src/**/*.ts test/**/*.ts --format unix",
12
- "compile": "tsc",
13
- "test": "npm run compile && mocha && npm run lint && npm run webpack",
14
- "webpack": "webpack --progress",
15
- "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
16
- "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public"
17
- },
18
- "mocha": {
19
- "recursive": true,
20
- "reporter": "progress",
21
- "spec": "./build/test/*.js",
22
- "require": "source-map-support/register"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/abaplint/abaplint.git"
27
- },
28
- "engines": {
29
- "node": ">=12.0.0"
30
- },
31
- "keywords": [
32
- "ABAP",
33
- "lint"
34
- ],
35
- "author": "Lars Hvam Petersen",
36
- "license": "MIT",
37
- "bugs": {
38
- "url": "https://github.com/abaplint/abaplint/issues"
39
- },
40
- "homepage": "https://abaplint.org",
41
- "devDependencies": {
42
- "@abaplint/core": "^2.85.42",
43
- "@types/chai": "^4.3.0",
44
- "@types/glob": "^7.2.0",
45
- "@types/minimist": "^1.2.2",
46
- "@types/mocha": "^9.1.0",
47
- "@types/node": "^17.0.21",
48
- "@types/progress": "^2.0.5",
49
- "chai": "^4.3.6",
50
- "chalk": "=4.1.2",
51
- "eslint": "^8.10.0",
52
- "glob": "^7.2.0",
53
- "json5": "^2.2.0",
54
- "memfs": "^3.4.1",
55
- "minimist": "^1.2.5",
56
- "mocha": "^9.2.1",
57
- "progress": "^2.0.3",
58
- "typescript": "^4.6.2",
59
- "webpack": "^5.70.0",
60
- "webpack-cli": "^4.9.2",
61
- "xml-js": "^1.6.11"
62
- },
63
- "dependencies": {}
64
- }
1
+ {
2
+ "name": "@abaplint/cli",
3
+ "version": "2.85.45",
4
+ "description": "abaplint - Command Line Interface",
5
+ "bin": {
6
+ "abaplint": "./abaplint"
7
+ },
8
+ "main": "./build/src/index.js",
9
+ "types": "./build/src/index.d.ts",
10
+ "scripts": {
11
+ "lint": "eslint src/**/*.ts test/**/*.ts --format unix",
12
+ "compile": "tsc",
13
+ "test": "npm run compile && mocha && npm run lint && npm run webpack",
14
+ "webpack": "webpack --progress",
15
+ "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
16
+ "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public"
17
+ },
18
+ "mocha": {
19
+ "recursive": true,
20
+ "reporter": "progress",
21
+ "spec": "./build/test/*.js",
22
+ "require": "source-map-support/register"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/abaplint/abaplint.git"
27
+ },
28
+ "engines": {
29
+ "node": ">=12.0.0"
30
+ },
31
+ "keywords": [
32
+ "ABAP",
33
+ "lint"
34
+ ],
35
+ "author": "Lars Hvam Petersen",
36
+ "license": "MIT",
37
+ "bugs": {
38
+ "url": "https://github.com/abaplint/abaplint/issues"
39
+ },
40
+ "homepage": "https://abaplint.org",
41
+ "devDependencies": {
42
+ "@abaplint/core": "^2.85.45",
43
+ "@types/chai": "^4.3.0",
44
+ "@types/glob": "^7.2.0",
45
+ "@types/minimist": "^1.2.2",
46
+ "@types/mocha": "^9.1.0",
47
+ "@types/node": "^17.0.21",
48
+ "@types/progress": "^2.0.5",
49
+ "chai": "^4.3.6",
50
+ "chalk": "^5.0.1",
51
+ "eslint": "^8.11.0",
52
+ "glob": "^7.2.0",
53
+ "json5": "^2.2.0",
54
+ "memfs": "^3.4.1",
55
+ "minimist": "^1.2.5",
56
+ "mocha": "^9.2.2",
57
+ "progress": "^2.0.3",
58
+ "typescript": "^4.6.2",
59
+ "webpack": "^5.70.0",
60
+ "webpack-cli": "^4.9.2",
61
+ "xml-js": "^1.6.11"
62
+ },
63
+ "dependencies": {}
64
+ }