(key)
| 115682 | }; |
| 115683 | } |
| 115684 | function createTriggerLoggingAddWatch(key) { |
| 115685 | return function (file, cb, flags, options, detailInfo1, detailInfo2) { return plainInvokeFactory[key].call(/*thisArgs*/ undefined, file, function () { |
| 115686 | var args = []; |
| 115687 | for (var _i = 0; _i < arguments.length; _i++) { |
| 115688 | args[_i] = arguments[_i]; |
| 115689 | } |
| 115690 | var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); |
| 115691 | log(triggerredInfo); |
| 115692 | var start = ts.timestamp(); |
| 115693 | cb.call.apply(cb, __spreadArray([/*thisArg*/ undefined], args, false)); |
| 115694 | var elapsed = ts.timestamp() - start; |
| 115695 | log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo)); |
| 115696 | }, flags, options, detailInfo1, detailInfo2); }; |
| 115697 | } |
| 115698 | function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) { |
| 115699 | return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2)); |
| 115700 | } |
no test coverage detected
searching dependent graphs…