@percy/core 1.28.7 → 1.28.8-beta.1

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/dist/percy.js +6 -2
  2. package/package.json +8 -8
package/dist/percy.js CHANGED
@@ -146,7 +146,6 @@ export class Percy {
146
146
  if (this.readyState != null) return;
147
147
  this.readyState = 0;
148
148
  try {
149
- var _this$build;
150
149
  if (process.env.PERCY_CLIENT_ERROR_LOGS !== 'false') {
151
150
  this.log.warn('Notice: Percy collects CI logs for service improvement, stored for 30 days. Opt-out anytime with export PERCY_CLIENT_ERROR_LOGS=false');
152
151
  }
@@ -156,7 +155,12 @@ export class Percy {
156
155
  if (!this.skipDiscovery) yield this.#discovery.start();
157
156
  // start a local API server for SDK communication
158
157
  if (this.server) yield this.server.listen();
159
- if (this.projectType === 'web') this.deviceDetails = yield this.client.getDeviceDetails((_this$build = this.build) === null || _this$build === void 0 ? void 0 : _this$build.id);
158
+ if (this.projectType === 'web') {
159
+ if (!process.env.PERCY_DO_NOT_CAPTURE_RESPONSIVE_ASSETS || process.env.PERCY_DO_NOT_CAPTURE_RESPONSIVE_ASSETS !== 'true') {
160
+ var _this$build;
161
+ this.deviceDetails = yield this.client.getDeviceDetails((_this$build = this.build) === null || _this$build === void 0 ? void 0 : _this$build.id);
162
+ }
163
+ }
160
164
  const snapshotType = this.projectType === 'web' ? 'snapshot' : 'comparison';
161
165
  this.syncQueue = new WaitForJob(snapshotType, this);
162
166
  // log and mark this instance as started
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.28.7",
3
+ "version": "1.28.8-beta.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "latest"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.28.7",
47
- "@percy/config": "1.28.7",
48
- "@percy/dom": "1.28.7",
49
- "@percy/logger": "1.28.7",
50
- "@percy/webdriver-utils": "1.28.7",
46
+ "@percy/client": "1.28.8-beta.1",
47
+ "@percy/config": "1.28.8-beta.1",
48
+ "@percy/dom": "1.28.8-beta.1",
49
+ "@percy/logger": "1.28.8-beta.1",
50
+ "@percy/webdriver-utils": "1.28.8-beta.1",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -60,5 +60,5 @@
60
60
  "ws": "^8.0.0",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "d920b185772c020b9df6719142623844aeccb9af"
63
+ "gitHead": "d31a9746c7be6d74db284b8f30c3248d2bba916e"
64
64
  }