mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-29 08:19:26 +08:00
Add node modules and compiled JavaScript from main (#172)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
ee3c5aed75
commit
08d466b6ab
+20
@@ -0,0 +1,20 @@
|
||||
const { browsers } = require('./browsers')
|
||||
|
||||
function unpackRegion(packed) {
|
||||
return Object.keys(packed).reduce((list, browser) => {
|
||||
let data = packed[browser]
|
||||
list[browsers[browser]] = Object.keys(data).reduce((memo, key) => {
|
||||
let stats = data[key]
|
||||
if (key === '_') {
|
||||
stats.split(' ').forEach(version => (memo[version] = null))
|
||||
} else {
|
||||
memo[key] = stats
|
||||
}
|
||||
return memo
|
||||
}, {})
|
||||
return list
|
||||
}, {})
|
||||
}
|
||||
|
||||
module.exports = unpackRegion
|
||||
module.exports.default = unpackRegion
|
||||
Reference in New Issue
Block a user