@donezone/cli 0.1.38 → 0.1.39
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/dist/index.js +96 -87
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25999,6 +25999,7 @@ var {
|
|
|
25999
25999
|
Option,
|
|
26000
26000
|
Help
|
|
26001
26001
|
} = import__.default;
|
|
26002
|
+
|
|
26002
26003
|
// ../../node_modules/@noble/hashes/esm/_assert.js
|
|
26003
26004
|
function bytes(b, ...lengths) {
|
|
26004
26005
|
if (!(b instanceof Uint8Array))
|
|
@@ -26448,7 +26449,11 @@ class DoneBackendClient {
|
|
|
26448
26449
|
fetchImpl;
|
|
26449
26450
|
constructor(config) {
|
|
26450
26451
|
this.baseUrl = config.baseUrl.replace(/\/$/, "");
|
|
26451
|
-
|
|
26452
|
+
const candidate = config.fetch ?? fetch;
|
|
26453
|
+
if (typeof candidate !== "function") {
|
|
26454
|
+
throw new Error("fetch implementation is not available; configure Done with a fetch implementation via Done.config");
|
|
26455
|
+
}
|
|
26456
|
+
this.fetchImpl = candidate;
|
|
26452
26457
|
}
|
|
26453
26458
|
contract(address) {
|
|
26454
26459
|
return new DoneContractHandle(this, address);
|
|
@@ -26604,10 +26609,14 @@ function buildEventsUrl(baseUrl, eventsPath) {
|
|
|
26604
26609
|
return `${baseUrl.replace(/\/$/, "")}${normalized}`;
|
|
26605
26610
|
}
|
|
26606
26611
|
function resolveFetch(fn) {
|
|
26607
|
-
if (fn)
|
|
26608
|
-
return fn
|
|
26609
|
-
|
|
26612
|
+
if (fn) {
|
|
26613
|
+
return typeof fn === "function" ? fn : (() => {
|
|
26614
|
+
throw new Error("provided fetch implementation is not a function");
|
|
26615
|
+
})();
|
|
26616
|
+
}
|
|
26617
|
+
if (typeof fetch === "function") {
|
|
26610
26618
|
return fetch.bind(globalThis);
|
|
26619
|
+
}
|
|
26611
26620
|
throw new Error("global fetch is not available; configure Done with a fetch implementation via Done.config");
|
|
26612
26621
|
}
|
|
26613
26622
|
function resolveEventSource(factory) {
|
|
@@ -28763,26 +28772,26 @@ function UnionCreate(T, options) {
|
|
|
28763
28772
|
}
|
|
28764
28773
|
|
|
28765
28774
|
// ../../node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
|
|
28766
|
-
function IsUnionOptional(
|
|
28767
|
-
return
|
|
28775
|
+
function IsUnionOptional(types2) {
|
|
28776
|
+
return types2.some((type) => IsOptional(type));
|
|
28768
28777
|
}
|
|
28769
|
-
function RemoveOptionalFromRest(
|
|
28770
|
-
return
|
|
28778
|
+
function RemoveOptionalFromRest(types2) {
|
|
28779
|
+
return types2.map((left) => IsOptional(left) ? RemoveOptionalFromType(left) : left);
|
|
28771
28780
|
}
|
|
28772
28781
|
function RemoveOptionalFromType(T) {
|
|
28773
28782
|
return Discard(T, [OptionalKind]);
|
|
28774
28783
|
}
|
|
28775
|
-
function ResolveUnion(
|
|
28776
|
-
const isOptional = IsUnionOptional(
|
|
28777
|
-
return isOptional ? Optional(UnionCreate(RemoveOptionalFromRest(
|
|
28784
|
+
function ResolveUnion(types2, options) {
|
|
28785
|
+
const isOptional = IsUnionOptional(types2);
|
|
28786
|
+
return isOptional ? Optional(UnionCreate(RemoveOptionalFromRest(types2), options)) : UnionCreate(RemoveOptionalFromRest(types2), options);
|
|
28778
28787
|
}
|
|
28779
28788
|
function UnionEvaluated(T, options) {
|
|
28780
28789
|
return T.length === 1 ? CreateType(T[0], options) : T.length === 0 ? Never(options) : ResolveUnion(T, options);
|
|
28781
28790
|
}
|
|
28782
28791
|
|
|
28783
28792
|
// ../../node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
|
|
28784
|
-
function Union(
|
|
28785
|
-
return
|
|
28793
|
+
function Union(types2, options) {
|
|
28794
|
+
return types2.length === 0 ? Never(options) : types2.length === 1 ? CreateType(types2[0], options) : UnionCreate(types2, options);
|
|
28786
28795
|
}
|
|
28787
28796
|
|
|
28788
28797
|
// ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
|
|
@@ -29066,9 +29075,9 @@ function FromTemplateLiteral(templateLiteral) {
|
|
|
29066
29075
|
const keys = TemplateLiteralGenerate(templateLiteral);
|
|
29067
29076
|
return keys.map((key) => key.toString());
|
|
29068
29077
|
}
|
|
29069
|
-
function FromUnion2(
|
|
29078
|
+
function FromUnion2(types2) {
|
|
29070
29079
|
const result = [];
|
|
29071
|
-
for (const type of
|
|
29080
|
+
for (const type of types2)
|
|
29072
29081
|
result.push(...IndexPropertyKeys(type));
|
|
29073
29082
|
return result;
|
|
29074
29083
|
}
|
|
@@ -29096,23 +29105,23 @@ function IndexFromMappedResult(type, mappedResult, options) {
|
|
|
29096
29105
|
}
|
|
29097
29106
|
|
|
29098
29107
|
// ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
|
|
29099
|
-
function FromRest(
|
|
29100
|
-
return
|
|
29108
|
+
function FromRest(types2, key) {
|
|
29109
|
+
return types2.map((type) => IndexFromPropertyKey(type, key));
|
|
29101
29110
|
}
|
|
29102
|
-
function FromIntersectRest(
|
|
29103
|
-
return
|
|
29111
|
+
function FromIntersectRest(types2) {
|
|
29112
|
+
return types2.filter((type) => !IsNever(type));
|
|
29104
29113
|
}
|
|
29105
|
-
function FromIntersect(
|
|
29106
|
-
return IntersectEvaluated(FromIntersectRest(FromRest(
|
|
29114
|
+
function FromIntersect(types2, key) {
|
|
29115
|
+
return IntersectEvaluated(FromIntersectRest(FromRest(types2, key)));
|
|
29107
29116
|
}
|
|
29108
|
-
function FromUnionRest(
|
|
29109
|
-
return
|
|
29117
|
+
function FromUnionRest(types2) {
|
|
29118
|
+
return types2.some((L) => IsNever(L)) ? [] : types2;
|
|
29110
29119
|
}
|
|
29111
|
-
function FromUnion3(
|
|
29112
|
-
return UnionEvaluated(FromUnionRest(FromRest(
|
|
29120
|
+
function FromUnion3(types2, key) {
|
|
29121
|
+
return UnionEvaluated(FromUnionRest(FromRest(types2, key)));
|
|
29113
29122
|
}
|
|
29114
|
-
function FromTuple(
|
|
29115
|
-
return key in
|
|
29123
|
+
function FromTuple(types2, key) {
|
|
29124
|
+
return key in types2 ? types2[key] : key === "[number]" ? UnionEvaluated(types2) : Never();
|
|
29116
29125
|
}
|
|
29117
29126
|
function FromArray(type, key) {
|
|
29118
29127
|
return key === "[number]" ? type : Never();
|
|
@@ -29212,8 +29221,8 @@ function ReadonlyFromMappedResult(R, F) {
|
|
|
29212
29221
|
}
|
|
29213
29222
|
|
|
29214
29223
|
// ../../node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
|
|
29215
|
-
function Tuple(
|
|
29216
|
-
return CreateType(
|
|
29224
|
+
function Tuple(types2, options) {
|
|
29225
|
+
return CreateType(types2.length > 0 ? { [Kind]: "Tuple", type: "array", items: types2, additionalItems: false, minItems: types2.length, maxItems: types2.length } : { [Kind]: "Tuple", type: "array", minItems: types2.length, maxItems: types2.length }, options);
|
|
29217
29226
|
}
|
|
29218
29227
|
|
|
29219
29228
|
// ../../node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
|
|
@@ -29300,37 +29309,37 @@ function IntersectCreate(T, options = {}) {
|
|
|
29300
29309
|
}
|
|
29301
29310
|
|
|
29302
29311
|
// ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
|
|
29303
|
-
function IsIntersectOptional(
|
|
29304
|
-
return
|
|
29312
|
+
function IsIntersectOptional(types2) {
|
|
29313
|
+
return types2.every((left) => IsOptional(left));
|
|
29305
29314
|
}
|
|
29306
29315
|
function RemoveOptionalFromType2(type) {
|
|
29307
29316
|
return Discard(type, [OptionalKind]);
|
|
29308
29317
|
}
|
|
29309
|
-
function RemoveOptionalFromRest2(
|
|
29310
|
-
return
|
|
29318
|
+
function RemoveOptionalFromRest2(types2) {
|
|
29319
|
+
return types2.map((left) => IsOptional(left) ? RemoveOptionalFromType2(left) : left);
|
|
29311
29320
|
}
|
|
29312
|
-
function ResolveIntersect(
|
|
29313
|
-
return IsIntersectOptional(
|
|
29321
|
+
function ResolveIntersect(types2, options) {
|
|
29322
|
+
return IsIntersectOptional(types2) ? Optional(IntersectCreate(RemoveOptionalFromRest2(types2), options)) : IntersectCreate(RemoveOptionalFromRest2(types2), options);
|
|
29314
29323
|
}
|
|
29315
|
-
function IntersectEvaluated(
|
|
29316
|
-
if (
|
|
29317
|
-
return CreateType(
|
|
29318
|
-
if (
|
|
29324
|
+
function IntersectEvaluated(types2, options = {}) {
|
|
29325
|
+
if (types2.length === 1)
|
|
29326
|
+
return CreateType(types2[0], options);
|
|
29327
|
+
if (types2.length === 0)
|
|
29319
29328
|
return Never(options);
|
|
29320
|
-
if (
|
|
29329
|
+
if (types2.some((schema) => IsTransform(schema)))
|
|
29321
29330
|
throw new Error("Cannot intersect transform types");
|
|
29322
|
-
return ResolveIntersect(
|
|
29331
|
+
return ResolveIntersect(types2, options);
|
|
29323
29332
|
}
|
|
29324
29333
|
|
|
29325
29334
|
// ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
|
|
29326
|
-
function Intersect(
|
|
29327
|
-
if (
|
|
29328
|
-
return CreateType(
|
|
29329
|
-
if (
|
|
29335
|
+
function Intersect(types2, options) {
|
|
29336
|
+
if (types2.length === 1)
|
|
29337
|
+
return CreateType(types2[0], options);
|
|
29338
|
+
if (types2.length === 0)
|
|
29330
29339
|
return Never(options);
|
|
29331
|
-
if (
|
|
29340
|
+
if (types2.some((schema) => IsTransform(schema)))
|
|
29332
29341
|
throw new Error("Cannot intersect transform types");
|
|
29333
|
-
return IntersectCreate(
|
|
29342
|
+
return IntersectCreate(types2, options);
|
|
29334
29343
|
}
|
|
29335
29344
|
|
|
29336
29345
|
// ../../node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
|
|
@@ -29348,41 +29357,41 @@ function FromComputed(target, parameters) {
|
|
|
29348
29357
|
function FromRef($ref) {
|
|
29349
29358
|
return Computed("Awaited", [Ref($ref)]);
|
|
29350
29359
|
}
|
|
29351
|
-
function FromIntersect2(
|
|
29352
|
-
return Intersect(FromRest3(
|
|
29360
|
+
function FromIntersect2(types2) {
|
|
29361
|
+
return Intersect(FromRest3(types2));
|
|
29353
29362
|
}
|
|
29354
|
-
function FromUnion4(
|
|
29355
|
-
return Union(FromRest3(
|
|
29363
|
+
function FromUnion4(types2) {
|
|
29364
|
+
return Union(FromRest3(types2));
|
|
29356
29365
|
}
|
|
29357
29366
|
function FromPromise(type) {
|
|
29358
29367
|
return Awaited(type);
|
|
29359
29368
|
}
|
|
29360
|
-
function FromRest3(
|
|
29361
|
-
return
|
|
29369
|
+
function FromRest3(types2) {
|
|
29370
|
+
return types2.map((type) => Awaited(type));
|
|
29362
29371
|
}
|
|
29363
29372
|
function Awaited(type, options) {
|
|
29364
29373
|
return CreateType(IsComputed(type) ? FromComputed(type.target, type.parameters) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsUnion(type) ? FromUnion4(type.anyOf) : IsPromise2(type) ? FromPromise(type.item) : IsRef(type) ? FromRef(type.$ref) : type, options);
|
|
29365
29374
|
}
|
|
29366
29375
|
|
|
29367
29376
|
// ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
|
|
29368
|
-
function FromRest4(
|
|
29377
|
+
function FromRest4(types2) {
|
|
29369
29378
|
const result = [];
|
|
29370
|
-
for (const L of
|
|
29379
|
+
for (const L of types2)
|
|
29371
29380
|
result.push(KeyOfPropertyKeys(L));
|
|
29372
29381
|
return result;
|
|
29373
29382
|
}
|
|
29374
|
-
function FromIntersect3(
|
|
29375
|
-
const propertyKeysArray = FromRest4(
|
|
29383
|
+
function FromIntersect3(types2) {
|
|
29384
|
+
const propertyKeysArray = FromRest4(types2);
|
|
29376
29385
|
const propertyKeys = SetUnionMany(propertyKeysArray);
|
|
29377
29386
|
return propertyKeys;
|
|
29378
29387
|
}
|
|
29379
|
-
function FromUnion5(
|
|
29380
|
-
const propertyKeysArray = FromRest4(
|
|
29388
|
+
function FromUnion5(types2) {
|
|
29389
|
+
const propertyKeysArray = FromRest4(types2);
|
|
29381
29390
|
const propertyKeys = SetIntersectMany(propertyKeysArray);
|
|
29382
29391
|
return propertyKeys;
|
|
29383
29392
|
}
|
|
29384
|
-
function FromTuple2(
|
|
29385
|
-
return
|
|
29393
|
+
function FromTuple2(types2) {
|
|
29394
|
+
return types2.map((_, indexer) => indexer.toString());
|
|
29386
29395
|
}
|
|
29387
29396
|
function FromArray2(_) {
|
|
29388
29397
|
return ["[number]"];
|
|
@@ -30046,8 +30055,8 @@ function FromProperties11(args, properties) {
|
|
|
30046
30055
|
return { ...result, [key]: FromProperty2(args, properties[key]) };
|
|
30047
30056
|
}, {});
|
|
30048
30057
|
}
|
|
30049
|
-
function FromTypes(args,
|
|
30050
|
-
return
|
|
30058
|
+
function FromTypes(args, types2) {
|
|
30059
|
+
return types2.map((type) => FromType(args, type));
|
|
30051
30060
|
}
|
|
30052
30061
|
function FromType(args, type) {
|
|
30053
30062
|
return IsConstructor(type) ? FromConstructor2(args, type) : IsFunction3(type) ? FromFunction2(args, type) : IsIntersect(type) ? FromIntersect5(args, type) : IsUnion(type) ? FromUnion7(args, type) : IsTuple(type) ? FromTuple4(args, type) : IsArray3(type) ? FromArray5(args, type) : IsAsyncIterator3(type) ? FromAsyncIterator2(args, type) : IsIterator3(type) ? FromIterator2(args, type) : IsPromise2(type) ? FromPromise3(args, type) : IsObject3(type) ? FromObject2(args, type) : IsRecord(type) ? FromRecord2(args, type) : IsArgument(type) ? FromArgument(args, type) : type;
|
|
@@ -30153,11 +30162,11 @@ function OmitFromMappedResult(mappedResult, propertyKeys, options) {
|
|
|
30153
30162
|
}
|
|
30154
30163
|
|
|
30155
30164
|
// ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
|
|
30156
|
-
function FromIntersect6(
|
|
30157
|
-
return
|
|
30165
|
+
function FromIntersect6(types2, propertyKeys) {
|
|
30166
|
+
return types2.map((type) => OmitResolve(type, propertyKeys));
|
|
30158
30167
|
}
|
|
30159
|
-
function FromUnion8(
|
|
30160
|
-
return
|
|
30168
|
+
function FromUnion8(types2, propertyKeys) {
|
|
30169
|
+
return types2.map((type) => OmitResolve(type, propertyKeys));
|
|
30161
30170
|
}
|
|
30162
30171
|
function FromProperty3(properties, key) {
|
|
30163
30172
|
const { [key]: _, ...R } = properties;
|
|
@@ -30219,11 +30228,11 @@ function PickFromMappedResult(mappedResult, propertyKeys, options) {
|
|
|
30219
30228
|
}
|
|
30220
30229
|
|
|
30221
30230
|
// ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
|
|
30222
|
-
function FromIntersect7(
|
|
30223
|
-
return
|
|
30231
|
+
function FromIntersect7(types2, propertyKeys) {
|
|
30232
|
+
return types2.map((type) => PickResolve(type, propertyKeys));
|
|
30224
30233
|
}
|
|
30225
|
-
function FromUnion9(
|
|
30226
|
-
return
|
|
30234
|
+
function FromUnion9(types2, propertyKeys) {
|
|
30235
|
+
return types2.map((type) => PickResolve(type, propertyKeys));
|
|
30227
30236
|
}
|
|
30228
30237
|
function FromProperties15(properties, propertyKeys) {
|
|
30229
30238
|
const result = {};
|
|
@@ -30289,8 +30298,8 @@ function FromObject5(type, properties) {
|
|
|
30289
30298
|
const mappedProperties = FromProperties16(properties);
|
|
30290
30299
|
return Object2(mappedProperties, options);
|
|
30291
30300
|
}
|
|
30292
|
-
function FromRest6(
|
|
30293
|
-
return
|
|
30301
|
+
function FromRest6(types2) {
|
|
30302
|
+
return types2.map((type) => PartialResolve(type));
|
|
30294
30303
|
}
|
|
30295
30304
|
function PartialResolve(type) {
|
|
30296
30305
|
return IsComputed(type) ? FromComputed3(type.target, type.parameters) : IsRef(type) ? FromRef3(type.$ref) : IsIntersect(type) ? Intersect(FromRest6(type.allOf)) : IsUnion(type) ? Union(FromRest6(type.anyOf)) : IsObject3(type) ? FromObject5(type, type.properties) : IsBigInt3(type) ? type : IsBoolean3(type) ? type : IsInteger2(type) ? type : IsLiteral(type) ? type : IsNull3(type) ? type : IsNumber3(type) ? type : IsString3(type) ? type : IsSymbol3(type) ? type : IsUndefined3(type) ? type : Object2({});
|
|
@@ -30336,8 +30345,8 @@ function FromObject6(type, properties) {
|
|
|
30336
30345
|
const mappedProperties = FromProperties18(properties);
|
|
30337
30346
|
return Object2(mappedProperties, options);
|
|
30338
30347
|
}
|
|
30339
|
-
function FromRest7(
|
|
30340
|
-
return
|
|
30348
|
+
function FromRest7(types2) {
|
|
30349
|
+
return types2.map((type) => RequiredResolve(type));
|
|
30341
30350
|
}
|
|
30342
30351
|
function RequiredResolve(type) {
|
|
30343
30352
|
return IsComputed(type) ? FromComputed4(type.target, type.parameters) : IsRef(type) ? FromRef4(type.$ref) : IsIntersect(type) ? Intersect(FromRest7(type.allOf)) : IsUnion(type) ? Union(FromRest7(type.anyOf)) : IsObject3(type) ? FromObject6(type, type.properties) : IsBigInt3(type) ? type : IsBoolean3(type) ? type : IsInteger2(type) ? type : IsLiteral(type) ? type : IsNull3(type) ? type : IsNumber3(type) ? type : IsString3(type) ? type : IsSymbol3(type) ? type : IsUndefined3(type) ? type : Object2({});
|
|
@@ -30366,8 +30375,8 @@ function RequiredFromMappedResult(R, options) {
|
|
|
30366
30375
|
}
|
|
30367
30376
|
|
|
30368
30377
|
// ../../node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
|
|
30369
|
-
function DereferenceParameters(moduleProperties,
|
|
30370
|
-
return
|
|
30378
|
+
function DereferenceParameters(moduleProperties, types2) {
|
|
30379
|
+
return types2.map((type) => {
|
|
30371
30380
|
return IsRef(type) ? Dereference(moduleProperties, type.$ref) : FromType2(moduleProperties, type);
|
|
30372
30381
|
});
|
|
30373
30382
|
}
|
|
@@ -30411,8 +30420,8 @@ function FromConstructor3(moduleProperties, parameters, instanceType) {
|
|
|
30411
30420
|
function FromFunction3(moduleProperties, parameters, returnType) {
|
|
30412
30421
|
return Function2(FromTypes2(moduleProperties, parameters), FromType2(moduleProperties, returnType));
|
|
30413
30422
|
}
|
|
30414
|
-
function FromIntersect8(moduleProperties,
|
|
30415
|
-
return Intersect(FromTypes2(moduleProperties,
|
|
30423
|
+
function FromIntersect8(moduleProperties, types2) {
|
|
30424
|
+
return Intersect(FromTypes2(moduleProperties, types2));
|
|
30416
30425
|
}
|
|
30417
30426
|
function FromIterator3(moduleProperties, type) {
|
|
30418
30427
|
return Iterator(FromType2(moduleProperties, type));
|
|
@@ -30431,14 +30440,14 @@ function FromRecord3(moduleProperties, type) {
|
|
|
30431
30440
|
function FromTransform(moduleProperties, transform) {
|
|
30432
30441
|
return IsRef(transform) ? { ...Dereference(moduleProperties, transform.$ref), [TransformKind]: transform[TransformKind] } : transform;
|
|
30433
30442
|
}
|
|
30434
|
-
function FromTuple5(moduleProperties,
|
|
30435
|
-
return Tuple(FromTypes2(moduleProperties,
|
|
30443
|
+
function FromTuple5(moduleProperties, types2) {
|
|
30444
|
+
return Tuple(FromTypes2(moduleProperties, types2));
|
|
30436
30445
|
}
|
|
30437
|
-
function FromUnion10(moduleProperties,
|
|
30438
|
-
return Union(FromTypes2(moduleProperties,
|
|
30446
|
+
function FromUnion10(moduleProperties, types2) {
|
|
30447
|
+
return Union(FromTypes2(moduleProperties, types2));
|
|
30439
30448
|
}
|
|
30440
|
-
function FromTypes2(moduleProperties,
|
|
30441
|
-
return
|
|
30449
|
+
function FromTypes2(moduleProperties, types2) {
|
|
30450
|
+
return types2.map((type) => FromType2(moduleProperties, type));
|
|
30442
30451
|
}
|
|
30443
30452
|
function FromType2(moduleProperties, type) {
|
|
30444
30453
|
return IsOptional(type) ? CreateType(FromType2(moduleProperties, Discard(type, [OptionalKind])), type) : IsReadonly(type) ? CreateType(FromType2(moduleProperties, Discard(type, [ReadonlyKind])), type) : IsTransform(type) ? CreateType(FromTransform(moduleProperties, type), type) : IsArray3(type) ? CreateType(FromArray6(moduleProperties, type.items), type) : IsAsyncIterator3(type) ? CreateType(FromAsyncIterator3(moduleProperties, type.items), type) : IsComputed(type) ? CreateType(FromComputed5(moduleProperties, type.target, type.parameters)) : IsConstructor(type) ? CreateType(FromConstructor3(moduleProperties, type.parameters, type.returns), type) : IsFunction3(type) ? CreateType(FromFunction3(moduleProperties, type.parameters, type.returns), type) : IsIntersect(type) ? CreateType(FromIntersect8(moduleProperties, type.allOf), type) : IsIterator3(type) ? CreateType(FromIterator3(moduleProperties, type.items), type) : IsObject3(type) ? CreateType(FromObject7(moduleProperties, type.properties), type) : IsRecord(type) ? CreateType(FromRecord3(moduleProperties, type)) : IsTuple(type) ? CreateType(FromTuple5(moduleProperties, type.items || []), type) : IsUnion(type) ? CreateType(FromUnion10(moduleProperties, type.anyOf), type) : type;
|
|
@@ -41858,8 +41867,8 @@ var _Elysia = class _Elysia2 {
|
|
|
41858
41867
|
this.definitions.error = store;
|
|
41859
41868
|
break;
|
|
41860
41869
|
}
|
|
41861
|
-
},
|
|
41862
|
-
for (const type2 of
|
|
41870
|
+
}, types2 = Array.isArray(type) ? type : [type];
|
|
41871
|
+
for (const type2 of types2.some((x) => x === "all") ? ["decorator", "state", "model", "error"] : types2)
|
|
41863
41872
|
remap(type2);
|
|
41864
41873
|
return this;
|
|
41865
41874
|
}
|