dceky 1.1.7 → 1.1.8

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/README.md CHANGED
@@ -42,13 +42,13 @@ You'll be automatically guided through a launch process where you'll choose whet
42
42
 
43
43
  ```ts
44
44
  // Arguments:
45
- npm run ky:start --headless --browser=Chrome,Safari --profile=Stage
45
+ npm run ky:start --headless --browser=chrome,webkit --profile=Stage
46
46
  ```
47
47
 
48
48
  ```ts
49
49
  // Example environment:
50
50
  HEADLESS=true
51
- BROWSER=Chrome,Safari
51
+ BROWSER=chrome,webkit
52
52
  PROFILE=Stage
53
53
  ```
54
54
 
@@ -18,8 +18,8 @@ const AVAILABLE_BROWSERS = [
18
18
  tag: 'E',
19
19
  },
20
20
  {
21
- name: 'safari',
22
- tag: 'S',
21
+ name: 'webkit',
22
+ tag: 'W',
23
23
  },
24
24
  ];
25
25
  // Export only the browser names in lowercase
@@ -1,7 +1,7 @@
1
1
  import AVAILABLE_BROWSERS from '../constants/AVAILABLE_BROWSERS';
2
2
  /**
3
3
  * Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
4
- * `npx cypress info` reports (`- Name:` lines), plus Safari (always shown
4
+ * `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
5
5
  * because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
6
6
  * @author Yuen Ler Chow
7
7
  */
@@ -11,7 +11,7 @@ const getRootPath_1 = __importDefault(require("./getRootPath"));
11
11
  const AVAILABLE_BROWSERS_1 = __importDefault(require("../constants/AVAILABLE_BROWSERS"));
12
12
  /**
13
13
  * Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
14
- * `npx cypress info` reports (`- Name:` lines), plus Safari (always shown
14
+ * `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
15
15
  * because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
16
16
  * @author Yuen Ler Chow
17
17
  */
@@ -39,8 +39,8 @@ const getCypressDetectedBrowsersForChooser = () => {
39
39
  console.warn('Could not detect installed browsers (cypress info failed).');
40
40
  }
41
41
  return AVAILABLE_BROWSERS_1.default.filter((b) => {
42
- // Always include Safari in the chooser because "npx cypress info" omits WebKit
43
- return b.name === 'safari' || detected.has(b.name);
42
+ // Always include Webkit in the chooser because "npx cypress info" omits WebKit
43
+ return b.name === 'webkit' || detected.has(b.name);
44
44
  });
45
45
  };
46
46
  exports.default = getCypressDetectedBrowsersForChooser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dceky",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Cypress toolkit for Harvard DCE",
5
5
  "main": "./lib/src/index.js",
6
6
  "types": "./lib/src/index.d.ts",
@@ -19,8 +19,8 @@ const AVAILABLE_BROWSERS: {
19
19
  tag: 'E',
20
20
  },
21
21
  {
22
- name: 'safari',
23
- tag: 'S',
22
+ name: 'webkit',
23
+ tag: 'W',
24
24
  },
25
25
  ];
26
26
 
@@ -9,7 +9,7 @@ import AVAILABLE_BROWSERS from '../constants/AVAILABLE_BROWSERS';
9
9
 
10
10
  /**
11
11
  * Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
12
- * `npx cypress info` reports (`- Name:` lines), plus Safari (always shown
12
+ * `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
13
13
  * because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
14
14
  * @author Yuen Ler Chow
15
15
  */
@@ -37,8 +37,8 @@ const getCypressDetectedBrowsersForChooser = (): typeof AVAILABLE_BROWSERS => {
37
37
  }
38
38
 
39
39
  return AVAILABLE_BROWSERS.filter((b) => {
40
- // Always include Safari in the chooser because "npx cypress info" omits WebKit
41
- return b.name === 'safari' || detected.has(b.name);
40
+ // Always include Webkit in the chooser because "npx cypress info" omits WebKit
41
+ return b.name === 'webkit' || detected.has(b.name);
42
42
  });
43
43
  };
44
44