sitespeed.io 25.3.1 → 25.3.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 +5 -0
- package/lib/plugins/browsertime/analyzer.js +29 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 25.3.2 - 2022-06-30
|
|
5
|
+
### Fixed
|
|
6
|
+
* Another go at fixing the preWarmServer issue [#3683](https://github.com/sitespeedio/sitespeed.io/pull/3683).
|
|
7
|
+
|
|
3
8
|
## 25.3.1 - 2022-06-29
|
|
4
9
|
### Fixed
|
|
5
10
|
* Upgraded to [Browsertime 16.11.1](https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#16111---2022-06-29) that fixes the preWarmServer issue reported in [#3682](https://github.com/sitespeedio/sitespeed.io/issues/3682).
|
|
@@ -22,12 +22,38 @@ const iphone6UserAgent =
|
|
|
22
22
|
'(KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25';
|
|
23
23
|
|
|
24
24
|
async function preWarmServer(urls, options, scriptOrMultiple) {
|
|
25
|
-
const
|
|
25
|
+
const preWarmOptions = {
|
|
26
26
|
browser: options.browser,
|
|
27
27
|
iterations: 1,
|
|
28
28
|
xvfb: options.xvfb,
|
|
29
|
-
android: options.android
|
|
30
|
-
|
|
29
|
+
android: options.android,
|
|
30
|
+
docker: options.docker,
|
|
31
|
+
headless: options.headless
|
|
32
|
+
};
|
|
33
|
+
const chromeDevice = get(options, 'chrome.android.deviceSerial');
|
|
34
|
+
const firefoxDevice = get(options, 'firefox.android.deviceSerial');
|
|
35
|
+
const safariIos = get(options, 'safari.ios');
|
|
36
|
+
const safariDeviceName = get(options, 'safari.deviceName');
|
|
37
|
+
const safariDeviceUDID = get(options, 'safari.deviceUDID ');
|
|
38
|
+
|
|
39
|
+
if (chromeDevice) {
|
|
40
|
+
set(options, 'chrome.android.deviceSerial', chromeDevice);
|
|
41
|
+
} else if (firefoxDevice) {
|
|
42
|
+
set(options, 'firefox.android.deviceSerial', firefoxDevice);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (safariIos) {
|
|
46
|
+
set(options, 'safari.ios', true);
|
|
47
|
+
if (safariDeviceName) {
|
|
48
|
+
set(options, 'safari.deviceName', safariDeviceName);
|
|
49
|
+
}
|
|
50
|
+
if (safariDeviceUDID) {
|
|
51
|
+
set(options, 'safari.deviceUDID', safariDeviceUDID);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const engine = new browsertime.Engine(preWarmOptions);
|
|
56
|
+
|
|
31
57
|
await engine.start();
|
|
32
58
|
log.info('Start pre-testing/warming' + urls);
|
|
33
59
|
if (scriptOrMultiple) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "25.3.
|
|
9
|
+
"version": "25.3.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/storage": "5.19.3",
|
package/package.json
CHANGED