{"size": 1505, "ext": "js", "max_stars_repo_path": "dist/service/journey.js", "max_stars_repo_name": "IONlu/TFL", "max_stars_repo_stars_event_min_datetime": "2016-12-09T08:42:14.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-30T10:41:18.000Z", "max_issues_repo_path": "dist/service/journey.js", "max_issues_repo_name": "IONlu/TFL", "max_issues_repo_issues_event_min_datetime": "2016-12-12T13:56:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T22:05:18.000Z", "max_forks_repo_path": "dist/service/journey.js", "max_forks_repo_name": "IONlu/TFL", "max_forks_repo_forks_event_min_datetime": "2018-03-18T13:59:26.000Z", "max_forks_repo_forks_event_max_datetime": "2018-03-18T13:59:26.000Z"}
{"max_stars_count": 10, "max_issues_count": 21, "max_forks_count": 1, "avg_line_length": 44.2647058824, "max_line_length": 458, "alphanum_fraction": 0.6518272425}
'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.plan = undefined;

var _openov = require('../source/journey/openov');

var openOV = _interopRequireWildcard(_openov);

var _boom = require('boom');

var _boom2 = _interopRequireDefault(_boom);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

const plan = exports.plan = (() => {
    var _ref = _asyncToGenerator(function* (from, to) {
        try {
            return yield openOV.plan(from, to);
        } catch (boom) {
            throw _boom2.default.serverUnavailable('The Journey planner is temporarily unavailable');
        }
    });

    return function plan(_x, _x2) {
        return _ref.apply(this, arguments);
    };
})();