sitespeed.io 36.0.2 → 36.0.3
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/lib/plugins/gcs/index.js +1 -1
- package/lib/plugins/s3/index.js +1 -1
- package/lib/support/fileUtil.js +4 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 36.0.3 - 2025-01-23
|
|
4
|
+
### Fixed
|
|
5
|
+
* Fix for uploading files to GCS/S3 that was partly broken in 36.0.0 [#4410](https://github.com/sitespeedio/sitespeed.io/pull/4410).
|
|
6
|
+
|
|
3
7
|
## 36.0.2 - 2025-01-21
|
|
4
8
|
### Fixed
|
|
5
9
|
* Updated Browsertime with a fix if the Jimp dependency is missing.
|
package/lib/plugins/gcs/index.js
CHANGED
|
@@ -30,7 +30,7 @@ async function uploadLatestFiles(dir, gcsOptions, prefix) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
async function upload(dir, gcsOptions, prefix) {
|
|
33
|
-
const files = await recursiveReaddir(dir
|
|
33
|
+
const files = await recursiveReaddir(dir);
|
|
34
34
|
const promises = [];
|
|
35
35
|
|
|
36
36
|
const storage = new Storage({
|
package/lib/plugins/s3/index.js
CHANGED
|
@@ -85,7 +85,7 @@ export default class S3Plugin extends SitespeedioPlugin {
|
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
try {
|
|
88
|
-
const files = await recursiveReaddir(baseDir
|
|
88
|
+
const files = await recursiveReaddir(baseDir);
|
|
89
89
|
const tasks = files.map(file => async () => {
|
|
90
90
|
return uploadFile(
|
|
91
91
|
file,
|
package/lib/support/fileUtil.js
CHANGED
|
@@ -2,7 +2,7 @@ import { readdir } from 'node:fs/promises';
|
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
|
|
5
|
-
export async function recursiveReaddir(dir,
|
|
5
|
+
export async function recursiveReaddir(dir, skipDirectories = false) {
|
|
6
6
|
const results = [];
|
|
7
7
|
const entries = await readdir(dir, { withFileTypes: true });
|
|
8
8
|
|
|
@@ -10,10 +10,10 @@ export async function recursiveReaddir(dir, ignoreDirectories = false) {
|
|
|
10
10
|
const fullPath = path.join(dir, entry.name);
|
|
11
11
|
|
|
12
12
|
if (entry.isDirectory()) {
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
if (skipDirectories) {
|
|
14
|
+
continue;
|
|
15
15
|
}
|
|
16
|
-
const subPaths = await recursiveReaddir(fullPath,
|
|
16
|
+
const subPaths = await recursiveReaddir(fullPath, skipDirectories);
|
|
17
17
|
results.push(...subPaths);
|
|
18
18
|
} else {
|
|
19
19
|
results.push(fullPath);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "36.0.
|
|
3
|
+
"version": "36.0.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "36.0.
|
|
9
|
+
"version": "36.0.3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"sitespeed.io": "./bin/sitespeed.js",
|
|
6
6
|
"sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
|
|
7
7
|
},
|
|
8
|
-
"version": "36.0.
|
|
8
|
+
"version": "36.0.3",
|
|
9
9
|
"description": "sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"performance",
|