@powerlines/deepkit 0.7.5 → 0.7.6

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.
Files changed (45) hide show
  1. package/dist/capnp.d.mts +2 -2
  2. package/dist/{compiler-BUUdv7wG.mjs → compiler-CoBHJbw6.mjs} +2 -2
  3. package/dist/{compiler-BzOZmhWO.d.mts → compiler-DLeSXEon.d.mts} +3 -3
  4. package/dist/{compiler-DTp8Jvav.cjs → compiler-TYAnj4GK.cjs} +1 -1
  5. package/dist/{config-B2hS4_tR.d.mts → config-SjpQNPJf.d.mts} +1 -1
  6. package/dist/{config-CuXC21KA.mjs → config-ldWMxkkM.mjs} +1 -1
  7. package/dist/esbuild-plugin.cjs +47 -2
  8. package/dist/esbuild-plugin.d.mts +1 -1
  9. package/dist/esbuild-plugin.mjs +47 -2
  10. package/dist/index.cjs +2 -2
  11. package/dist/index.mjs +2 -2
  12. package/dist/reflect-type.cjs +1 -1
  13. package/dist/reflect-type.d.mts +1 -1
  14. package/dist/reflect-type.mjs +1 -1
  15. package/dist/{reflection-Bhe75GyI.d.mts → reflection-lA4jBKKP.d.mts} +1 -1
  16. package/dist/transformer.cjs +1 -1
  17. package/dist/transformer.d.mts +1 -1
  18. package/dist/transformer.mjs +1 -1
  19. package/dist/transpile.d.mts +1 -1
  20. package/dist/{type-DfwJ6GTs.d.mts → type-C4eOl66J.d.mts} +1 -1
  21. package/dist/{type-BDuj5wg2.d.mts → type-SyDc32SL.d.mts} +3 -3
  22. package/dist/{types-BO3PJV5p.d.mts → types-DYGcIrk3.d.mts} +1 -1
  23. package/dist/types.d.mts +2 -2
  24. package/dist/utilities.cjs +116 -8
  25. package/dist/utilities.d.mts +1 -1
  26. package/dist/utilities.mjs +110 -2
  27. package/dist/vendor/core.d.mts +1 -1
  28. package/dist/vendor/type-compiler/compiler.cjs +1 -1
  29. package/dist/vendor/type-compiler/compiler.d.mts +1 -1
  30. package/dist/vendor/type-compiler/compiler.mjs +1 -1
  31. package/dist/vendor/type-compiler/config.cjs +1 -1
  32. package/dist/vendor/type-compiler/config.d.mts +1 -1
  33. package/dist/vendor/type-compiler/config.mjs +1 -1
  34. package/dist/vendor/type-compiler/index.cjs +2 -2
  35. package/dist/vendor/type-compiler/index.d.mts +2 -2
  36. package/dist/vendor/type-compiler/index.mjs +2 -2
  37. package/dist/vendor/type-spec.d.mts +1 -1
  38. package/dist/vendor/type.d.mts +2 -2
  39. package/package.json +13 -21
  40. package/dist/esbuild-plugin-BUYqx8_5.cjs +0 -80
  41. package/dist/esbuild-plugin-CRQUmm86.mjs +0 -75
  42. package/dist/utilities-CT_jcB5h.mjs +0 -1483
  43. package/dist/utilities-Dr3TzxMb.cjs +0 -1523
  44. /package/dist/{config-C0OHvihx.d.mts → config-DDRKbv_W.d.mts} +0 -0
  45. /package/dist/{config-GVyELKY1.cjs → config-V3ttv0UZ.cjs} +0 -0
@@ -1,2 +1,2 @@
1
- import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-BzOZmhWO.mjs";
1
+ import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-DLeSXEon.mjs";
2
2
  export { Cache, DeclarationTransformer, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
@@ -1,3 +1,3 @@
1
- import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-BUUdv7wG.mjs";
1
+ import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-CoBHJbw6.mjs";
2
2
 
3
3
  export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_config = require('../../config-GVyELKY1.cjs');
2
+ const require_config = require('../../config-V3ttv0UZ.cjs');
3
3
 
4
4
  exports.defaultExcluded = require_config.defaultExcluded;
5
5
  exports.getConfigResolver = require_config.getConfigResolver;
@@ -1,2 +1,2 @@
1
- import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-B2hS4_tR.mjs";
1
+ import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-SjpQNPJf.mjs";
2
2
  export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
@@ -1,3 +1,3 @@
1
- import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-CuXC21KA.mjs";
1
+ import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-ldWMxkkM.mjs";
2
2
 
3
3
  export { defaultExcluded, getConfigResolver, isObject, parseRawMode, reflectionLevel, reflectionModeMatcher, reflectionModes };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../../chunk-BmvPcxpV.cjs');
3
- const require_compiler = require('../../compiler-DTp8Jvav.cjs');
4
- const require_config = require('../../config-GVyELKY1.cjs');
3
+ const require_compiler = require('../../compiler-TYAnj4GK.cjs');
4
+ const require_config = require('../../config-V3ttv0UZ.cjs');
5
5
  let typescript = require("typescript");
6
6
  typescript = require_chunk.__toESM(typescript);
7
7
 
@@ -1,5 +1,5 @@
1
- import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-B2hS4_tR.mjs";
2
- import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-BzOZmhWO.mjs";
1
+ import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as reflectionLevel, h as parseRawMode, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../../config-SjpQNPJf.mjs";
2
+ import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../../compiler-DLeSXEon.mjs";
3
3
  import ts, { CompilerOptions, SourceFile } from "typescript";
4
4
 
5
5
  //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
@@ -1,5 +1,5 @@
1
- import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-BUUdv7wG.mjs";
2
- import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-CuXC21KA.mjs";
1
+ import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../../compiler-CoBHJbw6.mjs";
2
+ import { a as reflectionLevel, i as parseRawMode, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../../config-ldWMxkkM.mjs";
3
3
  import ts from "typescript";
4
4
 
5
5
  //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
@@ -1,2 +1,2 @@
1
- import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "../type-DfwJ6GTs.mjs";
1
+ import { n as ReflectionOp, r as TypeNumberBrand, t as MappedModifier } from "../type-C4eOl66J.mjs";
2
2
  export { MappedModifier, ReflectionOp, TypeNumberBrand };
@@ -1,3 +1,3 @@
1
- import { $ as resolvePath, $a as TypeParameter, $i as Entity, $n as PositiveNoZero, $o as getMember, $r as serializePropertyOrParameter, $s as primaryKeyAnnotation, $t as ReflectionProperty, A as JSONPartial, Aa as TypeAnnotations, Ai as SerializedTypeTypeParameter, An as AfterDate, Ao as dataAnnotation, Ar as deserializeEmbedded, As as isMember, At as TypedArray, B as ReferenceItemInfo, Ba as TypeEnumMember, Bi as AutoIncrement, Bn as Excludes, Bo as float, Br as getNameExpression, Bs as isRuntime, Bt as typeSettings, C as getPatchSerializeFunction, Ca as ReflectionVisibility, Cc as NumberFields, Ci as SerializedTypeProperty, Cn as encodeOps, Co as assertType, Cr as TypeGuardRegistry, Cs as isDateType, Ct as createClassDecoratorContext, D as validatedDeserialize, Da as SqliteOptions, Di as SerializedTypeTemplateLiteral, Dn as resolveRuntimeType, Do as binaryTypes, Dr as createConverterJSForMember, Ds as isIntegerType, Dt as isDecoratorContext, E as serializeFunction, Ea as SignedBinaryBigInt, Ec as changeSetSymbol, Ei as SerializedTypeRest, En as resolvePacked, Eo as binaryBigIntAnnotation, Er as collapsePath, Es as isIgnore, Et as createPropertyDecoratorContext, F as stringifyUuid, Fa as TypeBoolean, Fi as deserializeType, Fn as BeforeDate, Fo as entityAnnotation, Fr as forwardSetToArray, Fs as isPrimitive, Ft as arrayBufferToBase64, G as getReferenceItemInfo, Ga as TypeLiteral, Gi as BinaryBigIntType, Gn as Maximum, Go as getAnnotations, Gr as getSetTypeToArray, Gs as isTypeIncluded, Gt as genericEqual, H as createReferenceClass, Ha as TypeIndexSignature, Hi as BackReferenceOptions, Hn as ExclusiveMinimum, Ho as float64, Hr as getPartialType, Hs as isSetType, Ht as typedArrayToBuffer, I as uuid, Ia as TypeCallSignature, Ii as serializeType, In as BeforeNow, Io as excludedAnnotation, Ir as getEmbeddedProperty, Is as isPropertyMemberType, It as base64ToArrayBuffer, J as markAsHydrated, Ja as TypeNever, Ji as DatabaseField, Jn as MultipleOf, Jo as getConstructorProperties, Jr as inAccessor, Js as mapNameAnnotation, Jt as ReceiveType, K as isReferenceHydrated, Ka as TypeMethod, Ki as CartesianProduct, Kn as MinLength, Ko as getBackReferenceType, Kr as getStaticDefaultCodeForProperty, Ks as isUUIDType, Kt as getChangeDetector, L as writeUuid, La as TypeClass, Li as AnnotationDefinition, Ln as Decimal, Lo as findMember, Lr as getIndexCheck, Ls as isPropertyType, Lt as base64ToTypedArray, M as JSONSingle, Ma as TypeArray, Mi as SerializedTypes, Mn as Alpha, Mo as defaultAnnotation, Mr as executeTypeArgumentAsArray, Ms as isNullable, Mt as UnpopulatedCheck, N as NoTypeReceived, Na as TypeBaseMember, Ni as SerializerState, Nn as Alphanumeric, No as embeddedAnnotation, Nr as extractStateToFunctionAndCallIt, Ns as isOptional, Nt as arrayBufferFrom, O as Binary, Oa as TagsReflection, Oi as SerializedTypeTuple, On as typeInfer, Oo as clearTypeJitContainer, Or as createSerializeFunction, Os as isInternal, Ot as mergeDecorator, P as regExpFromString, Pa as TypeBigInt, Pi as SimpleSerializedType, Pn as Ascii, Po as emptyObject, Pr as forwardMapToArray, Ps as isPrimaryKeyType, Pt as arrayBufferTo, Q as pathResolver, Qa as TypeObjectLiteral, Qi as EmbeddedOptions, Qn as Positive, Qo as getKeyType, Qr as serializeObjectLiteral, Qs as narrowOriginalLiteral, Qt as ReflectionParameter, R as TypeRegistry, Ra as TypeDecorator, Ri as AnnotationType, Rn as EMAIL_REGEX, Ro as flatten, Rr as getMapTypeToArray, Rs as isReadonly, Rt as nodeBufferToArrayBuffer, S as deserializeFunction, Sa as ReflectionKind, Sc as ItemChanges, Si as SerializedTypePromise, Sn as RuntimeStackEntry, So as applyScheduledAnnotations, Sr as TemplateState, Ss as isCustomTypeClass, St as UnionToIntersection, T as serialize, Ta as SQLite, Tc as atomicChange, Ti as SerializedTypeReference, Tn as pack, To as backReferenceAnnotation, Tr as callExtractedFunctionIfAvailable, Ts as isHidden, Tt as createFreeDecoratorContext, U as getOrCreateReferenceItemInfo, Ua as TypeInfer, Ui as BackReferenceOptionsResolved, Un as Includes, Uo as getAlias, Ur as getPropertyNameString, Us as isType, Ut as unpopulatedSymbol, V as createReference, Va as TypeFunction, Vi as BackReference, Vn as ExclusiveMaximum, Vo as float32, Vr as getPartialSerializeFunction, Vs as isSameType, Vt as typedArrayToBase64, W as getReferenceInfo, Wa as TypeIntersection, Wi as BinaryBigInt, Wn as MaxLength, Wo as getAnnotationMeta, Wr as getSerializeFunction, Ws as isTypeClassOf, Wt as buildChanges, X as referenceSymbol, Xa as TypeNumber, Xi as Embedded, Xn as NegativeNoZero, Xo as getDomain, Xr as serializableKinds, Xs as merge, Xt as ReflectionFunction, Y as referenceItemSymbol, Ya as TypeNull, Yi as DatabaseFieldOptions, Yn as Negative, Yo as getDeepConstructorProperties, Yr as noopTemplate, Ys as memberNameToString, Yt as ReflectionClass, Z as Resolver, Za as TypeObject, Zi as EmbeddedMeta, Zn as Pattern, Zo as getEnumValueIndexMatcher, Zr as serializeArray, Zs as mongoIdAnnotation, Zt as ReflectionMethod, _ as snapshotSerializer, _a as PrimaryKeyType, _c as AtomicChangeInstance, _i as SerializedTypeLiteral, _n as visit, _o as Unique, _r as SerializeFunction, _s as integer, _t as FreeFluidDecorator, a as parametersToTuple, aa as IndexOptions, ac as stringifyShortResolvedType, ai as underscoreNamingStrategy, an as propertiesOf, ao as TypeString, ar as ValidatorMeta, as as getTypeObjectLiteralFromTypeClass, at as APIClass, b as cloneClass, ba as ReferenceFields, bc as DeepPartial, bi as SerializedTypeObjectLiteral, bn as Processor, bo as addType, br as TemplateHook, bs as isBinary, bt as PropertyDecoratorFn, c as assert, ca as MapName, cc as typeDecorators, ci as SerializedTypeAnnotations, cn as reflectionClassSymbol, co as TypeTuple, cr as validates, cs as hasDefaultValue, ct as ClassDecoratorFn, d as is, da as MySQLOptions, dc as uint32, di as SerializedTypeClassType, dn as resolveClassType, do as TypeUndefined, dr as Guard, ds as hasTypeInformation, dt as DualDecorator, ea as EntityOptions, ec as referenceAnnotation, ei as serializer, en as SerializerFn, eo as TypePromise, er as Validate, es as getPermission, et as mixin, f as createSnapshot, fa as ParentLessType, fc as uint8, fi as SerializedTypeEnum, fn as resolveForeignReflectionClass, fo as TypeUnion, fr as JitStack, fs as indexAccess, ft as ExtractApiDataType, g as getSimplePrimaryKeyHashGenerator, ga as PrimaryKeyFields, gc as widenLiteral, gi as SerializedTypeIntersection, gn as valuesOf, go as UUIDAnnotation, gr as SerializationOptions, gs as int8, gt as FreeDecoratorResult, h as getPrimaryKeyHashGenerator, ha as PrimaryKey, hc as validationAnnotation, hi as SerializedTypeInfer, hn as typeOf, ho as UUID, hr as SerializationError, hs as int32, ht as FreeDecoratorFn, i as isExtendable, ia as Index, ic as stringifyResolvedType, ii as typeGuardObjectLiteral, in as hasCircularReference, io as TypeRest, ir as ValidatorError, is as getTypeJitContainer, it as t, j as JSONPartialObject, ja as TypeAny, ji as SerializedTypeUnion, jn as AfterNow, jo as databaseAnnotation, jr as executeTemplates, js as isMongoIdType, jt as TypedArrayClassType, k as JSONEntity, ka as Type, ki as SerializedTypeTupleMember, kn as unpack, ko as copyAndSetParent, kr as createTypeGuardFunction, ks as isMapType, kt as TypeSettings, l as getValidatorFunction, la as MongoId, lc as typeToObject, li as SerializedTypeArray, ln as removeNominal, lo as TypeTupleMember, lr as ContainerAccessor, ls as hasEmbedded, lt as ClassDecoratorResult, m as getPrimaryKeyExtractor, ma as PostgresOptions, mc as uuidAnnotation, mi as SerializedTypeIndexSignature, mn as toSignature, mo as TypeVoid, mr as RuntimeCode, ms as int16, mt as FluidDecorator, n as createPromiseObjectLiteral, na as FindType, nc as resolveProperty, ni as typeGuardArray, nn as getNominalId, no as TypePropertySignature, nr as ValidationError, ns as getTags, nt as entity, o as validators, oa as InlineRuntimeType, oc as stringifyType, oi as validatePropertyOrParameter, on as reflect, oo as TypeSymbol, or as validate, os as getValueType, ot as APIProperty, p as getConverterForSnapshot, pa as Postgres, pc as unboxUnion, pi as SerializedTypeFunction, pn as resolveReceiveType, po as TypeUnknown, pr as NamingStrategy, ps as indexAnnotation, pt as ExtractClass, q as isReferenceInstance, qa as TypeMethodSignature, qi as Data, qn as Minimum, qo as getClassType, qr as handleUnion, qs as isWithAnnotations, qt as EntityData, r as extendTemplateLiteral, ra as Group, rc as resolveTypeMembers, ri as typeGuardEmbedded, rn as getProperty, ro as TypeRegexp, rr as ValidationErrorItem, rs as getTitle, rt as isWithDeferredDecorators, s as AutoId, sa as JitContainer, sc as typeAnnotation, si as SerializedType, sn as reflectOrUndefined, so as TypeTemplateLiteral, sr as validateFunction, ss as groupAnnotation, st as ClassApiTypeInterface, t as _isExtendable, ta as Excluded, tc as registerTypeDecorator, ti as sortSignatures, tn as TData, to as TypeProperty, tr as ValidateFunction, ts as getReferenceType, tt as defaultValue, u as guard, ua as MySQL, uc as uint16, ui as SerializedTypeBaseMember, un as removeTypeName, uo as TypeTypeParameter, ur as EmptySerializer, us as hasMember, ut as DecoratorAndFetchSignature, v as cast, va as Reference, vc as Changes, vi as SerializedTypeMethod, vn as PackStruct, vo as Widen, vr as Serializer, vs as isAutoIncrementType, vt as Merge, w as patch, wa as ResetAnnotation, wc as Partial, wi as SerializedTypePropertySignature, wn as getEnumType, wo as autoIncrementAnnotation, wr as buildFunction, ws as isGlobalTypeClass, wt as createFluidDecorator, x as deserialize, xa as ReferenceOptions, xc as Expression, xi as SerializedTypeParameter, xn as ReflectOptions, xo as annotateClass, xr as TemplateRegistry, xs as isBinaryBigIntType, xt as PropertyDecoratorResult, y as castFunction, ya as ReferenceActions, yc as ChangesInterface, yi as SerializedTypeMethodSignature, yn as Packed, yo as WithAnnotations, yr as Template, ys as isBackReferenceType, yt as PropertyApiTypeInterface, z as ReferenceInfo, za as TypeEnum, zi as Annotations, zn as Email, zo as flattenUnionTypes, zr as getNTypeToArray, zs as isReferenceType, zt as nodeBufferToTypedArray } from "../type-BDuj5wg2.mjs";
2
- import { r as TypeNumberBrand } from "../type-DfwJ6GTs.mjs";
1
+ import { $ as resolvePath, $a as TypeParameter, $i as Entity, $n as PositiveNoZero, $o as getMember, $r as serializePropertyOrParameter, $s as primaryKeyAnnotation, $t as ReflectionProperty, A as JSONPartial, Aa as TypeAnnotations, Ai as SerializedTypeTypeParameter, An as AfterDate, Ao as dataAnnotation, Ar as deserializeEmbedded, As as isMember, At as TypedArray, B as ReferenceItemInfo, Ba as TypeEnumMember, Bi as AutoIncrement, Bn as Excludes, Bo as float, Br as getNameExpression, Bs as isRuntime, Bt as typeSettings, C as getPatchSerializeFunction, Ca as ReflectionVisibility, Cc as NumberFields, Ci as SerializedTypeProperty, Cn as encodeOps, Co as assertType, Cr as TypeGuardRegistry, Cs as isDateType, Ct as createClassDecoratorContext, D as validatedDeserialize, Da as SqliteOptions, Di as SerializedTypeTemplateLiteral, Dn as resolveRuntimeType, Do as binaryTypes, Dr as createConverterJSForMember, Ds as isIntegerType, Dt as isDecoratorContext, E as serializeFunction, Ea as SignedBinaryBigInt, Ec as changeSetSymbol, Ei as SerializedTypeRest, En as resolvePacked, Eo as binaryBigIntAnnotation, Er as collapsePath, Es as isIgnore, Et as createPropertyDecoratorContext, F as stringifyUuid, Fa as TypeBoolean, Fi as deserializeType, Fn as BeforeDate, Fo as entityAnnotation, Fr as forwardSetToArray, Fs as isPrimitive, Ft as arrayBufferToBase64, G as getReferenceItemInfo, Ga as TypeLiteral, Gi as BinaryBigIntType, Gn as Maximum, Go as getAnnotations, Gr as getSetTypeToArray, Gs as isTypeIncluded, Gt as genericEqual, H as createReferenceClass, Ha as TypeIndexSignature, Hi as BackReferenceOptions, Hn as ExclusiveMinimum, Ho as float64, Hr as getPartialType, Hs as isSetType, Ht as typedArrayToBuffer, I as uuid, Ia as TypeCallSignature, Ii as serializeType, In as BeforeNow, Io as excludedAnnotation, Ir as getEmbeddedProperty, Is as isPropertyMemberType, It as base64ToArrayBuffer, J as markAsHydrated, Ja as TypeNever, Ji as DatabaseField, Jn as MultipleOf, Jo as getConstructorProperties, Jr as inAccessor, Js as mapNameAnnotation, Jt as ReceiveType, K as isReferenceHydrated, Ka as TypeMethod, Ki as CartesianProduct, Kn as MinLength, Ko as getBackReferenceType, Kr as getStaticDefaultCodeForProperty, Ks as isUUIDType, Kt as getChangeDetector, L as writeUuid, La as TypeClass, Li as AnnotationDefinition, Ln as Decimal, Lo as findMember, Lr as getIndexCheck, Ls as isPropertyType, Lt as base64ToTypedArray, M as JSONSingle, Ma as TypeArray, Mi as SerializedTypes, Mn as Alpha, Mo as defaultAnnotation, Mr as executeTypeArgumentAsArray, Ms as isNullable, Mt as UnpopulatedCheck, N as NoTypeReceived, Na as TypeBaseMember, Ni as SerializerState, Nn as Alphanumeric, No as embeddedAnnotation, Nr as extractStateToFunctionAndCallIt, Ns as isOptional, Nt as arrayBufferFrom, O as Binary, Oa as TagsReflection, Oi as SerializedTypeTuple, On as typeInfer, Oo as clearTypeJitContainer, Or as createSerializeFunction, Os as isInternal, Ot as mergeDecorator, P as regExpFromString, Pa as TypeBigInt, Pi as SimpleSerializedType, Pn as Ascii, Po as emptyObject, Pr as forwardMapToArray, Ps as isPrimaryKeyType, Pt as arrayBufferTo, Q as pathResolver, Qa as TypeObjectLiteral, Qi as EmbeddedOptions, Qn as Positive, Qo as getKeyType, Qr as serializeObjectLiteral, Qs as narrowOriginalLiteral, Qt as ReflectionParameter, R as TypeRegistry, Ra as TypeDecorator, Ri as AnnotationType, Rn as EMAIL_REGEX, Ro as flatten, Rr as getMapTypeToArray, Rs as isReadonly, Rt as nodeBufferToArrayBuffer, S as deserializeFunction, Sa as ReflectionKind, Sc as ItemChanges, Si as SerializedTypePromise, Sn as RuntimeStackEntry, So as applyScheduledAnnotations, Sr as TemplateState, Ss as isCustomTypeClass, St as UnionToIntersection, T as serialize, Ta as SQLite, Tc as atomicChange, Ti as SerializedTypeReference, Tn as pack, To as backReferenceAnnotation, Tr as callExtractedFunctionIfAvailable, Ts as isHidden, Tt as createFreeDecoratorContext, U as getOrCreateReferenceItemInfo, Ua as TypeInfer, Ui as BackReferenceOptionsResolved, Un as Includes, Uo as getAlias, Ur as getPropertyNameString, Us as isType, Ut as unpopulatedSymbol, V as createReference, Va as TypeFunction, Vi as BackReference, Vn as ExclusiveMaximum, Vo as float32, Vr as getPartialSerializeFunction, Vs as isSameType, Vt as typedArrayToBase64, W as getReferenceInfo, Wa as TypeIntersection, Wi as BinaryBigInt, Wn as MaxLength, Wo as getAnnotationMeta, Wr as getSerializeFunction, Ws as isTypeClassOf, Wt as buildChanges, X as referenceSymbol, Xa as TypeNumber, Xi as Embedded, Xn as NegativeNoZero, Xo as getDomain, Xr as serializableKinds, Xs as merge, Xt as ReflectionFunction, Y as referenceItemSymbol, Ya as TypeNull, Yi as DatabaseFieldOptions, Yn as Negative, Yo as getDeepConstructorProperties, Yr as noopTemplate, Ys as memberNameToString, Yt as ReflectionClass, Z as Resolver, Za as TypeObject, Zi as EmbeddedMeta, Zn as Pattern, Zo as getEnumValueIndexMatcher, Zr as serializeArray, Zs as mongoIdAnnotation, Zt as ReflectionMethod, _ as snapshotSerializer, _a as PrimaryKeyType, _c as AtomicChangeInstance, _i as SerializedTypeLiteral, _n as visit, _o as Unique, _r as SerializeFunction, _s as integer, _t as FreeFluidDecorator, a as parametersToTuple, aa as IndexOptions, ac as stringifyShortResolvedType, ai as underscoreNamingStrategy, an as propertiesOf, ao as TypeString, ar as ValidatorMeta, as as getTypeObjectLiteralFromTypeClass, at as APIClass, b as cloneClass, ba as ReferenceFields, bc as DeepPartial, bi as SerializedTypeObjectLiteral, bn as Processor, bo as addType, br as TemplateHook, bs as isBinary, bt as PropertyDecoratorFn, c as assert, ca as MapName, cc as typeDecorators, ci as SerializedTypeAnnotations, cn as reflectionClassSymbol, co as TypeTuple, cr as validates, cs as hasDefaultValue, ct as ClassDecoratorFn, d as is, da as MySQLOptions, dc as uint32, di as SerializedTypeClassType, dn as resolveClassType, do as TypeUndefined, dr as Guard, ds as hasTypeInformation, dt as DualDecorator, ea as EntityOptions, ec as referenceAnnotation, ei as serializer, en as SerializerFn, eo as TypePromise, er as Validate, es as getPermission, et as mixin, f as createSnapshot, fa as ParentLessType, fc as uint8, fi as SerializedTypeEnum, fn as resolveForeignReflectionClass, fo as TypeUnion, fr as JitStack, fs as indexAccess, ft as ExtractApiDataType, g as getSimplePrimaryKeyHashGenerator, ga as PrimaryKeyFields, gc as widenLiteral, gi as SerializedTypeIntersection, gn as valuesOf, go as UUIDAnnotation, gr as SerializationOptions, gs as int8, gt as FreeDecoratorResult, h as getPrimaryKeyHashGenerator, ha as PrimaryKey, hc as validationAnnotation, hi as SerializedTypeInfer, hn as typeOf, ho as UUID, hr as SerializationError, hs as int32, ht as FreeDecoratorFn, i as isExtendable, ia as Index, ic as stringifyResolvedType, ii as typeGuardObjectLiteral, in as hasCircularReference, io as TypeRest, ir as ValidatorError, is as getTypeJitContainer, it as t, j as JSONPartialObject, ja as TypeAny, ji as SerializedTypeUnion, jn as AfterNow, jo as databaseAnnotation, jr as executeTemplates, js as isMongoIdType, jt as TypedArrayClassType, k as JSONEntity, ka as Type, ki as SerializedTypeTupleMember, kn as unpack, ko as copyAndSetParent, kr as createTypeGuardFunction, ks as isMapType, kt as TypeSettings, l as getValidatorFunction, la as MongoId, lc as typeToObject, li as SerializedTypeArray, ln as removeNominal, lo as TypeTupleMember, lr as ContainerAccessor, ls as hasEmbedded, lt as ClassDecoratorResult, m as getPrimaryKeyExtractor, ma as PostgresOptions, mc as uuidAnnotation, mi as SerializedTypeIndexSignature, mn as toSignature, mo as TypeVoid, mr as RuntimeCode, ms as int16, mt as FluidDecorator, n as createPromiseObjectLiteral, na as FindType, nc as resolveProperty, ni as typeGuardArray, nn as getNominalId, no as TypePropertySignature, nr as ValidationError, ns as getTags, nt as entity, o as validators, oa as InlineRuntimeType, oc as stringifyType, oi as validatePropertyOrParameter, on as reflect, oo as TypeSymbol, or as validate, os as getValueType, ot as APIProperty, p as getConverterForSnapshot, pa as Postgres, pc as unboxUnion, pi as SerializedTypeFunction, pn as resolveReceiveType, po as TypeUnknown, pr as NamingStrategy, ps as indexAnnotation, pt as ExtractClass, q as isReferenceInstance, qa as TypeMethodSignature, qi as Data, qn as Minimum, qo as getClassType, qr as handleUnion, qs as isWithAnnotations, qt as EntityData, r as extendTemplateLiteral, ra as Group, rc as resolveTypeMembers, ri as typeGuardEmbedded, rn as getProperty, ro as TypeRegexp, rr as ValidationErrorItem, rs as getTitle, rt as isWithDeferredDecorators, s as AutoId, sa as JitContainer, sc as typeAnnotation, si as SerializedType, sn as reflectOrUndefined, so as TypeTemplateLiteral, sr as validateFunction, ss as groupAnnotation, st as ClassApiTypeInterface, t as _isExtendable, ta as Excluded, tc as registerTypeDecorator, ti as sortSignatures, tn as TData, to as TypeProperty, tr as ValidateFunction, ts as getReferenceType, tt as defaultValue, u as guard, ua as MySQL, uc as uint16, ui as SerializedTypeBaseMember, un as removeTypeName, uo as TypeTypeParameter, ur as EmptySerializer, us as hasMember, ut as DecoratorAndFetchSignature, v as cast, va as Reference, vc as Changes, vi as SerializedTypeMethod, vn as PackStruct, vo as Widen, vr as Serializer, vs as isAutoIncrementType, vt as Merge, w as patch, wa as ResetAnnotation, wc as Partial, wi as SerializedTypePropertySignature, wn as getEnumType, wo as autoIncrementAnnotation, wr as buildFunction, ws as isGlobalTypeClass, wt as createFluidDecorator, x as deserialize, xa as ReferenceOptions, xc as Expression, xi as SerializedTypeParameter, xn as ReflectOptions, xo as annotateClass, xr as TemplateRegistry, xs as isBinaryBigIntType, xt as PropertyDecoratorResult, y as castFunction, ya as ReferenceActions, yc as ChangesInterface, yi as SerializedTypeMethodSignature, yn as Packed, yo as WithAnnotations, yr as Template, ys as isBackReferenceType, yt as PropertyApiTypeInterface, z as ReferenceInfo, za as TypeEnum, zi as Annotations, zn as Email, zo as flattenUnionTypes, zr as getNTypeToArray, zs as isReferenceType, zt as nodeBufferToTypedArray } from "../type-SyDc32SL.mjs";
2
+ import { r as TypeNumberBrand } from "../type-C4eOl66J.mjs";
3
3
  export { APIClass, APIProperty, AfterDate, AfterNow, Alpha, Alphanumeric, AnnotationDefinition, AnnotationType, Annotations, Ascii, AtomicChangeInstance, AutoId, AutoIncrement, BackReference, BackReferenceOptions, BackReferenceOptionsResolved, BeforeDate, BeforeNow, Binary, BinaryBigInt, BinaryBigIntType, CartesianProduct, Changes, ChangesInterface, ClassApiTypeInterface, ClassDecoratorFn, ClassDecoratorResult, ContainerAccessor, Data, DatabaseField, DatabaseFieldOptions, Decimal, DecoratorAndFetchSignature, DeepPartial, DualDecorator, EMAIL_REGEX, Email, Embedded, EmbeddedMeta, EmbeddedOptions, EmptySerializer, Entity, EntityData, EntityOptions, Excluded, Excludes, ExclusiveMaximum, ExclusiveMinimum, Expression, ExtractApiDataType, ExtractClass, FindType, FluidDecorator, FreeDecoratorFn, FreeDecoratorResult, FreeFluidDecorator, Group, Guard, Includes, Index, IndexOptions, InlineRuntimeType, ItemChanges, JSONEntity, JSONPartial, JSONPartialObject, JSONSingle, JitContainer, JitStack, MapName, MaxLength, Maximum, Merge, MinLength, Minimum, MongoId, MultipleOf, MySQL, MySQLOptions, NamingStrategy, Negative, NegativeNoZero, NoTypeReceived, NumberFields, PackStruct, Packed, ParentLessType, Partial, Pattern, Positive, PositiveNoZero, Postgres, PostgresOptions, PrimaryKey, PrimaryKeyFields, PrimaryKeyType, Processor, PropertyApiTypeInterface, PropertyDecoratorFn, PropertyDecoratorResult, ReceiveType, Reference, ReferenceActions, ReferenceFields, ReferenceInfo, ReferenceItemInfo, ReferenceOptions, ReflectOptions, ReflectionClass, ReflectionFunction, ReflectionKind, ReflectionMethod, ReflectionParameter, ReflectionProperty, ReflectionVisibility, ResetAnnotation, Resolver, RuntimeCode, RuntimeStackEntry, SQLite, SerializationError, SerializationOptions, SerializeFunction, SerializedType, SerializedTypeAnnotations, SerializedTypeArray, SerializedTypeBaseMember, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeIndexSignature, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypePromise, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeRest, SerializedTypeTemplateLiteral, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeTypeParameter, SerializedTypeUnion, SerializedTypes, Serializer, SerializerFn, SerializerState, SignedBinaryBigInt, SimpleSerializedType, SqliteOptions, TData, TagsReflection, Template, TemplateHook, TemplateRegistry, TemplateState, Type, TypeAnnotations, TypeAny, TypeArray, TypeBaseMember, TypeBigInt, TypeBoolean, TypeCallSignature, TypeClass, TypeDecorator, TypeEnum, TypeEnumMember, TypeFunction, TypeGuardRegistry, TypeIndexSignature, TypeInfer, TypeIntersection, TypeLiteral, TypeMethod, TypeMethodSignature, TypeNever, TypeNull, TypeNumber, TypeNumberBrand, TypeObject, TypeObjectLiteral, TypeParameter, TypePromise, TypeProperty, TypePropertySignature, TypeRegexp, TypeRegistry, TypeRest, TypeSettings, TypeString, TypeSymbol, TypeTemplateLiteral, TypeTuple, TypeTupleMember, TypeTypeParameter, TypeUndefined, TypeUnion, TypeUnknown, TypeVoid, TypedArray, TypedArrayClassType, UUID, UUIDAnnotation, UnionToIntersection, Unique, UnpopulatedCheck, Validate, ValidateFunction, ValidationError, ValidationErrorItem, ValidatorError, ValidatorMeta, Widen, WithAnnotations, _isExtendable, addType, annotateClass, applyScheduledAnnotations, arrayBufferFrom, arrayBufferTo, arrayBufferToBase64, assert, assertType, atomicChange, autoIncrementAnnotation, backReferenceAnnotation, base64ToArrayBuffer, base64ToTypedArray, binaryBigIntAnnotation, binaryTypes, buildChanges, buildFunction, callExtractedFunctionIfAvailable, cast, castFunction, changeSetSymbol, clearTypeJitContainer, cloneClass, collapsePath, copyAndSetParent, createClassDecoratorContext, createConverterJSForMember, createFluidDecorator, createFreeDecoratorContext, createPromiseObjectLiteral, createPropertyDecoratorContext, createReference, createReferenceClass, createSerializeFunction, createSnapshot, createTypeGuardFunction, dataAnnotation, databaseAnnotation, defaultAnnotation, defaultValue, deserialize, deserializeEmbedded, deserializeFunction, deserializeType, embeddedAnnotation, emptyObject, encodeOps, entity, entityAnnotation, excludedAnnotation, executeTemplates, executeTypeArgumentAsArray, extendTemplateLiteral, extractStateToFunctionAndCallIt, findMember, flatten, flattenUnionTypes, float, float32, float64, forwardMapToArray, forwardSetToArray, genericEqual, getAlias, getAnnotationMeta, getAnnotations, getBackReferenceType, getChangeDetector, getClassType, getConstructorProperties, getConverterForSnapshot, getDeepConstructorProperties, getDomain, getEmbeddedProperty, getEnumType, getEnumValueIndexMatcher, getIndexCheck, getKeyType, getMapTypeToArray, getMember, getNTypeToArray, getNameExpression, getNominalId, getOrCreateReferenceItemInfo, getPartialSerializeFunction, getPartialType, getPatchSerializeFunction, getPermission, getPrimaryKeyExtractor, getPrimaryKeyHashGenerator, getProperty, getPropertyNameString, getReferenceInfo, getReferenceItemInfo, getReferenceType, getSerializeFunction, getSetTypeToArray, getSimplePrimaryKeyHashGenerator, getStaticDefaultCodeForProperty, getTags, getTitle, getTypeJitContainer, getTypeObjectLiteralFromTypeClass, getValidatorFunction, getValueType, groupAnnotation, guard, handleUnion, hasCircularReference, hasDefaultValue, hasEmbedded, hasMember, hasTypeInformation, inAccessor, indexAccess, indexAnnotation, int16, int32, int8, integer, is, isAutoIncrementType, isBackReferenceType, isBinary, isBinaryBigIntType, isCustomTypeClass, isDateType, isDecoratorContext, isExtendable, isGlobalTypeClass, isHidden, isIgnore, isIntegerType, isInternal, isMapType, isMember, isMongoIdType, isNullable, isOptional, isPrimaryKeyType, isPrimitive, isPropertyMemberType, isPropertyType, isReadonly, isReferenceHydrated, isReferenceInstance, isReferenceType, isRuntime, isSameType, isSetType, isType, isTypeClassOf, isTypeIncluded, isUUIDType, isWithAnnotations, isWithDeferredDecorators, mapNameAnnotation, markAsHydrated, memberNameToString, merge, mergeDecorator, typeAnnotation as metaAnnotation, typeAnnotation, mixin, mongoIdAnnotation, narrowOriginalLiteral, nodeBufferToArrayBuffer, nodeBufferToTypedArray, noopTemplate, pack, parametersToTuple, patch, pathResolver, primaryKeyAnnotation, propertiesOf, referenceAnnotation, referenceItemSymbol, referenceSymbol, reflect, reflectOrUndefined, reflectionClassSymbol, regExpFromString, registerTypeDecorator, removeNominal, removeTypeName, resolveClassType, resolveForeignReflectionClass, resolvePacked, resolvePath, resolveProperty, resolveReceiveType, resolveRuntimeType, resolveTypeMembers, serializableKinds, serialize, serializeArray, serializeFunction, serializeObjectLiteral, serializePropertyOrParameter, serializeType, serializer, snapshotSerializer, sortSignatures, stringifyResolvedType, stringifyShortResolvedType, stringifyType, stringifyUuid, t, toSignature, typeDecorators, typeGuardArray, typeGuardEmbedded, typeGuardObjectLiteral, typeInfer, typeOf, typeSettings, typeToObject, typedArrayToBase64, typedArrayToBuffer, uint16, uint32, uint8, unboxUnion, underscoreNamingStrategy, unpack, unpopulatedSymbol, uuid, uuidAnnotation, validate, validateFunction, validatePropertyOrParameter, validatedDeserialize, validates, validationAnnotation, validators, valuesOf, visit, widenLiteral, writeUuid };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/deepkit",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["deepkit", "powerlines", "storm-software"],
@@ -54,20 +54,6 @@
54
54
  "default": "./dist/index.mjs"
55
55
  }
56
56
  },
57
- "./index": {
58
- "import": {
59
- "types": "./dist/index.d.mts",
60
- "default": "./dist/index.mjs"
61
- },
62
- "require": {
63
- "types": "./dist/index.d.cts",
64
- "default": "./dist/index.cjs"
65
- },
66
- "default": {
67
- "types": "./dist/index.d.mts",
68
- "default": "./dist/index.mjs"
69
- }
70
- },
71
57
  "./*": {
72
58
  "import": { "types": "./dist/*.d.mts", "default": "./dist/*.mjs" },
73
59
  "require": { "types": "./dist/*.d.cts", "default": "./dist/*.cjs" },
@@ -114,6 +100,11 @@
114
100
  "types": "./dist/vendor/type-compiler/*.d.mts",
115
101
  "default": "./dist/vendor/type-compiler/*.mjs"
116
102
  }
103
+ },
104
+ "./schemas/*": {
105
+ "import": { "types": "./schemas/*.d.mts", "default": "./schemas/*.mjs" },
106
+ "require": { "types": "./schemas/*.d.cts", "default": "./schemas/*.cjs" },
107
+ "default": { "types": "./schemas/*.d.mts", "default": "./schemas/*.mjs" }
117
108
  }
118
109
  },
119
110
  "main": "./dist/index.cjs",
@@ -123,12 +114,14 @@
123
114
  "bin": { "deepkit-install": "bin/deepkit-install.cjs" },
124
115
  "files": ["bin/*", "dist/**/*", "schemas/*"],
125
116
  "dependencies": {
126
- "@powerlines/core": "^0.13.7",
127
- "@powerlines/plugin-esbuild": "^0.13.394",
117
+ "@powerlines/core": "^0.13.8",
118
+ "@powerlines/plugin-esbuild": "^0.13.395",
128
119
  "@storm-software/config-tools": "^1.189.75",
129
120
  "@stryke/capnp": "^0.12.92",
130
121
  "@stryke/fs": "^0.33.66",
131
122
  "@stryke/path": "^0.27.4",
123
+ "@stryke/json": "^0.14.12",
124
+ "@stryke/helpers": "^0.10.8",
132
125
  "@stryke/type-checks": "^0.6.1",
133
126
  "@stryke/types": "^0.11.3",
134
127
  "defu": "^6.1.7",
@@ -142,10 +135,9 @@
142
135
  "@deepkit/type-compiler": "1.0.5",
143
136
  "@deepkit/type-spec": "1.0.1",
144
137
  "@types/node": "^25.6.0",
145
- "dts-bundle-generator": "^9.5.1",
146
- "esbuild": "^0.27.7",
147
138
  "rolldown": "1.0.0-rc.9",
148
- "tsup": "8.4.0"
139
+ "tsdown": "^0.21.7",
140
+ "esbuild": "^0.27.7"
149
141
  },
150
142
  "peerDependencies": { "esbuild": "*", "rolldown": "*" },
151
143
  "peerDependenciesMeta": {
@@ -153,5 +145,5 @@
153
145
  "rolldown": { "optional": true }
154
146
  },
155
147
  "publishConfig": { "access": "public" },
156
- "gitHead": "0930e21b75080a208112efde05ca6a1ff2595b15"
148
+ "gitHead": "5c1cbac3bcb7d5cbb3e2f09accb0f5edc617f7a1"
157
149
  }
@@ -1,80 +0,0 @@
1
- const require_chunk = require('./chunk-BmvPcxpV.cjs');
2
- const require_transpile = require('./transpile.cjs');
3
- let _stryke_type_checks = require("@stryke/type-checks");
4
- let typescript = require("typescript");
5
-
6
- //#region ../../node_modules/.pnpm/@stryke+helpers@0.10.8/node_modules/@stryke/helpers/dist/omit.mjs
7
- /**
8
- * Creates a new object with specified keys omitted.
9
- *
10
- * This function takes an object and an array of keys, and returns a new object that
11
- * excludes the properties corresponding to the specified keys.
12
- *
13
- * @param obj - The object to omit keys from.
14
- * @param keys - An array of keys to be omitted from the object.
15
- * @returns A new object with the specified keys omitted.
16
- *
17
- * @example
18
- * ```typescript
19
- * const obj = { a: 1, b: 2, c: 3 };
20
- * const result = omit(obj, ['b', 'c']);
21
- * // result will be { a: 1 }
22
- * ```
23
- */
24
- function omit(obj, keys) {
25
- const result = { ...obj };
26
- for (let i = 0; i < keys.length; i++) {
27
- const key = keys[i];
28
- if (key) delete result[key];
29
- }
30
- return result;
31
- }
32
-
33
- //#endregion
34
- //#region src/esbuild-plugin.ts
35
- /**
36
- * Esbuild plugin for Deepkit Type reflections.
37
- *
38
- * @param context - The Powerlines context.
39
- * @param options - Optional esbuild onLoad options and reflection configuration.
40
- * @returns An esbuild plugin instance.
41
- */
42
- const esbuildPlugin = (context, options = {}) => {
43
- return {
44
- name: "powerlines:deepkit",
45
- setup(build) {
46
- build.onLoad({
47
- filter: /\.(m|c)?tsx?$/,
48
- ...options.onLoad ?? {}
49
- }, async (args) => {
50
- const contents = await context.fs.read(args.path);
51
- if (!contents) return null;
52
- if (args.pluginData?.isReflected) return {
53
- contents,
54
- loader: "ts",
55
- pluginData: { isReflected: true }
56
- };
57
- const result = require_transpile.transpile(context, contents, args.path, omit(options, ["onLoad"]));
58
- if (result.diagnostics && result.diagnostics.length > 0) if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
59
- const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path} \n ${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${(0, _stryke_type_checks.isString)(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
60
- context.error(errorMessage);
61
- throw new Error(errorMessage);
62
- } else if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Warning)) context.warn(`Deepkit Type reflection transpilation warnings: ${args.path} \n ${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${(0, _stryke_type_checks.isString)(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
63
- else context.debug(`Deepkit Type reflection transpilation diagnostics: ${args.path} \n ${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${(0, _stryke_type_checks.isString)(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
64
- return {
65
- contents: result.outputText,
66
- loader: "ts",
67
- pluginData: { isReflected: true }
68
- };
69
- });
70
- }
71
- };
72
- };
73
-
74
- //#endregion
75
- Object.defineProperty(exports, 'esbuildPlugin', {
76
- enumerable: true,
77
- get: function () {
78
- return esbuildPlugin;
79
- }
80
- });
@@ -1,75 +0,0 @@
1
- import { transpile } from "./transpile.mjs";
2
- import { isString } from "@stryke/type-checks";
3
- import { DiagnosticCategory } from "typescript";
4
-
5
- //#region ../../node_modules/.pnpm/@stryke+helpers@0.10.8/node_modules/@stryke/helpers/dist/omit.mjs
6
- /**
7
- * Creates a new object with specified keys omitted.
8
- *
9
- * This function takes an object and an array of keys, and returns a new object that
10
- * excludes the properties corresponding to the specified keys.
11
- *
12
- * @param obj - The object to omit keys from.
13
- * @param keys - An array of keys to be omitted from the object.
14
- * @returns A new object with the specified keys omitted.
15
- *
16
- * @example
17
- * ```typescript
18
- * const obj = { a: 1, b: 2, c: 3 };
19
- * const result = omit(obj, ['b', 'c']);
20
- * // result will be { a: 1 }
21
- * ```
22
- */
23
- function omit(obj, keys) {
24
- const result = { ...obj };
25
- for (let i = 0; i < keys.length; i++) {
26
- const key = keys[i];
27
- if (key) delete result[key];
28
- }
29
- return result;
30
- }
31
-
32
- //#endregion
33
- //#region src/esbuild-plugin.ts
34
- /**
35
- * Esbuild plugin for Deepkit Type reflections.
36
- *
37
- * @param context - The Powerlines context.
38
- * @param options - Optional esbuild onLoad options and reflection configuration.
39
- * @returns An esbuild plugin instance.
40
- */
41
- const esbuildPlugin = (context, options = {}) => {
42
- return {
43
- name: "powerlines:deepkit",
44
- setup(build) {
45
- build.onLoad({
46
- filter: /\.(m|c)?tsx?$/,
47
- ...options.onLoad ?? {}
48
- }, async (args) => {
49
- const contents = await context.fs.read(args.path);
50
- if (!contents) return null;
51
- if (args.pluginData?.isReflected) return {
52
- contents,
53
- loader: "ts",
54
- pluginData: { isReflected: true }
55
- };
56
- const result = transpile(context, contents, args.path, omit(options, ["onLoad"]));
57
- if (result.diagnostics && result.diagnostics.length > 0) if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Error)) {
58
- const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path} \n ${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
59
- context.error(errorMessage);
60
- throw new Error(errorMessage);
61
- } else if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Warning)) context.warn(`Deepkit Type reflection transpilation warnings: ${args.path} \n ${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
62
- else context.debug(`Deepkit Type reflection transpilation diagnostics: ${args.path} \n ${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
63
- return {
64
- contents: result.outputText,
65
- loader: "ts",
66
- pluginData: { isReflected: true }
67
- };
68
- });
69
- }
70
- };
71
- };
72
-
73
- //#endregion
74
- export { esbuildPlugin as t };
75
- //# sourceMappingURL=esbuild-plugin-CRQUmm86.mjs.map