@flock/wirespec 0.9.23 → 0.9.25
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 +1 -1
- package/arrow-arrow-atomic.js +17 -18
- package/arrow-arrow-atomic.js.map +1 -1
- package/arrow-arrow-continuations.js +4 -4
- package/arrow-arrow-core.js +96 -99
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +2045 -2060
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +552 -444
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +7798 -7841
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/{kotlin-kotlin-test-kotlin-test-js-ir.js → kotlin-kotlin-test.js} +3 -3
- package/kotlin-openapi-bindings.js +5331 -5326
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +2051 -2052
- package/kotlin-rgxgen.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2151 -2187
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1571 -1731
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +2308 -2317
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2405 -2492
- package/mordant-mordant.js.map +1 -1
- package/package.json +2 -2
- package/resources-library.js +1 -1
- package/wirespec-src-compiler-core.js +2578 -2457
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +733 -605
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +1494 -1477
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +127 -124
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +236 -231
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +28 -9
- package/wirespec-src-plugin-npm.js +71 -71
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +176 -181
- package/wirespec-src-tools-generator.js.map +1 -1
- /package/{kotlin-kotlin-test-kotlin-test-js-ir.js.map → kotlin-kotlin-test.js.map} +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
factory(module.exports);
|
|
6
6
|
else
|
|
7
7
|
root['arrow-arrow-annotations'] = factory(typeof this['arrow-arrow-annotations'] === 'undefined' ? {} : this['arrow-arrow-annotations']);
|
|
8
|
-
}(
|
|
8
|
+
}(globalThis, function (_) {
|
|
9
9
|
'use strict';
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
//endregion
|
package/arrow-arrow-atomic.js
CHANGED
|
@@ -9,41 +9,40 @@
|
|
|
9
9
|
}
|
|
10
10
|
root['arrow-arrow-atomic'] = factory(typeof this['arrow-arrow-atomic'] === 'undefined' ? {} : this['arrow-arrow-atomic'], this['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(globalThis, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var
|
|
17
|
-
var setMetadataFor = kotlin_kotlin.$_$.ra;
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.ta;
|
|
16
|
+
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
18
17
|
//endregion
|
|
19
18
|
//region block: pre-declaration
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
initMetadataForClass(AtomicBoolean, 'AtomicBoolean');
|
|
20
|
+
initMetadataForClass(AtomicInt, 'AtomicInt');
|
|
22
21
|
//endregion
|
|
23
22
|
function toInt(_this__u8e3s4, $this) {
|
|
24
23
|
return _this__u8e3s4 ? 1 : 0;
|
|
25
24
|
}
|
|
26
25
|
function AtomicBoolean(value) {
|
|
27
|
-
this.
|
|
26
|
+
this.ej_1 = new AtomicInt(toInt(value, this));
|
|
28
27
|
}
|
|
29
|
-
protoOf(AtomicBoolean).
|
|
30
|
-
return !(get_value(this.
|
|
28
|
+
protoOf(AtomicBoolean).b1 = function () {
|
|
29
|
+
return !(get_value(this.ej_1) === 0);
|
|
31
30
|
};
|
|
32
|
-
protoOf(AtomicBoolean).
|
|
33
|
-
return this.
|
|
31
|
+
protoOf(AtomicBoolean).fj = function (value) {
|
|
32
|
+
return this.ej_1.hj(toInt(value, this)) === 1;
|
|
34
33
|
};
|
|
35
34
|
function get_value(_this__u8e3s4) {
|
|
36
|
-
return _this__u8e3s4.
|
|
35
|
+
return _this__u8e3s4.ij();
|
|
37
36
|
}
|
|
38
37
|
function AtomicInt(initialValue) {
|
|
39
|
-
this.
|
|
38
|
+
this.gj_1 = initialValue;
|
|
40
39
|
}
|
|
41
|
-
protoOf(AtomicInt).
|
|
42
|
-
return this.
|
|
40
|
+
protoOf(AtomicInt).ij = function () {
|
|
41
|
+
return this.gj_1;
|
|
43
42
|
};
|
|
44
|
-
protoOf(AtomicInt).
|
|
45
|
-
var current = this.
|
|
46
|
-
this.
|
|
43
|
+
protoOf(AtomicInt).hj = function (value) {
|
|
44
|
+
var current = this.gj_1;
|
|
45
|
+
this.gj_1 = value;
|
|
47
46
|
return current;
|
|
48
47
|
};
|
|
49
48
|
//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;;;;;;;"}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
}
|
|
10
10
|
root['arrow-arrow-continuations'] = factory(typeof this['arrow-arrow-continuations'] === 'undefined' ? {} : this['arrow-arrow-continuations'], this['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(globalThis, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var
|
|
16
|
-
var
|
|
15
|
+
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
16
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
17
17
|
//endregion
|
|
18
18
|
//region block: pre-declaration
|
|
19
|
-
|
|
19
|
+
initMetadataForClass(ControlThrowable, 'ControlThrowable', VOID, Error);
|
|
20
20
|
//endregion
|
|
21
21
|
function ControlThrowable() {
|
|
22
22
|
}
|
package/arrow-arrow-core.js
CHANGED
|
@@ -15,20 +15,21 @@
|
|
|
15
15
|
}
|
|
16
16
|
root['arrow-arrow-core'] = factory(typeof this['arrow-arrow-core'] === 'undefined' ? {} : this['arrow-arrow-core'], this['kotlin-kotlin-stdlib'], this['arrow-arrow-atomic'], this['arrow-arrow-continuations']);
|
|
17
17
|
}
|
|
18
|
-
}(
|
|
18
|
+
}(globalThis, function (_, kotlin_kotlin, kotlin_io_arrow_kt_arrow_atomic, kotlin_io_arrow_kt_arrow_continuations) {
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var Unit_instance = kotlin_kotlin.$_$.i4;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var equals = kotlin_kotlin.$_$.
|
|
28
|
-
var
|
|
29
|
-
var
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.ta;
|
|
23
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.v9;
|
|
24
|
+
var toString = kotlin_kotlin.$_$.xf;
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.t9;
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.af;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.n9;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
29
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.vf;
|
|
30
31
|
var drop = kotlin_kotlin.$_$.y5;
|
|
31
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
32
|
+
var objectCreate = kotlin_kotlin.$_$.sa;
|
|
32
33
|
var AbstractList = kotlin_kotlin.$_$.j4;
|
|
33
34
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
34
35
|
var listOf = kotlin_kotlin.$_$.e7;
|
|
@@ -39,48 +40,47 @@
|
|
|
39
40
|
var firstOrNull = kotlin_kotlin.$_$.f6;
|
|
40
41
|
var asList = kotlin_kotlin.$_$.b5;
|
|
41
42
|
var AtomicBoolean = kotlin_io_arrow_kt_arrow_atomic.$_$.a;
|
|
42
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
43
43
|
var CancellationException = kotlin_kotlin.$_$.v8;
|
|
44
44
|
var CancellationException_init_$Init$ = kotlin_kotlin.$_$.y;
|
|
45
45
|
var captureStack = kotlin_kotlin.$_$.f9;
|
|
46
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
46
|
+
var IllegalStateException = kotlin_kotlin.$_$.te;
|
|
47
47
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.m1;
|
|
48
|
-
var
|
|
48
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.x9;
|
|
49
49
|
var ControlThrowable = kotlin_io_arrow_kt_arrow_continuations.$_$.a;
|
|
50
50
|
var CancellationException_init_$Init$_0 = kotlin_kotlin.$_$.z;
|
|
51
51
|
//endregion
|
|
52
52
|
//region block: pre-declaration
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
61
|
function bind(_this__u8e3s4) {
|
|
62
62
|
var tmp;
|
|
63
63
|
if (_this__u8e3s4 instanceof Left) {
|
|
64
|
-
this.
|
|
64
|
+
this.fk(_this__u8e3s4.lj_1);
|
|
65
65
|
} else {
|
|
66
66
|
if (_this__u8e3s4 instanceof Right) {
|
|
67
|
-
tmp = _this__u8e3s4.
|
|
67
|
+
tmp = _this__u8e3s4.rj_1;
|
|
68
68
|
} else {
|
|
69
69
|
noWhenBranchMatchedException();
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return tmp;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [0, 1]);
|
|
75
|
+
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [0, 1]);
|
|
76
|
+
initMetadataForClass(RaiseCancellationException, 'RaiseCancellationException', VOID, CancellationException);
|
|
77
|
+
initMetadataForClass(CancellationExceptionNoTrace, 'CancellationExceptionNoTrace', CancellationExceptionNoTrace, CancellationException);
|
|
78
|
+
initMetadataForClass(RaiseCancellationExceptionNoTrace, 'RaiseCancellationExceptionNoTrace', VOID, CancellationExceptionNoTrace);
|
|
79
|
+
initMetadataForClass(RaiseLeakedException, 'RaiseLeakedException', RaiseLeakedException, IllegalStateException);
|
|
80
80
|
//endregion
|
|
81
81
|
function Companion() {
|
|
82
82
|
Companion_instance = this;
|
|
83
|
-
this.
|
|
83
|
+
this.jj_1 = new Left(Unit_instance);
|
|
84
84
|
}
|
|
85
85
|
var Companion_instance;
|
|
86
86
|
function Companion_getInstance() {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
function Companion_0() {
|
|
92
92
|
Companion_instance_0 = this;
|
|
93
|
-
this.
|
|
93
|
+
this.kj_1 = new Right(Unit_instance);
|
|
94
94
|
}
|
|
95
95
|
var Companion_instance_0;
|
|
96
96
|
function Companion_getInstance_0() {
|
|
@@ -101,21 +101,21 @@
|
|
|
101
101
|
function Left(value) {
|
|
102
102
|
Companion_getInstance();
|
|
103
103
|
Either.call(this);
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
104
|
+
this.lj_1 = value;
|
|
105
|
+
this.mj_1 = true;
|
|
106
|
+
this.nj_1 = false;
|
|
107
107
|
}
|
|
108
|
-
protoOf(Left).
|
|
109
|
-
return this.
|
|
108
|
+
protoOf(Left).oj = function () {
|
|
109
|
+
return this.mj_1;
|
|
110
110
|
};
|
|
111
|
-
protoOf(Left).
|
|
112
|
-
return this.
|
|
111
|
+
protoOf(Left).pj = function () {
|
|
112
|
+
return this.nj_1;
|
|
113
113
|
};
|
|
114
114
|
protoOf(Left).toString = function () {
|
|
115
|
-
return 'Either.Left(' + this.
|
|
115
|
+
return 'Either.Left(' + toString(this.lj_1) + ')';
|
|
116
116
|
};
|
|
117
117
|
protoOf(Left).hashCode = function () {
|
|
118
|
-
return this.
|
|
118
|
+
return this.lj_1 == null ? 0 : hashCode(this.lj_1);
|
|
119
119
|
};
|
|
120
120
|
protoOf(Left).equals = function (other) {
|
|
121
121
|
if (this === other)
|
|
@@ -123,28 +123,28 @@
|
|
|
123
123
|
if (!(other instanceof Left))
|
|
124
124
|
return false;
|
|
125
125
|
var tmp0_other_with_cast = other instanceof Left ? other : THROW_CCE();
|
|
126
|
-
if (!equals(this.
|
|
126
|
+
if (!equals(this.lj_1, tmp0_other_with_cast.lj_1))
|
|
127
127
|
return false;
|
|
128
128
|
return true;
|
|
129
129
|
};
|
|
130
130
|
function Right(value) {
|
|
131
131
|
Companion_getInstance_0();
|
|
132
132
|
Either.call(this);
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
135
|
-
this.
|
|
133
|
+
this.rj_1 = value;
|
|
134
|
+
this.sj_1 = false;
|
|
135
|
+
this.tj_1 = true;
|
|
136
136
|
}
|
|
137
|
-
protoOf(Right).
|
|
138
|
-
return this.
|
|
137
|
+
protoOf(Right).oj = function () {
|
|
138
|
+
return this.sj_1;
|
|
139
139
|
};
|
|
140
|
-
protoOf(Right).
|
|
141
|
-
return this.
|
|
140
|
+
protoOf(Right).pj = function () {
|
|
141
|
+
return this.tj_1;
|
|
142
142
|
};
|
|
143
143
|
protoOf(Right).toString = function () {
|
|
144
|
-
return 'Either.Right(' + this.
|
|
144
|
+
return 'Either.Right(' + toString(this.rj_1) + ')';
|
|
145
145
|
};
|
|
146
146
|
protoOf(Right).hashCode = function () {
|
|
147
|
-
return this.
|
|
147
|
+
return this.rj_1 == null ? 0 : hashCode(this.rj_1);
|
|
148
148
|
};
|
|
149
149
|
protoOf(Right).equals = function (other) {
|
|
150
150
|
if (this === other)
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
if (!(other instanceof Right))
|
|
153
153
|
return false;
|
|
154
154
|
var tmp0_other_with_cast = other instanceof Right ? other : THROW_CCE();
|
|
155
|
-
if (!equals(this.
|
|
155
|
+
if (!equals(this.rj_1, tmp0_other_with_cast.rj_1))
|
|
156
156
|
return false;
|
|
157
157
|
return true;
|
|
158
158
|
};
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
function Either() {
|
|
166
166
|
}
|
|
167
|
-
protoOf(Either).
|
|
167
|
+
protoOf(Either).qj = function () {
|
|
168
168
|
// Inline function 'kotlin.contracts.contract' call
|
|
169
169
|
// Inline function 'arrow.core.getOrElse' call
|
|
170
170
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
var tmp;
|
|
174
174
|
if (this instanceof Right) {
|
|
175
175
|
// Inline function 'arrow.core.identity' call
|
|
176
|
-
tmp = this.
|
|
176
|
+
tmp = this.rj_1;
|
|
177
177
|
} else {
|
|
178
178
|
if (this instanceof Left) {
|
|
179
179
|
// Inline function 'arrow.core.Either.getOrNull.<anonymous>' call
|
|
180
|
-
this.
|
|
180
|
+
this.lj_1;
|
|
181
181
|
tmp = null;
|
|
182
182
|
} else {
|
|
183
183
|
noWhenBranchMatchedException();
|
|
@@ -191,11 +191,13 @@
|
|
|
191
191
|
var tmp;
|
|
192
192
|
if (this instanceof Right) {
|
|
193
193
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
194
|
-
|
|
194
|
+
var it = this.rj_1;
|
|
195
|
+
tmp = 'Either.Right(' + toString(it) + ')';
|
|
195
196
|
} else {
|
|
196
197
|
if (this instanceof Left) {
|
|
197
198
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
198
|
-
|
|
199
|
+
var it_0 = this.lj_1;
|
|
200
|
+
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
199
201
|
} else {
|
|
200
202
|
noWhenBranchMatchedException();
|
|
201
203
|
}
|
|
@@ -203,7 +205,7 @@
|
|
|
203
205
|
return tmp;
|
|
204
206
|
};
|
|
205
207
|
function NonEmptyList_init_$Init$(list, $this) {
|
|
206
|
-
NonEmptyList.call($this, list.
|
|
208
|
+
NonEmptyList.call($this, list.o(0), drop(list, 1));
|
|
207
209
|
return $this;
|
|
208
210
|
}
|
|
209
211
|
function NonEmptyList_init_$Create$(list) {
|
|
@@ -211,7 +213,7 @@
|
|
|
211
213
|
}
|
|
212
214
|
function Companion_2() {
|
|
213
215
|
Companion_instance_2 = this;
|
|
214
|
-
this.
|
|
216
|
+
this.uj_1 = nonEmptyListOf(Unit_instance, []);
|
|
215
217
|
}
|
|
216
218
|
var Companion_instance_2;
|
|
217
219
|
function Companion_getInstance_2() {
|
|
@@ -222,29 +224,29 @@
|
|
|
222
224
|
function NonEmptyList(head, tail) {
|
|
223
225
|
Companion_getInstance_2();
|
|
224
226
|
AbstractList.call(this);
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
227
|
-
this.
|
|
227
|
+
this.vj_1 = head;
|
|
228
|
+
this.wj_1 = tail;
|
|
229
|
+
this.xj_1 = 1 + this.wj_1.j() | 0;
|
|
228
230
|
}
|
|
229
|
-
protoOf(NonEmptyList).
|
|
230
|
-
return this.
|
|
231
|
+
protoOf(NonEmptyList).j = function () {
|
|
232
|
+
return this.xj_1;
|
|
231
233
|
};
|
|
232
|
-
protoOf(NonEmptyList).
|
|
233
|
-
return this.
|
|
234
|
+
protoOf(NonEmptyList).yj = function () {
|
|
235
|
+
return this.zj();
|
|
234
236
|
};
|
|
235
|
-
protoOf(NonEmptyList).
|
|
236
|
-
if (index < 0
|
|
237
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
238
|
-
return index === 0 ? this.
|
|
237
|
+
protoOf(NonEmptyList).o = function (index) {
|
|
238
|
+
if (index < 0 || index >= this.xj_1)
|
|
239
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.xj_1 - 1 | 0));
|
|
240
|
+
return index === 0 ? this.vj_1 : this.wj_1.o(index - 1 | 0);
|
|
239
241
|
};
|
|
240
|
-
protoOf(NonEmptyList).
|
|
242
|
+
protoOf(NonEmptyList).p = function () {
|
|
241
243
|
return false;
|
|
242
244
|
};
|
|
243
|
-
protoOf(NonEmptyList).
|
|
244
|
-
return plus(listOf(this.
|
|
245
|
+
protoOf(NonEmptyList).zj = function () {
|
|
246
|
+
return plus(listOf(this.vj_1), this.wj_1);
|
|
245
247
|
};
|
|
246
|
-
protoOf(NonEmptyList).
|
|
247
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
248
|
+
protoOf(NonEmptyList).ak = function (element) {
|
|
249
|
+
return NonEmptyList_init_$Create$(plus_0(this.yj(), element));
|
|
248
250
|
};
|
|
249
251
|
protoOf(NonEmptyList).equals = function (other) {
|
|
250
252
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -253,7 +255,7 @@
|
|
|
253
255
|
return protoOf(AbstractList).hashCode.call(this);
|
|
254
256
|
};
|
|
255
257
|
protoOf(NonEmptyList).toString = function () {
|
|
256
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
258
|
+
return 'NonEmptyList(' + joinToString(this.yj()) + ')';
|
|
257
259
|
};
|
|
258
260
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
259
261
|
var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
@@ -294,43 +296,43 @@
|
|
|
294
296
|
return tmp;
|
|
295
297
|
}
|
|
296
298
|
function DefaultRaise(isTraced) {
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
+
this.bk_1 = isTraced;
|
|
300
|
+
this.ck_1 = new AtomicBoolean(true);
|
|
299
301
|
}
|
|
300
|
-
protoOf(DefaultRaise).
|
|
301
|
-
return this.
|
|
302
|
+
protoOf(DefaultRaise).dk = function () {
|
|
303
|
+
return this.ck_1.fj(false);
|
|
302
304
|
};
|
|
303
|
-
protoOf(DefaultRaise).
|
|
305
|
+
protoOf(DefaultRaise).ek = function (r) {
|
|
304
306
|
var tmp;
|
|
305
|
-
if (this.
|
|
306
|
-
throw this.
|
|
307
|
+
if (this.ck_1.b1()) {
|
|
308
|
+
throw this.bk_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
|
|
307
309
|
} else {
|
|
308
310
|
throw new RaiseLeakedException();
|
|
309
311
|
}
|
|
310
312
|
};
|
|
311
|
-
protoOf(DefaultRaise).
|
|
312
|
-
return this.
|
|
313
|
+
protoOf(DefaultRaise).fk = function (r) {
|
|
314
|
+
return this.ek((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
313
315
|
};
|
|
314
316
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
315
317
|
var tmp;
|
|
316
318
|
var tmp_0;
|
|
317
319
|
if (_this__u8e3s4 instanceof RaiseCancellationExceptionNoTrace) {
|
|
318
|
-
tmp_0 = _this__u8e3s4.
|
|
320
|
+
tmp_0 = _this__u8e3s4.ik_1 === raise;
|
|
319
321
|
} else {
|
|
320
322
|
tmp_0 = false;
|
|
321
323
|
}
|
|
322
324
|
if (tmp_0) {
|
|
323
|
-
var tmp_1 = _this__u8e3s4.
|
|
325
|
+
var tmp_1 = _this__u8e3s4.hk_1;
|
|
324
326
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
325
327
|
} else {
|
|
326
328
|
var tmp_2;
|
|
327
329
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
328
|
-
tmp_2 = _this__u8e3s4.
|
|
330
|
+
tmp_2 = _this__u8e3s4.kk_1 === raise;
|
|
329
331
|
} else {
|
|
330
332
|
tmp_2 = false;
|
|
331
333
|
}
|
|
332
334
|
if (tmp_2) {
|
|
333
|
-
var tmp_3 = _this__u8e3s4.
|
|
335
|
+
var tmp_3 = _this__u8e3s4.jk_1;
|
|
334
336
|
tmp = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
335
337
|
} else {
|
|
336
338
|
throw _this__u8e3s4;
|
|
@@ -341,23 +343,19 @@
|
|
|
341
343
|
function RaiseCancellationException(raised, raise) {
|
|
342
344
|
CancellationException_init_$Init$(this);
|
|
343
345
|
captureStack(this, RaiseCancellationException);
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
+
this.jk_1 = raised;
|
|
347
|
+
this.kk_1 = raise;
|
|
346
348
|
}
|
|
347
349
|
function RaiseCancellationExceptionNoTrace(raised, raise) {
|
|
348
350
|
CancellationExceptionNoTrace.call(this);
|
|
349
351
|
captureStack(this, RaiseCancellationExceptionNoTrace);
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
+
this.hk_1 = raised;
|
|
353
|
+
this.ik_1 = raise;
|
|
352
354
|
}
|
|
353
355
|
function RaiseLeakedException() {
|
|
354
356
|
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);
|
|
355
357
|
captureStack(this, RaiseLeakedException);
|
|
356
358
|
}
|
|
357
|
-
function get_RaiseCancellationExceptionCaptured() {
|
|
358
|
-
return RaiseCancellationExceptionCaptured;
|
|
359
|
-
}
|
|
360
|
-
var RaiseCancellationExceptionCaptured;
|
|
361
359
|
function Raise() {
|
|
362
360
|
}
|
|
363
361
|
function NonFatal(t) {
|
|
@@ -376,15 +374,14 @@
|
|
|
376
374
|
return tmp;
|
|
377
375
|
}
|
|
378
376
|
function CancellationExceptionNoTrace() {
|
|
379
|
-
CancellationException_init_$Init$_0(
|
|
377
|
+
CancellationException_init_$Init$_0("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.", this);
|
|
380
378
|
captureStack(this, CancellationExceptionNoTrace);
|
|
381
379
|
}
|
|
382
380
|
//region block: post-declaration
|
|
383
|
-
protoOf(DefaultRaise).
|
|
381
|
+
protoOf(DefaultRaise).gk = bind;
|
|
384
382
|
//endregion
|
|
385
383
|
//region block: init
|
|
386
384
|
Companion_instance_1 = new Companion_1();
|
|
387
|
-
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.";
|
|
388
385
|
//endregion
|
|
389
386
|
//region block: exports
|
|
390
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/util/Standard.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/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,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","curried","curried$lambda$lambda","$p1","curried$lambda$lambda$lambda","p2","curried$lambda","p1","nonFatalOrThrow","isTraced","complete","raise","r","raisedOrRethrow","raised","
|
|
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/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/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,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","curried","curried$lambda$lambda","$p1","curried$lambda$lambda$lambda","p2","curried$lambda","p1","nonFatalOrThrow","isTraced","complete","raise","r","raisedOrRethrow","raised","NonFatal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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