@percy/sdk-utils 1.19.0-alpha.0 → 2.0.0-alpha.0

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/dist/bundle.js CHANGED
@@ -181,7 +181,7 @@
181
181
  info.enabled = false;
182
182
  error = e;
183
183
  }
184
- if (info.enabled && ![1, 2].includes(info.version.major)) {
184
+ if (info.enabled && info.version.major !== 1) {
185
185
  log.info('Unsupported Percy CLI version, disabling snapshots');
186
186
  log.debug(`Found version: ${info.version}`);
187
187
  info.enabled = false;
@@ -23,7 +23,7 @@ async function isPercyEnabled() {
23
23
  _percyInfo.default.enabled = false;
24
24
  error = e;
25
25
  }
26
- if (_percyInfo.default.enabled && ![1, 2].includes(_percyInfo.default.version.major)) {
26
+ if (_percyInfo.default.enabled && _percyInfo.default.version.major !== 1) {
27
27
  log.info('Unsupported Percy CLI version, disabling snapshots');
28
28
  log.debug(`Found version: ${_percyInfo.default.version}`);
29
29
  _percyInfo.default.enabled = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/sdk-utils",
3
- "version": "1.19.0-alpha.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,5 +50,5 @@
50
50
  ]
51
51
  }
52
52
  },
53
- "gitHead": "84a27b8600c45ca67f8dd9b3403a0a8913e7c6f3"
53
+ "gitHead": "6ebc3d59194d6cd25fceb5366ab9f230849a4f41"
54
54
  }