mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
18 lines
213 B
JavaScript
18 lines
213 B
JavaScript
/**
|
|
* Storage mock
|
|
*/
|
|
|
|
const store = {};
|
|
|
|
const storage = {
|
|
setItem: (key, value) => {
|
|
store[key] = value;
|
|
return store;
|
|
},
|
|
getItem: key => {
|
|
return store[key];
|
|
}
|
|
};
|
|
|
|
export default storage;
|