Sha256: 4c74a2e70fc257b49a84bab4420d431fc430fa9294cbff59159f8c35b50e972a

Contents?: true

Size: 550 Bytes

Versions: 125

Compression:

Stored size: 550 Bytes

Contents

'use strict'

const browsers = require('./browsers').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

Version data entries

125 entries across 34 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-transform-object-rest-spread/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-transform-function-name/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.44 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.43 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.42 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.41 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.40 node_modules/caniuse-lite/dist/unpacker/region.js
wice_grid-7.1.0 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.39 node_modules/caniuse-lite/dist/unpacker/region.js
immosquare-cleaner-0.1.38 node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.16.1 test/dummy/node_modules/core-js-compat/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.16.1 test/dummy/node_modules/@babel/helper-compilation-targets/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.15.2 test/dummy/node_modules/@babel/helper-compilation-targets/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.15.2 test/dummy/node_modules/core-js-compat/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.18.4 test/dummy/node_modules/@babel/helper-compilation-targets/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.18.4 test/dummy/node_modules/core-js-compat/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.18.1 test/dummy/node_modules/@babel/helper-compilation-targets/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.18.1 test/dummy/node_modules/core-js-compat/node_modules/caniuse-lite/dist/unpacker/region.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/helper-compilation-targets/node_modules/caniuse-lite/dist/unpacker/region.js