@percy/core 1.29.1 → 1.29.2-beta.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/percy.js CHANGED
@@ -146,7 +146,7 @@ export class Percy {
146
146
 
147
147
  // validate provided config options
148
148
  let errors = PercyConfig.validate(config);
149
- if (errors) {
149
+ if ((errors === null || errors === void 0 ? void 0 : errors.length) > 0) {
150
150
  this.log.warn('Invalid config:');
151
151
  for (let e of errors) this.log.warn(`- ${e.path}: ${e.message}`);
152
152
  }
@@ -177,7 +177,7 @@ export class Percy {
177
177
  this.readyState = 0;
178
178
  try {
179
179
  if (process.env.PERCY_CLIENT_ERROR_LOGS !== 'false') {
180
- 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');
180
+ this.log.warn('Notice: Percy collects CI logs to improve service and enhance your experience. These logs help us debug issues and provide insights on your dashboards, making it easier to optimize the product experience. Logs are stored securely for 30 days. You can opt out anytime with export PERCY_CLIENT_ERROR_LOGS=false, but keeping this enabled helps us offer the best support and features.');
181
181
  }
182
182
  // Not awaiting proxy check as this can be asyncronous when not enabled
183
183
  const detectProxy = detectSystemProxyAndLog(this.config.percy.useSystemProxy);
@@ -417,7 +417,7 @@ export class Percy {
417
417
  ...comparison
418
418
  } = options;
419
419
  let errors = PercyConfig.validate(comparison, '/comparison');
420
- if (errors) {
420
+ if ((errors === null || errors === void 0 ? void 0 : errors.length) > 0) {
421
421
  this.log.warn('Invalid upload options:');
422
422
  for (let e of errors) this.log.warn(`- ${e.path}: ${e.message}`);
423
423
  }
package/dist/snapshot.js CHANGED
@@ -209,7 +209,7 @@ export function validateSnapshotOptions(options) {
209
209
 
210
210
  // warn on validation errors
211
211
  let errors = PercyConfig.validate(migrated, schema);
212
- if (errors) {
212
+ if ((errors === null || errors === void 0 ? void 0 : errors.length) > 0) {
213
213
  log.warn('Invalid snapshot options:');
214
214
  for (let e of errors) log.warn(`- ${e.path}: ${e.message}`);
215
215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.29.1",
3
+ "version": "1.29.2-beta.0",
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.29.1",
47
- "@percy/config": "1.29.1",
48
- "@percy/dom": "1.29.1",
49
- "@percy/logger": "1.29.1",
50
- "@percy/webdriver-utils": "1.29.1",
46
+ "@percy/client": "1.29.2-beta.0",
47
+ "@percy/config": "1.29.2-beta.0",
48
+ "@percy/dom": "1.29.2-beta.0",
49
+ "@percy/logger": "1.29.2-beta.0",
50
+ "@percy/webdriver-utils": "1.29.2-beta.0",
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.17.1",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "a2f1abdeb72e34cdc82f9d684902b38a8e7e0957"
63
+ "gitHead": "5e1526d9d9b3e08f3f667de97f340c3ac8c3809c"
64
64
  }