@flock/wirespec 0.9.11 → 0.9.12
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 +14 -15
- package/arrow-arrow-atomic.js.map +1 -1
- package/arrow-arrow-continuations.js +2 -3
- package/arrow-arrow-continuations.js.map +1 -1
- package/arrow-arrow-core.js +100 -105
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +1936 -2057
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +479 -504
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2360 -2472
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +5695 -5579
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +2051 -2108
- package/kotlin-rgxgen.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2155 -2140
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1636 -1700
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +2218 -2412
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2322 -2431
- package/mordant-mordant.js.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2348 -2609
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +641 -678
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +1497 -1518
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-generator.js +86 -91
- package/wirespec-src-generator.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +137 -151
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +281 -301
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.js +88 -99
- package/wirespec-src-plugin-npm.js.map +1 -1
package/arrow-arrow-atomic.js
CHANGED
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
}(this, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
17
|
-
var
|
|
18
|
-
var setMetadataFor = kotlin_kotlin.$_$.pa;
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.qa;
|
|
16
|
+
var classMeta = kotlin_kotlin.$_$.l9;
|
|
17
|
+
var setMetadataFor = kotlin_kotlin.$_$.ra;
|
|
19
18
|
//endregion
|
|
20
19
|
//region block: pre-declaration
|
|
21
20
|
setMetadataFor(AtomicBoolean, 'AtomicBoolean', classMeta);
|
|
@@ -25,26 +24,26 @@
|
|
|
25
24
|
return _this__u8e3s4 ? 1 : 0;
|
|
26
25
|
}
|
|
27
26
|
function AtomicBoolean(value) {
|
|
28
|
-
this.
|
|
27
|
+
this.aj_1 = new AtomicInt(toInt(value, this));
|
|
29
28
|
}
|
|
30
29
|
protoOf(AtomicBoolean).p2 = function () {
|
|
31
|
-
return !(get_value(this.
|
|
30
|
+
return !(get_value(this.aj_1) === 0);
|
|
32
31
|
};
|
|
33
|
-
protoOf(AtomicBoolean).
|
|
34
|
-
return this.
|
|
32
|
+
protoOf(AtomicBoolean).bj = function (value) {
|
|
33
|
+
return this.aj_1.dj(toInt(value, this)) === 1;
|
|
35
34
|
};
|
|
36
35
|
function get_value(_this__u8e3s4) {
|
|
37
|
-
return _this__u8e3s4.
|
|
36
|
+
return _this__u8e3s4.ej();
|
|
38
37
|
}
|
|
39
38
|
function AtomicInt(initialValue) {
|
|
40
|
-
this.
|
|
39
|
+
this.cj_1 = initialValue;
|
|
41
40
|
}
|
|
42
|
-
protoOf(AtomicInt).
|
|
43
|
-
return this.
|
|
41
|
+
protoOf(AtomicInt).ej = function () {
|
|
42
|
+
return this.cj_1;
|
|
44
43
|
};
|
|
45
|
-
protoOf(AtomicInt).
|
|
46
|
-
var current = this.
|
|
47
|
-
this.
|
|
44
|
+
protoOf(AtomicInt).dj = function (value) {
|
|
45
|
+
var current = this.cj_1;
|
|
46
|
+
this.cj_1 = value;
|
|
48
47
|
return current;
|
|
49
48
|
};
|
|
50
49
|
//region block: exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/commonMain/kotlin/arrow/atomic/AtomicBoolean.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/commonMain/kotlin/arrow/atomic/AtomicInt.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/jsMain/kotlin/arrow/atomic/AtomicInt.kt"],"sourcesContent":[null,null,null],"names":["toInt","<this>","<init>","value","<get-value>","getAndSet","initialValue","get","current"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/commonMain/kotlin/arrow/atomic/AtomicBoolean.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/commonMain/kotlin/arrow/atomic/AtomicInt.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-atomic/src/jsMain/kotlin/arrow/atomic/AtomicInt.kt"],"sourcesContent":[null,null,null],"names":["toInt","<this>","<init>","value","<get-value>","getAndSet","initialValue","get","current"],"mappings":";;;;;;;;;;;;;;;;;;;;;;gBAsBUA,CAAIC,a,OAAJD,EACN;A,IAAkB,OAAd,aAAJ,GAAU,CAAV,GAAiB,C;EAAA,C;wBArBdE,CAAoBC,KAApBD,EAAP;A,IACsB,0BAAgB,MAAN,KAAM,OAAhB,C;EADtB,C;uCAIIE,CAAAA,EAAQ;A,IAAgB,OAAhB,EAAM,UAAN,IAAM,CAAN,IAAM,CAAN,KAAe,CAAf,C;EAAe,C;uCAalBC,CAAcF,KAAdE,EACL;A,IAAmC,OAAnC,IAAM,CAAN,IAAM,IAAgB,MAAN,KAAM,OAAhB,CAAN,KAAkC,C;EAAA,C;oBCHpCD,CADSH,aACTG,EAAQ;A,IAAK,OAAL,kB;EAAI,C;oBCfuBF,CAAYI,YAAZJ,EAArC;A,IACmC,wB;EADnC,C;mCAGgBK,CAAAA,EAAiB;A,IAAa,OAAb,IAAa,CAAb,I;EAAY,C;mCAuB7BF,CAAcF,KAAdE,EAA+B;A,QAC3CG,UAAc,IAAdA,CAAc,I;IACd,YAAgB,K;IAChB,OAAO,O;EACT,C;;;;;;;"}
|
|
@@ -12,9 +12,8 @@
|
|
|
12
12
|
}(this, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
16
|
-
var
|
|
17
|
-
var setMetadataFor = kotlin_kotlin.$_$.pa;
|
|
15
|
+
var classMeta = kotlin_kotlin.$_$.l9;
|
|
16
|
+
var setMetadataFor = kotlin_kotlin.$_$.ra;
|
|
18
17
|
//endregion
|
|
19
18
|
//region block: pre-declaration
|
|
20
19
|
setMetadataFor(ControlThrowable, 'ControlThrowable', classMeta, Error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/arrow-arrow-core.js
CHANGED
|
@@ -18,37 +18,36 @@
|
|
|
18
18
|
}(this, 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
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var asList = kotlin_kotlin.$_$.z4;
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.i4;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.qa;
|
|
23
|
+
var objectMeta = kotlin_kotlin.$_$.pa;
|
|
24
|
+
var setMetadataFor = kotlin_kotlin.$_$.ra;
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.u9;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.ye;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.o9;
|
|
28
|
+
var classMeta = kotlin_kotlin.$_$.l9;
|
|
29
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.tf;
|
|
30
|
+
var drop = kotlin_kotlin.$_$.y5;
|
|
31
|
+
var objectCreate = kotlin_kotlin.$_$.oa;
|
|
32
|
+
var AbstractList = kotlin_kotlin.$_$.j4;
|
|
33
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
34
|
+
var listOf = kotlin_kotlin.$_$.e7;
|
|
35
|
+
var plus = kotlin_kotlin.$_$.p7;
|
|
36
|
+
var plus_0 = kotlin_kotlin.$_$.q7;
|
|
37
|
+
var joinToString = kotlin_kotlin.$_$.r6;
|
|
38
|
+
var Collection = kotlin_kotlin.$_$.m4;
|
|
39
|
+
var firstOrNull = kotlin_kotlin.$_$.f6;
|
|
40
|
+
var asList = kotlin_kotlin.$_$.b5;
|
|
42
41
|
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
43
|
-
var
|
|
44
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
45
|
-
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.
|
|
46
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
47
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
48
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
49
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
42
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
43
|
+
var CancellationException = kotlin_kotlin.$_$.v8;
|
|
44
|
+
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
45
|
+
var captureStack = kotlin_kotlin.$_$.f9;
|
|
46
|
+
var IllegalStateException = kotlin_kotlin.$_$.re;
|
|
47
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.m1;
|
|
48
|
+
var interfaceMeta = kotlin_kotlin.$_$.v9;
|
|
50
49
|
var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
|
|
51
|
-
var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.
|
|
50
|
+
var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.z;
|
|
52
51
|
//endregion
|
|
53
52
|
//region block: pre-declaration
|
|
54
53
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
@@ -60,29 +59,28 @@
|
|
|
60
59
|
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
61
60
|
setMetadataFor(NonEmptyList, 'NonEmptyList', classMeta, AbstractList, [AbstractList, Collection]);
|
|
62
61
|
function bind(_this__u8e3s4) {
|
|
63
|
-
var tmp0_subject = _this__u8e3s4;
|
|
64
62
|
var tmp;
|
|
65
|
-
if (
|
|
66
|
-
this.
|
|
63
|
+
if (_this__u8e3s4 instanceof Left) {
|
|
64
|
+
this.bk(_this__u8e3s4.hj_1);
|
|
67
65
|
} else {
|
|
68
|
-
if (
|
|
69
|
-
tmp = _this__u8e3s4.
|
|
66
|
+
if (_this__u8e3s4 instanceof Right) {
|
|
67
|
+
tmp = _this__u8e3s4.nj_1;
|
|
70
68
|
} else {
|
|
71
69
|
noWhenBranchMatchedException();
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
return tmp;
|
|
75
73
|
}
|
|
76
|
-
setMetadataFor(Raise, 'Raise', interfaceMeta, VOID, VOID, VOID, VOID, [0, 1]);
|
|
77
|
-
setMetadataFor(DefaultRaise, 'DefaultRaise', classMeta, VOID, [Raise], VOID, VOID, [0, 1]);
|
|
74
|
+
setMetadataFor(Raise, 'Raise', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]);
|
|
75
|
+
setMetadataFor(DefaultRaise, 'DefaultRaise', classMeta, VOID, [Raise], VOID, VOID, VOID, [0, 1]);
|
|
78
76
|
setMetadataFor(RaiseCancellationException, 'RaiseCancellationException', classMeta, CancellationException);
|
|
79
|
-
setMetadataFor(CancellationExceptionNoTrace, 'CancellationExceptionNoTrace', classMeta, CancellationException);
|
|
77
|
+
setMetadataFor(CancellationExceptionNoTrace, 'CancellationExceptionNoTrace', classMeta, CancellationException, VOID, CancellationExceptionNoTrace);
|
|
80
78
|
setMetadataFor(RaiseCancellationExceptionNoTrace, 'RaiseCancellationExceptionNoTrace', classMeta, CancellationExceptionNoTrace);
|
|
81
|
-
setMetadataFor(RaiseLeakedException, 'RaiseLeakedException', classMeta, IllegalStateException);
|
|
79
|
+
setMetadataFor(RaiseLeakedException, 'RaiseLeakedException', classMeta, IllegalStateException, VOID, RaiseLeakedException);
|
|
82
80
|
//endregion
|
|
83
81
|
function Companion() {
|
|
84
82
|
Companion_instance = this;
|
|
85
|
-
this.
|
|
83
|
+
this.fj_1 = new Left(Unit_instance);
|
|
86
84
|
}
|
|
87
85
|
var Companion_instance;
|
|
88
86
|
function Companion_getInstance() {
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
}
|
|
93
91
|
function Companion_0() {
|
|
94
92
|
Companion_instance_0 = this;
|
|
95
|
-
this.
|
|
93
|
+
this.gj_1 = new Right(Unit_instance);
|
|
96
94
|
}
|
|
97
95
|
var Companion_instance_0;
|
|
98
96
|
function Companion_getInstance_0() {
|
|
@@ -103,21 +101,21 @@
|
|
|
103
101
|
function Left(value) {
|
|
104
102
|
Companion_getInstance();
|
|
105
103
|
Either.call(this);
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
104
|
+
this.hj_1 = value;
|
|
105
|
+
this.ij_1 = true;
|
|
106
|
+
this.jj_1 = false;
|
|
109
107
|
}
|
|
110
|
-
protoOf(Left).
|
|
111
|
-
return this.
|
|
108
|
+
protoOf(Left).kj = function () {
|
|
109
|
+
return this.ij_1;
|
|
112
110
|
};
|
|
113
|
-
protoOf(Left).
|
|
114
|
-
return this.
|
|
111
|
+
protoOf(Left).lj = function () {
|
|
112
|
+
return this.jj_1;
|
|
115
113
|
};
|
|
116
114
|
protoOf(Left).toString = function () {
|
|
117
|
-
return 'Either.Left(' + this.
|
|
115
|
+
return 'Either.Left(' + this.hj_1 + ')';
|
|
118
116
|
};
|
|
119
117
|
protoOf(Left).hashCode = function () {
|
|
120
|
-
return this.
|
|
118
|
+
return this.hj_1 == null ? 0 : hashCode(this.hj_1);
|
|
121
119
|
};
|
|
122
120
|
protoOf(Left).equals = function (other) {
|
|
123
121
|
if (this === other)
|
|
@@ -125,28 +123,28 @@
|
|
|
125
123
|
if (!(other instanceof Left))
|
|
126
124
|
return false;
|
|
127
125
|
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
128
|
-
if (!equals(this.
|
|
126
|
+
if (!equals(this.hj_1, tmp0_other_with_cast.hj_1))
|
|
129
127
|
return false;
|
|
130
128
|
return true;
|
|
131
129
|
};
|
|
132
130
|
function Right(value) {
|
|
133
131
|
Companion_getInstance_0();
|
|
134
132
|
Either.call(this);
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
133
|
+
this.nj_1 = value;
|
|
134
|
+
this.oj_1 = false;
|
|
135
|
+
this.pj_1 = true;
|
|
138
136
|
}
|
|
139
|
-
protoOf(Right).
|
|
140
|
-
return this.
|
|
137
|
+
protoOf(Right).kj = function () {
|
|
138
|
+
return this.oj_1;
|
|
141
139
|
};
|
|
142
|
-
protoOf(Right).
|
|
143
|
-
return this.
|
|
140
|
+
protoOf(Right).lj = function () {
|
|
141
|
+
return this.pj_1;
|
|
144
142
|
};
|
|
145
143
|
protoOf(Right).toString = function () {
|
|
146
|
-
return 'Either.Right(' + this.
|
|
144
|
+
return 'Either.Right(' + this.nj_1 + ')';
|
|
147
145
|
};
|
|
148
146
|
protoOf(Right).hashCode = function () {
|
|
149
|
-
return this.
|
|
147
|
+
return this.nj_1 == null ? 0 : hashCode(this.nj_1);
|
|
150
148
|
};
|
|
151
149
|
protoOf(Right).equals = function (other) {
|
|
152
150
|
if (this === other)
|
|
@@ -154,23 +152,19 @@
|
|
|
154
152
|
if (!(other instanceof Right))
|
|
155
153
|
return false;
|
|
156
154
|
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
157
|
-
if (!equals(this.
|
|
155
|
+
if (!equals(this.nj_1, tmp0_other_with_cast.nj_1))
|
|
158
156
|
return false;
|
|
159
157
|
return true;
|
|
160
158
|
};
|
|
161
159
|
function Companion_1() {
|
|
162
|
-
Companion_instance_1 = this;
|
|
163
160
|
}
|
|
164
161
|
var Companion_instance_1;
|
|
165
162
|
function Companion_getInstance_1() {
|
|
166
|
-
if (Companion_instance_1 == null)
|
|
167
|
-
new Companion_1();
|
|
168
163
|
return Companion_instance_1;
|
|
169
164
|
}
|
|
170
165
|
function Either() {
|
|
171
|
-
Companion_getInstance_1();
|
|
172
166
|
}
|
|
173
|
-
protoOf(Either).
|
|
167
|
+
protoOf(Either).mj = function () {
|
|
174
168
|
// Inline function 'kotlin.contracts.contract' call
|
|
175
169
|
// Inline function 'arrow.core.getOrElse' call
|
|
176
170
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -179,11 +173,11 @@
|
|
|
179
173
|
var tmp;
|
|
180
174
|
if (this instanceof Right) {
|
|
181
175
|
// Inline function 'arrow.core.identity' call
|
|
182
|
-
tmp = this.
|
|
176
|
+
tmp = this.nj_1;
|
|
183
177
|
} else {
|
|
184
178
|
if (this instanceof Left) {
|
|
185
179
|
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
186
|
-
this.
|
|
180
|
+
this.hj_1;
|
|
187
181
|
tmp = null;
|
|
188
182
|
} else {
|
|
189
183
|
noWhenBranchMatchedException();
|
|
@@ -197,11 +191,11 @@
|
|
|
197
191
|
var tmp;
|
|
198
192
|
if (this instanceof Right) {
|
|
199
193
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
200
|
-
tmp = 'Either.Right(' + this.
|
|
194
|
+
tmp = 'Either.Right(' + this.nj_1 + ')';
|
|
201
195
|
} else {
|
|
202
196
|
if (this instanceof Left) {
|
|
203
197
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
204
|
-
tmp = 'Either.Left(' + this.
|
|
198
|
+
tmp = 'Either.Left(' + this.hj_1 + ')';
|
|
205
199
|
} else {
|
|
206
200
|
noWhenBranchMatchedException();
|
|
207
201
|
}
|
|
@@ -217,7 +211,7 @@
|
|
|
217
211
|
}
|
|
218
212
|
function Companion_2() {
|
|
219
213
|
Companion_instance_2 = this;
|
|
220
|
-
this.
|
|
214
|
+
this.qj_1 = nonEmptyListOf(Unit_instance, []);
|
|
221
215
|
}
|
|
222
216
|
var Companion_instance_2;
|
|
223
217
|
function Companion_getInstance_2() {
|
|
@@ -228,29 +222,29 @@
|
|
|
228
222
|
function NonEmptyList(head, tail) {
|
|
229
223
|
Companion_getInstance_2();
|
|
230
224
|
AbstractList.call(this);
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
225
|
+
this.rj_1 = head;
|
|
226
|
+
this.sj_1 = tail;
|
|
227
|
+
this.tj_1 = 1 + this.sj_1.p() | 0;
|
|
234
228
|
}
|
|
235
|
-
protoOf(NonEmptyList).
|
|
236
|
-
return this.
|
|
229
|
+
protoOf(NonEmptyList).p = function () {
|
|
230
|
+
return this.tj_1;
|
|
237
231
|
};
|
|
238
|
-
protoOf(NonEmptyList).
|
|
239
|
-
return this.
|
|
232
|
+
protoOf(NonEmptyList).uj = function () {
|
|
233
|
+
return this.vj();
|
|
240
234
|
};
|
|
241
235
|
protoOf(NonEmptyList).g1 = function (index) {
|
|
242
|
-
if (index < 0 ? true : index >= this.
|
|
243
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
244
|
-
return index === 0 ? this.
|
|
236
|
+
if (index < 0 ? true : index >= this.tj_1)
|
|
237
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.tj_1 - 1 | 0));
|
|
238
|
+
return index === 0 ? this.rj_1 : this.sj_1.g1(index - 1 | 0);
|
|
245
239
|
};
|
|
246
240
|
protoOf(NonEmptyList).c1 = function () {
|
|
247
241
|
return false;
|
|
248
242
|
};
|
|
249
|
-
protoOf(NonEmptyList).
|
|
250
|
-
return plus(listOf(this.
|
|
243
|
+
protoOf(NonEmptyList).vj = function () {
|
|
244
|
+
return plus(listOf(this.rj_1), this.sj_1);
|
|
251
245
|
};
|
|
252
|
-
protoOf(NonEmptyList).
|
|
253
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
246
|
+
protoOf(NonEmptyList).wj = function (element) {
|
|
247
|
+
return NonEmptyList_init_$Create$(plus_0(this.uj(), element));
|
|
254
248
|
};
|
|
255
249
|
protoOf(NonEmptyList).equals = function (other) {
|
|
256
250
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -259,7 +253,7 @@
|
|
|
259
253
|
return protoOf(AbstractList).hashCode.call(this);
|
|
260
254
|
};
|
|
261
255
|
protoOf(NonEmptyList).toString = function () {
|
|
262
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
256
|
+
return 'NonEmptyList(' + joinToString(this.uj()) + ')';
|
|
263
257
|
};
|
|
264
258
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
265
259
|
var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
@@ -287,44 +281,44 @@
|
|
|
287
281
|
return tmp;
|
|
288
282
|
}
|
|
289
283
|
function DefaultRaise(isTraced) {
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
284
|
+
this.xj_1 = isTraced;
|
|
285
|
+
this.yj_1 = new AtomicBoolean(true);
|
|
292
286
|
}
|
|
293
|
-
protoOf(DefaultRaise).
|
|
294
|
-
return this.
|
|
287
|
+
protoOf(DefaultRaise).zj = function () {
|
|
288
|
+
return this.yj_1.bj(false);
|
|
295
289
|
};
|
|
296
|
-
protoOf(DefaultRaise).
|
|
290
|
+
protoOf(DefaultRaise).ak = function (r) {
|
|
297
291
|
var tmp;
|
|
298
|
-
if (this.
|
|
299
|
-
throw this.
|
|
292
|
+
if (this.yj_1.p2()) {
|
|
293
|
+
throw this.xj_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
|
|
300
294
|
} else {
|
|
301
295
|
throw new RaiseLeakedException();
|
|
302
296
|
}
|
|
303
297
|
};
|
|
304
|
-
protoOf(DefaultRaise).
|
|
305
|
-
return this.
|
|
298
|
+
protoOf(DefaultRaise).bk = function (r) {
|
|
299
|
+
return this.ak((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
306
300
|
};
|
|
307
301
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
308
302
|
var tmp;
|
|
309
303
|
var tmp_0;
|
|
310
304
|
if (_this__u8e3s4 instanceof RaiseCancellationExceptionNoTrace) {
|
|
311
|
-
tmp_0 = _this__u8e3s4.
|
|
305
|
+
tmp_0 = _this__u8e3s4.ek_1 === raise;
|
|
312
306
|
} else {
|
|
313
307
|
tmp_0 = false;
|
|
314
308
|
}
|
|
315
309
|
if (tmp_0) {
|
|
316
|
-
var tmp_1 = _this__u8e3s4.
|
|
317
|
-
tmp = (tmp_1 == null ? true :
|
|
310
|
+
var tmp_1 = _this__u8e3s4.dk_1;
|
|
311
|
+
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
318
312
|
} else {
|
|
319
313
|
var tmp_2;
|
|
320
314
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
321
|
-
tmp_2 = _this__u8e3s4.
|
|
315
|
+
tmp_2 = _this__u8e3s4.gk_1 === raise;
|
|
322
316
|
} else {
|
|
323
317
|
tmp_2 = false;
|
|
324
318
|
}
|
|
325
319
|
if (tmp_2) {
|
|
326
|
-
var tmp_3 = _this__u8e3s4.
|
|
327
|
-
tmp = (tmp_3 == null ? true :
|
|
320
|
+
var tmp_3 = _this__u8e3s4.fk_1;
|
|
321
|
+
tmp = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
328
322
|
} else {
|
|
329
323
|
throw _this__u8e3s4;
|
|
330
324
|
}
|
|
@@ -334,14 +328,14 @@
|
|
|
334
328
|
function RaiseCancellationException(raised, raise) {
|
|
335
329
|
CancellationException_init_$Init$(this);
|
|
336
330
|
captureStack(this, RaiseCancellationException);
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
331
|
+
this.fk_1 = raised;
|
|
332
|
+
this.gk_1 = raise;
|
|
339
333
|
}
|
|
340
334
|
function RaiseCancellationExceptionNoTrace(raised, raise) {
|
|
341
335
|
CancellationExceptionNoTrace.call(this);
|
|
342
336
|
captureStack(this, RaiseCancellationExceptionNoTrace);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
337
|
+
this.dk_1 = raised;
|
|
338
|
+
this.ek_1 = raise;
|
|
345
339
|
}
|
|
346
340
|
function RaiseLeakedException() {
|
|
347
341
|
IllegalStateException_init_$Init$('raise or bind was called outside of its DSL scope, and the DSL Scoped operator was leaked\nThis is kind of usage is incorrect, make sure all calls to raise or bind occur within the lifecycle of effect { }, either { } or similar builders.\n\nSee: Effect documentation for additional information.', this);
|
|
@@ -373,9 +367,10 @@
|
|
|
373
367
|
captureStack(this, CancellationExceptionNoTrace);
|
|
374
368
|
}
|
|
375
369
|
//region block: post-declaration
|
|
376
|
-
protoOf(DefaultRaise).
|
|
370
|
+
protoOf(DefaultRaise).ck = bind;
|
|
377
371
|
//endregion
|
|
378
372
|
//region block: init
|
|
373
|
+
Companion_instance_1 = new Companion_1();
|
|
379
374
|
RaiseCancellationExceptionCaptured = "kotlin.coroutines.cancellation.CancellationException should never get cancelled. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.";
|
|
380
375
|
//endregion
|
|
381
376
|
//region block: exports
|
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","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/nonFatalOrThrow.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Fold.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/NonFatal.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt"],"sourcesContent":[null,null,null,null,null,null,null,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","nonEmptyListOf","t","nonFatalOrThrow","isTraced","complete","raise","r","raisedOrRethrow","raised","<get-RaiseCancellationExceptionCaptured>","NonFatal"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Raise.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/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/util/Standard.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/nonFatalOrThrow.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/raise/Fold.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/NonFatal.kt","../../../../../../../../../../Users/runner/work/arrow/arrow/arrow-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/raise/CancellationExceptionNoTrace.kt"],"sourcesContent":[null,null,null,null,null,null,null,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","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