UNPKG

869 BJavaScriptView Raw
1"use strict";
2var __rest = (this && this.__rest) || function (s, e) {
3 var t = {};
4 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5 t[p] = s[p];
6 if (s != null && typeof Object.getOwnPropertySymbols === "function")
7 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9 t[p[i]] = s[p[i]];
10 }
11 return t;
12};
13Object.defineProperty(exports, "__esModule", { value: true });
14function formatExecReturn(obj) {
15 if (!obj || typeof obj !== 'object') {
16 return obj;
17 }
18 // Remove stdio for easier logging output
19 const { command, stderr, stdout } = obj, rest = __rest(obj, ["command", "stderr", "stdout"]);
20 return rest;
21}
22exports.default = formatExecReturn;