@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
@@ -12,10 +12,10 @@
12
12
  }(this, function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
- var protoOf = kotlin_kotlin.$_$.t7;
16
- var classMeta = kotlin_kotlin.$_$.q6;
17
- var VOID = kotlin_kotlin.$_$.za;
18
- var setMetadataFor = kotlin_kotlin.$_$.u7;
15
+ var protoOf = kotlin_kotlin.$_$.s7;
16
+ var classMeta = kotlin_kotlin.$_$.p6;
17
+ var VOID = kotlin_kotlin.$_$.bb;
18
+ var setMetadataFor = kotlin_kotlin.$_$.t7;
19
19
  //endregion
20
20
  //region block: pre-declaration
21
21
  setMetadataFor(AtomicBoolean, 'AtomicBoolean', classMeta);
@@ -25,26 +25,26 @@
25
25
  return _this__u8e3s4 ? 1 : 0;
26
26
  }
27
27
  function AtomicBoolean(value) {
28
- this.cg_1 = new AtomicInt(toInt(value, this));
28
+ this.eg_1 = new AtomicInt(toInt(value, this));
29
29
  }
30
30
  protoOf(AtomicBoolean).w = function () {
31
- return !(get_value(this.cg_1) === 0);
31
+ return !(get_value(this.eg_1) === 0);
32
32
  };
33
- protoOf(AtomicBoolean).dg = function (value) {
34
- return this.cg_1.fg(toInt(value, this)) === 1;
33
+ protoOf(AtomicBoolean).fg = function (value) {
34
+ return this.eg_1.hg(toInt(value, this)) === 1;
35
35
  };
36
36
  function get_value(_this__u8e3s4) {
37
- return _this__u8e3s4.gg();
37
+ return _this__u8e3s4.ig();
38
38
  }
39
39
  function AtomicInt(initialValue) {
40
- this.eg_1 = initialValue;
40
+ this.gg_1 = initialValue;
41
41
  }
42
- protoOf(AtomicInt).gg = function () {
43
- return this.eg_1;
42
+ protoOf(AtomicInt).ig = function () {
43
+ return this.gg_1;
44
44
  };
45
- protoOf(AtomicInt).fg = function (value) {
46
- var current = this.eg_1;
47
- this.eg_1 = value;
45
+ protoOf(AtomicInt).hg = function (value) {
46
+ var current = this.gg_1;
47
+ this.gg_1 = value;
48
48
  return current;
49
49
  };
50
50
  //region block: exports
@@ -12,9 +12,9 @@
12
12
  }(this, function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
- var classMeta = kotlin_kotlin.$_$.q6;
16
- var VOID = kotlin_kotlin.$_$.za;
17
- var setMetadataFor = kotlin_kotlin.$_$.u7;
15
+ var classMeta = kotlin_kotlin.$_$.p6;
16
+ var VOID = kotlin_kotlin.$_$.bb;
17
+ var setMetadataFor = kotlin_kotlin.$_$.t7;
18
18
  //endregion
19
19
  //region block: pre-declaration
20
20
  setMetadataFor(ControlThrowable, 'ControlThrowable', classMeta, Error);
@@ -19,30 +19,30 @@
19
19
  'use strict';
20
20
  //region block: imports
21
21
  var Unit_getInstance = kotlin_kotlin.$_$.i3;
22
- var protoOf = kotlin_kotlin.$_$.t7;
23
- var objectMeta = kotlin_kotlin.$_$.s7;
24
- var VOID = kotlin_kotlin.$_$.za;
25
- var setMetadataFor = kotlin_kotlin.$_$.u7;
26
- var hashCode = kotlin_kotlin.$_$.y6;
27
- var THROW_CCE = kotlin_kotlin.$_$.z9;
28
- var equals = kotlin_kotlin.$_$.s6;
29
- var classMeta = kotlin_kotlin.$_$.q6;
30
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
22
+ var protoOf = kotlin_kotlin.$_$.s7;
23
+ var objectMeta = kotlin_kotlin.$_$.r7;
24
+ var VOID = kotlin_kotlin.$_$.bb;
25
+ var setMetadataFor = kotlin_kotlin.$_$.t7;
26
+ var hashCode = kotlin_kotlin.$_$.x6;
27
+ var THROW_CCE = kotlin_kotlin.$_$.ba;
28
+ var equals = kotlin_kotlin.$_$.r6;
29
+ var classMeta = kotlin_kotlin.$_$.p6;
30
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.wa;
31
31
  var AbstractList = kotlin_kotlin.$_$.j3;
32
32
  var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.f1;
33
- var listOf = kotlin_kotlin.$_$.i5;
34
- var plus = kotlin_kotlin.$_$.p5;
35
- var joinToString = kotlin_kotlin.$_$.b5;
33
+ var listOf = kotlin_kotlin.$_$.h5;
34
+ var plus = kotlin_kotlin.$_$.o5;
35
+ var joinToString = kotlin_kotlin.$_$.a5;
36
36
  var Collection = kotlin_kotlin.$_$.m3;
37
37
  var asList = kotlin_kotlin.$_$.a4;
38
38
  var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
39
- var isObject = kotlin_kotlin.$_$.k7;
40
- var CancellationException = kotlin_kotlin.$_$.e6;
39
+ var isObject = kotlin_kotlin.$_$.j7;
40
+ var CancellationException = kotlin_kotlin.$_$.d6;
41
41
  var CancellationException_init_$Init$ = kotlin_kotlin.$_$.t;
42
- var captureStack = kotlin_kotlin.$_$.k6;
43
- var IllegalStateException = kotlin_kotlin.$_$.t9;
42
+ var captureStack = kotlin_kotlin.$_$.j6;
43
+ var IllegalStateException = kotlin_kotlin.$_$.v9;
44
44
  var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.d1;
45
- var interfaceMeta = kotlin_kotlin.$_$.z6;
45
+ var interfaceMeta = kotlin_kotlin.$_$.y6;
46
46
  var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
47
47
  var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.u;
48
48
  //endregion
@@ -59,10 +59,10 @@
59
59
  var tmp0_subject = _this__u8e3s4;
60
60
  var tmp;
61
61
  if (tmp0_subject instanceof Left) {
62
- this.bh(_this__u8e3s4.jg_1);
62
+ this.dh(_this__u8e3s4.lg_1);
63
63
  } else {
64
64
  if (tmp0_subject instanceof Right) {
65
- tmp = _this__u8e3s4.og_1;
65
+ tmp = _this__u8e3s4.qg_1;
66
66
  } else {
67
67
  noWhenBranchMatchedException();
68
68
  }
@@ -78,7 +78,7 @@
78
78
  //endregion
79
79
  function Companion() {
80
80
  Companion_instance = this;
81
- this.hg_1 = new Left(Unit_getInstance());
81
+ this.jg_1 = new Left(Unit_getInstance());
82
82
  }
83
83
  var Companion_instance;
84
84
  function Companion_getInstance() {
@@ -88,7 +88,7 @@
88
88
  }
89
89
  function Companion_0() {
90
90
  Companion_instance_0 = this;
91
- this.ig_1 = new Right(Unit_getInstance());
91
+ this.kg_1 = new Right(Unit_getInstance());
92
92
  }
93
93
  var Companion_instance_0;
94
94
  function Companion_getInstance_0() {
@@ -99,21 +99,21 @@
99
99
  function Left(value) {
100
100
  Companion_getInstance();
101
101
  Either.call(this);
102
- this.jg_1 = value;
103
- this.kg_1 = true;
104
- this.lg_1 = false;
102
+ this.lg_1 = value;
103
+ this.mg_1 = true;
104
+ this.ng_1 = false;
105
105
  }
106
- protoOf(Left).mg = function () {
107
- return this.kg_1;
106
+ protoOf(Left).og = function () {
107
+ return this.mg_1;
108
108
  };
109
- protoOf(Left).ng = function () {
110
- return this.lg_1;
109
+ protoOf(Left).pg = function () {
110
+ return this.ng_1;
111
111
  };
112
112
  protoOf(Left).toString = function () {
113
- return 'Either.Left(' + this.jg_1 + ')';
113
+ return 'Either.Left(' + this.lg_1 + ')';
114
114
  };
115
115
  protoOf(Left).hashCode = function () {
116
- return this.jg_1 == null ? 0 : hashCode(this.jg_1);
116
+ return this.lg_1 == null ? 0 : hashCode(this.lg_1);
117
117
  };
118
118
  protoOf(Left).equals = function (other) {
119
119
  if (this === other)
@@ -121,28 +121,28 @@
121
121
  if (!(other instanceof Left))
122
122
  return false;
123
123
  var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
124
- if (!equals(this.jg_1, tmp0_other_with_cast.jg_1))
124
+ if (!equals(this.lg_1, tmp0_other_with_cast.lg_1))
125
125
  return false;
126
126
  return true;
127
127
  };
128
128
  function Right(value) {
129
129
  Companion_getInstance_0();
130
130
  Either.call(this);
131
- this.og_1 = value;
132
- this.pg_1 = false;
133
- this.qg_1 = true;
131
+ this.qg_1 = value;
132
+ this.rg_1 = false;
133
+ this.sg_1 = true;
134
134
  }
135
- protoOf(Right).mg = function () {
136
- return this.pg_1;
135
+ protoOf(Right).og = function () {
136
+ return this.rg_1;
137
137
  };
138
- protoOf(Right).ng = function () {
139
- return this.qg_1;
138
+ protoOf(Right).pg = function () {
139
+ return this.sg_1;
140
140
  };
141
141
  protoOf(Right).toString = function () {
142
- return 'Either.Right(' + this.og_1 + ')';
142
+ return 'Either.Right(' + this.qg_1 + ')';
143
143
  };
144
144
  protoOf(Right).hashCode = function () {
145
- return this.og_1 == null ? 0 : hashCode(this.og_1);
145
+ return this.qg_1 == null ? 0 : hashCode(this.qg_1);
146
146
  };
147
147
  protoOf(Right).equals = function (other) {
148
148
  if (this === other)
@@ -150,7 +150,7 @@
150
150
  if (!(other instanceof Right))
151
151
  return false;
152
152
  var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
153
- if (!equals(this.og_1, tmp0_other_with_cast.og_1))
153
+ if (!equals(this.qg_1, tmp0_other_with_cast.qg_1))
154
154
  return false;
155
155
  return true;
156
156
  };
@@ -175,14 +175,14 @@
175
175
  if (tmp0_subject instanceof Right) {
176
176
  var tmp$ret$0;
177
177
  // Inline function 'arrow.core.Either.toString.<anonymous>' call
178
- var tmp0__anonymous__q1qw7t = this.og_1;
178
+ var tmp0__anonymous__q1qw7t = this.qg_1;
179
179
  tmp$ret$0 = 'Either.Right(' + tmp0__anonymous__q1qw7t + ')';
180
180
  tmp = tmp$ret$0;
181
181
  } else {
182
182
  if (tmp0_subject instanceof Left) {
183
183
  var tmp$ret$1;
184
184
  // Inline function 'arrow.core.Either.toString.<anonymous>' call
185
- var tmp1__anonymous__uwfjfc = this.jg_1;
185
+ var tmp1__anonymous__uwfjfc = this.lg_1;
186
186
  tmp$ret$1 = 'Either.Left(' + tmp1__anonymous__uwfjfc + ')';
187
187
  tmp = tmp$ret$1;
188
188
  } else {
@@ -194,7 +194,7 @@
194
194
  };
195
195
  function Companion_2() {
196
196
  Companion_instance_2 = this;
197
- this.rg_1 = nonEmptyListOf(Unit_getInstance(), []);
197
+ this.tg_1 = nonEmptyListOf(Unit_getInstance(), []);
198
198
  }
199
199
  var Companion_instance_2;
200
200
  function Companion_getInstance_2() {
@@ -205,26 +205,26 @@
205
205
  function NonEmptyList(head, tail) {
206
206
  Companion_getInstance_2();
207
207
  AbstractList.call(this);
208
- this.sg_1 = head;
209
- this.tg_1 = tail;
210
- this.ug_1 = 1 + this.tg_1.f() | 0;
208
+ this.ug_1 = head;
209
+ this.vg_1 = tail;
210
+ this.wg_1 = 1 + this.vg_1.f() | 0;
211
211
  }
212
212
  protoOf(NonEmptyList).f = function () {
213
- return this.ug_1;
213
+ return this.wg_1;
214
214
  };
215
- protoOf(NonEmptyList).vg = function () {
216
- return this.wg();
215
+ protoOf(NonEmptyList).xg = function () {
216
+ return this.yg();
217
217
  };
218
218
  protoOf(NonEmptyList).h = function (index) {
219
- if (index < 0 ? true : index >= this.ug_1)
220
- throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.ug_1 - 1 | 0));
221
- return index === 0 ? this.sg_1 : this.tg_1.h(index - 1 | 0);
219
+ if (index < 0 ? true : index >= this.wg_1)
220
+ throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.wg_1 - 1 | 0));
221
+ return index === 0 ? this.ug_1 : this.vg_1.h(index - 1 | 0);
222
222
  };
223
223
  protoOf(NonEmptyList).g = function () {
224
224
  return false;
225
225
  };
226
- protoOf(NonEmptyList).wg = function () {
227
- return plus(listOf(this.sg_1), this.tg_1);
226
+ protoOf(NonEmptyList).yg = function () {
227
+ return plus(listOf(this.ug_1), this.vg_1);
228
228
  };
229
229
  protoOf(NonEmptyList).equals = function (other) {
230
230
  return protoOf(AbstractList).equals.call(this, other);
@@ -233,7 +233,7 @@
233
233
  return protoOf(AbstractList).hashCode.call(this);
234
234
  };
235
235
  protoOf(NonEmptyList).toString = function () {
236
- return 'NonEmptyList(' + joinToString(this.vg()) + ')';
236
+ return 'NonEmptyList(' + joinToString(this.xg()) + ')';
237
237
  };
238
238
  function nonEmptyListOf(head, t) {
239
239
  return new NonEmptyList(head, asList(t));
@@ -248,44 +248,44 @@
248
248
  return tmp;
249
249
  }
250
250
  function DefaultRaise(isTraced) {
251
- this.xg_1 = isTraced;
252
- this.yg_1 = new AtomicBoolean(true);
251
+ this.zg_1 = isTraced;
252
+ this.ah_1 = new AtomicBoolean(true);
253
253
  }
254
- protoOf(DefaultRaise).zg = function () {
255
- return this.yg_1.dg(false);
254
+ protoOf(DefaultRaise).bh = function () {
255
+ return this.ah_1.fg(false);
256
256
  };
257
- protoOf(DefaultRaise).ah = function (r) {
257
+ protoOf(DefaultRaise).ch = function (r) {
258
258
  var tmp;
259
- if (this.yg_1.w()) {
260
- throw this.xg_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
259
+ if (this.ah_1.w()) {
260
+ throw this.zg_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
261
261
  } else {
262
262
  throw new RaiseLeakedException();
263
263
  }
264
264
  return tmp;
265
265
  };
266
- protoOf(DefaultRaise).bh = function (r) {
267
- return this.ah((r == null ? true : isObject(r)) ? r : THROW_CCE());
266
+ protoOf(DefaultRaise).dh = function (r) {
267
+ return this.ch((r == null ? true : isObject(r)) ? r : THROW_CCE());
268
268
  };
269
269
  function raisedOrRethrow(_this__u8e3s4, raise) {
270
270
  var tmp;
271
271
  var tmp_0;
272
272
  if (_this__u8e3s4 instanceof RaiseCancellationExceptionNoTrace) {
273
- tmp_0 = _this__u8e3s4.eh_1 === raise;
273
+ tmp_0 = _this__u8e3s4.gh_1 === raise;
274
274
  } else {
275
275
  tmp_0 = false;
276
276
  }
277
277
  if (tmp_0) {
278
- var tmp_1 = _this__u8e3s4.dh_1;
278
+ var tmp_1 = _this__u8e3s4.fh_1;
279
279
  tmp = (tmp_1 == null ? true : isObject(tmp_1)) ? tmp_1 : THROW_CCE();
280
280
  } else {
281
281
  var tmp_2;
282
282
  if (_this__u8e3s4 instanceof RaiseCancellationException) {
283
- tmp_2 = _this__u8e3s4.gh_1 === raise;
283
+ tmp_2 = _this__u8e3s4.ih_1 === raise;
284
284
  } else {
285
285
  tmp_2 = false;
286
286
  }
287
287
  if (tmp_2) {
288
- var tmp_3 = _this__u8e3s4.fh_1;
288
+ var tmp_3 = _this__u8e3s4.hh_1;
289
289
  tmp = (tmp_3 == null ? true : isObject(tmp_3)) ? tmp_3 : THROW_CCE();
290
290
  } else {
291
291
  throw _this__u8e3s4;
@@ -296,14 +296,14 @@
296
296
  function RaiseCancellationException(raised, raise) {
297
297
  CancellationException_init_$Init$(this);
298
298
  captureStack(this, RaiseCancellationException);
299
- this.fh_1 = raised;
300
- this.gh_1 = raise;
299
+ this.hh_1 = raised;
300
+ this.ih_1 = raise;
301
301
  }
302
302
  function RaiseCancellationExceptionNoTrace(raised, raise) {
303
303
  CancellationExceptionNoTrace.call(this);
304
304
  captureStack(this, RaiseCancellationExceptionNoTrace);
305
- this.dh_1 = raised;
306
- this.eh_1 = raise;
305
+ this.fh_1 = raised;
306
+ this.gh_1 = raise;
307
307
  }
308
308
  function RaiseLeakedException() {
309
309
  IllegalStateException_init_$Init$('raise or bind was called outside of its DSL scope, and the DSL Scoped operator was leaked\nThis is kind of usage is incorrect, make sure all calls to raise or bind occur within the lifecycle of effect { }, either { } or similar builders.\n\nSee: Effect documentation for additional information.', this);
@@ -336,7 +336,7 @@
336
336
  captureStack(this, CancellationExceptionNoTrace);
337
337
  }
338
338
  //region block: post-declaration
339
- protoOf(DefaultRaise).ch = bind;
339
+ protoOf(DefaultRaise).eh = bind;
340
340
  //endregion
341
341
  //region block: init
342
342
  RaiseCancellationExceptionCaptured = "kotlin.coroutines.cancellation.CancellationException should never get cancelled. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.";