mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
switching from default export to named export
This commit is contained in:
parent
7075f6c4d7
commit
98f348ebd3
@ -1,6 +1,6 @@
|
||||
// NOTE: this list must be up-to-date with browsers listed in
|
||||
// test/acceptance/useragentstrings.yml
|
||||
export default {
|
||||
export const BROWSER_ALIASES_MAP = {
|
||||
'Amazon Silk': 'amazon_silk',
|
||||
'Android Browser': 'android',
|
||||
Bada: 'bada',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import BROWSER_ALIASES_MAP from './constants.js';
|
||||
import {BROWSER_ALIASES_MAP} from './constants.js';
|
||||
|
||||
export default class Utils {
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
import test from 'ava';
|
||||
import BROWSER_ALIASES_MAP from '../../src/constants';
|
||||
import {BROWSER_ALIASES_MAP} from '../../src/constants';
|
||||
|
||||
test('check duplicate aliases', (t) => {
|
||||
const aliasesList = Object.keys(BROWSER_ALIASES_MAP).map(value => (BROWSER_ALIASES_MAP[value]));
|
||||
|
Loading…
Reference in New Issue
Block a user