@flock/wirespec 0.11.6 → 0.11.8
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 +13 -13
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +87 -88
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1258 -1258
- package/colormath-root-colormath.js +436 -436
- package/kotlin-kotlin-stdlib.js +826 -755
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +4694 -4694
- package/kotlin-rgxgen.js +1853 -1853
- package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2219 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +1799 -1800
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1407 -1407
- package/markdown.js +1904 -1904
- package/mordant-mordant.js +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1515 -1515
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +319 -319
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-avro.js +382 -382
- package/wirespec-src-converter-avro.js.map +1 -1
- package/wirespec-src-converter-openapi.js +607 -588
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +104 -104
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +313 -317
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +34 -34
- package/wirespec-src-tools-generator.js +35 -35
- package/wirespec-src-tools-generator.js.map +1 -1
package/arrow-arrow-atomic.js
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.cb;
|
|
16
|
+
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
17
17
|
//endregion
|
|
18
18
|
//region block: pre-declaration
|
|
19
19
|
initMetadataForClass(AtomicBoolean, 'AtomicBoolean');
|
|
@@ -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
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
16
16
|
var VOID = kotlin_kotlin.$_$.g;
|
|
17
17
|
//endregion
|
|
18
18
|
//region block: pre-declaration
|
package/arrow-arrow-core.js
CHANGED
|
@@ -18,36 +18,35 @@
|
|
|
18
18
|
}(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.$_$.
|
|
23
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
24
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var equals = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.l4;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.cb;
|
|
23
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ea;
|
|
24
|
+
var toString = kotlin_kotlin.$_$.mg;
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.ca;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.of;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.w9;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.da;
|
|
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.$_$.
|
|
35
|
-
var listOf = kotlin_kotlin.$_$.
|
|
36
|
-
var plus = kotlin_kotlin.$_$.
|
|
37
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
38
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
39
|
-
var Collection = kotlin_kotlin.$_$.
|
|
40
|
-
var toList = kotlin_kotlin.$_$.
|
|
41
|
-
var asList = kotlin_kotlin.$_$.
|
|
42
|
-
var Iterable = kotlin_kotlin.$_$.o4;
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
|
|
31
|
+
var drop = kotlin_kotlin.$_$.f6;
|
|
32
|
+
var objectCreate = kotlin_kotlin.$_$.bb;
|
|
33
|
+
var AbstractList = kotlin_kotlin.$_$.m4;
|
|
34
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
35
|
+
var listOf = kotlin_kotlin.$_$.l7;
|
|
36
|
+
var plus = kotlin_kotlin.$_$.x7;
|
|
37
|
+
var plus_0 = kotlin_kotlin.$_$.y7;
|
|
38
|
+
var joinToString = kotlin_kotlin.$_$.x6;
|
|
39
|
+
var Collection = kotlin_kotlin.$_$.p4;
|
|
40
|
+
var toList = kotlin_kotlin.$_$.q8;
|
|
41
|
+
var asList = kotlin_kotlin.$_$.e5;
|
|
43
42
|
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
44
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
43
|
+
var CancellationException = kotlin_kotlin.$_$.d9;
|
|
45
44
|
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
46
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
47
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
48
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
49
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
50
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
45
|
+
var captureStack = kotlin_kotlin.$_$.o9;
|
|
46
|
+
var defineProp = kotlin_kotlin.$_$.v9;
|
|
47
|
+
var IllegalStateException = kotlin_kotlin.$_$.hf;
|
|
48
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.o1;
|
|
49
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ga;
|
|
51
50
|
var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
|
|
52
51
|
//endregion
|
|
53
52
|
//region block: pre-declaration
|
|
@@ -59,14 +58,14 @@
|
|
|
59
58
|
initMetadataForCompanion(Companion_1);
|
|
60
59
|
initMetadataForCompanion(Companion_2);
|
|
61
60
|
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID, AbstractList, [AbstractList, Collection]);
|
|
62
|
-
initMetadataForClass(_no_name_provided__qut3iv
|
|
61
|
+
initMetadataForClass(_no_name_provided__qut3iv);
|
|
63
62
|
function bind(_this__u8e3s4) {
|
|
64
63
|
var tmp;
|
|
65
64
|
if (_this__u8e3s4 instanceof Left) {
|
|
66
|
-
this.
|
|
65
|
+
this.ok(_this__u8e3s4.tj_1);
|
|
67
66
|
} else {
|
|
68
67
|
if (_this__u8e3s4 instanceof Right) {
|
|
69
|
-
tmp = _this__u8e3s4.
|
|
68
|
+
tmp = _this__u8e3s4.zj_1;
|
|
70
69
|
} else {
|
|
71
70
|
noWhenBranchMatchedException();
|
|
72
71
|
}
|
|
@@ -82,7 +81,7 @@
|
|
|
82
81
|
//endregion
|
|
83
82
|
function Companion() {
|
|
84
83
|
Companion_instance = this;
|
|
85
|
-
this.
|
|
84
|
+
this.rj_1 = new Left(Unit_instance);
|
|
86
85
|
}
|
|
87
86
|
var Companion_instance;
|
|
88
87
|
function Companion_getInstance() {
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
}
|
|
93
92
|
function Companion_0() {
|
|
94
93
|
Companion_instance_0 = this;
|
|
95
|
-
this.
|
|
94
|
+
this.sj_1 = new Right(Unit_instance);
|
|
96
95
|
}
|
|
97
96
|
var Companion_instance_0;
|
|
98
97
|
function Companion_getInstance_0() {
|
|
@@ -103,21 +102,21 @@
|
|
|
103
102
|
function Left(value) {
|
|
104
103
|
Companion_getInstance();
|
|
105
104
|
Either.call(this);
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
105
|
+
this.tj_1 = value;
|
|
106
|
+
this.uj_1 = true;
|
|
107
|
+
this.vj_1 = false;
|
|
109
108
|
}
|
|
109
|
+
protoOf(Left).wj = function () {
|
|
110
|
+
return this.uj_1;
|
|
111
|
+
};
|
|
110
112
|
protoOf(Left).xj = function () {
|
|
111
113
|
return this.vj_1;
|
|
112
114
|
};
|
|
113
|
-
protoOf(Left).yj = function () {
|
|
114
|
-
return this.wj_1;
|
|
115
|
-
};
|
|
116
115
|
protoOf(Left).toString = function () {
|
|
117
|
-
return 'Either.Left(' + toString(this.
|
|
116
|
+
return 'Either.Left(' + toString(this.tj_1) + ')';
|
|
118
117
|
};
|
|
119
118
|
protoOf(Left).hashCode = function () {
|
|
120
|
-
return this.
|
|
119
|
+
return this.tj_1 == null ? 0 : hashCode(this.tj_1);
|
|
121
120
|
};
|
|
122
121
|
protoOf(Left).equals = function (other) {
|
|
123
122
|
if (this === other)
|
|
@@ -125,28 +124,28 @@
|
|
|
125
124
|
if (!(other instanceof Left))
|
|
126
125
|
return false;
|
|
127
126
|
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
128
|
-
if (!equals(this.
|
|
127
|
+
if (!equals(this.tj_1, tmp0_other_with_cast.tj_1))
|
|
129
128
|
return false;
|
|
130
129
|
return true;
|
|
131
130
|
};
|
|
132
131
|
function Right(value) {
|
|
133
132
|
Companion_getInstance_0();
|
|
134
133
|
Either.call(this);
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
134
|
+
this.zj_1 = value;
|
|
135
|
+
this.ak_1 = false;
|
|
136
|
+
this.bk_1 = true;
|
|
138
137
|
}
|
|
138
|
+
protoOf(Right).wj = function () {
|
|
139
|
+
return this.ak_1;
|
|
140
|
+
};
|
|
139
141
|
protoOf(Right).xj = function () {
|
|
140
142
|
return this.bk_1;
|
|
141
143
|
};
|
|
142
|
-
protoOf(Right).yj = function () {
|
|
143
|
-
return this.ck_1;
|
|
144
|
-
};
|
|
145
144
|
protoOf(Right).toString = function () {
|
|
146
|
-
return 'Either.Right(' + toString(this.
|
|
145
|
+
return 'Either.Right(' + toString(this.zj_1) + ')';
|
|
147
146
|
};
|
|
148
147
|
protoOf(Right).hashCode = function () {
|
|
149
|
-
return this.
|
|
148
|
+
return this.zj_1 == null ? 0 : hashCode(this.zj_1);
|
|
150
149
|
};
|
|
151
150
|
protoOf(Right).equals = function (other) {
|
|
152
151
|
if (this === other)
|
|
@@ -154,7 +153,7 @@
|
|
|
154
153
|
if (!(other instanceof Right))
|
|
155
154
|
return false;
|
|
156
155
|
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
157
|
-
if (!equals(this.
|
|
156
|
+
if (!equals(this.zj_1, tmp0_other_with_cast.zj_1))
|
|
158
157
|
return false;
|
|
159
158
|
return true;
|
|
160
159
|
};
|
|
@@ -166,7 +165,7 @@
|
|
|
166
165
|
}
|
|
167
166
|
function Either() {
|
|
168
167
|
}
|
|
169
|
-
protoOf(Either).
|
|
168
|
+
protoOf(Either).yj = function () {
|
|
170
169
|
// Inline function 'kotlin.contracts.contract' call
|
|
171
170
|
// Inline function 'arrow.core.getOrElse' call
|
|
172
171
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -176,11 +175,11 @@
|
|
|
176
175
|
if (this instanceof Right) {
|
|
177
176
|
// Inline function 'arrow.core.identity' call
|
|
178
177
|
// Inline function 'arrow.core.identity' call
|
|
179
|
-
tmp = this.
|
|
178
|
+
tmp = this.zj_1;
|
|
180
179
|
} else {
|
|
181
180
|
if (this instanceof Left) {
|
|
182
181
|
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
183
|
-
this.
|
|
182
|
+
this.tj_1;
|
|
184
183
|
tmp = null;
|
|
185
184
|
} else {
|
|
186
185
|
noWhenBranchMatchedException();
|
|
@@ -194,12 +193,12 @@
|
|
|
194
193
|
var tmp;
|
|
195
194
|
if (this instanceof Right) {
|
|
196
195
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
197
|
-
var it = this.
|
|
196
|
+
var it = this.zj_1;
|
|
198
197
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
199
198
|
} else {
|
|
200
199
|
if (this instanceof Left) {
|
|
201
200
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
202
|
-
var it_0 = this.
|
|
201
|
+
var it_0 = this.tj_1;
|
|
203
202
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
204
203
|
} else {
|
|
205
204
|
noWhenBranchMatchedException();
|
|
@@ -222,7 +221,7 @@
|
|
|
222
221
|
}
|
|
223
222
|
function Companion_2() {
|
|
224
223
|
Companion_instance_2 = this;
|
|
225
|
-
this.
|
|
224
|
+
this.ck_1 = nonEmptyListOf(Unit_instance, []);
|
|
226
225
|
}
|
|
227
226
|
var Companion_instance_2;
|
|
228
227
|
function Companion_getInstance_2() {
|
|
@@ -233,29 +232,29 @@
|
|
|
233
232
|
function NonEmptyList(head, tail) {
|
|
234
233
|
Companion_getInstance_2();
|
|
235
234
|
AbstractList.call(this);
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
235
|
+
this.dk_1 = head;
|
|
236
|
+
this.ek_1 = tail;
|
|
237
|
+
this.fk_1 = 1 + this.ek_1.j() | 0;
|
|
239
238
|
}
|
|
240
239
|
protoOf(NonEmptyList).j = function () {
|
|
241
|
-
return this.
|
|
240
|
+
return this.fk_1;
|
|
242
241
|
};
|
|
243
|
-
protoOf(NonEmptyList).
|
|
244
|
-
return this.
|
|
242
|
+
protoOf(NonEmptyList).gk = function () {
|
|
243
|
+
return this.hk();
|
|
245
244
|
};
|
|
246
245
|
protoOf(NonEmptyList).k = function (index) {
|
|
247
|
-
if (index < 0 || index >= this.
|
|
248
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
249
|
-
return index === 0 ? this.
|
|
246
|
+
if (index < 0 || index >= this.fk_1)
|
|
247
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.fk_1 - 1 | 0));
|
|
248
|
+
return index === 0 ? this.dk_1 : this.ek_1.k(index - 1 | 0);
|
|
250
249
|
};
|
|
251
250
|
protoOf(NonEmptyList).l = function () {
|
|
252
251
|
return false;
|
|
253
252
|
};
|
|
254
|
-
protoOf(NonEmptyList).
|
|
255
|
-
return plus(listOf(this.
|
|
253
|
+
protoOf(NonEmptyList).hk = function () {
|
|
254
|
+
return plus(listOf(this.dk_1), this.ek_1);
|
|
256
255
|
};
|
|
257
|
-
protoOf(NonEmptyList).
|
|
258
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
256
|
+
protoOf(NonEmptyList).ik = function (element) {
|
|
257
|
+
return NonEmptyList_init_$Create$(plus_0(this.gk(), element));
|
|
259
258
|
};
|
|
260
259
|
protoOf(NonEmptyList).equals = function (other) {
|
|
261
260
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -264,7 +263,7 @@
|
|
|
264
263
|
return protoOf(AbstractList).hashCode.call(this);
|
|
265
264
|
};
|
|
266
265
|
protoOf(NonEmptyList).toString = function () {
|
|
267
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
266
|
+
return 'NonEmptyList(' + joinToString(this.gk()) + ')';
|
|
268
267
|
};
|
|
269
268
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
270
269
|
var iter = _this__u8e3s4.g();
|
|
@@ -279,11 +278,11 @@
|
|
|
279
278
|
return new NonEmptyList(head, asList(t));
|
|
280
279
|
}
|
|
281
280
|
function _no_name_provided__qut3iv($iter) {
|
|
282
|
-
this.
|
|
281
|
+
this.jk_1 = $iter;
|
|
283
282
|
}
|
|
284
283
|
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
285
284
|
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
286
|
-
return this.
|
|
285
|
+
return this.jk_1;
|
|
287
286
|
};
|
|
288
287
|
function curried(_this__u8e3s4) {
|
|
289
288
|
return curried$lambda(_this__u8e3s4);
|
|
@@ -308,39 +307,39 @@
|
|
|
308
307
|
return tmp;
|
|
309
308
|
}
|
|
310
309
|
function DefaultRaise(isTraced) {
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
310
|
+
this.kk_1 = isTraced;
|
|
311
|
+
this.lk_1 = new AtomicBoolean(true);
|
|
313
312
|
}
|
|
314
|
-
protoOf(DefaultRaise).
|
|
315
|
-
return this.
|
|
313
|
+
protoOf(DefaultRaise).mk = function () {
|
|
314
|
+
return this.lk_1.nj(false);
|
|
316
315
|
};
|
|
317
|
-
protoOf(DefaultRaise).
|
|
316
|
+
protoOf(DefaultRaise).nk = function (r) {
|
|
318
317
|
var tmp;
|
|
319
|
-
if (this.
|
|
320
|
-
throw this.
|
|
318
|
+
if (this.lk_1.b1()) {
|
|
319
|
+
throw this.kk_1 ? new Traced(r, this) : new NoTrace(r, this);
|
|
321
320
|
} else {
|
|
322
321
|
throw new RaiseLeakedException();
|
|
323
322
|
}
|
|
324
323
|
};
|
|
325
|
-
protoOf(DefaultRaise).
|
|
326
|
-
return this.
|
|
324
|
+
protoOf(DefaultRaise).ok = function (r) {
|
|
325
|
+
return this.nk((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
327
326
|
};
|
|
328
327
|
function RaiseCancellationException(raised, raise) {
|
|
329
328
|
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);
|
|
330
329
|
captureStack(this, RaiseCancellationException);
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
330
|
+
this.qk_1 = raised;
|
|
331
|
+
this.rk_1 = raise;
|
|
333
332
|
}
|
|
334
333
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
335
334
|
var tmp;
|
|
336
335
|
var tmp_0;
|
|
337
336
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
338
|
-
tmp_0 = _this__u8e3s4.
|
|
337
|
+
tmp_0 = _this__u8e3s4.rk_1 === raise;
|
|
339
338
|
} else {
|
|
340
339
|
tmp_0 = false;
|
|
341
340
|
}
|
|
342
341
|
if (tmp_0) {
|
|
343
|
-
var tmp_1 = _this__u8e3s4.
|
|
342
|
+
var tmp_1 = _this__u8e3s4.qk_1;
|
|
344
343
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
345
344
|
} else {
|
|
346
345
|
throw _this__u8e3s4;
|
|
@@ -351,10 +350,10 @@
|
|
|
351
350
|
cause = cause === VOID ? null : cause;
|
|
352
351
|
RaiseCancellationException.call(this, raised, raise);
|
|
353
352
|
captureStack(this, Traced);
|
|
354
|
-
this.
|
|
353
|
+
this.uk_1 = cause;
|
|
355
354
|
}
|
|
356
355
|
protoOf(Traced).g9 = function () {
|
|
357
|
-
return this.
|
|
356
|
+
return this.uk_1;
|
|
358
357
|
};
|
|
359
358
|
function RaiseLeakedException() {
|
|
360
359
|
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);
|
|
@@ -382,7 +381,7 @@
|
|
|
382
381
|
captureStack(this, NoTrace);
|
|
383
382
|
}
|
|
384
383
|
//region block: post-declaration
|
|
385
|
-
protoOf(DefaultRaise).
|
|
384
|
+
protoOf(DefaultRaise).pk = bind;
|
|
386
385
|
defineProp(protoOf(Traced), 'cause', function () {
|
|
387
386
|
return this.g9();
|
|
388
387
|
});
|
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/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","right","left","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":"
|
|
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","right","left","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/iC3DC,CAAAA,EAAA;A,IAAA,kD;EAAA,C;mCAAAC,CAAAC,KAAAD,EAAA;A,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