@percy/core 1.29.2 → 1.29.3-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 +2 -0
- package/dist/snapshot.js +2 -1
- package/package.json +8 -8
- package/post-install.js +1 -1
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.
|
|
3
|
+
"version": "1.29.3-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": "
|
|
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.
|
|
47
|
-
"@percy/config": "1.29.
|
|
48
|
-
"@percy/dom": "1.29.
|
|
49
|
-
"@percy/logger": "1.29.
|
|
50
|
-
"@percy/webdriver-utils": "1.29.
|
|
46
|
+
"@percy/client": "1.29.3-beta.0",
|
|
47
|
+
"@percy/config": "1.29.3-beta.0",
|
|
48
|
+
"@percy/dom": "1.29.3-beta.0",
|
|
49
|
+
"@percy/logger": "1.29.3-beta.0",
|
|
50
|
+
"@percy/webdriver-utils": "1.29.3-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": "
|
|
63
|
+
"gitHead": "ee18a7860dcf1fb778e4cbb069683280c2c4c465"
|
|
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')) {
|