@flock/wirespec 0.10.5 → 0.10.9
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 +2 -2
- package/arrow-arrow-continuations.js +1 -1
- package/arrow-arrow-core.js +18 -18
- package/clikt-clikt.js +1246 -1246
- package/colormath-root-colormath.js +458 -458
- package/kotlin-kotlin-stdlib.js +249 -245
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +26 -26
- package/kotlin-rgxgen.js +1818 -1818
- package/kotlinx-serialization-kotlinx-serialization-core.js +74 -74
- package/kotlinx-serialization-kotlinx-serialization-json.js +78 -78
- package/markdown.js +1927 -1927
- package/mordant-mordant.js +1713 -1713
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2782 -2234
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +286 -286
- package/wirespec-src-converter-openapi.js +320 -321
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +98 -98
- package/wirespec-src-plugin-cli.js +144 -144
- package/wirespec-src-plugin-npm.js +11 -11
- package/wirespec-src-tools-generator.js +26 -26
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
}(globalThis, function (_, kotlin_kotlin, kotlin_community_flock_wirespec_plugin_cli_cli, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_compiler_lib, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_community_flock_wirespec_generator_generator, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
37
37
|
'use strict';
|
|
38
38
|
//region block: imports
|
|
39
|
-
var THROW_IAE = kotlin_kotlin.$_$.
|
|
39
|
+
var THROW_IAE = kotlin_kotlin.$_$.jf;
|
|
40
40
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
41
|
-
var Enum = kotlin_kotlin.$_$.
|
|
42
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
43
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
44
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
41
|
+
var Enum = kotlin_kotlin.$_$.ye;
|
|
42
|
+
var protoOf = kotlin_kotlin.$_$.xa;
|
|
43
|
+
var defineProp = kotlin_kotlin.$_$.p9;
|
|
44
|
+
var initMetadataForClass = kotlin_kotlin.$_$.x9;
|
|
45
45
|
var VOID = kotlin_kotlin.$_$.g;
|
|
46
46
|
var main = kotlin_community_flock_wirespec_plugin_cli_cli.$_$.a;
|
|
47
47
|
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.f2;
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
var OpenApiV2Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.b;
|
|
58
58
|
var produce_1 = kotlin_community_flock_wirespec_compiler_lib.$_$.c;
|
|
59
59
|
var OpenApiV3Parser_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.d;
|
|
60
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
60
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
|
|
61
61
|
var Left = kotlin_io_arrow_kt_arrow_core.$_$.d;
|
|
62
62
|
var generate = kotlin_community_flock_wirespec_generator_generator.$_$.a;
|
|
63
|
-
var toString = kotlin_kotlin.$_$.
|
|
63
|
+
var toString = kotlin_kotlin.$_$.bb;
|
|
64
64
|
var Right = kotlin_io_arrow_kt_arrow_core.$_$.e;
|
|
65
65
|
var produce_2 = kotlin_community_flock_wirespec_compiler_lib.$_$.d;
|
|
66
66
|
var consume = kotlin_community_flock_wirespec_compiler_lib.$_$.a;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
|
|
70
70
|
var KotlinEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.d;
|
|
71
71
|
var ScalaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.f;
|
|
72
|
-
var listOf = kotlin_kotlin.$_$.
|
|
72
|
+
var listOf = kotlin_kotlin.$_$.h7;
|
|
73
73
|
var OpenApiV2Emitter_instance = kotlin_community_flock_wirespec_converter_openapi.$_$.a;
|
|
74
74
|
var Companion_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w2;
|
|
75
75
|
var curried = kotlin_io_arrow_kt_arrow_core.$_$.g;
|
|
@@ -194,10 +194,10 @@
|
|
|
194
194
|
var tmp;
|
|
195
195
|
switch (converters.q2_1) {
|
|
196
196
|
case 0:
|
|
197
|
-
tmp = produce_1(OpenApiV2Parser_instance.
|
|
197
|
+
tmp = produce_1(OpenApiV2Parser_instance.e2g(source));
|
|
198
198
|
break;
|
|
199
199
|
case 1:
|
|
200
|
-
tmp = produce_1(OpenApiV3Parser_instance.
|
|
200
|
+
tmp = produce_1(OpenApiV3Parser_instance.u2g(source));
|
|
201
201
|
break;
|
|
202
202
|
default:
|
|
203
203
|
noWhenBranchMatchedException();
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
return encode$lambda(serializer);
|
|
369
369
|
}
|
|
370
370
|
function emit$emit(receiver, p0) {
|
|
371
|
-
return receiver.
|
|
371
|
+
return receiver.i2g(p0);
|
|
372
372
|
}
|
|
373
373
|
function Emitted$_init_$ref_9uzepx() {
|
|
374
374
|
var l = function (p0, p1) {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
//region block: imports
|
|
24
24
|
var Default_getInstance = kotlin_kotlin.$_$.v3;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.g;
|
|
26
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
27
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
26
|
+
var removeSuffix = kotlin_kotlin.$_$.gd;
|
|
27
|
+
var endsWith = kotlin_kotlin.$_$.nc;
|
|
28
28
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
29
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
30
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
29
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
|
|
30
|
+
var NotImplementedError = kotlin_kotlin.$_$.df;
|
|
31
31
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
32
32
|
var JsonNull_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
33
33
|
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
37
37
|
var JsonPrimitive_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j;
|
|
38
38
|
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
39
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
39
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.ra;
|
|
40
40
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
41
41
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
42
42
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
50
50
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
51
51
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
52
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
53
|
-
var toString = kotlin_kotlin.$_$.
|
|
52
|
+
var isInterface = kotlin_kotlin.$_$.la;
|
|
53
|
+
var toString = kotlin_kotlin.$_$.bb;
|
|
54
54
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
55
55
|
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
56
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
57
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
56
|
+
var charSequenceLength = kotlin_kotlin.$_$.m9;
|
|
57
|
+
var charSequenceGet = kotlin_kotlin.$_$.l9;
|
|
58
58
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.y1;
|
|
59
|
-
var Random = kotlin_kotlin.$_$.
|
|
60
|
-
var to = kotlin_kotlin.$_$.
|
|
61
|
-
var plus = kotlin_kotlin.$_$.
|
|
59
|
+
var Random = kotlin_kotlin.$_$.eb;
|
|
60
|
+
var to = kotlin_kotlin.$_$.hg;
|
|
61
|
+
var plus = kotlin_kotlin.$_$.r7;
|
|
62
62
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
|
|
63
|
-
var toList = kotlin_kotlin.$_$.
|
|
63
|
+
var toList = kotlin_kotlin.$_$.l8;
|
|
64
64
|
//endregion
|
|
65
65
|
//region block: pre-declaration
|
|
66
66
|
//endregion
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
var tmp;
|
|
81
81
|
if (ref instanceof Primitive) {
|
|
82
82
|
var tmp_0;
|
|
83
|
-
switch (ref.
|
|
83
|
+
switch (ref.h23_1.q2_1) {
|
|
84
84
|
case 0:
|
|
85
85
|
// Inline function 'kotlin.let' call
|
|
86
86
|
|
|
87
|
-
var this_0 = Companion_instance.
|
|
87
|
+
var this_0 = Companion_instance.g4b('\\w{1,50}').p4b(random);
|
|
88
88
|
// Inline function 'kotlin.contracts.contract' call
|
|
89
89
|
|
|
90
90
|
tmp_0 = JsonPrimitive(this_0);
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
// Inline function 'kotlin.contracts.contract' call
|
|
125
125
|
// Inline function 'community.flock.wirespec.generator.generateReference.<anonymous>' call
|
|
126
126
|
var it = resolveReference(_this__u8e3s4, ref);
|
|
127
|
-
tmp = ref.
|
|
127
|
+
tmp = ref.v22_1 ? generateIterator(_this__u8e3s4, it, random) : generateObject(_this__u8e3s4, it, random);
|
|
128
128
|
} else {
|
|
129
129
|
if (ref instanceof Unit) {
|
|
130
130
|
tmp = JsonNull_getInstance();
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
while (tmp0_iterator_0.h()) {
|
|
204
204
|
var element_0 = tmp0_iterator_0.i();
|
|
205
205
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
206
|
-
if (element_0.
|
|
206
|
+
if (element_0.w2d().x22_1 === type.b1()) {
|
|
207
207
|
tmp$ret$3 = element_0;
|
|
208
208
|
break $l$block;
|
|
209
209
|
}
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
var typeSeed = random.ce();
|
|
228
228
|
// Inline function 'kotlin.let' call
|
|
229
229
|
// Inline function 'kotlin.collections.fold' call
|
|
230
|
-
var this_0 = def.
|
|
230
|
+
var this_0 = def.a23_1.o25_1;
|
|
231
231
|
var accumulator = emptyMap();
|
|
232
232
|
var tmp0_iterator = this_0.g();
|
|
233
233
|
while (tmp0_iterator.h()) {
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
// Inline function 'kotlin.let' call
|
|
238
238
|
// Inline function 'kotlin.contracts.contract' call
|
|
239
239
|
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>.<anonymous>.<anonymous>' call
|
|
240
|
-
var value = element.
|
|
240
|
+
var value = element.h24_1.x22_1;
|
|
241
241
|
// Inline function 'kotlin.text.sumOf' call
|
|
242
242
|
var sum = 0;
|
|
243
243
|
var inductionVariable = 0;
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
}
|
|
252
252
|
var fieldSeed = typeSeed + sum | 0;
|
|
253
253
|
var fieldRandom = Random(fieldSeed);
|
|
254
|
-
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.
|
|
254
|
+
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.i24_1, fieldRandom)));
|
|
255
255
|
}
|
|
256
256
|
var this_1 = accumulator;
|
|
257
257
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -259,27 +259,27 @@
|
|
|
259
259
|
}
|
|
260
260
|
function generateRefined(def, random) {
|
|
261
261
|
// Inline function 'kotlin.let' call
|
|
262
|
-
var this_0 = randomRegex(def.
|
|
262
|
+
var this_0 = randomRegex(def.b25_1.r25_1, random);
|
|
263
263
|
// Inline function 'kotlin.contracts.contract' call
|
|
264
264
|
return JsonPrimitive(this_0);
|
|
265
265
|
}
|
|
266
266
|
function generateEnum(def, random) {
|
|
267
267
|
// Inline function 'kotlin.let' call
|
|
268
268
|
// Inline function 'kotlin.let' call
|
|
269
|
-
var this_0 = random.qf(def.
|
|
269
|
+
var this_0 = random.qf(def.e25_1.j());
|
|
270
270
|
// Inline function 'kotlin.contracts.contract' call
|
|
271
|
-
var this_1 = toList(def.
|
|
271
|
+
var this_1 = toList(def.e25_1).k(this_0);
|
|
272
272
|
// Inline function 'kotlin.contracts.contract' call
|
|
273
273
|
return JsonPrimitive(this_1);
|
|
274
274
|
}
|
|
275
275
|
function generateUnion(_this__u8e3s4, def, random) {
|
|
276
276
|
// Inline function 'kotlin.let' call
|
|
277
277
|
// Inline function 'kotlin.let' call
|
|
278
|
-
var this_0 = random.qf(def.
|
|
278
|
+
var this_0 = random.qf(def.t22_1.j());
|
|
279
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
280
280
|
// Inline function 'kotlin.contracts.contract' call
|
|
281
281
|
// Inline function 'community.flock.wirespec.generator.generateUnion.<anonymous>' call
|
|
282
|
-
var it = toList(def.
|
|
282
|
+
var it = toList(def.t22_1).k(this_0);
|
|
283
283
|
return generate_0(_this__u8e3s4, it, random);
|
|
284
284
|
}
|
|
285
285
|
function randomRegex(regex, random) {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
var endIndex = regex.length - 2 | 0;
|
|
289
289
|
// Inline function 'kotlin.js.asDynamic' call
|
|
290
290
|
var tmp$ret$1 = regex.substring(1, endIndex);
|
|
291
|
-
return tmp.
|
|
291
|
+
return tmp.g4b(tmp$ret$1).p4b(random);
|
|
292
292
|
}
|
|
293
293
|
//region block: exports
|
|
294
294
|
_.$_$ = _.$_$ || {};
|