@flock/wirespec 0.7.2 → 0.7.4
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.
- package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin/arrow-arrow-core.js +32 -19
- package/kotlin/arrow-arrow-core.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js +3 -3
- package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin/kotlin-openapi-bindings.js +3342 -3342
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1252 -1252
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +982 -982
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlin/wirespec-cli.js +83 -83
- package/kotlin/wirespec-core.js +1184 -1143
- package/kotlin/wirespec-core.js.map +1 -1
- package/kotlin/wirespec-lib.js +39 -39
- package/kotlin/wirespec-openapi.js +366 -362
- package/kotlin/wirespec-openapi.js.map +1 -1
- package/package.json +1 -1
- package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.hash +1 -1
- package/sync-hashes/arrow-arrow-core.js.map.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
- package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
- package/sync-hashes/wirespec-cli.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.hash +1 -1
- package/sync-hashes/wirespec-core.js.map.hash +1 -1
- package/sync-hashes/wirespec-lib.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.hash +1 -1
- package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
|
@@ -28,10 +28,13 @@
|
|
|
28
28
|
var equals = kotlin_kotlin.$_$.r6;
|
|
29
29
|
var classMeta = kotlin_kotlin.$_$.p6;
|
|
30
30
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wa;
|
|
31
|
+
var drop = kotlin_kotlin.$_$.p4;
|
|
32
|
+
var objectCreate = kotlin_kotlin.$_$.q7;
|
|
31
33
|
var AbstractList = kotlin_kotlin.$_$.j3;
|
|
32
34
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
33
35
|
var listOf = kotlin_kotlin.$_$.h5;
|
|
34
36
|
var plus = kotlin_kotlin.$_$.o5;
|
|
37
|
+
var plus_0 = kotlin_kotlin.$_$.p5;
|
|
35
38
|
var joinToString = kotlin_kotlin.$_$.a5;
|
|
36
39
|
var Collection = kotlin_kotlin.$_$.m3;
|
|
37
40
|
var asList = kotlin_kotlin.$_$.a4;
|
|
@@ -59,7 +62,7 @@
|
|
|
59
62
|
var tmp0_subject = _this__u8e3s4;
|
|
60
63
|
var tmp;
|
|
61
64
|
if (tmp0_subject instanceof Left) {
|
|
62
|
-
this.
|
|
65
|
+
this.eh(_this__u8e3s4.lg_1);
|
|
63
66
|
} else {
|
|
64
67
|
if (tmp0_subject instanceof Right) {
|
|
65
68
|
tmp = _this__u8e3s4.qg_1;
|
|
@@ -192,6 +195,13 @@
|
|
|
192
195
|
tmp$ret$2 = tmp;
|
|
193
196
|
return tmp$ret$2;
|
|
194
197
|
};
|
|
198
|
+
function NonEmptyList_init_$Init$(list, $this) {
|
|
199
|
+
NonEmptyList.call($this, list.h(0), drop(list, 1));
|
|
200
|
+
return $this;
|
|
201
|
+
}
|
|
202
|
+
function NonEmptyList_init_$Create$(list) {
|
|
203
|
+
return NonEmptyList_init_$Init$(list, objectCreate(protoOf(NonEmptyList)));
|
|
204
|
+
}
|
|
195
205
|
function Companion_2() {
|
|
196
206
|
Companion_instance_2 = this;
|
|
197
207
|
this.tg_1 = nonEmptyListOf(Unit_getInstance(), []);
|
|
@@ -226,6 +236,9 @@
|
|
|
226
236
|
protoOf(NonEmptyList).yg = function () {
|
|
227
237
|
return plus(listOf(this.ug_1), this.vg_1);
|
|
228
238
|
};
|
|
239
|
+
protoOf(NonEmptyList).zg = function (element) {
|
|
240
|
+
return NonEmptyList_init_$Create$(plus_0(this.xg(), element));
|
|
241
|
+
};
|
|
229
242
|
protoOf(NonEmptyList).equals = function (other) {
|
|
230
243
|
return protoOf(AbstractList).equals.call(this, other);
|
|
231
244
|
};
|
|
@@ -248,44 +261,44 @@
|
|
|
248
261
|
return tmp;
|
|
249
262
|
}
|
|
250
263
|
function DefaultRaise(isTraced) {
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
264
|
+
this.ah_1 = isTraced;
|
|
265
|
+
this.bh_1 = new AtomicBoolean(true);
|
|
253
266
|
}
|
|
254
|
-
protoOf(DefaultRaise).
|
|
255
|
-
return this.
|
|
267
|
+
protoOf(DefaultRaise).ch = function () {
|
|
268
|
+
return this.bh_1.fg(false);
|
|
256
269
|
};
|
|
257
|
-
protoOf(DefaultRaise).
|
|
270
|
+
protoOf(DefaultRaise).dh = function (r) {
|
|
258
271
|
var tmp;
|
|
259
|
-
if (this.
|
|
260
|
-
throw this.
|
|
272
|
+
if (this.bh_1.w()) {
|
|
273
|
+
throw this.ah_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
|
|
261
274
|
} else {
|
|
262
275
|
throw new RaiseLeakedException();
|
|
263
276
|
}
|
|
264
277
|
return tmp;
|
|
265
278
|
};
|
|
266
|
-
protoOf(DefaultRaise).
|
|
267
|
-
return this.
|
|
279
|
+
protoOf(DefaultRaise).eh = function (r) {
|
|
280
|
+
return this.dh((r == null ? true : isObject(r)) ? r : THROW_CCE());
|
|
268
281
|
};
|
|
269
282
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
270
283
|
var tmp;
|
|
271
284
|
var tmp_0;
|
|
272
285
|
if (_this__u8e3s4 instanceof RaiseCancellationExceptionNoTrace) {
|
|
273
|
-
tmp_0 = _this__u8e3s4.
|
|
286
|
+
tmp_0 = _this__u8e3s4.hh_1 === raise;
|
|
274
287
|
} else {
|
|
275
288
|
tmp_0 = false;
|
|
276
289
|
}
|
|
277
290
|
if (tmp_0) {
|
|
278
|
-
var tmp_1 = _this__u8e3s4.
|
|
291
|
+
var tmp_1 = _this__u8e3s4.gh_1;
|
|
279
292
|
tmp = (tmp_1 == null ? true : isObject(tmp_1)) ? tmp_1 : THROW_CCE();
|
|
280
293
|
} else {
|
|
281
294
|
var tmp_2;
|
|
282
295
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
283
|
-
tmp_2 = _this__u8e3s4.
|
|
296
|
+
tmp_2 = _this__u8e3s4.jh_1 === raise;
|
|
284
297
|
} else {
|
|
285
298
|
tmp_2 = false;
|
|
286
299
|
}
|
|
287
300
|
if (tmp_2) {
|
|
288
|
-
var tmp_3 = _this__u8e3s4.
|
|
301
|
+
var tmp_3 = _this__u8e3s4.ih_1;
|
|
289
302
|
tmp = (tmp_3 == null ? true : isObject(tmp_3)) ? tmp_3 : THROW_CCE();
|
|
290
303
|
} else {
|
|
291
304
|
throw _this__u8e3s4;
|
|
@@ -296,14 +309,14 @@
|
|
|
296
309
|
function RaiseCancellationException(raised, raise) {
|
|
297
310
|
CancellationException_init_$Init$(this);
|
|
298
311
|
captureStack(this, RaiseCancellationException);
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
312
|
+
this.ih_1 = raised;
|
|
313
|
+
this.jh_1 = raise;
|
|
301
314
|
}
|
|
302
315
|
function RaiseCancellationExceptionNoTrace(raised, raise) {
|
|
303
316
|
CancellationExceptionNoTrace.call(this);
|
|
304
317
|
captureStack(this, RaiseCancellationExceptionNoTrace);
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
318
|
+
this.gh_1 = raised;
|
|
319
|
+
this.hh_1 = raise;
|
|
307
320
|
}
|
|
308
321
|
function RaiseLeakedException() {
|
|
309
322
|
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 +349,7 @@
|
|
|
336
349
|
captureStack(this, CancellationExceptionNoTrace);
|
|
337
350
|
}
|
|
338
351
|
//region block: post-declaration
|
|
339
|
-
protoOf(DefaultRaise).
|
|
352
|
+
protoOf(DefaultRaise).fh = bind;
|
|
340
353
|
//endregion
|
|
341
354
|
//region block: init
|
|
342
355
|
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.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Raise.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/nonFatalOrThrow.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Fold.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/NonFatal.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt"],"sourcesContent":[null,null,null,null,null,null,null],"names":["bind","<this>","<init>","value","<get-isLeft>","<get-isRight>","toString","hashCode","equals","other","head","tail","<get-size>","<get-all>","get","index","isEmpty","toList","nonEmptyListOf","t","nonFatalOrThrow","isTraced","complete","raise","r","raisedOrRethrow","raised","<get-RaiseCancellationExceptionCaptured>","NonFatal"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Raise.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/nonFatalOrThrow.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Fold.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/NonFatal.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt"],"sourcesContent":[null,null,null,null,null,null,null],"names":["bind","<this>","<init>","value","<get-isLeft>","<get-isRight>","toString","hashCode","equals","other","NonEmptyList_init_$Init$","list","NonEmptyList_init_$Create$","head","tail","<get-size>","<get-all>","get","index","isEmpty","toList","plus","element","nonEmptyListOf","t","nonFatalOrThrow","isTraced","complete","raise","r","raisedOrRethrow","ra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,iB;EAAlE,C;+BAOQA,CAAAA,EAAR;A,IAAqC,kCAM/B,wSAN+B,O;;EAArC,C;iDASe8B,CAAAA,EAAA;A,IAAA,yC;EAG2G,C;;;;mBCpP5GC,CAAaT,CAAbS,EACZ;A,QAAM,gB;;;IACJ,6C;cAAA,I;;cAAqB,Y;;IAAA,U;YAA4B,K;;YACzC,I;;IACT,U;EAAD,C;uCCLmB/B,CAAAA,EAArB;A,IAA0D,oCAAsB,wCAAtB,O;;EAA1D,C;;;;;uCFmPE,sT;;;;;;;;;;;;;;"}
|
|
@@ -685,9 +685,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
685
685
|
function filterNotNull(_this__u8e3s4) {
|
|
686
686
|
return filterNotNullTo(_this__u8e3s4, ArrayList_init_$Create$());
|
|
687
687
|
}
|
|
688
|
-
function lastOrNull(_this__u8e3s4) {
|
|
689
|
-
return _this__u8e3s4.g() ? null : _this__u8e3s4.h(_this__u8e3s4.f() - 1 | 0);
|
|
690
|
-
}
|
|
691
688
|
function toList_0(_this__u8e3s4) {
|
|
692
689
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
693
690
|
var tmp0_subject = _this__u8e3s4.f();
|
|
@@ -762,6 +759,9 @@ if (typeof Math.imul === 'undefined') {
|
|
|
762
759
|
function singleOrNull(_this__u8e3s4) {
|
|
763
760
|
return _this__u8e3s4.f() === 1 ? _this__u8e3s4.h(0) : null;
|
|
764
761
|
}
|
|
762
|
+
function lastOrNull(_this__u8e3s4) {
|
|
763
|
+
return _this__u8e3s4.g() ? null : _this__u8e3s4.h(_this__u8e3s4.f() - 1 | 0);
|
|
764
|
+
}
|
|
765
765
|
function _no_name_provided__qut3iv($this_asSequence) {
|
|
766
766
|
this.t_1 = $this_asSequence;
|
|
767
767
|
}
|