@flock/wirespec 0.8.44 → 0.8.46
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 +11 -11
- package/arrow-arrow-core.js +57 -57
- package/clikt-clikt.js +1278 -1278
- package/colormath-root-colormath.js +365 -365
- package/kotlin-kotlin-stdlib-js-ir.js +978 -978
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3225 -3225
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1296 -1296
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1032 -1032
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +1887 -1887
- package/mordant-mordant.js +1641 -1641
- package/package.json +1 -1
- package/wirespec-src-compiler-cli.js +171 -171
- package/wirespec-src-compiler-core.js +3637 -3003
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +219 -219
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/{wirespec-src-openapi.js → wirespec-src-converter-openapi.js} +413 -401
- package/wirespec-src-converter-openapi.js.map +1 -0
- package/wirespec-src-openapi.js.map +0 -1
package/arrow-arrow-atomic.js
CHANGED
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
return _this__u8e3s4 ? 1 : 0;
|
|
26
26
|
}
|
|
27
27
|
function AtomicBoolean(value) {
|
|
28
|
-
this.
|
|
28
|
+
this.k1p_1 = new AtomicInt(toInt(value, this));
|
|
29
29
|
}
|
|
30
30
|
protoOf(AtomicBoolean).y = function () {
|
|
31
|
-
return !(get_value(this.
|
|
31
|
+
return !(get_value(this.k1p_1) === 0);
|
|
32
32
|
};
|
|
33
|
-
protoOf(AtomicBoolean).
|
|
34
|
-
return this.
|
|
33
|
+
protoOf(AtomicBoolean).l1p = function (value) {
|
|
34
|
+
return this.k1p_1.n1p(toInt(value, this)) === 1;
|
|
35
35
|
};
|
|
36
36
|
function get_value(_this__u8e3s4) {
|
|
37
|
-
return _this__u8e3s4.
|
|
37
|
+
return _this__u8e3s4.o1p();
|
|
38
38
|
}
|
|
39
39
|
function AtomicInt(initialValue) {
|
|
40
|
-
this.
|
|
40
|
+
this.m1p_1 = initialValue;
|
|
41
41
|
}
|
|
42
|
-
protoOf(AtomicInt).
|
|
43
|
-
return this.
|
|
42
|
+
protoOf(AtomicInt).o1p = function () {
|
|
43
|
+
return this.m1p_1;
|
|
44
44
|
};
|
|
45
|
-
protoOf(AtomicInt).
|
|
46
|
-
var current = this.
|
|
47
|
-
this.
|
|
45
|
+
protoOf(AtomicInt).n1p = function (value) {
|
|
46
|
+
var current = this.m1p_1;
|
|
47
|
+
this.m1p_1 = value;
|
|
48
48
|
return current;
|
|
49
49
|
};
|
|
50
50
|
//region block: exports
|
package/arrow-arrow-core.js
CHANGED
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
var tmp0_subject = _this__u8e3s4;
|
|
64
64
|
var tmp;
|
|
65
65
|
if (tmp0_subject instanceof Left) {
|
|
66
|
-
this.
|
|
66
|
+
this.k1q(_this__u8e3s4.r1p_1);
|
|
67
67
|
} else {
|
|
68
68
|
if (tmp0_subject instanceof Right) {
|
|
69
|
-
tmp = _this__u8e3s4.
|
|
69
|
+
tmp = _this__u8e3s4.w1p_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.p1p_1 = new Left(Unit_getInstance());
|
|
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.q1p_1 = new Right(Unit_getInstance());
|
|
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.r1p_1 = value;
|
|
107
|
+
this.s1p_1 = true;
|
|
108
|
+
this.t1p_1 = false;
|
|
109
109
|
}
|
|
110
|
-
protoOf(Left).t1p = function () {
|
|
111
|
-
return this.r1p_1;
|
|
112
|
-
};
|
|
113
110
|
protoOf(Left).u1p = function () {
|
|
114
111
|
return this.s1p_1;
|
|
115
112
|
};
|
|
113
|
+
protoOf(Left).v1p = function () {
|
|
114
|
+
return this.t1p_1;
|
|
115
|
+
};
|
|
116
116
|
protoOf(Left).toString = function () {
|
|
117
|
-
return 'Either.Left(' + this.
|
|
117
|
+
return 'Either.Left(' + this.r1p_1 + ')';
|
|
118
118
|
};
|
|
119
119
|
protoOf(Left).hashCode = function () {
|
|
120
|
-
return this.
|
|
120
|
+
return this.r1p_1 == null ? 0 : hashCode(this.r1p_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.r1p_1, tmp0_other_with_cast.r1p_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.w1p_1 = value;
|
|
136
|
+
this.x1p_1 = false;
|
|
137
|
+
this.y1p_1 = true;
|
|
138
138
|
}
|
|
139
|
-
protoOf(Right).t1p = function () {
|
|
140
|
-
return this.w1p_1;
|
|
141
|
-
};
|
|
142
139
|
protoOf(Right).u1p = function () {
|
|
143
140
|
return this.x1p_1;
|
|
144
141
|
};
|
|
142
|
+
protoOf(Right).v1p = function () {
|
|
143
|
+
return this.y1p_1;
|
|
144
|
+
};
|
|
145
145
|
protoOf(Right).toString = function () {
|
|
146
|
-
return 'Either.Right(' + this.
|
|
146
|
+
return 'Either.Right(' + this.w1p_1 + ')';
|
|
147
147
|
};
|
|
148
148
|
protoOf(Right).hashCode = function () {
|
|
149
|
-
return this.
|
|
149
|
+
return this.w1p_1 == null ? 0 : hashCode(this.w1p_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.w1p_1, tmp0_other_with_cast.w1p_1))
|
|
158
158
|
return false;
|
|
159
159
|
return true;
|
|
160
160
|
};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
var tmp;
|
|
177
177
|
if (this instanceof Right) {
|
|
178
178
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
179
|
-
tmp = 'Either.Right(' + this.
|
|
179
|
+
tmp = 'Either.Right(' + this.w1p_1 + ')';
|
|
180
180
|
} else {
|
|
181
181
|
if (this instanceof Left) {
|
|
182
182
|
// Inline function 'arrow.core.Either.toString.<anonymous>' call
|
|
183
|
-
tmp = 'Either.Left(' + this.
|
|
183
|
+
tmp = 'Either.Left(' + this.r1p_1 + ')';
|
|
184
184
|
} else {
|
|
185
185
|
noWhenBranchMatchedException();
|
|
186
186
|
}
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
function Companion_2() {
|
|
198
198
|
Companion_instance_2 = this;
|
|
199
|
-
this.
|
|
199
|
+
this.z1p_1 = nonEmptyListOf(Unit_getInstance(), []);
|
|
200
200
|
}
|
|
201
201
|
var Companion_instance_2;
|
|
202
202
|
function Companion_getInstance_2() {
|
|
@@ -207,29 +207,29 @@
|
|
|
207
207
|
function NonEmptyList(head, tail) {
|
|
208
208
|
Companion_getInstance_2();
|
|
209
209
|
AbstractList.call(this);
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
210
|
+
this.a1q_1 = head;
|
|
211
|
+
this.b1q_1 = tail;
|
|
212
|
+
this.c1q_1 = 1 + this.b1q_1.f() | 0;
|
|
213
213
|
}
|
|
214
214
|
protoOf(NonEmptyList).f = function () {
|
|
215
|
-
return this.
|
|
215
|
+
return this.c1q_1;
|
|
216
216
|
};
|
|
217
|
-
protoOf(NonEmptyList).
|
|
218
|
-
return this.
|
|
217
|
+
protoOf(NonEmptyList).d1q = function () {
|
|
218
|
+
return this.e1q();
|
|
219
219
|
};
|
|
220
220
|
protoOf(NonEmptyList).k = function (index) {
|
|
221
|
-
if (index < 0 ? true : index >= this.
|
|
222
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.
|
|
223
|
-
return index === 0 ? this.
|
|
221
|
+
if (index < 0 ? true : index >= this.c1q_1)
|
|
222
|
+
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.c1q_1 - 1 | 0));
|
|
223
|
+
return index === 0 ? this.a1q_1 : this.b1q_1.k(index - 1 | 0);
|
|
224
224
|
};
|
|
225
225
|
protoOf(NonEmptyList).l = function () {
|
|
226
226
|
return false;
|
|
227
227
|
};
|
|
228
|
-
protoOf(NonEmptyList).
|
|
229
|
-
return plus(listOf(this.
|
|
228
|
+
protoOf(NonEmptyList).e1q = function () {
|
|
229
|
+
return plus(listOf(this.a1q_1), this.b1q_1);
|
|
230
230
|
};
|
|
231
|
-
protoOf(NonEmptyList).
|
|
232
|
-
return NonEmptyList_init_$Create$(plus_0(this.
|
|
231
|
+
protoOf(NonEmptyList).f1q = function (element) {
|
|
232
|
+
return NonEmptyList_init_$Create$(plus_0(this.d1q(), element));
|
|
233
233
|
};
|
|
234
234
|
protoOf(NonEmptyList).equals = function (other) {
|
|
235
235
|
return protoOf(AbstractList).equals.call(this, other);
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
return protoOf(AbstractList).hashCode.call(this);
|
|
239
239
|
};
|
|
240
240
|
protoOf(NonEmptyList).toString = function () {
|
|
241
|
-
return 'NonEmptyList(' + joinToString(this.
|
|
241
|
+
return 'NonEmptyList(' + joinToString(this.d1q()) + ')';
|
|
242
242
|
};
|
|
243
243
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
244
244
|
var tmp0_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
@@ -266,43 +266,43 @@
|
|
|
266
266
|
return tmp;
|
|
267
267
|
}
|
|
268
268
|
function DefaultRaise(isTraced) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.g1q_1 = isTraced;
|
|
270
|
+
this.h1q_1 = new AtomicBoolean(true);
|
|
271
271
|
}
|
|
272
|
-
protoOf(DefaultRaise).
|
|
273
|
-
return this.
|
|
272
|
+
protoOf(DefaultRaise).i1q = function () {
|
|
273
|
+
return this.h1q_1.l1p(false);
|
|
274
274
|
};
|
|
275
|
-
protoOf(DefaultRaise).
|
|
275
|
+
protoOf(DefaultRaise).j1q = function (r) {
|
|
276
276
|
var tmp;
|
|
277
|
-
if (this.
|
|
278
|
-
throw this.
|
|
277
|
+
if (this.h1q_1.y()) {
|
|
278
|
+
throw this.g1q_1 ? new RaiseCancellationException(r, this) : new RaiseCancellationExceptionNoTrace(r, this);
|
|
279
279
|
} else {
|
|
280
280
|
throw new RaiseLeakedException();
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
protoOf(DefaultRaise).
|
|
284
|
-
return this.
|
|
283
|
+
protoOf(DefaultRaise).k1q = function (r) {
|
|
284
|
+
return this.j1q((r == null ? true : isObject(r)) ? r : THROW_CCE());
|
|
285
285
|
};
|
|
286
286
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
287
287
|
var tmp;
|
|
288
288
|
var tmp_0;
|
|
289
289
|
if (_this__u8e3s4 instanceof RaiseCancellationExceptionNoTrace) {
|
|
290
|
-
tmp_0 = _this__u8e3s4.
|
|
290
|
+
tmp_0 = _this__u8e3s4.n1q_1 === raise;
|
|
291
291
|
} else {
|
|
292
292
|
tmp_0 = false;
|
|
293
293
|
}
|
|
294
294
|
if (tmp_0) {
|
|
295
|
-
var tmp_1 = _this__u8e3s4.
|
|
295
|
+
var tmp_1 = _this__u8e3s4.m1q_1;
|
|
296
296
|
tmp = (tmp_1 == null ? true : isObject(tmp_1)) ? tmp_1 : THROW_CCE();
|
|
297
297
|
} else {
|
|
298
298
|
var tmp_2;
|
|
299
299
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
300
|
-
tmp_2 = _this__u8e3s4.
|
|
300
|
+
tmp_2 = _this__u8e3s4.p1q_1 === raise;
|
|
301
301
|
} else {
|
|
302
302
|
tmp_2 = false;
|
|
303
303
|
}
|
|
304
304
|
if (tmp_2) {
|
|
305
|
-
var tmp_3 = _this__u8e3s4.
|
|
305
|
+
var tmp_3 = _this__u8e3s4.o1q_1;
|
|
306
306
|
tmp = (tmp_3 == null ? true : isObject(tmp_3)) ? tmp_3 : THROW_CCE();
|
|
307
307
|
} else {
|
|
308
308
|
throw _this__u8e3s4;
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
function RaiseCancellationException(raised, raise) {
|
|
314
314
|
CancellationException_init_$Init$(this);
|
|
315
315
|
captureStack(this, RaiseCancellationException);
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
316
|
+
this.o1q_1 = raised;
|
|
317
|
+
this.p1q_1 = raise;
|
|
318
318
|
}
|
|
319
319
|
function RaiseCancellationExceptionNoTrace(raised, raise) {
|
|
320
320
|
CancellationExceptionNoTrace.call(this);
|
|
321
321
|
captureStack(this, RaiseCancellationExceptionNoTrace);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
322
|
+
this.m1q_1 = raised;
|
|
323
|
+
this.n1q_1 = raise;
|
|
324
324
|
}
|
|
325
325
|
function RaiseLeakedException() {
|
|
326
326
|
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);
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
captureStack(this, CancellationExceptionNoTrace);
|
|
353
353
|
}
|
|
354
354
|
//region block: post-declaration
|
|
355
|
-
protoOf(DefaultRaise).
|
|
355
|
+
protoOf(DefaultRaise).l1q = bind;
|
|
356
356
|
//endregion
|
|
357
357
|
//region block: init
|
|
358
358
|
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.";
|