mirror of https://github.com/dessant/buster
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
import {migrate} from 'storage-versions';
|
|
|
|
import {getSupportedArea} from './storage';
|
|
|
|
async function initStorage(area = 'local') {
|
|
area = await getSupportedArea(area);
|
|
const context = require.context('storage/versions', true, /\.(?:js|json)$/i);
|
|
return migrate(context, {area});
|
|
}
|
|
|
|
export {initStorage};
|