@flock/wirespec 0.10.9 → 0.10.11
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-annotations.js +3 -3
- package/arrow-arrow-atomic.js +15 -15
- package/arrow-arrow-continuations.js +4 -4
- package/arrow-arrow-core.js +74 -73
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1444 -1355
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +442 -466
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +1380 -1352
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js +3 -3
- package/kotlin-openapi-bindings.js +4678 -4678
- package/kotlin-rgxgen.js +1867 -1822
- package/kotlin-rgxgen.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlinx-serialization-kotlinx-serialization-core.js +1670 -1670
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1404 -1400
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/markdown.js +1954 -1944
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +1853 -1793
- package/mordant-mordant.js.map +1 -1
- package/package.json +2 -2
- package/resources-library.js +3 -3
- package/wirespec-src-compiler-core.js +2871 -5219
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +435 -435
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +846 -842
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +93 -105
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +206 -230
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +46 -47
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +57 -53
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports);
|
|
6
6
|
else
|
|
7
|
-
|
|
8
|
-
}(
|
|
7
|
+
globalThis['arrow-arrow-annotations'] = factory(typeof globalThis['arrow-arrow-annotations'] === 'undefined' ? {} : globalThis['arrow-arrow-annotations']);
|
|
8
|
+
}(function (_) {
|
|
9
9
|
'use strict';
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
//endregion
|
package/arrow-arrow-atomic.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'arrow-arrow-atomic'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'arrow-arrow-atomic'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
globalThis['arrow-arrow-atomic'] = factory(typeof globalThis['arrow-arrow-atomic'] === 'undefined' ? {} : globalThis['arrow-arrow-atomic'], globalThis['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var protoOf = kotlin_kotlin.$_$.xa;
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
return _this__u8e3s4 ? 1 : 0;
|
|
24
24
|
}
|
|
25
25
|
function AtomicBoolean(value) {
|
|
26
|
-
this.
|
|
26
|
+
this.nj_1 = new AtomicInt(toInt(value, this));
|
|
27
27
|
}
|
|
28
28
|
protoOf(AtomicBoolean).b1 = function () {
|
|
29
|
-
return !(get_value(this.
|
|
29
|
+
return !(get_value(this.nj_1) === 0);
|
|
30
30
|
};
|
|
31
|
-
protoOf(AtomicBoolean).
|
|
32
|
-
return this.
|
|
31
|
+
protoOf(AtomicBoolean).oj = function (value) {
|
|
32
|
+
return this.nj_1.qj(toInt(value, this)) === 1;
|
|
33
33
|
};
|
|
34
34
|
function get_value(_this__u8e3s4) {
|
|
35
|
-
return _this__u8e3s4.
|
|
35
|
+
return _this__u8e3s4.rj();
|
|
36
36
|
}
|
|
37
37
|
function AtomicInt(initialValue) {
|
|
38
|
-
this.
|
|
38
|
+
this.pj_1 = initialValue;
|
|
39
39
|
}
|
|
40
|
-
protoOf(AtomicInt).
|
|
41
|
-
return this.
|
|
40
|
+
protoOf(AtomicInt).rj = function () {
|
|
41
|
+
return this.pj_1;
|
|
42
42
|
};
|
|
43
|
-
protoOf(AtomicInt).
|
|
44
|
-
var current = this.
|
|
45
|
-
this.
|
|
43
|
+
protoOf(AtomicInt).qj = function (value) {
|
|
44
|
+
var current = this.pj_1;
|
|
45
|
+
this.pj_1 = value;
|
|
46
46
|
return current;
|
|
47
47
|
};
|
|
48
48
|
//region block: exports
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'arrow-arrow-continuations'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'arrow-arrow-continuations'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
globalThis['arrow-arrow-continuations'] = factory(typeof globalThis['arrow-arrow-continuations'] === 'undefined' ? {} : globalThis['arrow-arrow-continuations'], globalThis['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var initMetadataForClass = kotlin_kotlin.$_$.x9;
|
package/arrow-arrow-core.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js', './arrow-arrow-atomic.js', './arrow-arrow-continuations.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./arrow-arrow-atomic.js'), require('./arrow-arrow-continuations.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'arrow-arrow-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'arrow-arrow-core'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof
|
|
10
|
+
if (typeof globalThis['arrow-arrow-atomic'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'arrow-arrow-core'. Its dependency 'arrow-arrow-atomic' was not found. Please, check whether 'arrow-arrow-atomic' is loaded prior to 'arrow-arrow-core'.");
|
|
12
12
|
}
|
|
13
|
-
if (typeof
|
|
13
|
+
if (typeof globalThis['arrow-arrow-continuations'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'arrow-arrow-core'. Its dependency 'arrow-arrow-continuations' was not found. Please, check whether 'arrow-arrow-continuations' is loaded prior to 'arrow-arrow-core'.");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
globalThis['arrow-arrow-core'] = factory(typeof globalThis['arrow-arrow-core'] === 'undefined' ? {} : globalThis['arrow-arrow-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['arrow-arrow-atomic'], globalThis['arrow-arrow-continuations']);
|
|
17
17
|
}
|
|
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
21
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
var objectCreate = kotlin_kotlin.$_$.wa;
|
|
33
33
|
var AbstractList = kotlin_kotlin.$_$.h4;
|
|
34
34
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
35
|
-
var listOf = kotlin_kotlin.$_$.
|
|
36
|
-
var plus = kotlin_kotlin.$_$.
|
|
37
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
35
|
+
var listOf = kotlin_kotlin.$_$.g7;
|
|
36
|
+
var plus = kotlin_kotlin.$_$.r7;
|
|
37
|
+
var plus_0 = kotlin_kotlin.$_$.s7;
|
|
38
38
|
var joinToString = kotlin_kotlin.$_$.s6;
|
|
39
39
|
var Collection = kotlin_kotlin.$_$.k4;
|
|
40
|
-
var toList = kotlin_kotlin.$_$.
|
|
40
|
+
var toList = kotlin_kotlin.$_$.k8;
|
|
41
41
|
var asList = kotlin_kotlin.$_$.a5;
|
|
42
42
|
var Iterable = kotlin_kotlin.$_$.o4;
|
|
43
43
|
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
44
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
44
|
+
var CancellationException = kotlin_kotlin.$_$.x8;
|
|
45
45
|
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
46
46
|
var captureStack = kotlin_kotlin.$_$.i9;
|
|
47
47
|
var defineProp = kotlin_kotlin.$_$.p9;
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
function bind(_this__u8e3s4) {
|
|
64
64
|
var tmp;
|
|
65
65
|
if (_this__u8e3s4 instanceof Left) {
|
|
66
|
-
this.
|
|
66
|
+
this.pk(_this__u8e3s4.uj_1);
|
|
67
67
|
} else {
|
|
68
68
|
if (_this__u8e3s4 instanceof Right) {
|
|
69
|
-
tmp = _this__u8e3s4.
|
|
69
|
+
tmp = _this__u8e3s4.ak_1;
|
|
70
70
|
} else {
|
|
71
71
|
noWhenBranchMatchedException();
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
//endregion
|
|
83
83
|
function Companion() {
|
|
84
84
|
Companion_instance = this;
|
|
85
|
-
this.
|
|
85
|
+
this.sj_1 = new Left(Unit_instance);
|
|
86
86
|
}
|
|
87
87
|
var Companion_instance;
|
|
88
88
|
function Companion_getInstance() {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
function Companion_0() {
|
|
94
94
|
Companion_instance_0 = this;
|
|
95
|
-
this.
|
|
95
|
+
this.tj_1 = new Right(Unit_instance);
|
|
96
96
|
}
|
|
97
97
|
var Companion_instance_0;
|
|
98
98
|
function Companion_getInstance_0() {
|
|
@@ -103,21 +103,21 @@
|
|
|
103
103
|
function Left(value) {
|
|
104
104
|
Companion_getInstance();
|
|
105
105
|
Either.call(this);
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
106
|
+
this.uj_1 = value;
|
|
107
|
+
this.vj_1 = true;
|
|
108
|
+
this.wj_1 = false;
|
|
109
109
|
}
|
|
110
|
-
protoOf(Left).wj = function () {
|
|
111
|
-
return this.uj_1;
|
|
112
|
-
};
|
|
113
110
|
protoOf(Left).xj = function () {
|
|
114
111
|
return this.vj_1;
|
|
115
112
|
};
|
|
113
|
+
protoOf(Left).yj = function () {
|
|
114
|
+
return this.wj_1;
|
|
115
|
+
};
|
|
116
116
|
protoOf(Left).toString = function () {
|
|
117
|
-
return 'Either.Left(' + toString(this.
|
|
117
|
+
return 'Either.Left(' + toString(this.uj_1) + ')';
|
|
118
118
|
};
|
|
119
119
|
protoOf(Left).hashCode = function () {
|
|
120
|
-
return this.
|
|
120
|
+
return this.uj_1 == null ? 0 : hashCode(this.uj_1);
|
|
121
121
|
};
|
|
122
122
|
protoOf(Left).equals = function (other) {
|
|
123
123
|
if (this === other)
|
|
@@ -125,28 +125,28 @@
|
|
|
125
125
|
if (!(other instanceof Left))
|
|
126
126
|
return false;
|
|
127
127
|
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
128
|
-
if (!equals(this.
|
|
128
|
+
if (!equals(this.uj_1, tmp0_other_with_cast.uj_1))
|
|
129
129
|
return false;
|
|
130
130
|
return true;
|
|
131
131
|
};
|
|
132
132
|
function Right(value) {
|
|
133
133
|
Companion_getInstance_0();
|
|
134
134
|
Either.call(this);
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
135
|
+
this.ak_1 = value;
|
|
136
|
+
this.bk_1 = false;
|
|
137
|
+
this.ck_1 = true;
|
|
138
138
|
}
|
|
139
|
-
protoOf(Right).wj = function () {
|
|
140
|
-
return this.ak_1;
|
|
141
|
-
};
|
|
142
139
|
protoOf(Right).xj = function () {
|
|
143
140
|
return this.bk_1;
|
|
144
141
|
};
|
|
142
|
+
protoOf(Right).yj = function () {
|
|
143
|
+
return this.ck_1;
|
|
144
|
+
};
|
|
145
145
|
protoOf(Right).toString = function () {
|
|
146
|
-
return 'Either.Right(' + toString(this.
|
|
146
|
+
return 'Either.Right(' + toString(this.ak_1) + ')';
|
|
147
147
|
};
|
|
148
148
|
protoOf(Right).hashCode = function () {
|
|
149
|
-
return this.
|
|
149
|
+
return this.ak_1 == null ? 0 : hashCode(this.ak_1);
|
|
150
150
|
};
|
|
151
151
|
protoOf(Right).equals = function (other) {
|
|
152
152
|
if (this === other)
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
if (!(other instanceof Right))
|
|
155
155
|
return false;
|
|
156
156
|
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
157
|
-
if (!equals(this.
|
|
157
|
+
if (!equals(this.ak_1, tmp0_other_with_cast.ak_1))
|
|
158
158
|
return false;
|
|
159
159
|
return true;
|
|
160
160
|
};
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
}
|
|
167
167
|
function Either() {
|
|
168
168
|
}
|
|
169
|
-
protoOf(Either).
|
|
169
|
+
protoOf(Either).zj = function () {
|
|
170
170
|
// Inline function 'kotlin.contracts.contract' call
|
|
171
171
|
// Inline function 'arrow.core.getOrElse' call
|
|
172
172
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -175,11 +175,12 @@
|
|
|
175
175
|
var tmp;
|
|
176
176
|
if (this instanceof Right) {
|
|
177
177
|
// Inline function 'arrow.core.identity' call
|
|
178
|
-
|
|
178
|
+
// Inline function 'arrow.core.identity' call
|
|
179
|
+
tmp = this.ak_1;
|
|
179
180
|
} else {
|
|
180
181
|
if (this instanceof Left) {
|
|
181
182
|
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
182
|
-
this.
|
|
183
|
+
this.uj_1;
|
|
183
184
|
tmp = null;
|
|
184
185
|
} else {
|
|
185
186
|
noWhenBranchMatchedException();
|
|
@@ -193,12 +194,12 @@
|
|
|
193
194
|
var tmp;
|
|
194
195
|
if (this instanceof Right) {
|
|
195
196
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
196
|
-
var it = this.
|
|
197
|
+
var it = this.ak_1;
|
|
197
198
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
198
199
|
} else {
|
|
199
200
|
if (this instanceof Left) {
|
|
200
201
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
201
|
-
var it_0 = this.
|
|
202
|
+
var it_0 = this.uj_1;
|
|
202
203
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
203
204
|
} else {
|
|
204
205
|
noWhenBranchMatchedException();
|
|
@@ -215,7 +216,7 @@
|
|
|
215
216
|
}
|
|
216
217
|
function Companion_2() {
|
|
217
218
|
Companion_instance_2 = this;
|
|
218
|
-
this.
|
|
219
|
+
this.dk_1 = nonEmptyListOf(Unit_instance, []);
|
|
219
220
|
}
|
|
220
221
|
var Companion_instance_2;
|
|
221
222
|
function Companion_getInstance_2() {
|
|
@@ -226,29 +227,29 @@
|
|
|
226
227
|
function NonEmptyList(head, tail) {
|
|
227
228
|
Companion_getInstance_2();
|
|
228
229
|
AbstractList.call(this);
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
230
|
+
this.ek_1 = head;
|
|
231
|
+
this.fk_1 = tail;
|
|
232
|
+
this.gk_1 = 1 + this.fk_1.j() | 0;
|
|
232
233
|
}
|
|
233
234
|
protoOf(NonEmptyList).j = function () {
|
|
234
|
-
return this.
|
|
235
|
+
return this.gk_1;
|
|
235
236
|
};
|
|
236
|
-
protoOf(NonEmptyList).
|
|
237
|
-
return this.
|
|
237
|
+
protoOf(NonEmptyList).hk = function () {
|
|
238
|
+
return this.ik();
|
|
238
239
|
};
|
|
239
240
|
protoOf(NonEmptyList).k = function (index) {
|
|
240
|
-
if (index < 0 || index >= this.
|
|
241
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
242
|
-
return index === 0 ? this.
|
|
241
|
+
if (index < 0 || index >= this.gk_1)
|
|
242
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.gk_1 - 1 | 0));
|
|
243
|
+
return index === 0 ? this.ek_1 : this.fk_1.k(index - 1 | 0);
|
|
243
244
|
};
|
|
244
245
|
protoOf(NonEmptyList).l = function () {
|
|
245
246
|
return false;
|
|
246
247
|
};
|
|
247
|
-
protoOf(NonEmptyList).
|
|
248
|
-
return plus(listOf(this.
|
|
248
|
+
protoOf(NonEmptyList).ik = function () {
|
|
249
|
+
return plus(listOf(this.ek_1), this.fk_1);
|
|
249
250
|
};
|
|
250
|
-
protoOf(NonEmptyList).
|
|
251
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
251
|
+
protoOf(NonEmptyList).jk = function (element) {
|
|
252
|
+
return NonEmptyList_init_$Create$(plus_0(this.hk(), element));
|
|
252
253
|
};
|
|
253
254
|
protoOf(NonEmptyList).equals = function (other) {
|
|
254
255
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -257,7 +258,7 @@
|
|
|
257
258
|
return protoOf(AbstractList).hashCode.call(this);
|
|
258
259
|
};
|
|
259
260
|
protoOf(NonEmptyList).toString = function () {
|
|
260
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
261
|
+
return 'NonEmptyList(' + joinToString(this.hk()) + ')';
|
|
261
262
|
};
|
|
262
263
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
263
264
|
var iter = _this__u8e3s4.g();
|
|
@@ -272,11 +273,11 @@
|
|
|
272
273
|
return new NonEmptyList(head, asList(t));
|
|
273
274
|
}
|
|
274
275
|
function _no_name_provided__qut3iv($iter) {
|
|
275
|
-
this.
|
|
276
|
+
this.kk_1 = $iter;
|
|
276
277
|
}
|
|
277
278
|
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
278
279
|
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
279
|
-
return this.
|
|
280
|
+
return this.kk_1;
|
|
280
281
|
};
|
|
281
282
|
function curried(_this__u8e3s4) {
|
|
282
283
|
return curried$lambda(_this__u8e3s4);
|
|
@@ -301,39 +302,39 @@
|
|
|
301
302
|
return tmp;
|
|
302
303
|
}
|
|
303
304
|
function DefaultRaise(isTraced) {
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
305
|
+
this.lk_1 = isTraced;
|
|
306
|
+
this.mk_1 = new AtomicBoolean(true);
|
|
306
307
|
}
|
|
307
|
-
protoOf(DefaultRaise).
|
|
308
|
-
return this.
|
|
308
|
+
protoOf(DefaultRaise).nk = function () {
|
|
309
|
+
return this.mk_1.oj(false);
|
|
309
310
|
};
|
|
310
|
-
protoOf(DefaultRaise).
|
|
311
|
+
protoOf(DefaultRaise).ok = function (r) {
|
|
311
312
|
var tmp;
|
|
312
|
-
if (this.
|
|
313
|
-
throw this.
|
|
313
|
+
if (this.mk_1.b1()) {
|
|
314
|
+
throw this.lk_1 ? new Traced(r, this) : new NoTrace(r, this);
|
|
314
315
|
} else {
|
|
315
316
|
throw new RaiseLeakedException();
|
|
316
317
|
}
|
|
317
318
|
};
|
|
318
|
-
protoOf(DefaultRaise).
|
|
319
|
-
return this.
|
|
319
|
+
protoOf(DefaultRaise).pk = function (r) {
|
|
320
|
+
return this.ok((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
320
321
|
};
|
|
321
322
|
function RaiseCancellationException(raised, raise) {
|
|
322
323
|
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
324
|
captureStack(this, RaiseCancellationException);
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
325
|
+
this.rk_1 = raised;
|
|
326
|
+
this.sk_1 = raise;
|
|
326
327
|
}
|
|
327
328
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
328
329
|
var tmp;
|
|
329
330
|
var tmp_0;
|
|
330
331
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
331
|
-
tmp_0 = _this__u8e3s4.
|
|
332
|
+
tmp_0 = _this__u8e3s4.sk_1 === raise;
|
|
332
333
|
} else {
|
|
333
334
|
tmp_0 = false;
|
|
334
335
|
}
|
|
335
336
|
if (tmp_0) {
|
|
336
|
-
var tmp_1 = _this__u8e3s4.
|
|
337
|
+
var tmp_1 = _this__u8e3s4.rk_1;
|
|
337
338
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
338
339
|
} else {
|
|
339
340
|
throw _this__u8e3s4;
|
|
@@ -344,10 +345,10 @@
|
|
|
344
345
|
cause = cause === VOID ? null : cause;
|
|
345
346
|
RaiseCancellationException.call(this, raised, raise);
|
|
346
347
|
captureStack(this, Traced);
|
|
347
|
-
this.
|
|
348
|
+
this.vk_1 = cause;
|
|
348
349
|
}
|
|
349
|
-
protoOf(Traced).
|
|
350
|
-
return this.
|
|
350
|
+
protoOf(Traced).g9 = function () {
|
|
351
|
+
return this.vk_1;
|
|
351
352
|
};
|
|
352
353
|
function RaiseLeakedException() {
|
|
353
354
|
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);
|
|
@@ -375,9 +376,9 @@
|
|
|
375
376
|
captureStack(this, NoTrace);
|
|
376
377
|
}
|
|
377
378
|
//region block: post-declaration
|
|
378
|
-
protoOf(DefaultRaise).
|
|
379
|
+
protoOf(DefaultRaise).qk = bind;
|
|
379
380
|
defineProp(protoOf(Traced), 'cause', function () {
|
|
380
|
-
return this.
|
|
381
|
+
return this.g9();
|
|
381
382
|
});
|
|
382
383
|
//endregion
|
|
383
384
|
//region block: init
|
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","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,IAAA,mB;MAAA,W;IAAA,8B;MAAA,Y;QAAA,mE;IAAA,kD;MAAA,Y;IAAA,W;EAAA,C;sBAukCEN,CAAAA,EAAA;A,EAAA,C;;;;;iBAlmBYA,CAAAA,EAAd;A,EAAA,C;gCA8WSQ,CAAAA,EAAoB;A;;;;;;IApPvB,IAyPK,IAzPL,kB
|
|
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,I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