@eyeo/get-browser-binary 0.23.1 → 0.23.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/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.23.2
4
+
5
+ - Limit Edge downloads to those seen on the linux fileserver, to solve an issue
6
+ where the binaries of the latest version were removed. (!151)
7
+
3
8
  # 0.23.1
4
9
 
5
10
  - Re-enables local network access checks on Chromium v.139 (!149)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeo/get-browser-binary",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "Install browser binaries and matching webdrivers",
5
5
  "repository": {
6
6
  "type": "git",
package/src/edge.js CHANGED
@@ -188,8 +188,14 @@ export class Edge extends Browser {
188
188
  if (product.Product != downloadChannels[version])
189
189
  continue;
190
190
 
191
- let release = product.Releases.find(
192
- r => r.Platform == plat && r.Architecture == arch);
191
+ // Ideally this would only check platform and architecture, not
192
+ // version. However, we've run into a case where Microsoft has removed a
193
+ // latest stable version of Edge from the download servers without
194
+ // updating this index, so it helps to have some way of checking if a
195
+ // version is probably available.
196
+ let release = product.Releases.find(r => r.Platform == plat &&
197
+ r.Architecture == arch &&
198
+ r.ProductVersion == versionNumber);
193
199
  if (!release)
194
200
  continue;
195
201