export const parseChangeReturns = (changes) => changes.map(parseChangeReturn);
const parseChangeReturn = (change) => {
    switch (change.type) {
        case 'Added':
            return {
                type: 'put',
                key: change.key,
                value: change.value,
            };
        case 'Changed':
            return {
                type: 'put',
                key: change.key,
                value: change.value,
            };
        case 'Deleted':
            return {
                type: 'del',
                key: change.key,
            };
        default:
            throw new Error('Invalid Change Type found');
    }
};

//# sourceMappingURL=changes.js.map
