@percy/core 1.31.9-beta.4 → 1.31.9-beta.5
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/api.js +4 -2
- package/package.json +8 -8
package/dist/api.js
CHANGED
|
@@ -97,6 +97,7 @@ export function createPercyServer(percy, port) {
|
|
|
97
97
|
// This will only be used if width is not passed in options
|
|
98
98
|
config: percy.config.snapshot.widths
|
|
99
99
|
},
|
|
100
|
+
deviceDetails: percy.deviceDetails || [],
|
|
100
101
|
success: true,
|
|
101
102
|
type: percy.client.tokenType()
|
|
102
103
|
});
|
|
@@ -249,11 +250,12 @@ export function createPercyServer(percy, port) {
|
|
|
249
250
|
} else if (cmd === 'config') {
|
|
250
251
|
var _body$mobile;
|
|
251
252
|
percy.config.snapshot.widths = body.config;
|
|
252
|
-
|
|
253
|
+
// Support setting deviceDetails directly or deriving from mobile widths
|
|
254
|
+
percy.deviceDetails = body.deviceDetails || ((_body$mobile = body.mobile) === null || _body$mobile === void 0 ? void 0 : _body$mobile.map(w => {
|
|
253
255
|
return {
|
|
254
256
|
width: w
|
|
255
257
|
};
|
|
256
|
-
});
|
|
258
|
+
}));
|
|
257
259
|
percy.config.snapshot.responsiveSnapshotCapture = !!body.responsive;
|
|
258
260
|
percy.config.percy.deferUploads = !!body.deferUploads;
|
|
259
261
|
} else if (cmd === 'error' || cmd === 'disconnect') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.31.9-beta.
|
|
3
|
+
"version": "1.31.9-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:types": "tsd"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@percy/client": "1.31.9-beta.
|
|
47
|
-
"@percy/config": "1.31.9-beta.
|
|
48
|
-
"@percy/dom": "1.31.9-beta.
|
|
49
|
-
"@percy/logger": "1.31.9-beta.
|
|
50
|
-
"@percy/monitoring": "1.31.9-beta.
|
|
51
|
-
"@percy/webdriver-utils": "1.31.9-beta.
|
|
46
|
+
"@percy/client": "1.31.9-beta.5",
|
|
47
|
+
"@percy/config": "1.31.9-beta.5",
|
|
48
|
+
"@percy/dom": "1.31.9-beta.5",
|
|
49
|
+
"@percy/logger": "1.31.9-beta.5",
|
|
50
|
+
"@percy/monitoring": "1.31.9-beta.5",
|
|
51
|
+
"@percy/webdriver-utils": "1.31.9-beta.5",
|
|
52
52
|
"content-disposition": "^0.5.4",
|
|
53
53
|
"cross-spawn": "^7.0.3",
|
|
54
54
|
"extract-zip": "^2.0.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"ws": "^8.17.1",
|
|
62
62
|
"yaml": "^2.4.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "0fa4c3c4560b63cf50ed61a93a8772c745c70b6e"
|
|
65
65
|
}
|