@powerlines/deepkit 0.5.1 → 0.5.3
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/capnp.cjs +49 -48
- package/dist/capnp.js +4 -3
- package/dist/{chunk-U5O6DHJ2.js → chunk-35PNVYKI.js} +4 -4
- package/dist/chunk-3GQAWCBQ.js +10 -0
- package/dist/{chunk-PKLLVKY2.cjs → chunk-3GRTJOID.cjs} +9 -9
- package/dist/{chunk-ESVH44QW.cjs → chunk-3PKIT7K2.cjs} +4 -4
- package/dist/{chunk-MEMIQ5AA.js → chunk-47WBQTA6.js} +1 -1
- package/dist/chunk-4UQ4UDET.cjs +19685 -0
- package/dist/{chunk-VMRRVNO2.cjs → chunk-B47NLUDW.cjs} +2 -2
- package/dist/chunk-BGYQAVKQ.cjs +13 -0
- package/dist/chunk-F5QUFY7D.cjs +135 -0
- package/dist/{chunk-4V4LIAN2.js → chunk-GVS5O43Z.js} +2 -2
- package/dist/{chunk-YQQIT5YX.js → chunk-JSH5MVQG.js} +2 -2
- package/dist/{chunk-VWKKT7CM.cjs → chunk-KDKCOXXC.cjs} +5 -5
- package/dist/chunk-KWUXT6EF.js +127 -0
- package/dist/{chunk-J2FVIV7W.cjs → chunk-MSO7PT57.cjs} +126 -126
- package/dist/chunk-O2LKJ62Q.cjs +2863 -0
- package/dist/chunk-U7WEV6HK.js +19678 -0
- package/dist/chunk-W423FBJ2.js +2854 -0
- package/dist/{chunk-I5CVIT7W.js → chunk-XI47ZADG.js} +42 -42
- package/dist/chunk-XU55W26B.js +109 -0
- package/dist/esbuild-plugin.cjs +6 -5
- package/dist/esbuild-plugin.js +5 -4
- package/dist/index.cjs +68 -67
- package/dist/index.js +10 -9
- package/dist/reflect-type.cjs +8 -7
- package/dist/reflect-type.js +7 -6
- package/dist/resolve-reflections.cjs +3 -3
- package/dist/resolve-reflections.js +2 -2
- package/dist/transformer.cjs +5 -4
- package/dist/transformer.js +3 -2
- package/dist/transpile.cjs +5 -4
- package/dist/transpile.js +4 -3
- package/dist/utilities.cjs +11 -10
- package/dist/utilities.js +4 -3
- package/dist/vendor/chunk-5BKT4CS5.js +28 -0
- package/dist/vendor/{chunk-ZDFKNN7Y.cjs → chunk-BDXVTHBY.cjs} +322 -153
- package/dist/vendor/{chunk-7LAB3COT.js → chunk-BLN7QVCP.js} +154 -7
- package/dist/vendor/chunk-EQXMWOHO.cjs +115 -0
- package/dist/vendor/chunk-MO4O4UYI.cjs +42 -0
- package/dist/vendor/core.cjs +131 -130
- package/dist/vendor/core.js +2 -2
- package/dist/vendor/index.cjs +28 -0
- package/dist/vendor/index.d.cts +2 -0
- package/dist/vendor/index.d.ts +2 -0
- package/dist/vendor/index.js +1 -0
- package/dist/vendor/type-spec.cjs +6 -5
- package/dist/vendor/type-spec.js +1 -1
- package/dist/vendor/type.cjs +2346 -641
- package/dist/vendor/type.js +1661 -23
- package/package.json +5 -5
- package/dist/chunk-7J3ZDT6O.cjs +0 -30
- package/dist/chunk-B6GTAZEL.js +0 -37
- package/dist/chunk-FFBZWTR7.cjs +0 -63
- package/dist/chunk-GRNJVY7I.cjs +0 -19
- package/dist/chunk-IRPJW6HH.js +0 -16
- package/dist/chunk-J4SVRFV4.js +0 -127
- package/dist/chunk-QLKLDV3V.cjs +0 -135
- package/dist/chunk-XGQQM64U.js +0 -8
- package/dist/vendor/chunk-SHUYVCID.js +0 -4
- package/dist/vendor/chunk-USNT2KNT.cjs +0 -6
- /package/dist/{vendor/chunk-5NPGWGPO.cjs → chunk-5NPGWGPO.cjs} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { __name } from './chunk-
|
|
1
|
+
import { ReflectionKind, ReflectionVisibility } from './chunk-U7WEV6HK.js';
|
|
2
|
+
import { __name } from './chunk-3GQAWCBQ.js';
|
|
3
3
|
import { isSetObject, isUndefined, isInteger } from '@stryke/type-checks';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
5
5
|
|
|
6
6
|
BigInt("0xae3c363dcecf2729");
|
|
7
|
-
var
|
|
7
|
+
var ReflectionVisibility2 = {
|
|
8
8
|
PUBLIC: 0,
|
|
9
9
|
PROTECTED: 1,
|
|
10
10
|
PRIVATE: 2
|
|
@@ -4194,55 +4194,55 @@ function convertFromCapnpIndexAccessOrigin(serializedType) {
|
|
|
4194
4194
|
}
|
|
4195
4195
|
__name(convertFromCapnpIndexAccessOrigin, "convertFromCapnpIndexAccessOrigin");
|
|
4196
4196
|
function convertToCapnpBase(serializedType, result) {
|
|
4197
|
-
if (serializedType.kind ===
|
|
4197
|
+
if (serializedType.kind === ReflectionKind.objectLiteral) {
|
|
4198
4198
|
const objectLiteral = result._initObjectLiteral();
|
|
4199
4199
|
convertToCapnpObjectLiteral(serializedType, objectLiteral);
|
|
4200
|
-
} else if (serializedType.kind ===
|
|
4200
|
+
} else if (serializedType.kind === ReflectionKind.class) {
|
|
4201
4201
|
const classType = result._initClassType();
|
|
4202
4202
|
convertToCapnpClassType(serializedType, classType);
|
|
4203
|
-
} else if (serializedType.kind ===
|
|
4203
|
+
} else if (serializedType.kind === ReflectionKind.parameter) {
|
|
4204
4204
|
const parameter = result._initParameter();
|
|
4205
4205
|
convertToCapnpParameter(serializedType, parameter);
|
|
4206
|
-
} else if (serializedType.kind ===
|
|
4206
|
+
} else if (serializedType.kind === ReflectionKind.function) {
|
|
4207
4207
|
const functionType = result._initFunction();
|
|
4208
4208
|
convertToCapnpFunction(serializedType, functionType);
|
|
4209
|
-
} else if (serializedType.kind ===
|
|
4209
|
+
} else if (serializedType.kind === ReflectionKind.method) {
|
|
4210
4210
|
const methodType = result._initMethod();
|
|
4211
4211
|
convertToCapnpMethod(serializedType, methodType);
|
|
4212
|
-
} else if (serializedType.kind ===
|
|
4212
|
+
} else if (serializedType.kind === ReflectionKind.infer) {
|
|
4213
4213
|
const inferType = result._initInfer();
|
|
4214
4214
|
convertToCapnpInfer(serializedType, inferType);
|
|
4215
|
-
} else if (serializedType.kind ===
|
|
4215
|
+
} else if (serializedType.kind === ReflectionKind.union) {
|
|
4216
4216
|
const unionType = result._initUnion();
|
|
4217
4217
|
convertToCapnpUnion(serializedType, unionType);
|
|
4218
|
-
} else if (serializedType.kind ===
|
|
4218
|
+
} else if (serializedType.kind === ReflectionKind.array) {
|
|
4219
4219
|
const arrayType = result._initArray();
|
|
4220
4220
|
convertToCapnpArray(serializedType, arrayType);
|
|
4221
|
-
} else if (serializedType.kind ===
|
|
4221
|
+
} else if (serializedType.kind === ReflectionKind.intersection) {
|
|
4222
4222
|
const intersectionType = result._initIntersection();
|
|
4223
4223
|
convertToCapnpIntersection(serializedType, intersectionType);
|
|
4224
|
-
} else if (serializedType.kind ===
|
|
4224
|
+
} else if (serializedType.kind === ReflectionKind.enum) {
|
|
4225
4225
|
const enumType = result._initEnum();
|
|
4226
4226
|
convertToCapnpEnum(serializedType, enumType);
|
|
4227
|
-
} else if (serializedType.kind ===
|
|
4227
|
+
} else if (serializedType.kind === ReflectionKind.property) {
|
|
4228
4228
|
const propertyType = result._initProperty();
|
|
4229
4229
|
convertToCapnpProperty(serializedType, propertyType);
|
|
4230
|
-
} else if (serializedType.kind ===
|
|
4230
|
+
} else if (serializedType.kind === ReflectionKind.tuple) {
|
|
4231
4231
|
const tupleType = result._initTuple();
|
|
4232
4232
|
convertToCapnpTuple(serializedType, tupleType);
|
|
4233
|
-
} else if (serializedType.kind ===
|
|
4233
|
+
} else if (serializedType.kind === ReflectionKind.tupleMember) {
|
|
4234
4234
|
const tupleMemberType = result._initTupleMember();
|
|
4235
4235
|
convertToCapnpTupleMember(serializedType, tupleMemberType);
|
|
4236
|
-
} else if (serializedType.kind ===
|
|
4236
|
+
} else if (serializedType.kind === ReflectionKind.propertySignature) {
|
|
4237
4237
|
const propertySignatureType = result._initPropertySignature();
|
|
4238
4238
|
convertToCapnpPropertySignature(serializedType, propertySignatureType);
|
|
4239
|
-
} else if (serializedType.kind ===
|
|
4239
|
+
} else if (serializedType.kind === ReflectionKind.methodSignature) {
|
|
4240
4240
|
const methodSignatureType = result._initMethodSignature();
|
|
4241
4241
|
convertToCapnpMethodSignature(serializedType, methodSignatureType);
|
|
4242
|
-
} else if (serializedType.kind ===
|
|
4242
|
+
} else if (serializedType.kind === ReflectionKind.literal) {
|
|
4243
4243
|
const literalType = result._initLiteral();
|
|
4244
4244
|
convertToCapnpLiteral(serializedType, literalType);
|
|
4245
|
-
} else if (serializedType.kind ===
|
|
4245
|
+
} else if (serializedType.kind === ReflectionKind.never || serializedType.kind === ReflectionKind.any || serializedType.kind === ReflectionKind.unknown || serializedType.kind === ReflectionKind.void || serializedType.kind === ReflectionKind.object || serializedType.kind === ReflectionKind.string || serializedType.kind === ReflectionKind.number || serializedType.kind === ReflectionKind.boolean || serializedType.kind === ReflectionKind.symbol || serializedType.kind === ReflectionKind.bigint || serializedType.kind === ReflectionKind.null || serializedType.kind === ReflectionKind.undefined || serializedType.kind === ReflectionKind.regexp) {
|
|
4246
4246
|
const simpleType = result._initSimple();
|
|
4247
4247
|
convertToCapnpSimple(serializedType, simpleType);
|
|
4248
4248
|
} else {
|
|
@@ -4351,7 +4351,7 @@ function convertToCapnpSimple(serializedType, result) {
|
|
|
4351
4351
|
__name(convertToCapnpSimple, "convertToCapnpSimple");
|
|
4352
4352
|
function convertFromCapnpLiteral(serializedType) {
|
|
4353
4353
|
const result = {
|
|
4354
|
-
kind:
|
|
4354
|
+
kind: ReflectionKind.literal,
|
|
4355
4355
|
literal: serializedType.literal._isString ? serializedType.literal.string : serializedType.literal._isNumber ? serializedType.literal.number : serializedType.literal._isBoolean ? serializedType.literal.boolean : serializedType.literal._isBigint ? {
|
|
4356
4356
|
type: "bigint",
|
|
4357
4357
|
value: serializedType.literal.bigint.value
|
|
@@ -4416,7 +4416,7 @@ function convertToCapnpLiteral(serializedType, result) {
|
|
|
4416
4416
|
__name(convertToCapnpLiteral, "convertToCapnpLiteral");
|
|
4417
4417
|
function convertFromCapnpMethodSignature(serializedType) {
|
|
4418
4418
|
const result = {
|
|
4419
|
-
kind:
|
|
4419
|
+
kind: ReflectionKind.methodSignature,
|
|
4420
4420
|
name: serializedType.name,
|
|
4421
4421
|
typeName: serializedType.typeName || void 0,
|
|
4422
4422
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4458,7 +4458,7 @@ function convertToCapnpMethodSignature(serializedType, result) {
|
|
|
4458
4458
|
__name(convertToCapnpMethodSignature, "convertToCapnpMethodSignature");
|
|
4459
4459
|
function convertFromCapnpPropertySignature(serializedType) {
|
|
4460
4460
|
const result = {
|
|
4461
|
-
kind:
|
|
4461
|
+
kind: ReflectionKind.propertySignature,
|
|
4462
4462
|
name: serializedType.name,
|
|
4463
4463
|
typeName: serializedType.typeName || void 0,
|
|
4464
4464
|
description: serializedType.description,
|
|
@@ -4571,7 +4571,7 @@ function convertToCapnpTupleMember(serializedType, result) {
|
|
|
4571
4571
|
__name(convertToCapnpTupleMember, "convertToCapnpTupleMember");
|
|
4572
4572
|
function convertFromCapnpTupleMember(serializedType) {
|
|
4573
4573
|
const result = {
|
|
4574
|
-
kind:
|
|
4574
|
+
kind: ReflectionKind.tupleMember,
|
|
4575
4575
|
type: serializedType.type.id,
|
|
4576
4576
|
typeName: serializedType.typeName || void 0,
|
|
4577
4577
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4612,7 +4612,7 @@ function convertToCapnpTuple(serializedType, result) {
|
|
|
4612
4612
|
__name(convertToCapnpTuple, "convertToCapnpTuple");
|
|
4613
4613
|
function convertFromCapnpTuple(serializedType) {
|
|
4614
4614
|
const result = {
|
|
4615
|
-
kind:
|
|
4615
|
+
kind: ReflectionKind.tuple,
|
|
4616
4616
|
typeName: serializedType.typeName || void 0,
|
|
4617
4617
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => convertFromCapnpTupleMember(t)) : [],
|
|
4618
4618
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4628,7 +4628,7 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4628
4628
|
result.description = serializedType.description || "";
|
|
4629
4629
|
result.optional = serializedType.optional ?? false;
|
|
4630
4630
|
result.readonly = serializedType.readonly ?? false;
|
|
4631
|
-
result.visibility = serializedType.visibility ===
|
|
4631
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
|
|
4632
4632
|
result.abstract = serializedType.abstract ?? false;
|
|
4633
4633
|
result.name = String(serializedType.name) || "";
|
|
4634
4634
|
if (typeof serializedType.default !== "undefined") {
|
|
@@ -4664,13 +4664,13 @@ function convertToCapnpProperty(serializedType, result) {
|
|
|
4664
4664
|
__name(convertToCapnpProperty, "convertToCapnpProperty");
|
|
4665
4665
|
function convertFromCapnpProperty(serializedType) {
|
|
4666
4666
|
const result = {
|
|
4667
|
-
kind:
|
|
4667
|
+
kind: ReflectionKind.property,
|
|
4668
4668
|
typeName: serializedType.typeName || void 0,
|
|
4669
4669
|
description: serializedType.description,
|
|
4670
4670
|
default: convertFromCapnpDefault(serializedType.default),
|
|
4671
4671
|
optional: serializedType.optional ? true : void 0,
|
|
4672
4672
|
readonly: serializedType.readonly ? true : void 0,
|
|
4673
|
-
visibility: serializedType.visibility ===
|
|
4673
|
+
visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
4674
4674
|
abstract: serializedType.abstract ? true : void 0,
|
|
4675
4675
|
name: serializedType.name,
|
|
4676
4676
|
type: serializedType.type.id,
|
|
@@ -4726,7 +4726,7 @@ function convertToCapnpEnum(serializedType, result) {
|
|
|
4726
4726
|
__name(convertToCapnpEnum, "convertToCapnpEnum");
|
|
4727
4727
|
function convertFromCapnpEnum(serializedType) {
|
|
4728
4728
|
const result = {
|
|
4729
|
-
kind:
|
|
4729
|
+
kind: ReflectionKind.enum,
|
|
4730
4730
|
typeName: serializedType.typeName || void 0,
|
|
4731
4731
|
indexType: serializedType.indexType.id,
|
|
4732
4732
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4773,7 +4773,7 @@ function convertToCapnpIntersection(serializedType, result) {
|
|
|
4773
4773
|
__name(convertToCapnpIntersection, "convertToCapnpIntersection");
|
|
4774
4774
|
function convertFromCapnpIntersection(serializedType) {
|
|
4775
4775
|
const result = {
|
|
4776
|
-
kind:
|
|
4776
|
+
kind: ReflectionKind.intersection,
|
|
4777
4777
|
typeName: serializedType.typeName || void 0,
|
|
4778
4778
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4779
4779
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4815,7 +4815,7 @@ function convertToCapnpArray(serializedType, result) {
|
|
|
4815
4815
|
__name(convertToCapnpArray, "convertToCapnpArray");
|
|
4816
4816
|
function convertFromCapnpArray(serializedType) {
|
|
4817
4817
|
const result = {
|
|
4818
|
-
kind:
|
|
4818
|
+
kind: ReflectionKind.array,
|
|
4819
4819
|
typeName: serializedType.typeName || void 0,
|
|
4820
4820
|
type: serializedType.type.id,
|
|
4821
4821
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4857,7 +4857,7 @@ function convertToCapnpUnion(serializedType, result) {
|
|
|
4857
4857
|
__name(convertToCapnpUnion, "convertToCapnpUnion");
|
|
4858
4858
|
function convertFromCapnpUnion(serializedType) {
|
|
4859
4859
|
const result = {
|
|
4860
|
-
kind:
|
|
4860
|
+
kind: ReflectionKind.union,
|
|
4861
4861
|
typeName: serializedType.typeName || void 0,
|
|
4862
4862
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
4863
4863
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4893,7 +4893,7 @@ function convertToCapnpInfer(serializedType, result) {
|
|
|
4893
4893
|
__name(convertToCapnpInfer, "convertToCapnpInfer");
|
|
4894
4894
|
function convertFromCapnpInfer(serializedType) {
|
|
4895
4895
|
const result = {
|
|
4896
|
-
kind:
|
|
4896
|
+
kind: ReflectionKind.infer,
|
|
4897
4897
|
typeName: serializedType.typeName || void 0,
|
|
4898
4898
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
4899
4899
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
@@ -4945,7 +4945,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4945
4945
|
result.kind = serializedType.kind;
|
|
4946
4946
|
result.typeName = serializedType.typeName || "";
|
|
4947
4947
|
result.abstract = serializedType.abstract ?? false;
|
|
4948
|
-
result.visibility = serializedType.visibility ===
|
|
4948
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
|
|
4949
4949
|
if (serializedType.decorators?.length) {
|
|
4950
4950
|
const decorators = result._initDecorators(serializedType.decorators.length);
|
|
4951
4951
|
serializedType.decorators.forEach((d, index) => {
|
|
@@ -4982,7 +4982,7 @@ function convertToCapnpMethod(serializedType, result) {
|
|
|
4982
4982
|
__name(convertToCapnpMethod, "convertToCapnpMethod");
|
|
4983
4983
|
function convertFromCapnpFunction(serializedType) {
|
|
4984
4984
|
const result = {
|
|
4985
|
-
kind:
|
|
4985
|
+
kind: ReflectionKind.function,
|
|
4986
4986
|
name: serializedType.name,
|
|
4987
4987
|
typeName: serializedType.typeName || void 0,
|
|
4988
4988
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
@@ -4997,12 +4997,12 @@ function convertFromCapnpFunction(serializedType) {
|
|
|
4997
4997
|
__name(convertFromCapnpFunction, "convertFromCapnpFunction");
|
|
4998
4998
|
function convertFromCapnpMethod(serializedType) {
|
|
4999
4999
|
const result = {
|
|
5000
|
-
kind:
|
|
5000
|
+
kind: ReflectionKind.method,
|
|
5001
5001
|
name: serializedType.name,
|
|
5002
5002
|
typeName: serializedType.typeName || void 0,
|
|
5003
5003
|
abstract: serializedType.abstract ? true : void 0,
|
|
5004
5004
|
return: serializedType.return.id,
|
|
5005
|
-
visibility: serializedType.visibility ===
|
|
5005
|
+
visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
5006
5006
|
parameters: serializedType._hasParameters() ? serializedType.parameters.map((parameter) => convertFromCapnpParameter(parameter)) : []
|
|
5007
5007
|
};
|
|
5008
5008
|
return result;
|
|
@@ -5058,7 +5058,7 @@ function convertToCapnpClassType(serializedType, result) {
|
|
|
5058
5058
|
__name(convertToCapnpClassType, "convertToCapnpClassType");
|
|
5059
5059
|
function convertFromCapnpClassType(serializedType) {
|
|
5060
5060
|
const result = {
|
|
5061
|
-
kind:
|
|
5061
|
+
kind: ReflectionKind.class,
|
|
5062
5062
|
typeName: serializedType.typeName || void 0,
|
|
5063
5063
|
classType: serializedType.classType,
|
|
5064
5064
|
globalObject: serializedType.globalObject ? true : void 0,
|
|
@@ -5109,7 +5109,7 @@ function convertToCapnpObjectLiteral(serializedType, result) {
|
|
|
5109
5109
|
__name(convertToCapnpObjectLiteral, "convertToCapnpObjectLiteral");
|
|
5110
5110
|
function convertFromCapnpObjectLiteral(serializedType) {
|
|
5111
5111
|
const result = {
|
|
5112
|
-
kind:
|
|
5112
|
+
kind: ReflectionKind.objectLiteral,
|
|
5113
5113
|
typeName: serializedType.typeName || void 0,
|
|
5114
5114
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
5115
5115
|
types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
|
|
@@ -5126,7 +5126,7 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
5126
5126
|
result.name = serializedType.name || "";
|
|
5127
5127
|
result.optional = serializedType.optional ?? false;
|
|
5128
5128
|
result.readonly = serializedType.readonly ?? false;
|
|
5129
|
-
result.visibility = serializedType.visibility ===
|
|
5129
|
+
result.visibility = serializedType.visibility === ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
|
|
5130
5130
|
if (typeof serializedType.default !== "undefined") {
|
|
5131
5131
|
const defaultValue = result._initDefault();
|
|
5132
5132
|
convertToCapnpDefault(serializedType.default, defaultValue);
|
|
@@ -5160,13 +5160,13 @@ function convertToCapnpParameter(serializedType, result) {
|
|
|
5160
5160
|
__name(convertToCapnpParameter, "convertToCapnpParameter");
|
|
5161
5161
|
function convertFromCapnpParameter(serializedType) {
|
|
5162
5162
|
const result = {
|
|
5163
|
-
kind:
|
|
5163
|
+
kind: ReflectionKind.parameter,
|
|
5164
5164
|
typeName: serializedType.typeName || void 0,
|
|
5165
5165
|
name: serializedType.name,
|
|
5166
5166
|
default: convertFromCapnpDefault(serializedType.default),
|
|
5167
5167
|
optional: serializedType.optional ? true : void 0,
|
|
5168
5168
|
readonly: serializedType.readonly ? true : void 0,
|
|
5169
|
-
visibility: serializedType.visibility ===
|
|
5169
|
+
visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? ReflectionVisibility.protected : ReflectionVisibility.private,
|
|
5170
5170
|
type: serializedType.type.id,
|
|
5171
5171
|
decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
|
|
5172
5172
|
typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
|
|
2
|
+
var TypeNumberBrand;
|
|
3
|
+
(function(TypeNumberBrand2) {
|
|
4
|
+
TypeNumberBrand2[TypeNumberBrand2["integer"] = 0] = "integer";
|
|
5
|
+
TypeNumberBrand2[TypeNumberBrand2["int8"] = 1] = "int8";
|
|
6
|
+
TypeNumberBrand2[TypeNumberBrand2["int16"] = 2] = "int16";
|
|
7
|
+
TypeNumberBrand2[TypeNumberBrand2["int32"] = 3] = "int32";
|
|
8
|
+
TypeNumberBrand2[TypeNumberBrand2["uint8"] = 4] = "uint8";
|
|
9
|
+
TypeNumberBrand2[TypeNumberBrand2["uint16"] = 5] = "uint16";
|
|
10
|
+
TypeNumberBrand2[TypeNumberBrand2["uint32"] = 6] = "uint32";
|
|
11
|
+
TypeNumberBrand2[TypeNumberBrand2["float"] = 7] = "float";
|
|
12
|
+
TypeNumberBrand2[TypeNumberBrand2["float32"] = 8] = "float32";
|
|
13
|
+
TypeNumberBrand2[TypeNumberBrand2["float64"] = 9] = "float64";
|
|
14
|
+
})(TypeNumberBrand || (TypeNumberBrand = {}));
|
|
15
|
+
var ReflectionOp;
|
|
16
|
+
(function(ReflectionOp2) {
|
|
17
|
+
ReflectionOp2[ReflectionOp2["never"] = 0] = "never";
|
|
18
|
+
ReflectionOp2[ReflectionOp2["any"] = 1] = "any";
|
|
19
|
+
ReflectionOp2[ReflectionOp2["unknown"] = 2] = "unknown";
|
|
20
|
+
ReflectionOp2[ReflectionOp2["void"] = 3] = "void";
|
|
21
|
+
ReflectionOp2[ReflectionOp2["object"] = 4] = "object";
|
|
22
|
+
ReflectionOp2[ReflectionOp2["string"] = 5] = "string";
|
|
23
|
+
ReflectionOp2[ReflectionOp2["number"] = 6] = "number";
|
|
24
|
+
ReflectionOp2[ReflectionOp2["numberBrand"] = 7] = "numberBrand";
|
|
25
|
+
ReflectionOp2[ReflectionOp2["boolean"] = 8] = "boolean";
|
|
26
|
+
ReflectionOp2[ReflectionOp2["bigint"] = 9] = "bigint";
|
|
27
|
+
ReflectionOp2[ReflectionOp2["symbol"] = 10] = "symbol";
|
|
28
|
+
ReflectionOp2[ReflectionOp2["null"] = 11] = "null";
|
|
29
|
+
ReflectionOp2[ReflectionOp2["undefined"] = 12] = "undefined";
|
|
30
|
+
ReflectionOp2[ReflectionOp2["literal"] = 13] = "literal";
|
|
31
|
+
ReflectionOp2[ReflectionOp2["function"] = 14] = "function";
|
|
32
|
+
ReflectionOp2[ReflectionOp2["method"] = 15] = "method";
|
|
33
|
+
ReflectionOp2[ReflectionOp2["methodSignature"] = 16] = "methodSignature";
|
|
34
|
+
ReflectionOp2[ReflectionOp2["parameter"] = 17] = "parameter";
|
|
35
|
+
ReflectionOp2[ReflectionOp2["property"] = 18] = "property";
|
|
36
|
+
ReflectionOp2[ReflectionOp2["propertySignature"] = 19] = "propertySignature";
|
|
37
|
+
ReflectionOp2[ReflectionOp2["class"] = 20] = "class";
|
|
38
|
+
ReflectionOp2[ReflectionOp2["classExtends"] = 21] = "classExtends";
|
|
39
|
+
ReflectionOp2[ReflectionOp2["classReference"] = 22] = "classReference";
|
|
40
|
+
ReflectionOp2[ReflectionOp2["optional"] = 23] = "optional";
|
|
41
|
+
ReflectionOp2[ReflectionOp2["readonly"] = 24] = "readonly";
|
|
42
|
+
ReflectionOp2[ReflectionOp2["public"] = 25] = "public";
|
|
43
|
+
ReflectionOp2[ReflectionOp2["private"] = 26] = "private";
|
|
44
|
+
ReflectionOp2[ReflectionOp2["protected"] = 27] = "protected";
|
|
45
|
+
ReflectionOp2[ReflectionOp2["abstract"] = 28] = "abstract";
|
|
46
|
+
ReflectionOp2[ReflectionOp2["defaultValue"] = 29] = "defaultValue";
|
|
47
|
+
ReflectionOp2[ReflectionOp2["description"] = 30] = "description";
|
|
48
|
+
ReflectionOp2[ReflectionOp2["rest"] = 31] = "rest";
|
|
49
|
+
ReflectionOp2[ReflectionOp2["regexp"] = 32] = "regexp";
|
|
50
|
+
ReflectionOp2[ReflectionOp2["enum"] = 33] = "enum";
|
|
51
|
+
ReflectionOp2[ReflectionOp2["enumMember"] = 34] = "enumMember";
|
|
52
|
+
ReflectionOp2[ReflectionOp2["set"] = 35] = "set";
|
|
53
|
+
ReflectionOp2[ReflectionOp2["map"] = 36] = "map";
|
|
54
|
+
ReflectionOp2[ReflectionOp2["array"] = 37] = "array";
|
|
55
|
+
ReflectionOp2[ReflectionOp2["tuple"] = 38] = "tuple";
|
|
56
|
+
ReflectionOp2[ReflectionOp2["tupleMember"] = 39] = "tupleMember";
|
|
57
|
+
ReflectionOp2[ReflectionOp2["namedTupleMember"] = 40] = "namedTupleMember";
|
|
58
|
+
ReflectionOp2[ReflectionOp2["union"] = 41] = "union";
|
|
59
|
+
ReflectionOp2[ReflectionOp2["intersection"] = 42] = "intersection";
|
|
60
|
+
ReflectionOp2[ReflectionOp2["indexSignature"] = 43] = "indexSignature";
|
|
61
|
+
ReflectionOp2[ReflectionOp2["objectLiteral"] = 44] = "objectLiteral";
|
|
62
|
+
ReflectionOp2[ReflectionOp2["mappedType"] = 45] = "mappedType";
|
|
63
|
+
ReflectionOp2[ReflectionOp2["in"] = 46] = "in";
|
|
64
|
+
ReflectionOp2[ReflectionOp2["frame"] = 47] = "frame";
|
|
65
|
+
ReflectionOp2[ReflectionOp2["moveFrame"] = 48] = "moveFrame";
|
|
66
|
+
ReflectionOp2[ReflectionOp2["return"] = 49] = "return";
|
|
67
|
+
ReflectionOp2[ReflectionOp2["templateLiteral"] = 50] = "templateLiteral";
|
|
68
|
+
ReflectionOp2[ReflectionOp2["date"] = 51] = "date";
|
|
69
|
+
ReflectionOp2[ReflectionOp2["int8Array"] = 52] = "int8Array";
|
|
70
|
+
ReflectionOp2[ReflectionOp2["uint8ClampedArray"] = 53] = "uint8ClampedArray";
|
|
71
|
+
ReflectionOp2[ReflectionOp2["uint8Array"] = 54] = "uint8Array";
|
|
72
|
+
ReflectionOp2[ReflectionOp2["int16Array"] = 55] = "int16Array";
|
|
73
|
+
ReflectionOp2[ReflectionOp2["uint16Array"] = 56] = "uint16Array";
|
|
74
|
+
ReflectionOp2[ReflectionOp2["int32Array"] = 57] = "int32Array";
|
|
75
|
+
ReflectionOp2[ReflectionOp2["uint32Array"] = 58] = "uint32Array";
|
|
76
|
+
ReflectionOp2[ReflectionOp2["float32Array"] = 59] = "float32Array";
|
|
77
|
+
ReflectionOp2[ReflectionOp2["float64Array"] = 60] = "float64Array";
|
|
78
|
+
ReflectionOp2[ReflectionOp2["bigInt64Array"] = 61] = "bigInt64Array";
|
|
79
|
+
ReflectionOp2[ReflectionOp2["arrayBuffer"] = 62] = "arrayBuffer";
|
|
80
|
+
ReflectionOp2[ReflectionOp2["promise"] = 63] = "promise";
|
|
81
|
+
ReflectionOp2[ReflectionOp2["arg"] = 64] = "arg";
|
|
82
|
+
ReflectionOp2[ReflectionOp2["typeParameter"] = 65] = "typeParameter";
|
|
83
|
+
ReflectionOp2[ReflectionOp2["typeParameterDefault"] = 66] = "typeParameterDefault";
|
|
84
|
+
ReflectionOp2[ReflectionOp2["var"] = 67] = "var";
|
|
85
|
+
ReflectionOp2[ReflectionOp2["loads"] = 68] = "loads";
|
|
86
|
+
ReflectionOp2[ReflectionOp2["indexAccess"] = 69] = "indexAccess";
|
|
87
|
+
ReflectionOp2[ReflectionOp2["keyof"] = 70] = "keyof";
|
|
88
|
+
ReflectionOp2[ReflectionOp2["infer"] = 71] = "infer";
|
|
89
|
+
ReflectionOp2[ReflectionOp2["typeof"] = 72] = "typeof";
|
|
90
|
+
ReflectionOp2[ReflectionOp2["condition"] = 73] = "condition";
|
|
91
|
+
ReflectionOp2[ReflectionOp2["jumpCondition"] = 74] = "jumpCondition";
|
|
92
|
+
ReflectionOp2[ReflectionOp2["jump"] = 75] = "jump";
|
|
93
|
+
ReflectionOp2[ReflectionOp2["call"] = 76] = "call";
|
|
94
|
+
ReflectionOp2[ReflectionOp2["inline"] = 77] = "inline";
|
|
95
|
+
ReflectionOp2[ReflectionOp2["inlineCall"] = 78] = "inlineCall";
|
|
96
|
+
ReflectionOp2[ReflectionOp2["distribute"] = 79] = "distribute";
|
|
97
|
+
ReflectionOp2[ReflectionOp2["extends"] = 80] = "extends";
|
|
98
|
+
ReflectionOp2[ReflectionOp2["widen"] = 81] = "widen";
|
|
99
|
+
ReflectionOp2[ReflectionOp2["static"] = 82] = "static";
|
|
100
|
+
ReflectionOp2[ReflectionOp2["mappedType2"] = 83] = "mappedType2";
|
|
101
|
+
ReflectionOp2[ReflectionOp2["functionReference"] = 84] = "functionReference";
|
|
102
|
+
ReflectionOp2[ReflectionOp2["callSignature"] = 85] = "callSignature";
|
|
103
|
+
ReflectionOp2[ReflectionOp2["typeName"] = 86] = "typeName";
|
|
104
|
+
ReflectionOp2[ReflectionOp2["implements"] = 87] = "implements";
|
|
105
|
+
ReflectionOp2[ReflectionOp2["nominal"] = 88] = "nominal";
|
|
106
|
+
ReflectionOp2[ReflectionOp2["tags"] = 89] = "tags";
|
|
107
|
+
})(ReflectionOp || (ReflectionOp = {}));
|
|
108
|
+
|
|
109
|
+
export { ReflectionOp, TypeNumberBrand };
|
package/dist/esbuild-plugin.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunk3PKIT7K2_cjs = require('./chunk-3PKIT7K2.cjs');
|
|
4
|
+
require('./chunk-KDKCOXXC.cjs');
|
|
5
|
+
require('./chunk-O2LKJ62Q.cjs');
|
|
6
|
+
require('./chunk-5NPGWGPO.cjs');
|
|
7
|
+
require('./chunk-BGYQAVKQ.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
Object.defineProperty(exports, "esbuildPlugin", {
|
|
11
12
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3PKIT7K2_cjs.esbuildPlugin; }
|
|
13
14
|
});
|
package/dist/esbuild-plugin.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { esbuildPlugin } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { esbuildPlugin } from './chunk-GVS5O43Z.js';
|
|
2
|
+
import './chunk-JSH5MVQG.js';
|
|
3
|
+
import './chunk-W423FBJ2.js';
|
|
4
|
+
import './chunk-XU55W26B.js';
|
|
5
|
+
import './chunk-3GQAWCBQ.js';
|