Skip to content

Commit ee7dcee

Browse files
committed
Use last beta in cases of multiple beta releases
1 parent bc90241 commit ee7dcee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
diff --git a/node_modules/compute-baseline/dist/browser-compat-data/browser.js b/node_modules/compute-baseline/dist/browser-compat-data/browser.js
2-
index 1e865af..89a9e9b 100644
2+
index 1e865af..fc37272 100644
33
--- a/node_modules/compute-baseline/dist/browser-compat-data/browser.js
44
+++ b/node_modules/compute-baseline/dist/browser-compat-data/browser.js
55
@@ -36,7 +36,7 @@ export class Browser {
66
return this.data.name;
77
}
88
current() {
99
- const curr = this.releases.find((r) => r.data.status === "current");
10-
+ const curr = this.releases.find((r) => r.data.status === "beta");
10+
+ const curr = this.releases.findLast((r) => r.data.status === "beta");
1111
if (curr === undefined) {
1212
throw new Error(`${browser} does not have a "current" release`);
1313
}
1414
diff --git a/node_modules/compute-baseline/dist/browser-compat-data/release.js b/node_modules/compute-baseline/dist/browser-compat-data/release.js
15-
index 58fa044..7e55306 100644
15+
index 58fa044..5854ecf 100644
1616
--- a/node_modules/compute-baseline/dist/browser-compat-data/release.js
1717
+++ b/node_modules/compute-baseline/dist/browser-compat-data/release.js
1818
@@ -39,7 +39,7 @@ export class Release {
1919
return onOrAfterStart;
2020
}
2121
isPrerelease() {
2222
- if (["beta", "nightly", "planned"].includes(this.data.status)) {
23-
+ if (["nightly", "planned"].includes(this.data.status)) {
23+
+ if (["planned"].includes(this.data.status)) {
2424
return true;
2525
}
2626
return false;

0 commit comments

Comments
 (0)