{"size": 629, "ext": "js", "max_stars_repo_path": "server/transform/json2tasks.js", "max_stars_repo_name": "azder/todoes", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/transform/json2tasks.js", "max_issues_repo_name": "azder/todoes", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/transform/json2tasks.js", "max_forks_repo_name": "azder/todoes", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.0, "max_line_length": 65, "alphanum_fraction": 0.5230524642}
/**
 * Created by azder on 2016-03-31.
 */


'use strict'; // ALWAYS

// some weird babel bug, couldn't decompose on import
import f from '../f';
const {prop, map, nav, compose, arrayify, assign} = f;


import logger from '../logger';

const PATH = 'tasks.task';
const log = logger(`[T-TASKS] ${PATH} = `);
const trim = Function.prototype.call.bind(String.prototype.trim);

export default compose(
    map(
        task => assign(
            'text',
            compose(
                trim,
                prop('_')
            )(task),
            prop('$', task)
        )
    ),
    arrayify,
    log,
    nav(PATH)
);



