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:
Huáng Jùnliàng
2020-07-29 17:09:26 -04:00
parent 2f89e72321
commit 95fcb3e16c
7 changed files with 56 additions and 76 deletions

View File

@@ -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
}

View File

@@ -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