1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.serialize = exports.deserialize = exports.registerSerializer = void 0;
|
4 | const serializers_1 = require("./serializers");
|
5 | let registeredSerializer = serializers_1.DefaultSerializer;
|
6 | function registerSerializer(serializer) {
|
7 | registeredSerializer = serializers_1.extendSerializer(registeredSerializer, serializer);
|
8 | }
|
9 | exports.registerSerializer = registerSerializer;
|
10 | function deserialize(message) {
|
11 | return registeredSerializer.deserialize(message);
|
12 | }
|
13 | exports.deserialize = deserialize;
|
14 | function serialize(input) {
|
15 | return registeredSerializer.serialize(input);
|
16 | }
|
17 | exports.serialize = serialize;
|