Update compat-table (#11890)
* chore: update compat-table * chore: friendly to node < 14 contributors Co-Authored-By: Brian Ng <bng412@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
@@ -35,8 +35,8 @@ function process(source) {
|
||||
const allowedBrowsers = {};
|
||||
|
||||
Object.keys(stats).forEach(browser => {
|
||||
const browserName = browserNameMap[browser] ?? browser;
|
||||
let browserSupport = stats[browserSupportMap[browserName] ?? browser];
|
||||
const browserName = browserNameMap[browser] || browser;
|
||||
let browserSupport = stats[browserSupportMap[browserName] || browser];
|
||||
if (Array.isArray(browserSupport)) {
|
||||
browserSupport = browserSupport[0]; // The first item is the most progressive support
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
COMPAT_TABLE_COMMIT=50e5424d113869b08911a5df956d0e931722e5b5
|
||||
COMPAT_TABLE_COMMIT=163aacb6f93e325231d578e31c03141cd9086dbb
|
||||
GIT_HEAD=build/compat-table/.git/HEAD
|
||||
|
||||
if [ -d "build/compat-table" ]; then
|
||||
|
||||
Reference in New Issue
Block a user