@dxos/codec-protobuf 2.33.9-dev.bba8fc00 → 2.33.9-dev.ceab0857

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,8DAAiC;AAIjC,qCAAkC;AAYlC,MAAa,iBAAiB;IAC5B,YACmB,QAAoB,EACpB,OAAoB;QADpB,aAAQ,GAAR,QAAQ,CAAY;QACpB,YAAO,GAAP,OAAO,CAAa;IACpC,CAAC;IAEJ,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,YAAY,CAAE,OAAuB;QACnC,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAgB,CAAC;IAC1E,CAAC;IAED,YAAY,CAAE,QAAW;QACvB,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACnE,CAAC;CACF;AAjBD,8CAiBC;AAED,MAAa,OAAO;IAClB,YACE,OAAuB,EACvB,OAAmB,EACnB,MAAmB;QAEnB,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;YACzC,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,IAAA,qBAAM,EAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;YACnC,IAAA,qBAAM,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;YACpC,IAAA,qBAAM,EAAC,CAAC,MAAM,CAAC,aAAa,EAAE,2CAA2C,CAAC,CAAC;YAE3E,6CAA6C;YAC7C,MAAM,YAAY,GAAG,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC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C,CAAC,CAAC;IACN,CAAC;IAEO,cAAc,CAAE,UAAkB;QACxC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QACjD,IAAA,qBAAM,EAAC,CAAC,CAAC,MAAM,EAAE,qBAAqB,UAAU,EAAE,CAAC,CAAC;QAEpD,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,IAAA,qBAAM,EAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;QACnC,IAAA,qBAAM,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAEpC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAC1F,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAE5F,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;IACjD,CAAC;CACF;AA1DD,wCA0DC;AAED,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC"}
@@ -1,8 +1,22 @@
1
1
  declare type Producer<T> = (callbacks: {
2
+ /**
3
+ * Advises that the producer is ready to stream the data.
4
+ * Called automatically with the first call to `next`.
5
+ */
6
+ ready: () => void;
7
+ /**
8
+ * Sends a message into the stream.
9
+ */
2
10
  next: (message: T) => void;
11
+ /**
12
+ * Closes the stream.
13
+ * Optional error can be provided.
14
+ */
3
15
  close: (error?: Error) => void;
4
16
  }) => (() => void) | void;
5
17
  export declare type StreamItem<T> = {
18
+ ready: true;
19
+ } | {
6
20
  data: T;
7
21
  } | {
8
22
  closed: true;
@@ -20,17 +34,34 @@ export declare class Stream<T> {
20
34
  * Consumes the entire stream to the end until it closes and returns a promise with the resulting items.
21
35
  */
22
36
  static consume<T>(stream: Stream<T>): Promise<StreamItem<T>[]>;
37
+ /**
38
+ * Maps all data coming through the stream.
39
+ */
40
+ static map<T, U>(source: Stream<T>, map: (data: T) => U): Stream<U>;
23
41
  private _messageHandler?;
24
42
  private _closeHandler?;
43
+ private _readyHandler?;
25
44
  private _isClosed;
26
45
  private _closeError;
27
46
  private _dispose;
47
+ private _readyPromise;
48
+ private _resolveReadyPromise;
49
+ private _isReady;
28
50
  /**
29
51
  * Buffer messages before subscription. Set to null when buffer is no longer needed.
30
52
  */
31
53
  private _buffer;
32
54
  constructor(producer: Producer<T>);
55
+ private _markAsReady;
33
56
  subscribe(onMessage: (msg: T) => void, onClose?: (error?: Error) => void): void;
57
+ /**
58
+ * Resolves when stream is ready.
59
+ */
60
+ waitUntilReady(): Promise<void>;
61
+ /**
62
+ * Registers a callback to be called when stream is ready.
63
+ */
64
+ onReady(onReady: () => void): void;
34
65
  /**
35
66
  * Close the stream and dispose of any resources.
36
67
  */
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/stream.ts"],"names":[],"mappings":"AASA,aAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;IAC7B,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAA;IAC1B,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;CAC/B,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAA;AAEzB,oBAAY,UAAU,CAAC,CAAC,IACpB;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,GACX;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AAEnC;;;;;;GAMG;AACH,qBAAa,MAAM,CAAC,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,OAAO,CAAE,CAAC,EAAG,MAAM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AC,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAuBhE;;OAEG;IACH,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAG,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IASpE,OAAO,CAAC,eAAe,CAAC,CAAmB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAA0B;IAChD,OAAO,CAAC,aAAa,CAAC,CAAa;IAEnC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,QAAQ,CAA2B;IAC3C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,oBAAoB,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,OAAO,CAAC,OAAO,CAAkB;gBAEpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAqDlC,OAAO,CAAC,YAAY;IAQpB,SAAS,CAAE,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI;IA0BzE;;OAEG;IACH,cAAc,IAAK,OAAO,CAAC,IAAI,CAAC;IAIhC;;OAEG;IACH,OAAO,CAAE,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI;IASnC;;OAEG;IACH,KAAK;CAcN"}
@@ -20,16 +20,24 @@ const log = (0, debug_1.default)('dxos:codec-protobuf:stream');
20
20
  class Stream {
21
21
  constructor(producer) {
22
22
  this._isClosed = false;
23
+ this._isReady = false;
23
24
  /**
24
25
  * Buffer messages before subscription. Set to null when buffer is no longer needed.
25
26
  */
26
27
  this._buffer = [];
28
+ this._readyPromise = new Promise(resolve => {
29
+ this._resolveReadyPromise = resolve;
30
+ });
27
31
  const disposeCallback = producer({
32
+ ready: () => {
33
+ this._markAsReady();
34
+ },
28
35
  next: msg => {
29
36
  if (this._isClosed) {
30
37
  log('Stream is closed, dropping message.');
31
38
  return;
32
39
  }
40
+ this._markAsReady();
33
41
  if (this._messageHandler) {
34
42
  try {
35
43
  this._messageHandler(msg);
@@ -71,6 +79,9 @@ class Stream {
71
79
  static consume(stream) {
72
80
  return new Promise(resolve => {
73
81
  const items = [];
82
+ stream.onReady(() => {
83
+ items.push({ ready: true });
84
+ });
74
85
  stream.subscribe(data => {
75
86
  items.push({ data });
76
87
  }, error => {
@@ -84,6 +95,24 @@ class Stream {
84
95
  });
85
96
  });
86
97
  }
98
+ /**
99
+ * Maps all data coming through the stream.
100
+ */
101
+ static map(source, map) {
102
+ return new Stream(({ ready, next, close }) => {
103
+ source.onReady(ready);
104
+ source.subscribe(data => next(map(data)), close);
105
+ return () => source.close();
106
+ });
107
+ }
108
+ _markAsReady() {
109
+ var _a;
110
+ if (!this._isReady) {
111
+ this._isReady = true;
112
+ (_a = this._readyHandler) === null || _a === void 0 ? void 0 : _a.call(this);
113
+ this._resolveReadyPromise();
114
+ }
115
+ }
87
116
  subscribe(onMessage, onClose) {
88
117
  (0, node_assert_1.default)(!this._messageHandler, 'Stream is already subscribed to.');
89
118
  (0, node_assert_1.default)(!this._closeHandler, 'Stream is already subscribed to.');
@@ -106,6 +135,22 @@ class Stream {
106
135
  this._messageHandler = onMessage;
107
136
  this._closeHandler = onClose;
108
137
  }
138
+ /**
139
+ * Resolves when stream is ready.
140
+ */
141
+ waitUntilReady() {
142
+ return this._readyPromise;
143
+ }
144
+ /**
145
+ * Registers a callback to be called when stream is ready.
146
+ */
147
+ onReady(onReady) {
148
+ (0, node_assert_1.default)(!this._readyHandler, 'Stream already has a handler for the ready event.');
149
+ this._readyHandler = onReady;
150
+ if (this._isReady) {
151
+ onReady();
152
+ }
153
+ }
109
154
  /**
110
155
  * Close the stream and dispose of any resources.
111
156
  */
@@ -1 +1 @@
1
- {"version":3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AI,CAAC;QAClB,MAAA,IAAI,CAAC,aAAa,qDAAG,SAAS,CAAC,CAAC;QAEhC,2BAA2B;QAC3B,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC5B,CAAC;CACF;AAlLD,wBAkLC;AAED;;;;;;;;GAQG;AACH,MAAM,uBAAuB,GAAG,CAAC,KAAY,EAAE,EAAE;IAC/C,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -5,7 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const stream_1 = require("./stream");
7
7
  describe('Stream', () => {
8
- test('can consume a stream that immediately closes', async () => {
8
+ test.only('can consume a stream that immediately closes', async () => {
9
9
  const stream = new stream_1.Stream(({ next, close }) => {
10
10
  next('foo');
11
11
  next('bar');
@@ -13,6 +13,7 @@ describe('Stream', () => {
13
13
  close();
14
14
  });
15
15
  expect(await stream_1.Stream.consume(stream)).toEqual([
16
+ { ready: true },
16
17
  { data: 'foo' },
17
18
  { data: 'bar' },
18
19
  { data: 'baz' },
@@ -33,6 +34,7 @@ describe('Stream', () => {
33
34
  });
34
35
  });
35
36
  expect(await stream_1.Stream.consume(stream)).toEqual([
37
+ { ready: true },
36
38
  { data: 'foo' },
37
39
  { data: 'bar' },
38
40
  { data: 'baz' },
@@ -1 +1 @@
1
- {"version":3,"file":"stream.test.js","sourceRoot":"","sources":["../../src/stream.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qCAAkC;AAElC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,IAAI,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC9D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,CAAC,EAAE,IAAI,EAA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AAC,CAAC,CAAC;QACtD,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjB,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,gDAAgD;AAChD,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/interface.ts","../src/buffer-patch.ts","../../../../common/temp/node_modules/.pnpm/protobufjs@6.11.2/node_modules/protobufjs/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/common.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/array.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/collection.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/date.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/function.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/lang.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/math.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/number.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/object.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/seq.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/string.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash.merge@4.6.6/node_modules/@types/lodash.merge/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+ms@0.7.31/node_modules/@types/ms/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+debug@4.1.7/node_modules/@types/debug/index.d.ts","../src/stream.ts","../src/service.ts","../src/schema.ts","../src/common.ts","../src/mapping.ts","../src/precompiled-mapping/codegen.ts","../src/precompiled-mapping/create-message-mapper.ts","../src/codec.ts","../src/encoding.ts","../src/sanitizer.ts","../src/substitutions/any.ts","../src/substitutions/timestamp.ts","../src/substitutions/index.ts","../src/index.ts","../src/stream.test.ts","../test/codec.test.ts","../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.24.20/node_modules/@sinclair/typebox/typebox.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+schemas@28.1.3/node_modules/@jest/schemas/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@28.1.3/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@28.1.3/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@28.1.3/node_modules/jest-matcher-utils/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@28.1.6/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"a7dc1e65746fd3c5a1a614c6d4885aa855c6695f5c479fb1337d822ff9126f30","signature":"d070894fdc0e40b8df0578571e214201d3ae326dd5178d6690341268d2039b2e"},{"version":"3544c5849dddb53d57a286bfab55556747202f44a5ba9436240e9c9d91c047de","signature":"f80b1e5f648fd2198af336041a67dc2fdddcb393b582e81ae1eb986f002b17e6"},"1558c642e03689d42843e7b047b9c20e77ee09ab388ff854484db5dcfbed11da","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","ca59fe42b81228a317812e95a2e72ccc8c7f1911b5f0c2a032adf41a0161ec5d","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","ae9930989ed57478eb03b9b80ad3efa7a3eacdfeff0f78ecf7894c4963a64f93","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"a25713e4a4769ba11d2a1bc317250334968b0a892d3342d285a0e238c537af09","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41",{"version":"e085f4768831950d9de8f523e5cf532b23b45cc0787f0828b62f9f3f5adebe58","signature":"cf217fcca039943a7b9b7c3ce2103c2a60071ba03330b93f603d83dbc289b1dc"},{"version":"a564d0db1e9d146de643039049b82572231692ef2fc6d93a5aebaadd853394e9","signature":"fc12001c28b37dbca029e688708dd6b7f784c1e977385b080bfa9e6649543ef7"},{"version":"1ef17a24d34e36d9d74622157a916a74baf667c8fdeac3092803cf70aa291958","signature":"a2845122366557080db14d36d3a07fbd301115153dc806058e4978f6bec9ea9c"},{"version":"50a03e1dfd866e66df0f2df297980cbe01c0a1ab1e493f738239aa692c4e4281","signature":"ffa1daa8e566a775a6584619559fcbb57b793d11bf6139ff5ba89dc2bf428b76"},{"version":"58aa9a117e7766c9995d4473ce7803070147b830d09f5f4de4011ea9572d2af0","signature":"ebbfd158319f68d68606eaf880a054d8a4a3cc2b120ac3ff31ce640f82cb5a96"},{"version":"04cd6c9a08038a866c4a1e11079ec0da88a36895ca6d6e638744c223d9f7b1dc","signature":"7e10d602ec4dcdef61a6f0b3d6a63909395f06c9b75aac24ceab0b5174efe9cb"},{"version":"29fdc30b6d3cfa4e032ad7289dfcff64fd93038ee332ace15f51e8df3d3079d9","signature":"70df793faa0558c4d04072fa298c4536a86ab6046bd8a83563ea649856f23f2e"},{"version":"cb2f258d54f387be2fa3b4bb71f53fc7c325ef94c204a6bc8763fbfa0150c86c","signature":"3cedafe4bfa0561a589c6358c1ae7bd2b3f90948aa6eb509ff68755f66261345"},{"version":"12e90b74aa88ea44a5ed124426375a419edadac442417a9f0ab9e42ed2dc37e5","signature":"684a920b1cc6be3637aebc10da82a7c812e92c7813b499040d79022e4bed996b"},{"version":"8e3542d7b41d42ba90342824ac50f639913058f2fe7e9dd8b40b00e56db8deed","signature":"8bf4cb87e520ad33a7139c9b4aff92e878f7db75e2771071bce42c0033a0f610"},{"version":"5e7ba893c0a6c95073f04a68277fa6bef10c55b627987c2c960cbd372c7de4d8","signature":"ede98a433335cb3a2a1776f62721deedbe0f40fdd3beefef78b310efc239c6d6"},{"version":"4fd918dcbecb5f01d79f627dd135b9bcea7bb38845b05f87b95217a653038e12","signature":"3f16ad0ff692daeeea59ebdf485de1f51dd392e61727885f31e3997a61f955c8"},{"version":"8358d99f5f3a081e35897572d87d36152d119008906363ed851512d4adb3450c","signature":"de61c204203783abba67ae0b632e20ef345f66d587fd19c0a44c25631572c8d9"},{"version":"39878b1bc4883013dbcb09eb17c2dd41fe4003b224fed3821633a230ed447f81","signature":"82aab56c05cd37252e6be78f42f17e314774096d42ea63d76fae657c9430b433"},{"version":"b22bd2b9883af60e2c18cc3220f3274b3037ac0b786cc74b746bca2bcee2747e","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"2b3a38aef0306688160014f1fc5e084bec92af2a78e1fb3792381d921362def0","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d982cdd2610155b3cbcbfa62ccabcf2d2b739f821518ef113348d160ef0010d9","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2",{"version":"1de1ad6a1929317171d8cfcd55bb2732257680c1bf89bcd53e1d46a4d8dbda22","affectsGlobalScope":true},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[89,138],[138],[70,138],[91,93,138],[68,138],[56,58,59,60,61,62,63,64,65,66,67,68,138],[56,57,59,60,61,62,63,64,65,66,67,68,138],[57,58,59,60,61,62,63,64,65,66,67,68,138],[56,57,58,60,61,62,63,64,65,66,67,68,138],[56,57,58,59,61,62,63,64,65,66,67,68,138],[56,57,58,59,60,62,63,64,65,66,67,68,138],[56,57,58,59,60,61,63,64,65,66,67,68,138],[56,57,58,59,60,61,62,64,65,66,67,68,138],[56,57,58,59,60,61,62,63,65,66,67,68,138],[56,57,58,59,60,61,62,63,64,66,67,68,138],[56,57,58,59,60,61,62,63,64,65,67,68,138],[56,57,58,59,60,61,62,63,64,65,66,68,138],[56,57,58,59,60,61,62,63,64,65,66,67,138],[95,138],[98,138],[99,104,138],[100,110,111,118,127,137,138],[100,101,110,118,138],[102,138],[103,104,111,119,138],[104,127,134,138],[105,107,110,118,138],[106,138],[107,108,138],[109,110,138],[110,138],[110,111,112,127,137,138],[110,111,112,127,138],[113,118,127,137,138],[110,111,113,114,118,127,134,137,138],[113,115,127,134,137,138],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],[110,116,138],[117,137,138],[107,110,118,127,138],[119,138],[120,138],[98,121,138],[122,136,138,142],[123,138],[124,138],[110,125,138],[125,126,138,140],[110,127,128,129,138],[127,129,138],[127,128,138],[130,138],[131,138],[110,132,133,138],[132,133,138],[104,118,134,138],[135,138],[118,136,138],[99,113,124,137,138],[104,138],[127,138,139],[138,140],[138,141],[99,104,110,112,121,127,137,138,140,142],[127,138,143],[91,138],[88,92,138],[90,138],[53,138],[53,55,74,76,78,138],[74,138],[55,138],[53,54,72,73,74,75,76,79,80,81,84,138],[55,75,95,138],[55,76,77,95,138],[55,69,73,75,76,79,138],[55,72,74,95,138],[72,138],[71,95,138],[82,83,138],[55,74,85,120,138],[53],[53,55,74,76],[74],[55],[53,54,72,73,74,75,76,79,80,81,84],[55,75],[55,76],[55,73,75,79],[55,72,74],[82,83]],"referencedMap":[[90,1],[89,2],[71,3],[94,4],[69,5],[57,6],[58,7],[56,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[65,15],[66,16],[67,17],[68,18],[70,2],[95,19],[96,19],[98,20],[99,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,29],[109,30],[110,31],[111,32],[112,33],[97,2],[144,2],[113,34],[114,35],[115,36],[145,37],[116,38],[117,39],[118,40],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[129,50],[128,51],[130,52],[131,53],[132,54],[133,55],[134,56],[135,57],[136,58],[137,59],[138,60],[139,61],[140,62],[141,63],[142,64],[143,65],[88,2],[92,66],[93,67],[91,68],[55,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[1,2],[10,2],[52,2],[54,69],[79,70],[75,71],[80,72],[85,73],[53,2],[76,74],[77,2],[78,75],[81,72],[74,76],[73,77],[86,78],[72,79],[82,71],[84,80],[83,2],[87,81]],"exportedModulesMap":[[90,1],[89,2],[71,3],[94,4],[69,5],[57,6],[58,7],[56,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[65,15],[66,16],[67,17],[68,18],[70,2],[95,19],[96,19],[98,20],[99,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,29],[109,30],[110,31],[111,32],[112,33],[97,2],[144,2],[113,34],[114,35],[115,36],[145,37],[116,38],[117,39],[118,40],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[129,50],[128,51],[130,52],[131,53],[132,54],[133,55],[134,56],[135,57],[136,58],[137,59],[138,60],[139,61],[140,62],[141,63],[142,64],[143,65],[88,2],[92,66],[93,67],[91,68],[55,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[1,2],[10,2],[52,2],[54,82],[79,83],[75,84],[80,85],[85,86],[76,87],[78,88],[81,85],[74,89],[73,90],[82,84],[84,91]],"semanticDiagnosticsPerFile":[90,89,71,94,69,57,58,56,59,60,61,62,63,64,65,66,67,68,70,95,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,97,144,113,114,115,145,116,117,118,119,120,121,122,123,124,125,126,127,129,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,88,92,93,91,55,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,54,79,75,80,85,53,76,77,78,81,74,73,86,72,82,84,83,87]},"version":"4.7.4"}
1
+ {"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/interface.ts","../src/buffer-patch.ts","../../../../common/temp/node_modules/.pnpm/protobufjs@6.11.2/node_modules/protobufjs/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/common.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/array.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/collection.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/date.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/function.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/lang.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/math.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/number.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/object.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/seq.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/string.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/common/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+lodash.merge@4.6.6/node_modules/@types/lodash.merge/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+ms@0.7.31/node_modules/@types/ms/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+debug@4.1.7/node_modules/@types/debug/index.d.ts","../src/stream.ts","../src/service.ts","../src/schema.ts","../src/common.ts","../src/mapping.ts","../src/precompiled-mapping/codegen.ts","../src/precompiled-mapping/create-message-mapper.ts","../src/codec.ts","../src/encoding.ts","../src/sanitizer.ts","../src/substitutions/any.ts","../src/substitutions/timestamp.ts","../src/substitutions/index.ts","../src/index.ts","../src/stream.test.ts","../test/codec.test.ts","../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.24.20/node_modules/@sinclair/typebox/typebox.d.ts","../../../../common/temp/node_modules/.pnpm/@jest+schemas@28.1.3/node_modules/@jest/schemas/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@28.1.3/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@28.1.3/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@28.1.3/node_modules/jest-matcher-utils/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@28.1.6/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"a7dc1e65746fd3c5a1a614c6d4885aa855c6695f5c479fb1337d822ff9126f30","signature":"d070894fdc0e40b8df0578571e214201d3ae326dd5178d6690341268d2039b2e"},{"version":"3544c5849dddb53d57a286bfab55556747202f44a5ba9436240e9c9d91c047de","signature":"f80b1e5f648fd2198af336041a67dc2fdddcb393b582e81ae1eb986f002b17e6"},"1558c642e03689d42843e7b047b9c20e77ee09ab388ff854484db5dcfbed11da","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","ca59fe42b81228a317812e95a2e72ccc8c7f1911b5f0c2a032adf41a0161ec5d","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","ae9930989ed57478eb03b9b80ad3efa7a3eacdfeff0f78ecf7894c4963a64f93","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"a25713e4a4769ba11d2a1bc317250334968b0a892d3342d285a0e238c537af09","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41",{"version":"4df81c5380c9a3f5252c4a8a4c14a308f0a22c99f96e80638b57a239bee720bb","signature":"c8852dc7414d94b0436b9966ebd5da9b7ea3efd23fd0365f4a354206efdcd4d6"},{"version":"4f249e634a632b61d0126fdb2cd7c701762c451683bcace834b9d14e4de5f336","signature":"fc12001c28b37dbca029e688708dd6b7f784c1e977385b080bfa9e6649543ef7"},{"version":"1ef17a24d34e36d9d74622157a916a74baf667c8fdeac3092803cf70aa291958","signature":"a2845122366557080db14d36d3a07fbd301115153dc806058e4978f6bec9ea9c"},{"version":"50a03e1dfd866e66df0f2df297980cbe01c0a1ab1e493f738239aa692c4e4281","signature":"ffa1daa8e566a775a6584619559fcbb57b793d11bf6139ff5ba89dc2bf428b76"},{"version":"58aa9a117e7766c9995d4473ce7803070147b830d09f5f4de4011ea9572d2af0","signature":"ebbfd158319f68d68606eaf880a054d8a4a3cc2b120ac3ff31ce640f82cb5a96"},{"version":"04cd6c9a08038a866c4a1e11079ec0da88a36895ca6d6e638744c223d9f7b1dc","signature":"7e10d602ec4dcdef61a6f0b3d6a63909395f06c9b75aac24ceab0b5174efe9cb"},{"version":"2df49848c41af6ca0f913e0174e4607a527f751056669d0a59be29956ea1016b","signature":"70df793faa0558c4d04072fa298c4536a86ab6046bd8a83563ea649856f23f2e"},{"version":"cb2f258d54f387be2fa3b4bb71f53fc7c325ef94c204a6bc8763fbfa0150c86c","signature":"3cedafe4bfa0561a589c6358c1ae7bd2b3f90948aa6eb509ff68755f66261345"},{"version":"12e90b74aa88ea44a5ed124426375a419edadac442417a9f0ab9e42ed2dc37e5","signature":"684a920b1cc6be3637aebc10da82a7c812e92c7813b499040d79022e4bed996b"},{"version":"8e3542d7b41d42ba90342824ac50f639913058f2fe7e9dd8b40b00e56db8deed","signature":"8bf4cb87e520ad33a7139c9b4aff92e878f7db75e2771071bce42c0033a0f610"},{"version":"5e7ba893c0a6c95073f04a68277fa6bef10c55b627987c2c960cbd372c7de4d8","signature":"ede98a433335cb3a2a1776f62721deedbe0f40fdd3beefef78b310efc239c6d6"},{"version":"4fd918dcbecb5f01d79f627dd135b9bcea7bb38845b05f87b95217a653038e12","signature":"3f16ad0ff692daeeea59ebdf485de1f51dd392e61727885f31e3997a61f955c8"},{"version":"8358d99f5f3a081e35897572d87d36152d119008906363ed851512d4adb3450c","signature":"de61c204203783abba67ae0b632e20ef345f66d587fd19c0a44c25631572c8d9"},{"version":"39878b1bc4883013dbcb09eb17c2dd41fe4003b224fed3821633a230ed447f81","signature":"82aab56c05cd37252e6be78f42f17e314774096d42ea63d76fae657c9430b433"},{"version":"52b7c1978f47a1f17d05b8dd014d66f29d9471d7834c55038a0668638eef35ce","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"2b3a38aef0306688160014f1fc5e084bec92af2a78e1fb3792381d921362def0","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d982cdd2610155b3cbcbfa62ccabcf2d2b739f821518ef113348d160ef0010d9","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2",{"version":"1de1ad6a1929317171d8cfcd55bb2732257680c1bf89bcd53e1d46a4d8dbda22","affectsGlobalScope":true},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[89,138],[138],[70,138],[91,93,138],[68,138],[56,58,59,60,61,62,63,64,65,66,67,68,138],[56,57,59,60,61,62,63,64,65,66,67,68,138],[57,58,59,60,61,62,63,64,65,66,67,68,138],[56,57,58,60,61,62,63,64,65,66,67,68,138],[56,57,58,59,61,62,63,64,65,66,67,68,138],[56,57,58,59,60,62,63,64,65,66,67,68,138],[56,57,58,59,60,61,63,64,65,66,67,68,138],[56,57,58,59,60,61,62,64,65,66,67,68,138],[56,57,58,59,60,61,62,63,65,66,67,68,138],[56,57,58,59,60,61,62,63,64,66,67,68,138],[56,57,58,59,60,61,62,63,64,65,67,68,138],[56,57,58,59,60,61,62,63,64,65,66,68,138],[56,57,58,59,60,61,62,63,64,65,66,67,138],[95,138],[98,138],[99,104,138],[100,110,111,118,127,137,138],[100,101,110,118,138],[102,138],[103,104,111,119,138],[104,127,134,138],[105,107,110,118,138],[106,138],[107,108,138],[109,110,138],[110,138],[110,111,112,127,137,138],[110,111,112,127,138],[113,118,127,137,138],[110,111,113,114,118,127,134,137,138],[113,115,127,134,137,138],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],[110,116,138],[117,137,138],[107,110,118,127,138],[119,138],[120,138],[98,121,138],[122,136,138,142],[123,138],[124,138],[110,125,138],[125,126,138,140],[110,127,128,129,138],[127,129,138],[127,128,138],[130,138],[131,138],[110,132,133,138],[132,133,138],[104,118,134,138],[135,138],[118,136,138],[99,113,124,137,138],[104,138],[127,138,139],[138,140],[138,141],[99,104,110,112,121,127,137,138,140,142],[127,138,143],[91,138],[88,92,138],[90,138],[53,138],[53,55,74,76,78,138],[74,138],[55,138],[53,54,72,73,74,75,76,79,80,81,84,138],[55,75,95,138],[55,76,77,95,138],[55,69,73,75,76,79,138],[55,72,74,95,138],[72,138],[71,95,138],[82,83,138],[55,74,85,120,138],[53],[53,55,74,76],[74],[55],[53,54,72,73,74,75,76,79,80,81,84],[55,75],[55,76],[55,73,75,79],[55,72,74],[82,83]],"referencedMap":[[90,1],[89,2],[71,3],[94,4],[69,5],[57,6],[58,7],[56,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[65,15],[66,16],[67,17],[68,18],[70,2],[95,19],[96,19],[98,20],[99,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,29],[109,30],[110,31],[111,32],[112,33],[97,2],[144,2],[113,34],[114,35],[115,36],[145,37],[116,38],[117,39],[118,40],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[129,50],[128,51],[130,52],[131,53],[132,54],[133,55],[134,56],[135,57],[136,58],[137,59],[138,60],[139,61],[140,62],[141,63],[142,64],[143,65],[88,2],[92,66],[93,67],[91,68],[55,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[1,2],[10,2],[52,2],[54,69],[79,70],[75,71],[80,72],[85,73],[53,2],[76,74],[77,2],[78,75],[81,72],[74,76],[73,77],[86,78],[72,79],[82,71],[84,80],[83,2],[87,81]],"exportedModulesMap":[[90,1],[89,2],[71,3],[94,4],[69,5],[57,6],[58,7],[56,8],[59,9],[60,10],[61,11],[62,12],[63,13],[64,14],[65,15],[66,16],[67,17],[68,18],[70,2],[95,19],[96,19],[98,20],[99,21],[100,22],[101,23],[102,24],[103,25],[104,26],[105,27],[106,28],[107,29],[108,29],[109,30],[110,31],[111,32],[112,33],[97,2],[144,2],[113,34],[114,35],[115,36],[145,37],[116,38],[117,39],[118,40],[119,41],[120,42],[121,43],[122,44],[123,45],[124,46],[125,47],[126,48],[127,49],[129,50],[128,51],[130,52],[131,53],[132,54],[133,55],[134,56],[135,57],[136,58],[137,59],[138,60],[139,61],[140,62],[141,63],[142,64],[143,65],[88,2],[92,66],[93,67],[91,68],[55,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[1,2],[10,2],[52,2],[54,82],[79,83],[75,84],[80,85],[85,86],[76,87],[78,88],[81,85],[74,89],[73,90],[82,84],[84,91]],"semanticDiagnosticsPerFile":[90,89,71,94,69,57,58,56,59,60,61,62,63,64,65,66,67,68,70,95,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,97,144,113,114,115,145,116,117,118,119,120,121,122,123,124,125,126,127,129,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,88,92,93,91,55,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,54,79,75,80,85,53,76,77,78,81,74,73,86,72,82,84,83,87]},"version":"4.7.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/codec-protobuf",
3
- "version": "2.33.9-dev.bba8fc00",
3
+ "version": "2.33.9-dev.ceab0857",
4
4
  "license": "MIT",
5
5
  "author": "DXOS.org",
6
6
  "main": "dist/src/index.js",
@@ -19,9 +19,9 @@ const createMessageMapperCached = (type: pb.Type, substitutions: MapingDescripto
19
19
  cache[type.fullName].map = codegen(`${type.name}$map`, ['obj', 'extraArgs'], c => {
20
20
  c`const res = {};`;
21
21
  for (const field of type.fieldsArray) {
22
+ field.resolve();
22
23
  c`if(obj.${field.name} !== undefined && obj.${field.name} !== null) {`; {
23
24
  const genMapScalar = (value: string) => {
24
- field.resolve();
25
25
  const substitution = field.resolvedType && substitutions[field.resolvedType.fullName.slice(1)];
26
26
  if (substitution) {
27
27
  c`${ref(substitution)}(${value}, ...extraArgs)`;
@@ -53,7 +53,14 @@ const createMessageMapperCached = (type: pb.Type, substitutions: MapingDescripto
53
53
  } c`}`;
54
54
  if (!field.getOption('proto3_optional') && !field.repeated && !field.map && !field.partOf) {
55
55
  c`else {`; {
56
- c`${ref(throwMissingFieldError)}('${field.name}', '${field.parent!.fullName.slice(1)}')`;
56
+ if (field.resolvedType instanceof pb.Type) {
57
+ const mapper = createMessageMapperCached(field.resolvedType, substitutions, cache);
58
+ c`res.${field.name} = ${ref(mapper)}.map({}, extraArgs);`;
59
+ } else if (field.resolvedType instanceof pb.Enum) {
60
+ `res.${field.name} = 0;`;
61
+ } else {
62
+ c`res.${field.name} = ${getDefaultValue(field.type)};`;
63
+ }
57
64
  } c`}`;
58
65
  }
59
66
  }
@@ -64,6 +71,29 @@ const createMessageMapperCached = (type: pb.Type, substitutions: MapingDescripto
64
71
  return cache[type.fullName];
65
72
  };
66
73
 
67
- const throwMissingFieldError = (fieldName: string, typeName: string) => {
68
- throw new Error(`Missing field: ${fieldName} on ${typeName}`);
74
+ const getDefaultValue = (type: string): string => {
75
+ switch (type) {
76
+ case 'double':
77
+ case 'float':
78
+ case 'int32':
79
+ case 'sfixed32':
80
+ case 'uint32':
81
+ case 'sint32':
82
+ case 'fixed32':
83
+ return '0';
84
+ case 'sint64':
85
+ case 'int64':
86
+ case 'uint64':
87
+ case 'fixed64':
88
+ case 'sfixed64':
89
+ return '"0"';
90
+ case 'bool':
91
+ return 'false';
92
+ case 'string':
93
+ return '""';
94
+ case 'bytes':
95
+ return 'new Uint8Array()';
96
+ default:
97
+ throw new Error(`Unknown type: ${type}`);
98
+ }
69
99
  };
package/src/service.ts CHANGED
@@ -61,20 +61,16 @@ export class Service {
61
61
  value: encoded,
62
62
  type_url: method.resolvedRequestType!.fullName
63
63
  });
64
- return responseCodec.decode(response.value!);
64
+ return responseCodec.decode(response.value);
65
65
  };
66
66
  } else {
67
67
  (this as any)[methodName] = (request: unknown) => {
68
68
  const encoded = requestCodec.encode(request);
69
- return new Stream(({ next, close }) => {
70
- const stream = backend.callStream(method.name, {
71
- value: encoded,
72
- type_url: method.resolvedRequestType!.fullName
73
- });
74
- stream.subscribe(data => next(responseCodec.decode(data.value!)), close);
75
-
76
- return () => stream.close();
69
+ const stream = backend.callStream(method.name, {
70
+ value: encoded,
71
+ type_url: method.resolvedRequestType!.fullName
77
72
  });
73
+ return Stream.map(stream, data => responseCodec.decode(data.value!));
78
74
  };
79
75
  }
80
76
 
@@ -123,13 +119,10 @@ export class ServiceHandler<S = {}> implements ServiceBackend {
123
119
 
124
120
  const requestDecoded = requestCodec.decode(request.value!);
125
121
  const responseStream = (handler as any).bind(this._handlers)(requestDecoded) as Stream<unknown>;
126
- return new Stream<Any>(({ next, close }) => {
127
- responseStream.subscribe(data => next({
128
- value: responseCodec.encode(data),
129
- type_url: method.resolvedResponseType!.fullName
130
- }), close);
131
- return () => responseStream.close();
132
- });
122
+ return Stream.map(responseStream, (data): Any => ({
123
+ value: responseCodec.encode(data),
124
+ type_url: method.resolvedResponseType!.fullName
125
+ }));
133
126
  }
134
127
 
135
128
  private _getMethodInfo (methodName: string) {
@@ -5,7 +5,7 @@
5
5
  import { Stream } from './stream';
6
6
 
7
7
  describe('Stream', () => {
8
- test('can consume a stream that immediately closes', async () => {
8
+ test.only('can consume a stream that immediately closes', async () => {
9
9
  const stream = new Stream(({ next, close }) => {
10
10
  next('foo');
11
11
  next('bar');
@@ -14,6 +14,7 @@ describe('Stream', () => {
14
14
  });
15
15
 
16
16
  expect(await Stream.consume(stream)).toEqual([
17
+ { ready: true },
17
18
  { data: 'foo' },
18
19
  { data: 'bar' },
19
20
  { data: 'baz' },
@@ -36,6 +37,7 @@ describe('Stream', () => {
36
37
  });
37
38
 
38
39
  expect(await Stream.consume(stream)).toEqual([
40
+ { ready: true },
39
41
  { data: 'foo' },
40
42
  { data: 'bar' },
41
43
  { data: 'baz' },