2020-10-24 23:57:45 +05:30
|
|
|
import * as types from './mutation_types';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
[types.SET_LOADING](state, isLoading) {
|
|
|
|
state.isLoading = isLoading;
|
|
|
|
},
|
|
|
|
|
|
|
|
[types.SET_PACKAGE_VERSIONS](state, versions) {
|
|
|
|
state.packageEntity = {
|
|
|
|
...state.packageEntity,
|
|
|
|
versions,
|
|
|
|
};
|
|
|
|
},
|
2021-09-04 01:27:46 +05:30
|
|
|
[types.UPDATE_PACKAGE_FILES](state, files) {
|
|
|
|
state.packageFiles = files;
|
|
|
|
},
|
2020-10-24 23:57:45 +05:30
|
|
|
};
|