@flock/wirespec 0.9.25 → 0.9.27
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/arrow-arrow-atomic.js +12 -12
- package/arrow-arrow-core.js +124 -123
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1836 -1867
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +809 -544
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2144 -2002
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +5008 -5008
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +1879 -1879
- package/{kotlinx-serialization-kotlinx-serialization-core-js-ir.js → kotlinx-serialization-kotlinx-serialization-core.js} +2202 -2130
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5122 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/markdown.js +2123 -2017
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +8910 -8389
- package/mordant-mordant.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2069 -2069
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +469 -818
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +603 -603
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +94 -94
- package/wirespec-src-plugin-cli.js +164 -164
- package/wirespec-src-plugin-npm.d.ts +28 -69
- package/wirespec-src-plugin-npm.js +126 -50
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +36 -36
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -4583
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
package/arrow-arrow-atomic.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}(globalThis, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.ua;
|
|
16
16
|
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
17
17
|
//endregion
|
|
18
18
|
//region block: pre-declaration
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
return _this__u8e3s4 ? 1 : 0;
|
|
24
24
|
}
|
|
25
25
|
function AtomicBoolean(value) {
|
|
26
|
-
this.
|
|
26
|
+
this.mj_1 = new AtomicInt(toInt(value, this));
|
|
27
27
|
}
|
|
28
28
|
protoOf(AtomicBoolean).b1 = function () {
|
|
29
|
-
return !(get_value(this.
|
|
29
|
+
return !(get_value(this.mj_1) === 0);
|
|
30
30
|
};
|
|
31
|
-
protoOf(AtomicBoolean).
|
|
32
|
-
return this.
|
|
31
|
+
protoOf(AtomicBoolean).nj = function (value) {
|
|
32
|
+
return this.mj_1.pj(toInt(value, this)) === 1;
|
|
33
33
|
};
|
|
34
34
|
function get_value(_this__u8e3s4) {
|
|
35
|
-
return _this__u8e3s4.
|
|
35
|
+
return _this__u8e3s4.qj();
|
|
36
36
|
}
|
|
37
37
|
function AtomicInt(initialValue) {
|
|
38
|
-
this.
|
|
38
|
+
this.oj_1 = initialValue;
|
|
39
39
|
}
|
|
40
|
-
protoOf(AtomicInt).
|
|
41
|
-
return this.
|
|
40
|
+
protoOf(AtomicInt).qj = function () {
|
|
41
|
+
return this.oj_1;
|
|
42
42
|
};
|
|
43
|
-
protoOf(AtomicInt).
|
|
44
|
-
var current = this.
|
|
45
|
-
this.
|
|
43
|
+
protoOf(AtomicInt).pj = function (value) {
|
|
44
|
+
var current = this.oj_1;
|
|
45
|
+
this.oj_1 = value;
|
|
46
46
|
return current;
|
|
47
47
|
};
|
|
48
48
|
//region block: exports
|
package/arrow-arrow-core.js
CHANGED
|
@@ -18,36 +18,37 @@
|
|
|
18
18
|
}(globalThis, function (_, kotlin_kotlin, kotlin_io_arrow_kt_arrow_atomic, kotlin_io_arrow_kt_arrow_continuations) {
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.ua;
|
|
23
23
|
var initMetadataForCompanion = kotlin_kotlin.$_$.v9;
|
|
24
|
-
var toString = kotlin_kotlin.$_$.
|
|
24
|
+
var toString = kotlin_kotlin.$_$.dg;
|
|
25
25
|
var hashCode = kotlin_kotlin.$_$.t9;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.ff;
|
|
27
27
|
var equals = kotlin_kotlin.$_$.n9;
|
|
28
28
|
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
29
29
|
var VOID = kotlin_kotlin.$_$.g;
|
|
30
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
31
|
-
var drop = kotlin_kotlin.$_$.
|
|
32
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
33
|
-
var AbstractList = kotlin_kotlin.$_$.
|
|
34
|
-
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bg;
|
|
31
|
+
var drop = kotlin_kotlin.$_$.z5;
|
|
32
|
+
var objectCreate = kotlin_kotlin.$_$.ta;
|
|
33
|
+
var AbstractList = kotlin_kotlin.$_$.h4;
|
|
34
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
35
35
|
var listOf = kotlin_kotlin.$_$.e7;
|
|
36
36
|
var plus = kotlin_kotlin.$_$.p7;
|
|
37
37
|
var plus_0 = kotlin_kotlin.$_$.q7;
|
|
38
38
|
var joinToString = kotlin_kotlin.$_$.r6;
|
|
39
|
-
var Collection = kotlin_kotlin.$_$.
|
|
40
|
-
var
|
|
41
|
-
var asList = kotlin_kotlin.$_$.
|
|
39
|
+
var Collection = kotlin_kotlin.$_$.k4;
|
|
40
|
+
var toList = kotlin_kotlin.$_$.i8;
|
|
41
|
+
var asList = kotlin_kotlin.$_$.z4;
|
|
42
|
+
var Iterable = kotlin_kotlin.$_$.n4;
|
|
42
43
|
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
43
44
|
var CancellationException = kotlin_kotlin.$_$.v8;
|
|
44
45
|
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
45
46
|
var captureStack = kotlin_kotlin.$_$.f9;
|
|
46
|
-
var
|
|
47
|
-
var
|
|
47
|
+
var defineProp = kotlin_kotlin.$_$.m9;
|
|
48
|
+
var IllegalStateException = kotlin_kotlin.$_$.ye;
|
|
49
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.k1;
|
|
48
50
|
var initMetadataForInterface = kotlin_kotlin.$_$.x9;
|
|
49
51
|
var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
|
|
50
|
-
var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.z;
|
|
51
52
|
//endregion
|
|
52
53
|
//region block: pre-declaration
|
|
53
54
|
initMetadataForCompanion(Companion);
|
|
@@ -58,13 +59,14 @@
|
|
|
58
59
|
initMetadataForCompanion(Companion_1);
|
|
59
60
|
initMetadataForCompanion(Companion_2);
|
|
60
61
|
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID, AbstractList, [AbstractList, Collection]);
|
|
62
|
+
initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, [Iterable]);
|
|
61
63
|
function bind(_this__u8e3s4) {
|
|
62
64
|
var tmp;
|
|
63
65
|
if (_this__u8e3s4 instanceof Left) {
|
|
64
|
-
this.
|
|
66
|
+
this.ok(_this__u8e3s4.tj_1);
|
|
65
67
|
} else {
|
|
66
68
|
if (_this__u8e3s4 instanceof Right) {
|
|
67
|
-
tmp = _this__u8e3s4.
|
|
69
|
+
tmp = _this__u8e3s4.zj_1;
|
|
68
70
|
} else {
|
|
69
71
|
noWhenBranchMatchedException();
|
|
70
72
|
}
|
|
@@ -74,13 +76,13 @@
|
|
|
74
76
|
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [0, 1]);
|
|
75
77
|
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [0, 1]);
|
|
76
78
|
initMetadataForClass(RaiseCancellationException, 'RaiseCancellationException', VOID, CancellationException);
|
|
77
|
-
initMetadataForClass(
|
|
78
|
-
initMetadataForClass(RaiseCancellationExceptionNoTrace, 'RaiseCancellationExceptionNoTrace', VOID, CancellationExceptionNoTrace);
|
|
79
|
+
initMetadataForClass(Traced, 'Traced', VOID, RaiseCancellationException);
|
|
79
80
|
initMetadataForClass(RaiseLeakedException, 'RaiseLeakedException', RaiseLeakedException, IllegalStateException);
|
|
81
|
+
initMetadataForClass(NoTrace, 'NoTrace', VOID, RaiseCancellationException);
|
|
80
82
|
//endregion
|
|
81
83
|
function Companion() {
|
|
82
84
|
Companion_instance = this;
|
|
83
|
-
this.
|
|
85
|
+
this.rj_1 = new Left(Unit_instance);
|
|
84
86
|
}
|
|
85
87
|
var Companion_instance;
|
|
86
88
|
function Companion_getInstance() {
|
|
@@ -90,7 +92,7 @@
|
|
|
90
92
|
}
|
|
91
93
|
function Companion_0() {
|
|
92
94
|
Companion_instance_0 = this;
|
|
93
|
-
this.
|
|
95
|
+
this.sj_1 = new Right(Unit_instance);
|
|
94
96
|
}
|
|
95
97
|
var Companion_instance_0;
|
|
96
98
|
function Companion_getInstance_0() {
|
|
@@ -101,21 +103,21 @@
|
|
|
101
103
|
function Left(value) {
|
|
102
104
|
Companion_getInstance();
|
|
103
105
|
Either.call(this);
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
106
|
+
this.tj_1 = value;
|
|
107
|
+
this.uj_1 = true;
|
|
108
|
+
this.vj_1 = false;
|
|
107
109
|
}
|
|
108
|
-
protoOf(Left).
|
|
109
|
-
return this.
|
|
110
|
+
protoOf(Left).wj = function () {
|
|
111
|
+
return this.uj_1;
|
|
110
112
|
};
|
|
111
|
-
protoOf(Left).
|
|
112
|
-
return this.
|
|
113
|
+
protoOf(Left).xj = function () {
|
|
114
|
+
return this.vj_1;
|
|
113
115
|
};
|
|
114
116
|
protoOf(Left).toString = function () {
|
|
115
|
-
return 'Either.Left(' + toString(this.
|
|
117
|
+
return 'Either.Left(' + toString(this.tj_1) + ')';
|
|
116
118
|
};
|
|
117
119
|
protoOf(Left).hashCode = function () {
|
|
118
|
-
return this.
|
|
120
|
+
return this.tj_1 == null ? 0 : hashCode(this.tj_1);
|
|
119
121
|
};
|
|
120
122
|
protoOf(Left).equals = function (other) {
|
|
121
123
|
if (this === other)
|
|
@@ -123,28 +125,28 @@
|
|
|
123
125
|
if (!(other instanceof Left))
|
|
124
126
|
return false;
|
|
125
127
|
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
126
|
-
if (!equals(this.
|
|
128
|
+
if (!equals(this.tj_1, tmp0_other_with_cast.tj_1))
|
|
127
129
|
return false;
|
|
128
130
|
return true;
|
|
129
131
|
};
|
|
130
132
|
function Right(value) {
|
|
131
133
|
Companion_getInstance_0();
|
|
132
134
|
Either.call(this);
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
135
|
+
this.zj_1 = value;
|
|
136
|
+
this.ak_1 = false;
|
|
137
|
+
this.bk_1 = true;
|
|
136
138
|
}
|
|
137
|
-
protoOf(Right).
|
|
138
|
-
return this.
|
|
139
|
+
protoOf(Right).wj = function () {
|
|
140
|
+
return this.ak_1;
|
|
139
141
|
};
|
|
140
|
-
protoOf(Right).
|
|
141
|
-
return this.
|
|
142
|
+
protoOf(Right).xj = function () {
|
|
143
|
+
return this.bk_1;
|
|
142
144
|
};
|
|
143
145
|
protoOf(Right).toString = function () {
|
|
144
|
-
return 'Either.Right(' + toString(this.
|
|
146
|
+
return 'Either.Right(' + toString(this.zj_1) + ')';
|
|
145
147
|
};
|
|
146
148
|
protoOf(Right).hashCode = function () {
|
|
147
|
-
return this.
|
|
149
|
+
return this.zj_1 == null ? 0 : hashCode(this.zj_1);
|
|
148
150
|
};
|
|
149
151
|
protoOf(Right).equals = function (other) {
|
|
150
152
|
if (this === other)
|
|
@@ -152,7 +154,7 @@
|
|
|
152
154
|
if (!(other instanceof Right))
|
|
153
155
|
return false;
|
|
154
156
|
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
155
|
-
if (!equals(this.
|
|
157
|
+
if (!equals(this.zj_1, tmp0_other_with_cast.zj_1))
|
|
156
158
|
return false;
|
|
157
159
|
return true;
|
|
158
160
|
};
|
|
@@ -164,7 +166,7 @@
|
|
|
164
166
|
}
|
|
165
167
|
function Either() {
|
|
166
168
|
}
|
|
167
|
-
protoOf(Either).
|
|
169
|
+
protoOf(Either).yj = function () {
|
|
168
170
|
// Inline function 'kotlin.contracts.contract' call
|
|
169
171
|
// Inline function 'arrow.core.getOrElse' call
|
|
170
172
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -173,11 +175,11 @@
|
|
|
173
175
|
var tmp;
|
|
174
176
|
if (this instanceof Right) {
|
|
175
177
|
// Inline function 'arrow.core.identity' call
|
|
176
|
-
tmp = this.
|
|
178
|
+
tmp = this.zj_1;
|
|
177
179
|
} else {
|
|
178
180
|
if (this instanceof Left) {
|
|
179
181
|
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
180
|
-
this.
|
|
182
|
+
this.tj_1;
|
|
181
183
|
tmp = null;
|
|
182
184
|
} else {
|
|
183
185
|
noWhenBranchMatchedException();
|
|
@@ -191,12 +193,12 @@
|
|
|
191
193
|
var tmp;
|
|
192
194
|
if (this instanceof Right) {
|
|
193
195
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
194
|
-
var it = this.
|
|
196
|
+
var it = this.zj_1;
|
|
195
197
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
196
198
|
} else {
|
|
197
199
|
if (this instanceof Left) {
|
|
198
200
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
199
|
-
var it_0 = this.
|
|
201
|
+
var it_0 = this.tj_1;
|
|
200
202
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
201
203
|
} else {
|
|
202
204
|
noWhenBranchMatchedException();
|
|
@@ -205,7 +207,7 @@
|
|
|
205
207
|
return tmp;
|
|
206
208
|
};
|
|
207
209
|
function NonEmptyList_init_$Init$(list, $this) {
|
|
208
|
-
NonEmptyList.call($this, list.
|
|
210
|
+
NonEmptyList.call($this, list.k(0), drop(list, 1));
|
|
209
211
|
return $this;
|
|
210
212
|
}
|
|
211
213
|
function NonEmptyList_init_$Create$(list) {
|
|
@@ -213,7 +215,7 @@
|
|
|
213
215
|
}
|
|
214
216
|
function Companion_2() {
|
|
215
217
|
Companion_instance_2 = this;
|
|
216
|
-
this.
|
|
218
|
+
this.ck_1 = nonEmptyListOf(Unit_instance, []);
|
|
217
219
|
}
|
|
218
220
|
var Companion_instance_2;
|
|
219
221
|
function Companion_getInstance_2() {
|
|
@@ -224,29 +226,29 @@
|
|
|
224
226
|
function NonEmptyList(head, tail) {
|
|
225
227
|
Companion_getInstance_2();
|
|
226
228
|
AbstractList.call(this);
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
229
|
+
this.dk_1 = head;
|
|
230
|
+
this.ek_1 = tail;
|
|
231
|
+
this.fk_1 = 1 + this.ek_1.j() | 0;
|
|
230
232
|
}
|
|
231
233
|
protoOf(NonEmptyList).j = function () {
|
|
232
|
-
return this.
|
|
234
|
+
return this.fk_1;
|
|
233
235
|
};
|
|
234
|
-
protoOf(NonEmptyList).
|
|
235
|
-
return this.
|
|
236
|
+
protoOf(NonEmptyList).gk = function () {
|
|
237
|
+
return this.hk();
|
|
236
238
|
};
|
|
237
|
-
protoOf(NonEmptyList).
|
|
238
|
-
if (index < 0 || index >= this.
|
|
239
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
240
|
-
return index === 0 ? this.
|
|
239
|
+
protoOf(NonEmptyList).k = function (index) {
|
|
240
|
+
if (index < 0 || index >= this.fk_1)
|
|
241
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.fk_1 - 1 | 0));
|
|
242
|
+
return index === 0 ? this.dk_1 : this.ek_1.k(index - 1 | 0);
|
|
241
243
|
};
|
|
242
|
-
protoOf(NonEmptyList).
|
|
244
|
+
protoOf(NonEmptyList).l = function () {
|
|
243
245
|
return false;
|
|
244
246
|
};
|
|
245
|
-
protoOf(NonEmptyList).
|
|
246
|
-
return plus(listOf(this.
|
|
247
|
+
protoOf(NonEmptyList).hk = function () {
|
|
248
|
+
return plus(listOf(this.dk_1), this.ek_1);
|
|
247
249
|
};
|
|
248
|
-
protoOf(NonEmptyList).
|
|
249
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
250
|
+
protoOf(NonEmptyList).ik = function (element) {
|
|
251
|
+
return NonEmptyList_init_$Create$(plus_0(this.gk(), element));
|
|
250
252
|
};
|
|
251
253
|
protoOf(NonEmptyList).equals = function (other) {
|
|
252
254
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -255,24 +257,27 @@
|
|
|
255
257
|
return protoOf(AbstractList).hashCode.call(this);
|
|
256
258
|
};
|
|
257
259
|
protoOf(NonEmptyList).toString = function () {
|
|
258
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
260
|
+
return 'NonEmptyList(' + joinToString(this.gk()) + ')';
|
|
259
261
|
};
|
|
260
262
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
269
|
-
tmp = new NonEmptyList(tmp0_safe_receiver, drop(_this__u8e3s4, 1));
|
|
270
|
-
}
|
|
271
|
-
return tmp;
|
|
263
|
+
var iter = _this__u8e3s4.g();
|
|
264
|
+
if (!iter.h())
|
|
265
|
+
return null;
|
|
266
|
+
var tmp = iter.i();
|
|
267
|
+
// Inline function 'kotlin.collections.Iterable' call
|
|
268
|
+
var tmp$ret$0 = new _no_name_provided__qut3iv(iter);
|
|
269
|
+
return new NonEmptyList(tmp, toList(tmp$ret$0));
|
|
272
270
|
}
|
|
273
271
|
function nonEmptyListOf(head, t) {
|
|
274
272
|
return new NonEmptyList(head, asList(t));
|
|
275
273
|
}
|
|
274
|
+
function _no_name_provided__qut3iv($iter) {
|
|
275
|
+
this.jk_1 = $iter;
|
|
276
|
+
}
|
|
277
|
+
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
278
|
+
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
279
|
+
return this.jk_1;
|
|
280
|
+
};
|
|
276
281
|
function curried(_this__u8e3s4) {
|
|
277
282
|
return curried$lambda(_this__u8e3s4);
|
|
278
283
|
}
|
|
@@ -296,64 +301,56 @@
|
|
|
296
301
|
return tmp;
|
|
297
302
|
}
|
|
298
303
|
function DefaultRaise(isTraced) {
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
304
|
+
this.kk_1 = isTraced;
|
|
305
|
+
this.lk_1 = new AtomicBoolean(true);
|
|
301
306
|
}
|
|
302
|
-
protoOf(DefaultRaise).
|
|
303
|
-
return this.
|
|
307
|
+
protoOf(DefaultRaise).mk = function () {
|
|
308
|
+
return this.lk_1.nj(false);
|
|
304
309
|
};
|
|
305
|
-
protoOf(DefaultRaise).
|
|
310
|
+
protoOf(DefaultRaise).nk = function (r) {
|
|
306
311
|
var tmp;
|
|
307
|
-
if (this.
|
|
308
|
-
throw this.
|
|
312
|
+
if (this.lk_1.b1()) {
|
|
313
|
+
throw this.kk_1 ? new Traced(r, this) : new NoTrace(r, this);
|
|
309
314
|
} else {
|
|
310
315
|
throw new RaiseLeakedException();
|
|
311
316
|
}
|
|
312
317
|
};
|
|
313
|
-
protoOf(DefaultRaise).
|
|
314
|
-
return this.
|
|
318
|
+
protoOf(DefaultRaise).ok = function (r) {
|
|
319
|
+
return this.nk((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
315
320
|
};
|
|
321
|
+
function RaiseCancellationException(raised, raise) {
|
|
322
|
+
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. 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.", this);
|
|
323
|
+
captureStack(this, RaiseCancellationException);
|
|
324
|
+
this.qk_1 = raised;
|
|
325
|
+
this.rk_1 = raise;
|
|
326
|
+
}
|
|
316
327
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
317
328
|
var tmp;
|
|
318
329
|
var tmp_0;
|
|
319
|
-
if (_this__u8e3s4 instanceof
|
|
320
|
-
tmp_0 = _this__u8e3s4.
|
|
330
|
+
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
331
|
+
tmp_0 = _this__u8e3s4.rk_1 === raise;
|
|
321
332
|
} else {
|
|
322
333
|
tmp_0 = false;
|
|
323
334
|
}
|
|
324
335
|
if (tmp_0) {
|
|
325
|
-
var tmp_1 = _this__u8e3s4.
|
|
336
|
+
var tmp_1 = _this__u8e3s4.qk_1;
|
|
326
337
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
327
338
|
} else {
|
|
328
|
-
|
|
329
|
-
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
330
|
-
tmp_2 = _this__u8e3s4.kk_1 === raise;
|
|
331
|
-
} else {
|
|
332
|
-
tmp_2 = false;
|
|
333
|
-
}
|
|
334
|
-
if (tmp_2) {
|
|
335
|
-
var tmp_3 = _this__u8e3s4.jk_1;
|
|
336
|
-
tmp = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
337
|
-
} else {
|
|
338
|
-
throw _this__u8e3s4;
|
|
339
|
-
}
|
|
339
|
+
throw _this__u8e3s4;
|
|
340
340
|
}
|
|
341
341
|
return tmp;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
this
|
|
347
|
-
this.
|
|
348
|
-
}
|
|
349
|
-
function RaiseCancellationExceptionNoTrace(raised, raise) {
|
|
350
|
-
CancellationExceptionNoTrace.call(this);
|
|
351
|
-
captureStack(this, RaiseCancellationExceptionNoTrace);
|
|
352
|
-
this.hk_1 = raised;
|
|
353
|
-
this.ik_1 = raise;
|
|
343
|
+
function Traced(raised, raise, cause) {
|
|
344
|
+
cause = cause === VOID ? null : cause;
|
|
345
|
+
RaiseCancellationException.call(this, raised, raise);
|
|
346
|
+
captureStack(this, Traced);
|
|
347
|
+
this.uk_1 = cause;
|
|
354
348
|
}
|
|
349
|
+
protoOf(Traced).f9 = function () {
|
|
350
|
+
return this.uk_1;
|
|
351
|
+
};
|
|
355
352
|
function RaiseLeakedException() {
|
|
356
|
-
IllegalStateException_init_$Init$('raise or bind was
|
|
353
|
+
IllegalStateException_init_$Init$("'raise' or 'bind' was leaked outside of its context scope.\nMake sure all calls to 'raise' and 'bind' occur within the lifecycle of nullable { }, either { } or similar builders.\n\nSee Arrow documentation on 'Typed errors' for further information.", this);
|
|
357
354
|
captureStack(this, RaiseLeakedException);
|
|
358
355
|
}
|
|
359
356
|
function Raise() {
|
|
@@ -373,12 +370,15 @@
|
|
|
373
370
|
}
|
|
374
371
|
return tmp;
|
|
375
372
|
}
|
|
376
|
-
function
|
|
377
|
-
|
|
378
|
-
captureStack(this,
|
|
373
|
+
function NoTrace(raised, raise) {
|
|
374
|
+
RaiseCancellationException.call(this, raised, raise);
|
|
375
|
+
captureStack(this, NoTrace);
|
|
379
376
|
}
|
|
380
377
|
//region block: post-declaration
|
|
381
|
-
protoOf(DefaultRaise).
|
|
378
|
+
protoOf(DefaultRaise).pk = bind;
|
|
379
|
+
defineProp(protoOf(Traced), 'cause', function () {
|
|
380
|
+
return this.f9();
|
|
381
|
+
});
|
|
382
382
|
//endregion
|
|
383
383
|
//region block: init
|
|
384
384
|
Companion_instance_1 = new Companion_1();
|
|
@@ -386,14 +386,15 @@
|
|
|
386
386
|
//region block: exports
|
|
387
387
|
_.$_$ = _.$_$ || {};
|
|
388
388
|
_.$_$.a = DefaultRaise;
|
|
389
|
-
_.$_$.b =
|
|
390
|
-
_.$_$.c =
|
|
391
|
-
_.$_$.d =
|
|
392
|
-
_.$_$.e =
|
|
393
|
-
_.$_$.f =
|
|
394
|
-
_.$_$.g =
|
|
395
|
-
_.$_$.h =
|
|
396
|
-
_.$_$.i =
|
|
389
|
+
_.$_$.b = RaiseCancellationException;
|
|
390
|
+
_.$_$.c = raisedOrRethrow;
|
|
391
|
+
_.$_$.d = Left;
|
|
392
|
+
_.$_$.e = Right;
|
|
393
|
+
_.$_$.f = NonEmptyList;
|
|
394
|
+
_.$_$.g = curried;
|
|
395
|
+
_.$_$.h = nonEmptyListOf;
|
|
396
|
+
_.$_$.i = nonFatalOrThrow;
|
|
397
|
+
_.$_$.j = toNonEmptyListOrNull;
|
|
397
398
|
//endregion
|
|
398
399
|
return _;
|
|
399
400
|
}));
|
package/arrow-arrow-core.js.map
CHANGED
|
@@ -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/predef.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/
|
|
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/predef.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt","../../../../../src/plugin/npm/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/collections/Iterables.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/currying.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/nonJvmMain/kotlin/arrow/core/NonFatal.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/nonJvmMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["bind","<this>","<init>","value","<get-isLeft>","<get-isRight>","toString","hashCode","equals","other","getOrNull","NonEmptyList_init_$Init$","list","NonEmptyList_init_$Create$","head","tail","<get-size>","<get-all>","get","index","isEmpty","toList","plus","element","toNonEmptyListOrNull","iter","nonEmptyListOf","t","$iter","iterator","curried","curried$lambda$lambda","$p1","curried$lambda$lambda$lambda","p2","curried$lambda","p1","nonFatalOrThrow","isTraced","complete","raise","r","raised","raisedOrRethrow","cause","<get-cause>","NonFatal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAqTSA,CAAQC,aAARD,EAAqC;A;IAC1C,IADgD,aAChD,iB;MAAkB,QAAM,aAAN,CAAM,IAAN,C;;MAClB,IAFgD,aAEhD,kB;cAAmB,a,CAAA,I;;;;;IACpB,U;EAAD,C;;;;;;;;oBCyuBEE,CAAAA,EAAA;A;IAGiD,mC;EAHjD,C;;;;;;;sBAgBAA,CAAAA,EAAA;A;IAE6C,oC;EAF7C,C;;;;;;;eAtB4BA,CAAYC,KAAZD,EAA9B;A,IAAA,uB;IAA0D,iB;IAAhB,iB;IAClB,gB;IACC,iB;EAFzB,C;8BACWE,CAAAA,EAAA;A,IAAA,gB;EAAgB,C;8BAChBC,CAAAA,EAAA;A,IAAA,gB;EAAkB,C;oCAElBC,CAAAA,EAAyB;A,IAAqB,OAApB,cAAoB,YAAP,IAAO,CAAP,IAAO,IAAF,G;EAAC,C;oCA/hC1DC,CAAAA,EAAA;A,IAAA,kD;EAAA,C;kCAAAC,CAAAC,KAAAD,EAAA;A,IAAA,mB;MAAA,W;IAAA,6B;MAAA,Y;QAAA,kE;IAAA,kD;MAAA,Y;IAAA,W;EAAA,C;gBA2iCiCN,CAAYC,KAAZD,EAA/B;A,IAAA,yB;IAA2D,iB;IAAhB,iB;IACnB,iB;IACC,gB;EAFzB,C;+BACWE,CAAAA,EAAA;A,IAAA,gB;EAAiB,C;+BACjBC,CAAAA,EAAA;A,IAAA,gB;EAAiB,C;qCAEjBC,CAAAA,EAAyB;A,IAAsB,OAArB,eAAqB,YAAP,IAAO,CAAP,IAAO,IAAF,G;EAAC,C;qCA/iC3D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