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

22 lines (18 loc) 368 B
"use strict"; function _constants() { const data = require("../constants"); _constants = function () { return data; }; return data; } module.exports = function buildCommandMessage(payload, context, compress = true) { return { payload, headers: { version: _constants().BIT_VERSION, compressed: compress, context } }; };