@flock/wirespec 0.7.0 → 0.7.2

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.
Files changed (37) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +335 -335
  2. package/kotlin/arrow-arrow-atomic.js +15 -15
  3. package/kotlin/arrow-arrow-continuations.js +3 -3
  4. package/kotlin/arrow-arrow-core.js +74 -74
  5. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +330 -276
  6. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  7. package/kotlin/kotlin-openapi-bindings.js +3264 -3266
  8. package/kotlin/kotlin-openapi-bindings.js.map +1 -1
  9. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1329 -1330
  10. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1186 -1185
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
  13. package/kotlin/wirespec-cli.js +129 -129
  14. package/kotlin/wirespec-core.js +974 -916
  15. package/kotlin/wirespec-core.js.map +1 -1
  16. package/kotlin/wirespec-lib.js +58 -58
  17. package/kotlin/wirespec-openapi.js +637 -609
  18. package/kotlin/wirespec-openapi.js.map +1 -1
  19. package/package.json +1 -1
  20. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
  21. package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
  22. package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
  23. package/sync-hashes/arrow-arrow-core.js.hash +1 -1
  24. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
  25. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
  26. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
  27. package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
  28. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
  29. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
  30. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
  31. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
  32. package/sync-hashes/wirespec-cli.js.hash +1 -1
  33. package/sync-hashes/wirespec-core.js.hash +1 -1
  34. package/sync-hashes/wirespec-core.js.map.hash +1 -1
  35. package/sync-hashes/wirespec-lib.js.hash +1 -1
  36. package/sync-hashes/wirespec-openapi.js.hash +1 -1
  37. package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
@@ -22,22 +22,22 @@
22
22
  'use strict';
23
23
  //region block: imports
24
24
  var imul = Math.imul;
25
- var protoOf = kotlin_kotlin.$_$.t7;
26
- var classMeta = kotlin_kotlin.$_$.q6;
27
- var VOID = kotlin_kotlin.$_$.za;
28
- var setMetadataFor = kotlin_kotlin.$_$.u7;
25
+ var protoOf = kotlin_kotlin.$_$.s7;
26
+ var classMeta = kotlin_kotlin.$_$.p6;
27
+ var VOID = kotlin_kotlin.$_$.bb;
28
+ var setMetadataFor = kotlin_kotlin.$_$.t7;
29
29
  var main = kotlin_community_flock_wirespec_compiler_cli.$_$.a;
30
30
  var Unit_getInstance = kotlin_kotlin.$_$.i3;
31
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
32
- var first = kotlin_kotlin.$_$.v4;
31
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.wa;
32
+ var first = kotlin_kotlin.$_$.u4;
33
33
  var Right = kotlin_io_arrow_kt_arrow_core.$_$.d;
34
34
  var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
35
35
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
36
36
  var NonEmptyList = kotlin_io_arrow_kt_arrow_core.$_$.e;
37
- var copyToArray = kotlin_kotlin.$_$.p4;
37
+ var copyToArray = kotlin_kotlin.$_$.o4;
38
38
  var Left = kotlin_io_arrow_kt_arrow_core.$_$.c;
39
39
  var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.y;
40
- var objectMeta = kotlin_kotlin.$_$.s7;
40
+ var objectMeta = kotlin_kotlin.$_$.r7;
41
41
  var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
42
42
  var compile = kotlin_community_flock_wirespec_compiler_core.$_$.x;
43
43
  var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.w;
@@ -45,13 +45,13 @@
45
45
  var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c;
46
46
  var TypeScriptEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.e;
47
47
  var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
48
- var defineProp = kotlin_kotlin.$_$.r6;
49
- var THROW_CCE = kotlin_kotlin.$_$.z9;
50
- var equals = kotlin_kotlin.$_$.s6;
51
- var contentEquals = kotlin_kotlin.$_$.e4;
52
- var contentHashCode = kotlin_kotlin.$_$.f4;
53
- var toString = kotlin_kotlin.$_$.y7;
54
- var getStringHashCode = kotlin_kotlin.$_$.x6;
48
+ var defineProp = kotlin_kotlin.$_$.q6;
49
+ var THROW_CCE = kotlin_kotlin.$_$.ba;
50
+ var equals = kotlin_kotlin.$_$.r6;
51
+ var contentEquals = kotlin_kotlin.$_$.d4;
52
+ var contentHashCode = kotlin_kotlin.$_$.e4;
53
+ var toString = kotlin_kotlin.$_$.x7;
54
+ var getStringHashCode = kotlin_kotlin.$_$.w6;
55
55
  //endregion
56
56
  //region block: pre-declaration
57
57
  setMetadataFor(Ast, 'Ast', classMeta);
@@ -99,10 +99,10 @@
99
99
  this.compiled = compiled;
100
100
  this.errors = errors;
101
101
  }
102
- protoOf(WsCompilationResult).c20 = function () {
102
+ protoOf(WsCompilationResult).d20 = function () {
103
103
  return this.compiled;
104
104
  };
105
- protoOf(WsCompilationResult).d20 = function () {
105
+ protoOf(WsCompilationResult).e20 = function () {
106
106
  return this.errors;
107
107
  };
108
108
  function WsCompiled(value) {
@@ -119,15 +119,15 @@
119
119
  // Inline function 'kotlin.collections.toTypedArray' call
120
120
  var tmp$ret$4;
121
121
  // Inline function 'arrow.core.NonEmptyList.map' call
122
- var tmp2_map = _this__u8e3s4.jg_1;
122
+ var tmp2_map = _this__u8e3s4.lg_1;
123
123
  var tmp$ret$0;
124
124
  // Inline function 'produce.<anonymous>' call
125
- var tmp3__anonymous__ufb84q = tmp2_map.sg_1;
125
+ var tmp3__anonymous__ufb84q = tmp2_map.ug_1;
126
126
  tmp$ret$0 = produce_4(tmp3__anonymous__ufb84q);
127
127
  var tmp_0 = tmp$ret$0;
128
128
  var tmp$ret$3;
129
129
  // Inline function 'kotlin.collections.map' call
130
- var tmp1_map = tmp2_map.tg_1;
130
+ var tmp1_map = tmp2_map.vg_1;
131
131
  var tmp$ret$2;
132
132
  // Inline function 'kotlin.collections.mapTo' call
133
133
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
@@ -147,7 +147,7 @@
147
147
  tmp = new WsCompilationResult(VOID, tmp$ret$5);
148
148
  } else {
149
149
  if (tmp0_subject instanceof Right) {
150
- tmp = new WsCompilationResult(new WsCompiled(first(_this__u8e3s4.og_1).h3_1));
150
+ tmp = new WsCompilationResult(new WsCompiled(first(_this__u8e3s4.qg_1).h3_1));
151
151
  } else {
152
152
  noWhenBranchMatchedException();
153
153
  }
@@ -162,7 +162,7 @@
162
162
  var tmp = this;
163
163
  tmp.logger = new Compiler$Companion$logger$1();
164
164
  }
165
- protoOf(Companion).e20 = function () {
165
+ protoOf(Companion).f20 = function () {
166
166
  return this.logger;
167
167
  };
168
168
  var Companion_instance;
@@ -189,7 +189,7 @@
189
189
  // Inline function 'kotlin.contracts.contract' call
190
190
  var tmp$ret$0;
191
191
  // Inline function 'Compiler.parse.<anonymous>' call
192
- tmp$ret$0 = (new Parser(Companion_getInstance().logger)).nh(tmp0_let);
192
+ tmp$ret$0 = (new Parser(Companion_getInstance().logger)).ph(tmp0_let);
193
193
  tmp$ret$1 = tmp$ret$0;
194
194
  var tmp1_let = tmp$ret$1;
195
195
  // Inline function 'kotlin.contracts.contract' call
@@ -210,7 +210,7 @@
210
210
  };
211
211
  function Companion_0() {
212
212
  Companion_instance_0 = this;
213
- this.f20_1 = new KotlinEmitter(VOID, Companion_getInstance().logger);
213
+ this.g20_1 = new KotlinEmitter(VOID, Companion_getInstance().logger);
214
214
  }
215
215
  var Companion_instance_0;
216
216
  function Companion_getInstance_0() {
@@ -223,11 +223,11 @@
223
223
  Compiler.call(this);
224
224
  }
225
225
  protoOf(WsToKotlin).compile = function (source) {
226
- return produce(this.preCompile(source)(Companion_getInstance_0().f20_1));
226
+ return produce(this.preCompile(source)(Companion_getInstance_0().g20_1));
227
227
  };
228
228
  function Companion_1() {
229
229
  Companion_instance_1 = this;
230
- this.g20_1 = new TypeScriptEmitter(Companion_getInstance().logger);
230
+ this.h20_1 = new TypeScriptEmitter(Companion_getInstance().logger);
231
231
  }
232
232
  var Companion_instance_1;
233
233
  function Companion_getInstance_1() {
@@ -240,11 +240,11 @@
240
240
  Compiler.call(this);
241
241
  }
242
242
  protoOf(WsToTypeScript).compile = function (source) {
243
- return produce(this.preCompile(source)(Companion_getInstance_1().g20_1));
243
+ return produce(this.preCompile(source)(Companion_getInstance_1().h20_1));
244
244
  };
245
245
  function Companion_2() {
246
246
  Companion_instance_2 = this;
247
- this.h20_1 = new WirespecEmitter(Companion_getInstance().logger);
247
+ this.i20_1 = new WirespecEmitter(Companion_getInstance().logger);
248
248
  }
249
249
  var Companion_instance_2;
250
250
  function Companion_getInstance_2() {
@@ -257,7 +257,7 @@
257
257
  Compiler.call(this);
258
258
  }
259
259
  protoOf(WsToWirespec).compile = function (source) {
260
- return produce(this.preCompile(source)(Companion_getInstance_2().h20_1));
260
+ return produce(this.preCompile(source)(Companion_getInstance_2().i20_1));
261
261
  };
262
262
  function WsTokenResult(tokens, error) {
263
263
  tokens = tokens === VOID ? null : tokens;
@@ -265,10 +265,10 @@
265
265
  this.tokens = tokens;
266
266
  this.error = error;
267
267
  }
268
- protoOf(WsTokenResult).i20 = function () {
268
+ protoOf(WsTokenResult).j20 = function () {
269
269
  return this.tokens;
270
270
  };
271
- protoOf(WsTokenResult).j20 = function () {
271
+ protoOf(WsTokenResult).k20 = function () {
272
272
  return this.error;
273
273
  };
274
274
  protoOf(WsTokenResult).i3 = function () {
@@ -277,13 +277,13 @@
277
277
  protoOf(WsTokenResult).j3 = function () {
278
278
  return this.error;
279
279
  };
280
- protoOf(WsTokenResult).k20 = function (tokens, error) {
280
+ protoOf(WsTokenResult).l20 = function (tokens, error) {
281
281
  return new WsTokenResult(tokens, error);
282
282
  };
283
283
  protoOf(WsTokenResult).copy = function (tokens, error, $super) {
284
284
  tokens = tokens === VOID ? this.tokens : tokens;
285
285
  error = error === VOID ? this.error : error;
286
- return this.k20(tokens, error);
286
+ return this.l20(tokens, error);
287
287
  };
288
288
  protoOf(WsTokenResult).toString = function () {
289
289
  return 'WsTokenResult(tokens=' + this.tokens + ', error=' + this.error + ')';
@@ -330,12 +330,12 @@
330
330
  protoOf(WsTokens).i3 = function () {
331
331
  return this.value;
332
332
  };
333
- protoOf(WsTokens).l20 = function (value) {
333
+ protoOf(WsTokens).m20 = function (value) {
334
334
  return new WsTokens(value);
335
335
  };
336
336
  protoOf(WsTokens).copy = function (value, $super) {
337
337
  value = value === VOID ? this.value : value;
338
- return this.l20(value);
338
+ return this.m20(value);
339
339
  };
340
340
  protoOf(WsTokens).toString = function () {
341
341
  return 'WsTokens(value=' + toString(this.value) + ')';
@@ -346,13 +346,13 @@
346
346
  this.value = value;
347
347
  this.coordinates = coordinates;
348
348
  }
349
- protoOf(WsToken).m20 = function () {
349
+ protoOf(WsToken).n20 = function () {
350
350
  return this.type;
351
351
  };
352
352
  protoOf(WsToken).w = function () {
353
353
  return this.value;
354
354
  };
355
- protoOf(WsToken).n20 = function () {
355
+ protoOf(WsToken).o20 = function () {
356
356
  return this.coordinates;
357
357
  };
358
358
  protoOf(WsToken).i3 = function () {
@@ -361,17 +361,17 @@
361
361
  protoOf(WsToken).j3 = function () {
362
362
  return this.value;
363
363
  };
364
- protoOf(WsToken).o20 = function () {
364
+ protoOf(WsToken).p20 = function () {
365
365
  return this.coordinates;
366
366
  };
367
- protoOf(WsToken).p20 = function (type, value, coordinates) {
367
+ protoOf(WsToken).q20 = function (type, value, coordinates) {
368
368
  return new WsToken(type, value, coordinates);
369
369
  };
370
370
  protoOf(WsToken).copy = function (type, value, coordinates, $super) {
371
371
  type = type === VOID ? this.type : type;
372
372
  value = value === VOID ? this.value : value;
373
373
  coordinates = coordinates === VOID ? this.coordinates : coordinates;
374
- return this.p20(type, value, coordinates);
374
+ return this.q20(type, value, coordinates);
375
375
  };
376
376
  protoOf(WsToken).toString = function () {
377
377
  return 'WsToken(type=' + this.type + ', value=' + this.value + ', coordinates=' + this.coordinates + ')';
@@ -404,13 +404,13 @@
404
404
  this.position = position;
405
405
  this.idxAndLength = idxAndLength;
406
406
  }
407
- protoOf(WsCoordinates).q20 = function () {
407
+ protoOf(WsCoordinates).r20 = function () {
408
408
  return this.line;
409
409
  };
410
- protoOf(WsCoordinates).qs = function () {
410
+ protoOf(WsCoordinates).rs = function () {
411
411
  return this.position;
412
412
  };
413
- protoOf(WsCoordinates).r20 = function () {
413
+ protoOf(WsCoordinates).s20 = function () {
414
414
  return this.idxAndLength;
415
415
  };
416
416
  protoOf(WsCoordinates).i3 = function () {
@@ -419,17 +419,17 @@
419
419
  protoOf(WsCoordinates).j3 = function () {
420
420
  return this.position;
421
421
  };
422
- protoOf(WsCoordinates).o20 = function () {
422
+ protoOf(WsCoordinates).p20 = function () {
423
423
  return this.idxAndLength;
424
424
  };
425
- protoOf(WsCoordinates).s20 = function (line, position, idxAndLength) {
425
+ protoOf(WsCoordinates).t20 = function (line, position, idxAndLength) {
426
426
  return new WsCoordinates(line, position, idxAndLength);
427
427
  };
428
428
  protoOf(WsCoordinates).copy = function (line, position, idxAndLength, $super) {
429
429
  line = line === VOID ? this.line : line;
430
430
  position = position === VOID ? this.position : position;
431
431
  idxAndLength = idxAndLength === VOID ? this.idxAndLength : idxAndLength;
432
- return this.s20(line, position, idxAndLength);
432
+ return this.t20(line, position, idxAndLength);
433
433
  };
434
434
  protoOf(WsCoordinates).toString = function () {
435
435
  return 'WsCoordinates(line=' + this.line + ', position=' + this.position + ', idxAndLength=' + this.idxAndLength + ')';
@@ -460,7 +460,7 @@
460
460
  this.idx = idx;
461
461
  this.length = length;
462
462
  }
463
- protoOf(WsIndex).t20 = function () {
463
+ protoOf(WsIndex).u20 = function () {
464
464
  return this.idx;
465
465
  };
466
466
  protoOf(WsIndex).p8 = function () {
@@ -472,13 +472,13 @@
472
472
  protoOf(WsIndex).j3 = function () {
473
473
  return this.length;
474
474
  };
475
- protoOf(WsIndex).u20 = function (idx, length) {
475
+ protoOf(WsIndex).v20 = function (idx, length) {
476
476
  return new WsIndex(idx, length);
477
477
  };
478
478
  protoOf(WsIndex).copy = function (idx, length, $super) {
479
479
  idx = idx === VOID ? this.idx : idx;
480
480
  length = length === VOID ? this.length : length;
481
- return this.u20(idx, length);
481
+ return this.v20(idx, length);
482
482
  };
483
483
  protoOf(WsIndex).toString = function () {
484
484
  return 'WsIndex(idx=' + this.idx + ', length=' + this.length + ')';
@@ -523,20 +523,20 @@
523
523
  return new WsTokenResult(new WsTokens(tmp$ret$3));
524
524
  }
525
525
  function produce_1(_this__u8e3s4) {
526
- return new WsToken(_this__u8e3s4.wk_1.wl(), _this__u8e3s4.xk_1, produce_2(_this__u8e3s4.yk_1));
526
+ return new WsToken(_this__u8e3s4.xk_1.xl(), _this__u8e3s4.yk_1, produce_2(_this__u8e3s4.zk_1));
527
527
  }
528
528
  function produce_2(_this__u8e3s4) {
529
- return new WsCoordinates(_this__u8e3s4.zk_1, _this__u8e3s4.al_1, produce_3(_this__u8e3s4.bl_1));
529
+ return new WsCoordinates(_this__u8e3s4.al_1, _this__u8e3s4.bl_1, produce_3(_this__u8e3s4.cl_1));
530
530
  }
531
531
  function produce_3(_this__u8e3s4) {
532
- return new WsIndex(_this__u8e3s4.rl_1, _this__u8e3s4.sl_1);
532
+ return new WsIndex(_this__u8e3s4.sl_1, _this__u8e3s4.tl_1);
533
533
  }
534
534
  function WsError(index, length, value) {
535
535
  this.index = index;
536
536
  this.length = length;
537
537
  this.value = value;
538
538
  }
539
- protoOf(WsError).v20 = function () {
539
+ protoOf(WsError).w20 = function () {
540
540
  return this.index;
541
541
  };
542
542
  protoOf(WsError).p8 = function () {
@@ -551,17 +551,17 @@
551
551
  protoOf(WsError).j3 = function () {
552
552
  return this.length;
553
553
  };
554
- protoOf(WsError).o20 = function () {
554
+ protoOf(WsError).p20 = function () {
555
555
  return this.value;
556
556
  };
557
- protoOf(WsError).w20 = function (index, length, value) {
557
+ protoOf(WsError).x20 = function (index, length, value) {
558
558
  return new WsError(index, length, value);
559
559
  };
560
560
  protoOf(WsError).copy = function (index, length, value, $super) {
561
561
  index = index === VOID ? this.index : index;
562
562
  length = length === VOID ? this.length : length;
563
563
  value = value === VOID ? this.value : value;
564
- return this.w20(index, length, value);
564
+ return this.x20(index, length, value);
565
565
  };
566
566
  protoOf(WsError).toString = function () {
567
567
  return 'WsError(index=' + this.index + ', length=' + this.length + ', value=' + this.value + ')';
@@ -587,9 +587,9 @@
587
587
  return true;
588
588
  };
589
589
  function produce_4(_this__u8e3s4) {
590
- var tmp = _this__u8e3s4.cl_1.bl_1.rl_1 - _this__u8e3s4.cl_1.bl_1.sl_1 | 0;
590
+ var tmp = _this__u8e3s4.dl_1.cl_1.sl_1 - _this__u8e3s4.dl_1.cl_1.tl_1 | 0;
591
591
  var tmp0_elvis_lhs = _this__u8e3s4.message;
592
- return new WsError(tmp, _this__u8e3s4.cl_1.bl_1.sl_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
592
+ return new WsError(tmp, _this__u8e3s4.dl_1.cl_1.tl_1, tmp0_elvis_lhs == null ? 'No message' : tmp0_elvis_lhs);
593
593
  }
594
594
  //region block: exports
595
595
  function $jsExportAll$(_) {