@browserstack/accessibility-devtools-cli 0.0.4 → 0.0.5
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/index.js +6 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -8529,7 +8529,7 @@ var v4_default = v4;
|
|
|
8529
8529
|
|
|
8530
8530
|
// src/buildConfig.ts
|
|
8531
8531
|
var DEBUG = "production"?.toLocaleLowerCase() !== "production";
|
|
8532
|
-
var LINTER_SERVER_ADDRESS = "wss://
|
|
8532
|
+
var LINTER_SERVER_ADDRESS = "wss://browserstack.com/ws";
|
|
8533
8533
|
var EDS_API_KEY = "5PJymLNdWrOwzQNC7J6SXBuUFQGWq4Vuw";
|
|
8534
8534
|
var EDS_BACKEND = "eds.browserstack.com";
|
|
8535
8535
|
|
|
@@ -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.
|
|
5
|
+
"version": "0.0.5",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Rishabh Jain",
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
"scripts": {},
|
|
18
18
|
"devDependencies": {},
|
|
19
19
|
"dependencies": {}
|
|
20
|
-
}
|
|
20
|
+
}
|