browsertime 16.14.1 → 16.14.2
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/CHANGELOG.md +4 -0
- package/bin/browsertime.js +8 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 16.14.2 - 2022-08-26
|
|
5
|
+
### Fixed
|
|
6
|
+
* Using `--preWarmServer` didn't work on Android/iOS [#1837](https://github.com/sitespeedio/browsertime/pull/1837).
|
|
3
7
|
## 16.14.1 - 2022-08-26
|
|
4
8
|
### Fixed
|
|
5
9
|
* Guard relative standard deviation agains 0 standard deviation [#1835](https://github.com/sitespeedio/browsertime/pull/1835).
|
package/bin/browsertime.js
CHANGED
|
@@ -44,19 +44,22 @@ async function preWarmServer(urls, options) {
|
|
|
44
44
|
const safariDeviceName = get(options, 'safari.deviceName');
|
|
45
45
|
const safariDeviceUDID = get(options, 'safari.deviceUDID ');
|
|
46
46
|
|
|
47
|
+
if (options.android && options.browser === 'chrome') {
|
|
48
|
+
set(preWarmOptions, 'chrome.android.package', 'com.android.chrome');
|
|
49
|
+
}
|
|
47
50
|
if (chromeDevice) {
|
|
48
|
-
set(
|
|
51
|
+
set(preWarmOptions, 'chrome.android.deviceSerial', chromeDevice);
|
|
49
52
|
} else if (firefoxDevice) {
|
|
50
|
-
set(
|
|
53
|
+
set(preWarmOptions, 'firefox.android.deviceSerial', firefoxDevice);
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
if (safariIos) {
|
|
54
|
-
set(
|
|
57
|
+
set(preWarmOptions, 'safari.ios', true);
|
|
55
58
|
if (safariDeviceName) {
|
|
56
|
-
set(
|
|
59
|
+
set(preWarmOptions, 'safari.deviceName', safariDeviceName);
|
|
57
60
|
}
|
|
58
61
|
if (safariDeviceUDID) {
|
|
59
|
-
set(
|
|
62
|
+
set(preWarmOptions, 'safari.deviceUDID', safariDeviceUDID);
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
|