@percy/core 1.29.2 → 1.29.3-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.
package/dist/install.js CHANGED
@@ -138,7 +138,7 @@ export function chromium({
138
138
  let extract = (i, o) => import('extract-zip').then(ex => ex.default(i, {
139
139
  dir: o
140
140
  }));
141
- let url = 'https://storage.googleapis.com/chromium-browser-snapshots/' + selectByPlatform({
141
+ let url = (process.env.PERCY_CHROMIUM_BASE_URL || 'https://storage.googleapis.com/chromium-browser-snapshots/') + selectByPlatform({
142
142
  linux: `Linux_x64/${revision}/chrome-linux.zip`,
143
143
  darwin: `Mac/${revision}/chrome-mac.zip`,
144
144
  darwinArm: `Mac_Arm/${revision}/chrome-mac.zip`,
package/dist/percy.js CHANGED
@@ -87,6 +87,7 @@ export class Percy {
87
87
  labels ?? (labels = (_config$percy = config.percy) === null || _config$percy === void 0 ? void 0 : _config$percy.labels);
88
88
  deferUploads ?? (deferUploads = (_config$percy2 = config.percy) === null || _config$percy2 === void 0 ? void 0 : _config$percy2.deferUploads);
89
89
  this.config = config;
90
+ this.cliStartTime = null;
90
91
  if (testing) loglevel = 'silent';
91
92
  if (loglevel) this.loglevel(loglevel);
92
93
  this.port = port;
@@ -175,6 +176,7 @@ export class Percy {
175
176
  // already starting or started
176
177
  if (this.readyState != null) return;
177
178
  this.readyState = 0;
179
+ this.cliStartTime = new Date().toISOString();
178
180
  try {
179
181
  if (process.env.PERCY_CLIENT_ERROR_LOGS !== 'false') {
180
182
  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.');
package/dist/snapshot.js CHANGED
@@ -354,7 +354,8 @@ export function createSnapshotsQueue(percy) {
354
354
  let {
355
355
  data
356
356
  } = await percy.client.createBuild({
357
- projectType: percy.projectType
357
+ projectType: percy.projectType,
358
+ cliStartTime: percy.cliStartTime
358
359
  });
359
360
  let url = data.attributes['web-url'];
360
361
  let number = data.attributes['build-number'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.29.2",
3
+ "version": "1.29.3-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.29.2",
47
- "@percy/config": "1.29.2",
48
- "@percy/dom": "1.29.2",
49
- "@percy/logger": "1.29.2",
50
- "@percy/webdriver-utils": "1.29.2",
46
+ "@percy/client": "1.29.3-beta.1",
47
+ "@percy/config": "1.29.3-beta.1",
48
+ "@percy/dom": "1.29.3-beta.1",
49
+ "@percy/logger": "1.29.3-beta.1",
50
+ "@percy/webdriver-utils": "1.29.3-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.17.1",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "2ee21c225586af1cd257e5155b012e3a92645074"
63
+ "gitHead": "2a7eb67f9432b459594c464d5260b48b11cbea26"
64
64
  }
package/post-install.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs';
2
2
 
3
3
  try {
4
- if (process.env.PERCY_POSTINSTALL_BROWSER) {
4
+ if (!['false', '0', undefined].includes(process.env.PERCY_POSTINSTALL_BROWSER)) {
5
5
  // Automatically download and install Chromium if PERCY_POSTINSTALL_BROWSER is set
6
6
  await import('./dist/install.js').then(install => install.chromium());
7
7
  } else if (!process.send && fs.existsSync('./src')) {