@percy/core 1.28.4-beta.0 → 1.28.4

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 -3
  2. package/package.json +8 -8
package/dist/percy.js CHANGED
@@ -147,7 +147,9 @@ export class Percy {
147
147
  this.readyState = 0;
148
148
  try {
149
149
  var _this$build;
150
- this.log.warn('Notice: Percy collects CI logs for service improvement, stored for 14 days. Opt-out anytime with export PERCY_CLIENT_ERROR_LOGS=false');
150
+ if (process.env.PERCY_CLIENT_ERROR_LOGS !== 'false') {
151
+ 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
153
  // start the snapshots queue immediately when not delayed or deferred
152
154
  if (!this.delayUploads && !this.deferUploads) yield this.#snapshots.start();
153
155
  // do not start the discovery queue when not needed
@@ -429,7 +431,8 @@ export class Percy {
429
431
  clilogs: logger.query(() => true)
430
432
  };
431
433
  // Only add CI logs if not disabled voluntarily.
432
- if (process.env.PERCY_CLIENT_ERROR_LOGS !== 'false') {
434
+ const sendCILogs = process.env.PERCY_CLIENT_ERROR_LOGS !== 'false';
435
+ if (sendCILogs) {
433
436
  const redactedContent = redactSecrets(logger.query(() => true, true));
434
437
  logsObject.cilogs = redactedContent;
435
438
  }
@@ -444,7 +447,7 @@ export class Percy {
444
447
  };
445
448
  // Ignore this will update once I implement logs controller.
446
449
  const logsSHA = await this.client.sendBuildLogs(eventObject);
447
- this.log.info(`Build logs sent successfully. Please share this log ID with Percy team in case of any issues - ${logsSHA}`);
450
+ this.log.info(`Build's CLI${sendCILogs ? ' and CI' : ''} logs sent successfully. Please share this log ID with Percy team in case of any issues - ${logsSHA}`);
448
451
  } catch (err) {
449
452
  this.log.warn('Could not send the builds logs');
450
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.28.4-beta.0",
3
+ "version": "1.28.4",
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": "beta"
12
+ "tag": "latest"
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.4-beta.0",
47
- "@percy/config": "1.28.4-beta.0",
48
- "@percy/dom": "1.28.4-beta.0",
49
- "@percy/logger": "1.28.4-beta.0",
50
- "@percy/webdriver-utils": "1.28.4-beta.0",
46
+ "@percy/client": "1.28.4",
47
+ "@percy/config": "1.28.4",
48
+ "@percy/dom": "1.28.4",
49
+ "@percy/logger": "1.28.4",
50
+ "@percy/webdriver-utils": "1.28.4",
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": "fe4d7e944acd2081d901eb2eed202ccb64098576"
63
+ "gitHead": "00ab37414a739e50b28c054da4301f9a7718e880"
64
64
  }