UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

52 lines (38 loc) 892 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = log; function _bluebird() { const data = require("bluebird"); _bluebird = function () { return data; }; return data; } function _scope() { const data = require("../../../scope"); _scope = function () { return data; }; return data; } function _bitId() { const data = require("../../../bit-id"); _bitId = function () { return data; }; return data; } function log(_x, _x2) { return _log.apply(this, arguments); } function _log() { _log = (0, _bluebird().coroutine)(function* (path, id) { const scope = yield (0, _scope().loadScope)(path); const bitId = _bitId().BitId.parse(id, true); const componentLogs = yield scope.loadComponentLogs(bitId); return JSON.stringify(componentLogs); }); return _log.apply(this, arguments); }