sitespeed.io 23.6.0 → 23.6.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/CHANGELOG.md +3 -0
- package/lib/plugins/lateststorer/index.js +11 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## 23.6.1 - 2022-03-25
|
|
5
|
+
### Fixed
|
|
6
|
+
* Fixing text formatting in the JSON from latest run and make sure we display the time with UTC[#3611](https://github.com/sitespeedio/sitespeed.io/pull/3611).
|
|
4
7
|
## 23.6.0 - 2022-03-25
|
|
5
8
|
### Added
|
|
6
9
|
* Various fixes to add more content to the JSON stored from the latest run, making it easier to show more meta data for a run in Grafana [#3607](https://github.com/sitespeedio/sitespeed.io/pull/3607), [#3609](https://github.com/sitespeedio/sitespeed.io/pull/3609) and [#3610](https://github.com/sitespeedio/sitespeed.io/pull/3610).
|
|
@@ -109,11 +109,14 @@ module.exports = {
|
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
const timestamp = this.context.timestamp.format(
|
|
113
|
+
'YYYY-MM-DD HH:mm:ss Z'
|
|
114
|
+
);
|
|
112
115
|
// Also store a JSON with data that we can use later
|
|
113
116
|
const json = {
|
|
114
117
|
url: message.url,
|
|
115
118
|
alias: this.alias[message.url],
|
|
116
|
-
timestamp
|
|
119
|
+
timestamp,
|
|
117
120
|
iterations: options.browsertime.iterations,
|
|
118
121
|
name: options.name
|
|
119
122
|
};
|
|
@@ -140,12 +143,12 @@ module.exports = {
|
|
|
140
143
|
json.browser.name = helpers.cap(get(browserData, 'browser.name'));
|
|
141
144
|
json.browser.version = get(browserData, 'browser.version', 'unknown');
|
|
142
145
|
|
|
143
|
-
json.friendlyHTML =
|
|
146
|
+
json.friendlyHTML = `<b><a href="${message.url}">${
|
|
144
147
|
json.alias ? json.alias : message.url
|
|
145
|
-
}</a> ${helpers.plural(
|
|
148
|
+
}</a></b> ${helpers.plural(
|
|
146
149
|
options.browsertime.iterations,
|
|
147
150
|
'iteration'
|
|
148
|
-
)} at
|
|
151
|
+
)} at <i>${json.timestamp}</i> using ${json.browser.name} ${
|
|
149
152
|
json.browser.version
|
|
150
153
|
}`;
|
|
151
154
|
|
|
@@ -177,8 +180,8 @@ module.exports = {
|
|
|
177
180
|
osInfo = `${linux.dist} ${linux.release}`;
|
|
178
181
|
}
|
|
179
182
|
json.friendlyHTML += options.browsertime.docker
|
|
180
|
-
? ' using Docker ' + osInfo
|
|
181
|
-
: ' on ' + osInfo
|
|
183
|
+
? ' using Docker ' + osInfo
|
|
184
|
+
: ' on ' + osInfo;
|
|
182
185
|
}
|
|
183
186
|
|
|
184
187
|
// Hack to add a result URL
|
|
@@ -189,7 +192,8 @@ module.exports = {
|
|
|
189
192
|
this.alias[message.url]
|
|
190
193
|
) + 'index.html';
|
|
191
194
|
|
|
192
|
-
json.friendlyHTML +=
|
|
195
|
+
json.friendlyHTML +=
|
|
196
|
+
' [<b><a href="' + resultURL + '">result</a></b>].';
|
|
193
197
|
json.result = resultURL;
|
|
194
198
|
}
|
|
195
199
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "23.6.
|
|
3
|
+
"version": "23.6.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "23.6.
|
|
9
|
+
"version": "23.6.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/storage": "5.8.3",
|
package/package.json
CHANGED