UNPKG

@v4fire/core

Version:
27 lines (26 loc) 726 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { attachStatus: true }; exports.attachStatus = attachStatus; var _interface = require("../../../../core/data/middlewares/attach-status/interface"); Object.keys(_interface).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _interface[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _interface[key]; } }); }); function attachStatus(data, params, response) { return { data, status: response.status }; }