@browserstack/accessibility-devtools-cli 0.0.4 → 0.0.6

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/index.js +5 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -8648,7 +8648,11 @@ function formatMessage(msg, filePath) {
8648
8648
  const { ruleId, message, severity, line, column, endLine, endColumn } = msg;
8649
8649
  const parsed = safeParseMessage(message);
8650
8650
  if (!parsed.success) {
8651
- return "";
8651
+ return [
8652
+ source_default.cyan(formatLocation(filePath, line, column, endLine, endColumn)),
8653
+ source_default.yellow(`Rule: ${ruleId}`),
8654
+ source_default.white(`Description: ${message}`)
8655
+ ].join("\n");
8652
8656
  }
8653
8657
  const { description, help, failureSummary } = parsed.data;
8654
8658
  const lines = [
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@browserstack/accessibility-devtools-cli",
3
- "displayName": "BrowserStack Accessibility Linter CLI",
3
+ "displayName": "BrowserStack Accessibility Linter CLI (Beta)",
4
4
  "description": "Command-line interface for BrowserStack Accessibility Linter",
5
- "version": "0.0.4",
5
+ "version": "0.0.6",
6
6
  "main": "./index.js",
7
7
  "author": {
8
8
  "name": "Rishabh Jain",