Codecs.js 549 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Codecs = void 0;
  4. const cbor_1 = require("./cbor");
  5. const json_1 = require("./json");
  6. const msgpack_1 = require("./msgpack");
  7. class Codecs {
  8. constructor(writer) {
  9. this.writer = writer;
  10. this.cbor = new cbor_1.CborJsonValueCodec(this.writer);
  11. this.msgpack = new msgpack_1.MsgPackJsonValueCodec(this.writer);
  12. this.json = new json_1.JsonJsonValueCodec(this.writer);
  13. }
  14. }
  15. exports.Codecs = Codecs;
  16. //# sourceMappingURL=Codecs.js.map