{"size": 439, "ext": "js", "max_stars_repo_path": "dist/Spec.js", "max_stars_repo_name": "van-ibm/openwhisk-cloud-usage-sample", "max_stars_repo_stars_event_min_datetime": "2018-09-17T17:04:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-07T12:55:07.000Z", "max_issues_repo_path": "dist/Spec.js", "max_issues_repo_name": "van-ibm/openwhisk-cloud-usage-sample", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/Spec.js", "max_forks_repo_name": "van-ibm/openwhisk-cloud-usage-sample", "max_forks_repo_forks_event_min_datetime": "2020-09-19T14:48:43.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-30T13:34:55.000Z"}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 33.7692307692, "max_line_length": 113, "alphanum_fraction": 0.6651480638}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function main(params) {
    const apiUrl = params.__ow_headers['x-forwarded-url'].split('/').slice(0, 7).join('/');
    const spec = JSON.parse(params.spec);
    spec.dataSources.sources[0].module.source.srcUrl.sourceUrl = `${apiUrl}/sql/results?job_id=${params.job_id}`;
    const response = {
        spec
    };
    return response;
}
exports.default = main;
