@flock/wirespec 0.14.10 → 0.14.11
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/clikt-clikt.mjs +1150 -1150
- package/colormath-root-colormath.mjs +424 -424
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1859 -1859
- package/mordant-mordant.mjs +1619 -1619
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1298 -1359
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +292 -292
- package/wirespec-src-converter-avro.mjs +289 -289
- package/wirespec-src-converter-openapi.mjs +268 -268
- package/wirespec-src-plugin-arguments.mjs +131 -131
- package/wirespec-src-plugin-cli.mjs +126 -169
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.mjs +14 -14
- package/wirespec-src-tools-generator.mjs +13 -13
|
@@ -97,7 +97,7 @@ function generateReference(_this__u8e3s4, ref, random) {
|
|
|
97
97
|
} else {
|
|
98
98
|
// Inline function 'kotlin.let' call
|
|
99
99
|
// Inline function 'community.flock.wirespec.generator.generateReference.stub_for_inlining' call
|
|
100
|
-
var p0_2 = Companion_instance.
|
|
100
|
+
var p0_2 = Companion_instance.o4e('\\w{1,50}').x4e(random);
|
|
101
101
|
tmp_0 = JsonPrimitive(p0_2);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -144,9 +144,9 @@ function generateIterator(_this__u8e3s4, def, random) {
|
|
|
144
144
|
}
|
|
145
145
|
function resolveReference(_this__u8e3s4, type) {
|
|
146
146
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
147
|
-
var this_0 = _this__u8e3s4.
|
|
147
|
+
var this_0 = _this__u8e3s4.a2a_1;
|
|
148
148
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
149
|
-
var tmp = this_0.uk_1.
|
|
149
|
+
var tmp = this_0.uk_1.e27_1.sk();
|
|
150
150
|
// Inline function 'kotlin.collections.flatMap' call
|
|
151
151
|
var tmp0 = this_0.vk_1;
|
|
152
152
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -155,7 +155,7 @@ function resolveReference(_this__u8e3s4, type) {
|
|
|
155
155
|
while (_iterator__ex2g4s.h()) {
|
|
156
156
|
var element = _iterator__ex2g4s.i();
|
|
157
157
|
// Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
|
|
158
|
-
var list = element.
|
|
158
|
+
var list = element.e27_1;
|
|
159
159
|
addAll(destination, list);
|
|
160
160
|
}
|
|
161
161
|
// Inline function 'kotlin.collections.find' call
|
|
@@ -217,7 +217,7 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
217
217
|
// Inline function 'kotlin.let' call
|
|
218
218
|
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>' call
|
|
219
219
|
var typeSeed = random.me();
|
|
220
|
-
var tmp0 = def.
|
|
220
|
+
var tmp0 = def.z26_1.i27_1;
|
|
221
221
|
// Inline function 'kotlin.collections.fold' call
|
|
222
222
|
var accumulator = emptyMap();
|
|
223
223
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -227,7 +227,7 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
227
227
|
var acc = accumulator;
|
|
228
228
|
// Inline function 'kotlin.let' call
|
|
229
229
|
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>.<anonymous>.<anonymous>' call
|
|
230
|
-
var value = element.
|
|
230
|
+
var value = element.t25_1.b1();
|
|
231
231
|
// Inline function 'kotlin.text.sumOf' call
|
|
232
232
|
var sum = 0;
|
|
233
233
|
var inductionVariable = 0;
|
|
@@ -241,7 +241,7 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
241
241
|
}
|
|
242
242
|
var fieldSeed = typeSeed + sum | 0;
|
|
243
243
|
var fieldRandom = Random(fieldSeed);
|
|
244
|
-
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.
|
|
244
|
+
accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.u25_1, fieldRandom)));
|
|
245
245
|
}
|
|
246
246
|
// Inline function 'kotlin.let' call
|
|
247
247
|
// Inline function 'community.flock.wirespec.generator.generateType.<anonymous>.stub_for_inlining' call
|
|
@@ -251,25 +251,25 @@ function generateType(_this__u8e3s4, def, random) {
|
|
|
251
251
|
function generateRefined(def, random) {
|
|
252
252
|
// Inline function 'kotlin.let' call
|
|
253
253
|
// Inline function 'community.flock.wirespec.generator.generateRefined.stub_for_inlining' call
|
|
254
|
-
var p0 = randomRegex(def.
|
|
254
|
+
var p0 = randomRegex(def.m27_1.o27_1, random);
|
|
255
255
|
return JsonPrimitive(p0);
|
|
256
256
|
}
|
|
257
257
|
function generateEnum(def, random) {
|
|
258
|
-
var tmp0 = random.ag(def.
|
|
258
|
+
var tmp0 = random.ag(def.t27_1.j());
|
|
259
259
|
// Inline function 'kotlin.let' call
|
|
260
260
|
// Inline function 'community.flock.wirespec.generator.generateEnum.stub_for_inlining' call
|
|
261
261
|
// Inline function 'kotlin.let' call
|
|
262
262
|
// Inline function 'community.flock.wirespec.generator.generateEnum.stub_for_inlining' call
|
|
263
|
-
var p0 = toList(def.
|
|
263
|
+
var p0 = toList(def.t27_1).k(tmp0);
|
|
264
264
|
return JsonPrimitive(p0);
|
|
265
265
|
}
|
|
266
266
|
function generateUnion(_this__u8e3s4, def, random) {
|
|
267
|
-
var tmp0 = random.ag(def.
|
|
267
|
+
var tmp0 = random.ag(def.h27_1.j());
|
|
268
268
|
// Inline function 'kotlin.let' call
|
|
269
269
|
// Inline function 'community.flock.wirespec.generator.generateUnion.stub_for_inlining' call
|
|
270
270
|
// Inline function 'kotlin.let' call
|
|
271
271
|
// Inline function 'community.flock.wirespec.generator.generateUnion.<anonymous>' call
|
|
272
|
-
var it = toList(def.
|
|
272
|
+
var it = toList(def.h27_1).k(tmp0);
|
|
273
273
|
return generate_0(_this__u8e3s4, it, random);
|
|
274
274
|
}
|
|
275
275
|
function randomRegex(regex, random) {
|
|
@@ -278,7 +278,7 @@ function randomRegex(regex, random) {
|
|
|
278
278
|
var endIndex = regex.length - 2 | 0;
|
|
279
279
|
// Inline function 'kotlin.js.asDynamic' call
|
|
280
280
|
var tmp$ret$1 = regex.substring(1, endIndex);
|
|
281
|
-
return tmp.
|
|
281
|
+
return tmp.o4e(tmp$ret$1).x4e(random);
|
|
282
282
|
}
|
|
283
283
|
//region block: exports
|
|
284
284
|
export {
|