@flock/wirespec 0.11.9 → 0.12.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.
- package/arrow-arrow-annotations.mjs +4 -0
- package/{kotlinx-io-kotlinx-io-bytestring.js.map → arrow-arrow-annotations.mjs.map} +1 -1
- package/arrow-arrow-atomic.mjs +43 -0
- package/arrow-arrow-atomic.mjs.map +1 -0
- package/arrow-arrow-continuations.mjs +18 -0
- package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → arrow-arrow-continuations.mjs.map} +1 -1
- package/arrow-arrow-core.mjs +532 -0
- package/arrow-arrow-core.mjs.map +1 -0
- package/clikt-clikt.mjs +6648 -0
- package/clikt-clikt.mjs.map +1 -0
- package/colormath-root-colormath.mjs +1696 -0
- package/colormath-root-colormath.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +13106 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin-openapi-bindings.mjs +13769 -0
- package/kotlin-openapi-bindings.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +4298 -0
- package/kotlin-rgxgen.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/{arrow-arrow-annotations.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +4 -0
- package/{kotlin-kotlin-test.js.map → kotlinx-io-kotlinx-io-bytestring.mjs.map} +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +2201 -0
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +5880 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +5109 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/markdown.mjs +6753 -0
- package/markdown.mjs.map +1 -0
- package/mordant-mordant.mjs +11839 -0
- package/mordant-mordant.mjs.map +1 -0
- package/package.json +4 -6
- package/wirespec-bin.mjs +18 -0
- package/wirespec-src-compiler-core.mjs +8313 -0
- package/wirespec-src-compiler-core.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +2565 -0
- package/wirespec-src-compiler-lib.mjs.map +1 -0
- package/wirespec-src-converter-avro.mjs +1933 -0
- package/wirespec-src-converter-avro.mjs.map +1 -0
- package/wirespec-src-converter-openapi.mjs +5301 -0
- package/wirespec-src-converter-openapi.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +587 -0
- package/wirespec-src-plugin-arguments.mjs.map +1 -0
- package/wirespec-src-plugin-cli.mjs +1487 -0
- package/wirespec-src-plugin-cli.mjs.map +1 -0
- package/wirespec-src-plugin-npm.d.ts +485 -466
- package/wirespec-src-plugin-npm.mjs +622 -0
- package/wirespec-src-plugin-npm.mjs.map +1 -0
- package/wirespec-src-tools-generator.mjs +284 -0
- package/wirespec-src-tools-generator.mjs.map +1 -0
- package/arrow-arrow-annotations.js +0 -15
- package/arrow-arrow-atomic.js +0 -55
- package/arrow-arrow-atomic.js.map +0 -1
- package/arrow-arrow-continuations.js +0 -30
- package/arrow-arrow-continuations.js.map +0 -1
- package/arrow-arrow-core.js +0 -410
- package/arrow-arrow-core.js.map +0 -1
- package/clikt-clikt.js +0 -6713
- package/clikt-clikt.js.map +0 -1
- package/colormath-root-colormath.js +0 -1727
- package/colormath-root-colormath.js.map +0 -1
- package/kotlin-kotlin-stdlib.js +0 -13263
- package/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin-kotlin-test.js +0 -15
- package/kotlin-openapi-bindings.js +0 -13787
- package/kotlin-openapi-bindings.js.map +0 -1
- package/kotlin-rgxgen.js +0 -4315
- package/kotlin-rgxgen.js.map +0 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
- package/kotlinx-io-kotlinx-io-bytestring.js +0 -15
- package/kotlinx-io-kotlinx-io-core.js +0 -2219
- package/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +0 -5914
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5126
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/markdown.js +0 -6768
- package/markdown.js.map +0 -1
- package/mordant-mordant.js +0 -11981
- package/mordant-mordant.js.map +0 -1
- package/resources-library.js +0 -15
- package/resources-library.js.map +0 -1
- package/wirespec-bin.js +0 -3
- package/wirespec-src-compiler-core.js +0 -7894
- package/wirespec-src-compiler-core.js.map +0 -1
- package/wirespec-src-compiler-lib.js +0 -2603
- package/wirespec-src-compiler-lib.js.map +0 -1
- package/wirespec-src-converter-avro.js +0 -1650
- package/wirespec-src-converter-avro.js.map +0 -1
- package/wirespec-src-converter-openapi.js +0 -5366
- package/wirespec-src-converter-openapi.js.map +0 -1
- package/wirespec-src-plugin-arguments.js +0 -640
- package/wirespec-src-plugin-arguments.js.map +0 -1
- package/wirespec-src-plugin-cli.js +0 -1222
- package/wirespec-src-plugin-cli.js.map +0 -1
- package/wirespec-src-plugin-npm.js +0 -480
- package/wirespec-src-plugin-npm.js.map +0 -1
- package/wirespec-src-tools-generator.js +0 -306
- package/wirespec-src-tools-generator.js.map +0 -1
package/arrow-arrow-core.js
DELETED
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './arrow-arrow-atomic.js', './arrow-arrow-continuations.js'], factory);
|
|
4
|
-
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./arrow-arrow-atomic.js'), require('./arrow-arrow-continuations.js'));
|
|
6
|
-
else {
|
|
7
|
-
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
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
|
-
}
|
|
10
|
-
if (typeof globalThis['arrow-arrow-atomic'] === 'undefined') {
|
|
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
|
-
}
|
|
13
|
-
if (typeof globalThis['arrow-arrow-continuations'] === 'undefined') {
|
|
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
|
-
}
|
|
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
|
-
}
|
|
18
|
-
}(function (_, kotlin_kotlin, kotlin_io_arrow_kt_arrow_atomic, kotlin_io_arrow_kt_arrow_continuations) {
|
|
19
|
-
'use strict';
|
|
20
|
-
//region block: imports
|
|
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
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
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;
|
|
42
|
-
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
43
|
-
var CancellationException = kotlin_kotlin.$_$.d9;
|
|
44
|
-
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
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;
|
|
50
|
-
var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
|
|
51
|
-
//endregion
|
|
52
|
-
//region block: pre-declaration
|
|
53
|
-
initMetadataForCompanion(Companion);
|
|
54
|
-
initMetadataForCompanion(Companion_0);
|
|
55
|
-
initMetadataForClass(Either, 'Either');
|
|
56
|
-
initMetadataForClass(Left, 'Left', VOID, Either);
|
|
57
|
-
initMetadataForClass(Right, 'Right', VOID, Either);
|
|
58
|
-
initMetadataForCompanion(Companion_1);
|
|
59
|
-
initMetadataForCompanion(Companion_2);
|
|
60
|
-
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID, AbstractList, [AbstractList, Collection]);
|
|
61
|
-
initMetadataForClass(_no_name_provided__qut3iv);
|
|
62
|
-
function bind(_this__u8e3s4) {
|
|
63
|
-
var tmp;
|
|
64
|
-
if (_this__u8e3s4 instanceof Left) {
|
|
65
|
-
this.ok(_this__u8e3s4.tj_1);
|
|
66
|
-
} else {
|
|
67
|
-
if (_this__u8e3s4 instanceof Right) {
|
|
68
|
-
tmp = _this__u8e3s4.zj_1;
|
|
69
|
-
} else {
|
|
70
|
-
noWhenBranchMatchedException();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return tmp;
|
|
74
|
-
}
|
|
75
|
-
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [0, 1]);
|
|
76
|
-
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [0, 1]);
|
|
77
|
-
initMetadataForClass(RaiseCancellationException, 'RaiseCancellationException', VOID, CancellationException);
|
|
78
|
-
initMetadataForClass(Traced, 'Traced', VOID, RaiseCancellationException);
|
|
79
|
-
initMetadataForClass(RaiseLeakedException, 'RaiseLeakedException', RaiseLeakedException, IllegalStateException);
|
|
80
|
-
initMetadataForClass(NoTrace, 'NoTrace', VOID, RaiseCancellationException);
|
|
81
|
-
//endregion
|
|
82
|
-
function Companion() {
|
|
83
|
-
Companion_instance = this;
|
|
84
|
-
this.rj_1 = new Left(Unit_instance);
|
|
85
|
-
}
|
|
86
|
-
var Companion_instance;
|
|
87
|
-
function Companion_getInstance() {
|
|
88
|
-
if (Companion_instance == null)
|
|
89
|
-
new Companion();
|
|
90
|
-
return Companion_instance;
|
|
91
|
-
}
|
|
92
|
-
function Companion_0() {
|
|
93
|
-
Companion_instance_0 = this;
|
|
94
|
-
this.sj_1 = new Right(Unit_instance);
|
|
95
|
-
}
|
|
96
|
-
var Companion_instance_0;
|
|
97
|
-
function Companion_getInstance_0() {
|
|
98
|
-
if (Companion_instance_0 == null)
|
|
99
|
-
new Companion_0();
|
|
100
|
-
return Companion_instance_0;
|
|
101
|
-
}
|
|
102
|
-
function Left(value) {
|
|
103
|
-
Companion_getInstance();
|
|
104
|
-
Either.call(this);
|
|
105
|
-
this.tj_1 = value;
|
|
106
|
-
this.uj_1 = true;
|
|
107
|
-
this.vj_1 = false;
|
|
108
|
-
}
|
|
109
|
-
protoOf(Left).wj = function () {
|
|
110
|
-
return this.uj_1;
|
|
111
|
-
};
|
|
112
|
-
protoOf(Left).xj = function () {
|
|
113
|
-
return this.vj_1;
|
|
114
|
-
};
|
|
115
|
-
protoOf(Left).toString = function () {
|
|
116
|
-
return 'Either.Left(' + toString(this.tj_1) + ')';
|
|
117
|
-
};
|
|
118
|
-
protoOf(Left).hashCode = function () {
|
|
119
|
-
return this.tj_1 == null ? 0 : hashCode(this.tj_1);
|
|
120
|
-
};
|
|
121
|
-
protoOf(Left).equals = function (other) {
|
|
122
|
-
if (this === other)
|
|
123
|
-
return true;
|
|
124
|
-
if (!(other instanceof Left))
|
|
125
|
-
return false;
|
|
126
|
-
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
127
|
-
if (!equals(this.tj_1, tmp0_other_with_cast.tj_1))
|
|
128
|
-
return false;
|
|
129
|
-
return true;
|
|
130
|
-
};
|
|
131
|
-
function Right(value) {
|
|
132
|
-
Companion_getInstance_0();
|
|
133
|
-
Either.call(this);
|
|
134
|
-
this.zj_1 = value;
|
|
135
|
-
this.ak_1 = false;
|
|
136
|
-
this.bk_1 = true;
|
|
137
|
-
}
|
|
138
|
-
protoOf(Right).wj = function () {
|
|
139
|
-
return this.ak_1;
|
|
140
|
-
};
|
|
141
|
-
protoOf(Right).xj = function () {
|
|
142
|
-
return this.bk_1;
|
|
143
|
-
};
|
|
144
|
-
protoOf(Right).toString = function () {
|
|
145
|
-
return 'Either.Right(' + toString(this.zj_1) + ')';
|
|
146
|
-
};
|
|
147
|
-
protoOf(Right).hashCode = function () {
|
|
148
|
-
return this.zj_1 == null ? 0 : hashCode(this.zj_1);
|
|
149
|
-
};
|
|
150
|
-
protoOf(Right).equals = function (other) {
|
|
151
|
-
if (this === other)
|
|
152
|
-
return true;
|
|
153
|
-
if (!(other instanceof Right))
|
|
154
|
-
return false;
|
|
155
|
-
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
156
|
-
if (!equals(this.zj_1, tmp0_other_with_cast.zj_1))
|
|
157
|
-
return false;
|
|
158
|
-
return true;
|
|
159
|
-
};
|
|
160
|
-
function Companion_1() {
|
|
161
|
-
}
|
|
162
|
-
var Companion_instance_1;
|
|
163
|
-
function Companion_getInstance_1() {
|
|
164
|
-
return Companion_instance_1;
|
|
165
|
-
}
|
|
166
|
-
function Either() {
|
|
167
|
-
}
|
|
168
|
-
protoOf(Either).yj = function () {
|
|
169
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
170
|
-
// Inline function 'arrow.core.getOrElse' call
|
|
171
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
172
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
173
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
174
|
-
var tmp;
|
|
175
|
-
if (this instanceof Right) {
|
|
176
|
-
// Inline function 'arrow.core.identity' call
|
|
177
|
-
// Inline function 'arrow.core.identity' call
|
|
178
|
-
tmp = this.zj_1;
|
|
179
|
-
} else {
|
|
180
|
-
if (this instanceof Left) {
|
|
181
|
-
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
182
|
-
this.tj_1;
|
|
183
|
-
tmp = null;
|
|
184
|
-
} else {
|
|
185
|
-
noWhenBranchMatchedException();
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return tmp;
|
|
189
|
-
};
|
|
190
|
-
protoOf(Either).toString = function () {
|
|
191
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
192
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
193
|
-
var tmp;
|
|
194
|
-
if (this instanceof Right) {
|
|
195
|
-
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
196
|
-
var it = this.zj_1;
|
|
197
|
-
tmp = 'Either.Right(' + toString(it) + ')';
|
|
198
|
-
} else {
|
|
199
|
-
if (this instanceof Left) {
|
|
200
|
-
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
201
|
-
var it_0 = this.tj_1;
|
|
202
|
-
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
203
|
-
} else {
|
|
204
|
-
noWhenBranchMatchedException();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
return tmp;
|
|
208
|
-
};
|
|
209
|
-
function right(_this__u8e3s4) {
|
|
210
|
-
return new Right(_this__u8e3s4);
|
|
211
|
-
}
|
|
212
|
-
function left(_this__u8e3s4) {
|
|
213
|
-
return new Left(_this__u8e3s4);
|
|
214
|
-
}
|
|
215
|
-
function NonEmptyList_init_$Init$(list, $this) {
|
|
216
|
-
NonEmptyList.call($this, list.k(0), drop(list, 1));
|
|
217
|
-
return $this;
|
|
218
|
-
}
|
|
219
|
-
function NonEmptyList_init_$Create$(list) {
|
|
220
|
-
return NonEmptyList_init_$Init$(list, objectCreate(protoOf(NonEmptyList)));
|
|
221
|
-
}
|
|
222
|
-
function Companion_2() {
|
|
223
|
-
Companion_instance_2 = this;
|
|
224
|
-
this.ck_1 = nonEmptyListOf(Unit_instance, []);
|
|
225
|
-
}
|
|
226
|
-
var Companion_instance_2;
|
|
227
|
-
function Companion_getInstance_2() {
|
|
228
|
-
if (Companion_instance_2 == null)
|
|
229
|
-
new Companion_2();
|
|
230
|
-
return Companion_instance_2;
|
|
231
|
-
}
|
|
232
|
-
function NonEmptyList(head, tail) {
|
|
233
|
-
Companion_getInstance_2();
|
|
234
|
-
AbstractList.call(this);
|
|
235
|
-
this.dk_1 = head;
|
|
236
|
-
this.ek_1 = tail;
|
|
237
|
-
this.fk_1 = 1 + this.ek_1.j() | 0;
|
|
238
|
-
}
|
|
239
|
-
protoOf(NonEmptyList).j = function () {
|
|
240
|
-
return this.fk_1;
|
|
241
|
-
};
|
|
242
|
-
protoOf(NonEmptyList).gk = function () {
|
|
243
|
-
return this.hk();
|
|
244
|
-
};
|
|
245
|
-
protoOf(NonEmptyList).k = function (index) {
|
|
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);
|
|
249
|
-
};
|
|
250
|
-
protoOf(NonEmptyList).l = function () {
|
|
251
|
-
return false;
|
|
252
|
-
};
|
|
253
|
-
protoOf(NonEmptyList).hk = function () {
|
|
254
|
-
return plus(listOf(this.dk_1), this.ek_1);
|
|
255
|
-
};
|
|
256
|
-
protoOf(NonEmptyList).ik = function (element) {
|
|
257
|
-
return NonEmptyList_init_$Create$(plus_0(this.gk(), element));
|
|
258
|
-
};
|
|
259
|
-
protoOf(NonEmptyList).equals = function (other) {
|
|
260
|
-
return protoOf(AbstractList).equals.call(this, other);
|
|
261
|
-
};
|
|
262
|
-
protoOf(NonEmptyList).hashCode = function () {
|
|
263
|
-
return protoOf(AbstractList).hashCode.call(this);
|
|
264
|
-
};
|
|
265
|
-
protoOf(NonEmptyList).toString = function () {
|
|
266
|
-
return 'NonEmptyList(' + joinToString(this.gk()) + ')';
|
|
267
|
-
};
|
|
268
|
-
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
269
|
-
var iter = _this__u8e3s4.g();
|
|
270
|
-
if (!iter.h())
|
|
271
|
-
return null;
|
|
272
|
-
var tmp = iter.i();
|
|
273
|
-
// Inline function 'kotlin.collections.Iterable' call
|
|
274
|
-
var tmp$ret$0 = new _no_name_provided__qut3iv(iter);
|
|
275
|
-
return new NonEmptyList(tmp, toList(tmp$ret$0));
|
|
276
|
-
}
|
|
277
|
-
function nonEmptyListOf(head, t) {
|
|
278
|
-
return new NonEmptyList(head, asList(t));
|
|
279
|
-
}
|
|
280
|
-
function _no_name_provided__qut3iv($iter) {
|
|
281
|
-
this.jk_1 = $iter;
|
|
282
|
-
}
|
|
283
|
-
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
284
|
-
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
285
|
-
return this.jk_1;
|
|
286
|
-
};
|
|
287
|
-
function curried(_this__u8e3s4) {
|
|
288
|
-
return curried$lambda(_this__u8e3s4);
|
|
289
|
-
}
|
|
290
|
-
function curried$lambda$lambda($this_curried, $p1) {
|
|
291
|
-
return function (p2) {
|
|
292
|
-
return $this_curried($p1, p2);
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
function curried$lambda($this_curried) {
|
|
296
|
-
return function (p1) {
|
|
297
|
-
return curried$lambda$lambda($this_curried, p1);
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
function nonFatalOrThrow(_this__u8e3s4) {
|
|
301
|
-
var tmp;
|
|
302
|
-
if (NonFatal(_this__u8e3s4)) {
|
|
303
|
-
tmp = _this__u8e3s4;
|
|
304
|
-
} else {
|
|
305
|
-
throw _this__u8e3s4;
|
|
306
|
-
}
|
|
307
|
-
return tmp;
|
|
308
|
-
}
|
|
309
|
-
function DefaultRaise(isTraced) {
|
|
310
|
-
this.kk_1 = isTraced;
|
|
311
|
-
this.lk_1 = new AtomicBoolean(true);
|
|
312
|
-
}
|
|
313
|
-
protoOf(DefaultRaise).mk = function () {
|
|
314
|
-
return this.lk_1.nj(false);
|
|
315
|
-
};
|
|
316
|
-
protoOf(DefaultRaise).nk = function (r) {
|
|
317
|
-
var tmp;
|
|
318
|
-
if (this.lk_1.b1()) {
|
|
319
|
-
throw this.kk_1 ? new Traced(r, this) : new NoTrace(r, this);
|
|
320
|
-
} else {
|
|
321
|
-
throw new RaiseLeakedException();
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
protoOf(DefaultRaise).ok = function (r) {
|
|
325
|
-
return this.nk((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
326
|
-
};
|
|
327
|
-
function RaiseCancellationException(raised, raise) {
|
|
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);
|
|
329
|
-
captureStack(this, RaiseCancellationException);
|
|
330
|
-
this.qk_1 = raised;
|
|
331
|
-
this.rk_1 = raise;
|
|
332
|
-
}
|
|
333
|
-
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
334
|
-
var tmp;
|
|
335
|
-
var tmp_0;
|
|
336
|
-
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
337
|
-
tmp_0 = _this__u8e3s4.rk_1 === raise;
|
|
338
|
-
} else {
|
|
339
|
-
tmp_0 = false;
|
|
340
|
-
}
|
|
341
|
-
if (tmp_0) {
|
|
342
|
-
var tmp_1 = _this__u8e3s4.qk_1;
|
|
343
|
-
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
344
|
-
} else {
|
|
345
|
-
throw _this__u8e3s4;
|
|
346
|
-
}
|
|
347
|
-
return tmp;
|
|
348
|
-
}
|
|
349
|
-
function Traced(raised, raise, cause) {
|
|
350
|
-
cause = cause === VOID ? null : cause;
|
|
351
|
-
RaiseCancellationException.call(this, raised, raise);
|
|
352
|
-
captureStack(this, Traced);
|
|
353
|
-
this.uk_1 = cause;
|
|
354
|
-
}
|
|
355
|
-
protoOf(Traced).g9 = function () {
|
|
356
|
-
return this.uk_1;
|
|
357
|
-
};
|
|
358
|
-
function RaiseLeakedException() {
|
|
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);
|
|
360
|
-
captureStack(this, RaiseLeakedException);
|
|
361
|
-
}
|
|
362
|
-
function Raise() {
|
|
363
|
-
}
|
|
364
|
-
function NonFatal(t) {
|
|
365
|
-
var tmp;
|
|
366
|
-
var tmp_0;
|
|
367
|
-
if (t instanceof ControlThrowable) {
|
|
368
|
-
tmp_0 = true;
|
|
369
|
-
} else {
|
|
370
|
-
tmp_0 = t instanceof CancellationException;
|
|
371
|
-
}
|
|
372
|
-
if (tmp_0) {
|
|
373
|
-
tmp = false;
|
|
374
|
-
} else {
|
|
375
|
-
tmp = true;
|
|
376
|
-
}
|
|
377
|
-
return tmp;
|
|
378
|
-
}
|
|
379
|
-
function NoTrace(raised, raise) {
|
|
380
|
-
RaiseCancellationException.call(this, raised, raise);
|
|
381
|
-
captureStack(this, NoTrace);
|
|
382
|
-
}
|
|
383
|
-
//region block: post-declaration
|
|
384
|
-
protoOf(DefaultRaise).pk = bind;
|
|
385
|
-
defineProp(protoOf(Traced), 'cause', function () {
|
|
386
|
-
return this.g9();
|
|
387
|
-
});
|
|
388
|
-
//endregion
|
|
389
|
-
//region block: init
|
|
390
|
-
Companion_instance_1 = new Companion_1();
|
|
391
|
-
//endregion
|
|
392
|
-
//region block: exports
|
|
393
|
-
_.$_$ = _.$_$ || {};
|
|
394
|
-
_.$_$.a = DefaultRaise;
|
|
395
|
-
_.$_$.b = RaiseCancellationException;
|
|
396
|
-
_.$_$.c = raisedOrRethrow;
|
|
397
|
-
_.$_$.d = Left;
|
|
398
|
-
_.$_$.e = Right;
|
|
399
|
-
_.$_$.f = NonEmptyList;
|
|
400
|
-
_.$_$.g = curried;
|
|
401
|
-
_.$_$.h = left;
|
|
402
|
-
_.$_$.i = nonEmptyListOf;
|
|
403
|
-
_.$_$.j = nonFatalOrThrow;
|
|
404
|
-
_.$_$.k = right;
|
|
405
|
-
_.$_$.l = toNonEmptyListOrNull;
|
|
406
|
-
//endregion
|
|
407
|
-
return _;
|
|
408
|
-
}));
|
|
409
|
-
|
|
410
|
-
//# sourceMappingURL=arrow-arrow-core.js.map
|
package/arrow-arrow-core.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":";;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