@powerlines/deepkit 0.7.8 → 0.8.1
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-C8UENZHc.cjs → capnp-CkbeQ2uR.cjs} +10 -1
- package/dist/{capnp-BYEUkMpr.mjs → capnp-D0NNeu5y.mjs} +9 -1
- package/dist/capnp.cjs +1 -1
- package/dist/capnp.d.cts +3 -1
- package/dist/capnp.d.mts +3 -1
- package/dist/capnp.mjs +1 -1
- package/dist/config-WhZyw1PK.d.mts +40 -0
- package/dist/config-omER4_br.d.cts +40 -0
- package/dist/esbuild-plugin.cjs +2 -1
- package/dist/esbuild-plugin.d.cts +7 -8
- package/dist/esbuild-plugin.d.mts +7 -8
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/reflect-type.cjs +3 -2
- package/dist/reflect-type.mjs +1 -1
- package/dist/{reflection-DGOuMF8F.d.cts → reflection-8fgblw1P.d.cts} +3 -1
- package/dist/{reflection-DaLz4ZT5.d.mts → reflection-l3nKKCgX.d.mts} +3 -1
- package/dist/resolve-reflections.cjs +2 -1
- package/dist/rolldown-plugin.cjs +2 -1
- package/dist/{transformer-BiefehPu.mjs → transformer-CQR2M4x_.mjs} +6 -6
- package/dist/{transformer-DS0zKU7l.cjs → transformer-Cd4-nB11.cjs} +7 -6
- package/dist/transformer.cjs +1 -1
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +1 -1
- package/dist/transpile.cjs +4 -3
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utilities.cjs +2 -1
- package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-DZULKKdI.d.cts} +6 -6
- package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-EpGQgrx7.mjs} +17 -15
- package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-LYoUBwrr.cjs} +18 -15
- package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-tVqzhDgZ.d.mts} +6 -6
- package/dist/vendor/{config-BTErH18l.d.mts → config-B7x14BD7.d.cts} +32 -18
- package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D6zsQbZD.d.mts} +32 -18
- package/dist/vendor/{config-eSNKiBGB.mjs → config-DH0_s6ur.mjs} +16 -15
- package/dist/vendor/{config-BbFVGRVh.cjs → config-kjucozD0.cjs} +20 -18
- package/dist/vendor/core.cjs +98 -120
- package/dist/vendor/core.mjs +1 -24
- package/dist/vendor/type-compiler/compiler.cjs +1 -1
- package/dist/vendor/type-compiler/compiler.d.cts +1 -1
- package/dist/vendor/type-compiler/compiler.d.mts +1 -1
- package/dist/vendor/type-compiler/compiler.mjs +1 -1
- package/dist/vendor/type-compiler/config.cjs +2 -2
- package/dist/vendor/type-compiler/config.d.cts +2 -2
- package/dist/vendor/type-compiler/config.d.mts +2 -2
- package/dist/vendor/type-compiler/config.mjs +2 -2
- package/dist/vendor/type-compiler/index.cjs +7 -6
- package/dist/vendor/type-compiler/index.d.cts +4 -4
- package/dist/vendor/type-compiler/index.d.mts +4 -4
- package/dist/vendor/type-compiler/index.mjs +5 -5
- package/dist/vendor/type-fEQrgtBF.cjs +2 -1
- package/dist/vendor/type.cjs +11472 -5376
- package/dist/vendor/type.d.cts +220 -24
- package/dist/vendor/type.d.mts +220 -24
- package/dist/vendor/type.mjs +11530 -5631
- package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
- package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +43 -1
- package/package.json +4 -4
- package/schemas/reflection.capnp +3 -2
- package/schemas/reflection.cjs +6 -0
- package/schemas/reflection.d.cts +2 -0
- package/schemas/reflection.d.mts +2 -0
- package/schemas/reflection.mjs +6 -0
- package/dist/config-B6lMYoYG.d.mts +0 -32
- package/dist/config-C8svu6th.d.cts +0 -32
|
@@ -64,6 +64,12 @@ var TagsReflection = class extends _stryke_capnp.Struct {
|
|
|
64
64
|
set internal(value) {
|
|
65
65
|
_stryke_capnp.utils.setBit(3, value, this);
|
|
66
66
|
}
|
|
67
|
+
get runtime() {
|
|
68
|
+
return _stryke_capnp.utils.getBit(4, this);
|
|
69
|
+
}
|
|
70
|
+
set runtime(value) {
|
|
71
|
+
_stryke_capnp.utils.setBit(4, value, this);
|
|
72
|
+
}
|
|
67
73
|
_adoptPermission(value) {
|
|
68
74
|
_stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(2, this));
|
|
69
75
|
}
|
|
@@ -4043,6 +4049,7 @@ function convertToCapnpTagsReflection(result, serializedType) {
|
|
|
4043
4049
|
result.hidden = serializedType?.hidden ?? false;
|
|
4044
4050
|
result.ignore = serializedType?.ignore ?? false;
|
|
4045
4051
|
result.internal = serializedType?.internal ?? false;
|
|
4052
|
+
result.runtime = serializedType?.runtime ?? false;
|
|
4046
4053
|
result.readonly = serializedType?.readonly ?? false;
|
|
4047
4054
|
if (serializedType?.title) result.title = serializedType?.title;
|
|
4048
4055
|
if (serializedType?.domain) result.domain = serializedType?.domain;
|
|
@@ -4062,6 +4069,7 @@ function convertFromCapnpTagsReflection(serializedType) {
|
|
|
4062
4069
|
title: serializedType.tags?.title ? serializedType.tags.title : void 0,
|
|
4063
4070
|
ignore: serializedType.tags?.ignore,
|
|
4064
4071
|
internal: serializedType.tags?.internal,
|
|
4072
|
+
runtime: serializedType.tags?.runtime,
|
|
4065
4073
|
readonly: serializedType.tags?.readonly,
|
|
4066
4074
|
permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
|
|
4067
4075
|
} : void 0;
|
|
@@ -5172,4 +5180,5 @@ Object.defineProperty(exports, 'convertToCapnpUnion', {
|
|
|
5172
5180
|
get: function () {
|
|
5173
5181
|
return convertToCapnpUnion;
|
|
5174
5182
|
}
|
|
5175
|
-
});
|
|
5183
|
+
});
|
|
5184
|
+
//# sourceMappingURL=capnp-CkbeQ2uR.cjs.map
|
|
@@ -62,6 +62,12 @@ var TagsReflection$1 = class extends $.Struct {
|
|
|
62
62
|
set internal(value) {
|
|
63
63
|
$.utils.setBit(3, value, this);
|
|
64
64
|
}
|
|
65
|
+
get runtime() {
|
|
66
|
+
return $.utils.getBit(4, this);
|
|
67
|
+
}
|
|
68
|
+
set runtime(value) {
|
|
69
|
+
$.utils.setBit(4, value, this);
|
|
70
|
+
}
|
|
65
71
|
_adoptPermission(value) {
|
|
66
72
|
$.utils.adopt(value, $.utils.getPointer(2, this));
|
|
67
73
|
}
|
|
@@ -4041,6 +4047,7 @@ function convertToCapnpTagsReflection(result, serializedType) {
|
|
|
4041
4047
|
result.hidden = serializedType?.hidden ?? false;
|
|
4042
4048
|
result.ignore = serializedType?.ignore ?? false;
|
|
4043
4049
|
result.internal = serializedType?.internal ?? false;
|
|
4050
|
+
result.runtime = serializedType?.runtime ?? false;
|
|
4044
4051
|
result.readonly = serializedType?.readonly ?? false;
|
|
4045
4052
|
if (serializedType?.title) result.title = serializedType?.title;
|
|
4046
4053
|
if (serializedType?.domain) result.domain = serializedType?.domain;
|
|
@@ -4060,6 +4067,7 @@ function convertFromCapnpTagsReflection(serializedType) {
|
|
|
4060
4067
|
title: serializedType.tags?.title ? serializedType.tags.title : void 0,
|
|
4061
4068
|
ignore: serializedType.tags?.ignore,
|
|
4062
4069
|
internal: serializedType.tags?.internal,
|
|
4070
|
+
runtime: serializedType.tags?.runtime,
|
|
4063
4071
|
readonly: serializedType.tags?.readonly,
|
|
4064
4072
|
permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
|
|
4065
4073
|
} : void 0;
|
|
@@ -4902,4 +4910,4 @@ function convertFromCapnpParameter(serializedType) {
|
|
|
4902
4910
|
|
|
4903
4911
|
//#endregion
|
|
4904
4912
|
export { convertToCapnpIndexAccessOrigin as A, convertToCapnpPropertySignature as B, convertToCapnp as C, convertToCapnpDefault as D, convertToCapnpClassType as E, convertToCapnpMethodSignature as F, convertToCapnpUnion as G, convertToCapnpTagsReflection as H, convertToCapnpObjectLiteral as I, convertToCapnpOther as L, convertToCapnpIntersection as M, convertToCapnpLiteral as N, convertToCapnpEnum as O, convertToCapnpMethod as P, convertToCapnpParameter as R, convertFromCapnpUnion as S, convertToCapnpBase as T, convertToCapnpTuple as U, convertToCapnpSimple as V, convertToCapnpTupleMember as W, convertFromCapnpPropertySignature as _, convertFromCapnpDefault as a, convertFromCapnpTuple as b, convertFromCapnpIndexAccessOrigin as c, convertFromCapnpLiteral as d, convertFromCapnpMethodSignature as f, convertFromCapnpProperty as g, convertFromCapnpParameter as h, convertFromCapnpClassType as i, convertToCapnpInfer as j, convertToCapnpFunction as k, convertFromCapnpInfer as l, convertFromCapnpOther as m, convertFromCapnpArray as n, convertFromCapnpEnum as o, convertFromCapnpObjectLiteral as p, convertFromCapnpBase as r, convertFromCapnpFunction as s, convertFromCapnp as t, convertFromCapnpIntersection as u, convertFromCapnpSimple as v, convertToCapnpArray as w, convertFromCapnpTupleMember as x, convertFromCapnpTagsReflection as y, convertToCapnpProperty as z };
|
|
4905
|
-
//# sourceMappingURL=capnp-
|
|
4913
|
+
//# sourceMappingURL=capnp-D0NNeu5y.mjs.map
|
package/dist/capnp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_capnp = require('./capnp-
|
|
2
|
+
const require_capnp = require('./capnp-CkbeQ2uR.cjs');
|
|
3
3
|
|
|
4
4
|
exports.convertFromCapnp = require_capnp.convertFromCapnp;
|
|
5
5
|
exports.convertFromCapnpArray = require_capnp.convertFromCapnpArray;
|
package/dist/capnp.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-
|
|
1
|
+
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-8fgblw1P.cjs";
|
|
2
2
|
import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
import { List } from "@stryke/capnp";
|
|
4
4
|
|
|
@@ -33,6 +33,7 @@ interface WithTagsReflection {
|
|
|
33
33
|
title: string;
|
|
34
34
|
ignore: boolean;
|
|
35
35
|
internal: boolean;
|
|
36
|
+
runtime: boolean;
|
|
36
37
|
readonly: boolean;
|
|
37
38
|
permission: string[];
|
|
38
39
|
};
|
|
@@ -44,6 +45,7 @@ declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflecti
|
|
|
44
45
|
title: string | undefined;
|
|
45
46
|
ignore: boolean | undefined;
|
|
46
47
|
internal: boolean | undefined;
|
|
48
|
+
runtime: boolean | undefined;
|
|
47
49
|
readonly: boolean | undefined;
|
|
48
50
|
permission: string[] | undefined;
|
|
49
51
|
} | undefined;
|
package/dist/capnp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-
|
|
1
|
+
import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-l3nKKCgX.mjs";
|
|
2
2
|
import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
import { List } from "@stryke/capnp";
|
|
4
4
|
|
|
@@ -33,6 +33,7 @@ interface WithTagsReflection {
|
|
|
33
33
|
title: string;
|
|
34
34
|
ignore: boolean;
|
|
35
35
|
internal: boolean;
|
|
36
|
+
runtime: boolean;
|
|
36
37
|
readonly: boolean;
|
|
37
38
|
permission: string[];
|
|
38
39
|
};
|
|
@@ -44,6 +45,7 @@ declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflecti
|
|
|
44
45
|
title: string | undefined;
|
|
45
46
|
ignore: boolean | undefined;
|
|
46
47
|
internal: boolean | undefined;
|
|
48
|
+
runtime: boolean | undefined;
|
|
47
49
|
readonly: boolean | undefined;
|
|
48
50
|
permission: string[] | undefined;
|
|
49
51
|
} | undefined;
|
package/dist/capnp.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-
|
|
1
|
+
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-D0NNeu5y.mjs";
|
|
2
2
|
|
|
3
3
|
export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default means reflection is enabled for this file.
|
|
6
|
+
* Never means the whole reflection is disabled for this file.
|
|
7
|
+
* Explicit means that reflection is per default disabled for this file, but each symbol/type
|
|
8
|
+
* in it is allowed to enable it using jsdoc `@reflection`.
|
|
9
|
+
*/
|
|
10
|
+
declare const reflectionModes: readonly ["default", "explicit", "never"];
|
|
11
|
+
type Mode = (typeof reflectionModes)[number];
|
|
12
|
+
declare const level: string[];
|
|
13
|
+
type Level = (typeof level)[number];
|
|
14
|
+
interface ReflectionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Allows to exclude type definitions/TS files from being included in the type compilation step.
|
|
17
|
+
* When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
|
|
18
|
+
*/
|
|
19
|
+
exclude?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
22
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
23
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
24
|
+
*/
|
|
25
|
+
reflection?: string[] | Mode;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
31
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
32
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
33
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
34
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
35
|
+
*/
|
|
36
|
+
level?: Level;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
40
|
+
//# sourceMappingURL=config-WhZyw1PK.d.mts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default means reflection is enabled for this file.
|
|
6
|
+
* Never means the whole reflection is disabled for this file.
|
|
7
|
+
* Explicit means that reflection is per default disabled for this file, but each symbol/type
|
|
8
|
+
* in it is allowed to enable it using jsdoc `@reflection`.
|
|
9
|
+
*/
|
|
10
|
+
declare const reflectionModes: readonly ["default", "explicit", "never"];
|
|
11
|
+
type Mode = (typeof reflectionModes)[number];
|
|
12
|
+
declare const level: string[];
|
|
13
|
+
type Level = (typeof level)[number];
|
|
14
|
+
interface ReflectionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Allows to exclude type definitions/TS files from being included in the type compilation step.
|
|
17
|
+
* When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
|
|
18
|
+
*/
|
|
19
|
+
exclude?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
22
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
23
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
24
|
+
*/
|
|
25
|
+
reflection?: string[] | Mode;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
31
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
32
|
+
* - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
33
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
34
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
35
|
+
*/
|
|
36
|
+
level?: Level;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
40
|
+
//# sourceMappingURL=config-omER4_br.d.cts.map
|
package/dist/esbuild-plugin.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Mode, t as Level } from "./config-
|
|
1
|
+
import { n as Mode, t as Level } from "./config-omER4_br.cjs";
|
|
2
2
|
import { PluginContext } from "@powerlines/core";
|
|
3
3
|
import { OnLoadOptions, Plugin } from "esbuild";
|
|
4
4
|
|
|
@@ -24,14 +24,13 @@ interface ReflectionConfig {
|
|
|
24
24
|
* Defines the level of reflection to be used during the transpilation process.
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
*
|
|
28
|
-
* - `
|
|
29
|
-
* - `
|
|
30
|
-
* - `
|
|
31
|
-
*
|
|
32
|
-
* @defaultValue "normal"
|
|
27
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
28
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
29
|
+
* - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
30
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
31
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
level?: Level;
|
|
35
34
|
}
|
|
36
35
|
interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
|
|
37
36
|
onLoad?: Partial<OnLoadOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Mode, t as Level } from "./config-
|
|
1
|
+
import { n as Mode, t as Level } from "./config-WhZyw1PK.mjs";
|
|
2
2
|
import { PluginContext } from "@powerlines/core";
|
|
3
3
|
import { OnLoadOptions, Plugin } from "esbuild";
|
|
4
4
|
|
|
@@ -24,14 +24,13 @@ interface ReflectionConfig {
|
|
|
24
24
|
* Defines the level of reflection to be used during the transpilation process.
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
*
|
|
28
|
-
* - `
|
|
29
|
-
* - `
|
|
30
|
-
* - `
|
|
31
|
-
*
|
|
32
|
-
* @defaultValue "normal"
|
|
27
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
28
|
+
* - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
|
|
29
|
+
* - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
|
|
30
|
+
* - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
|
|
31
|
+
* - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
level?: Level;
|
|
35
34
|
}
|
|
36
35
|
interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
|
|
37
36
|
onLoad?: Partial<OnLoadOptions>;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_capnp = require('./capnp-
|
|
3
|
-
const require_transformer = require('./transformer-
|
|
2
|
+
const require_capnp = require('./capnp-CkbeQ2uR.cjs');
|
|
3
|
+
const require_transformer = require('./transformer-Cd4-nB11.cjs');
|
|
4
4
|
const require_transpile = require('./transpile.cjs');
|
|
5
5
|
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
6
6
|
const require_reflect_type = require('./reflect-type.cjs');
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-
|
|
2
|
-
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-CQR2M4x_.mjs";
|
|
2
|
+
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-D0NNeu5y.mjs";
|
|
3
3
|
import { transpile } from "./transpile.mjs";
|
|
4
4
|
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
5
5
|
import { reflectType } from "./reflect-type.mjs";
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -18,9 +18,10 @@ let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esb
|
|
|
18
18
|
async function reflectType(context, type, overrides = {}) {
|
|
19
19
|
return (0, _powerlines_deepkit_vendor_type.reflect)(await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(context, type, (0, defu.default)(overrides, { plugins: [require_esbuild_plugin.esbuildPlugin(context, {
|
|
20
20
|
reflection: "default",
|
|
21
|
-
|
|
21
|
+
level: "all"
|
|
22
22
|
})] })));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
exports.reflectType = reflectType;
|
|
26
|
+
exports.reflectType = reflectType;
|
|
27
|
+
//# sourceMappingURL=reflect-type.cjs.map
|
package/dist/reflect-type.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
|
|
|
15
15
|
async function reflectType(context, type, overrides = {}) {
|
|
16
16
|
return reflect(await resolve(context, type, defu(overrides, { plugins: [esbuildPlugin(context, {
|
|
17
17
|
reflection: "default",
|
|
18
|
-
|
|
18
|
+
level: "all"
|
|
19
19
|
})] })));
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -68,6 +68,8 @@ declare class TagsReflection extends $.Struct {
|
|
|
68
68
|
set ignore(value: boolean);
|
|
69
69
|
get internal(): boolean;
|
|
70
70
|
set internal(value: boolean);
|
|
71
|
+
get runtime(): boolean;
|
|
72
|
+
set runtime(value: boolean);
|
|
71
73
|
_adoptPermission(value: $.Orphan<$.List<string>>): void;
|
|
72
74
|
_disownPermission(): $.Orphan<$.List<string>>;
|
|
73
75
|
get permission(): $.List<string>;
|
|
@@ -1558,4 +1560,4 @@ declare class SerializedTypes extends $.Struct {
|
|
|
1558
1560
|
} //#endregion
|
|
1559
1561
|
//#endregion
|
|
1560
1562
|
export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
|
|
1561
|
-
//# sourceMappingURL=reflection-
|
|
1563
|
+
//# sourceMappingURL=reflection-8fgblw1P.d.cts.map
|
|
@@ -68,6 +68,8 @@ declare class TagsReflection extends $.Struct {
|
|
|
68
68
|
set ignore(value: boolean);
|
|
69
69
|
get internal(): boolean;
|
|
70
70
|
set internal(value: boolean);
|
|
71
|
+
get runtime(): boolean;
|
|
72
|
+
set runtime(value: boolean);
|
|
71
73
|
_adoptPermission(value: $.Orphan<$.List<string>>): void;
|
|
72
74
|
_disownPermission(): $.Orphan<$.List<string>>;
|
|
73
75
|
get permission(): $.List<string>;
|
|
@@ -1558,4 +1560,4 @@ declare class SerializedTypes extends $.Struct {
|
|
|
1558
1560
|
} //#endregion
|
|
1559
1561
|
//#endregion
|
|
1560
1562
|
export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
|
|
1561
|
-
//# sourceMappingURL=reflection-
|
|
1563
|
+
//# sourceMappingURL=reflection-l3nKKCgX.d.mts.map
|
package/dist/rolldown-plugin.cjs
CHANGED
|
@@ -1257,7 +1257,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1257
1257
|
}));
|
|
1258
1258
|
|
|
1259
1259
|
//#endregion
|
|
1260
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
1260
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
1261
1261
|
var import_dist = require_dist();
|
|
1262
1262
|
const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind } = ts;
|
|
1263
1263
|
const packSizeByte = 6;
|
|
@@ -1327,11 +1327,11 @@ function createTransformer(context, options = {}) {
|
|
|
1327
1327
|
cache.tick();
|
|
1328
1328
|
return new ReflectionTransformer(ctx, cache).withReflection(defu(options, {
|
|
1329
1329
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
1330
|
-
|
|
1330
|
+
level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
|
|
1331
1331
|
}, {
|
|
1332
1332
|
exclude: [],
|
|
1333
1333
|
reflection: "default",
|
|
1334
|
-
|
|
1334
|
+
level: "default"
|
|
1335
1335
|
}));
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
@@ -1346,15 +1346,15 @@ function createDeclarationTransformer(context, options = {}) {
|
|
|
1346
1346
|
return function declarationTransformer(ctx) {
|
|
1347
1347
|
return new DeclarationTransformer(ctx, cache).withReflection(defu(options, {
|
|
1348
1348
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
1349
|
-
|
|
1349
|
+
level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
|
|
1350
1350
|
}, {
|
|
1351
1351
|
exclude: [],
|
|
1352
1352
|
reflection: "default",
|
|
1353
|
-
|
|
1353
|
+
level: "default"
|
|
1354
1354
|
}));
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
1358
|
//#endregion
|
|
1359
1359
|
export { createTransformer as n, createDeclarationTransformer as t };
|
|
1360
|
-
//# sourceMappingURL=transformer-
|
|
1360
|
+
//# sourceMappingURL=transformer-CQR2M4x_.mjs.map
|
|
@@ -1254,7 +1254,7 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
1254
1254
|
}));
|
|
1255
1255
|
|
|
1256
1256
|
//#endregion
|
|
1257
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
1257
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
1258
1258
|
var import_dist = require_dist();
|
|
1259
1259
|
const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind } = typescript.default;
|
|
1260
1260
|
const packSizeByte = 6;
|
|
@@ -1324,11 +1324,11 @@ function createTransformer(context, options = {}) {
|
|
|
1324
1324
|
cache.tick();
|
|
1325
1325
|
return new _powerlines_deepkit_vendor_type_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
1326
1326
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
1327
|
-
|
|
1327
|
+
level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
|
|
1328
1328
|
}, {
|
|
1329
1329
|
exclude: [],
|
|
1330
1330
|
reflection: "default",
|
|
1331
|
-
|
|
1331
|
+
level: "default"
|
|
1332
1332
|
}));
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
@@ -1343,11 +1343,11 @@ function createDeclarationTransformer(context, options = {}) {
|
|
|
1343
1343
|
return function declarationTransformer(ctx) {
|
|
1344
1344
|
return new _powerlines_deepkit_vendor_type_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
1345
1345
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
1346
|
-
|
|
1346
|
+
level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
|
|
1347
1347
|
}, {
|
|
1348
1348
|
exclude: [],
|
|
1349
1349
|
reflection: "default",
|
|
1350
|
-
|
|
1350
|
+
level: "default"
|
|
1351
1351
|
}));
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
@@ -1364,4 +1364,5 @@ Object.defineProperty(exports, 'createTransformer', {
|
|
|
1364
1364
|
get: function () {
|
|
1365
1365
|
return createTransformer;
|
|
1366
1366
|
}
|
|
1367
|
-
});
|
|
1367
|
+
});
|
|
1368
|
+
//# sourceMappingURL=transformer-Cd4-nB11.cjs.map
|
package/dist/transformer.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_transformer = require('./transformer-
|
|
2
|
+
const require_transformer = require('./transformer-Cd4-nB11.cjs');
|
|
3
3
|
|
|
4
4
|
exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
|
|
5
5
|
exports.createTransformer = require_transformer.createTransformer;
|
package/dist/transformer.d.cts
CHANGED
package/dist/transformer.d.mts
CHANGED
package/dist/transformer.mjs
CHANGED
package/dist/transpile.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
|
-
const require_transformer = require('./transformer-
|
|
3
|
+
const require_transformer = require('./transformer-Cd4-nB11.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
5
|
typescript = require_chunk.__toESM(typescript);
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ function transpile(context, code, id, options = {}) {
|
|
|
21
21
|
compilerOptions: {
|
|
22
22
|
...context.tsconfig.options,
|
|
23
23
|
reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
|
|
24
|
-
|
|
24
|
+
level: options.level ?? context.tsconfig.tsconfigJson.compilerOptions?.level ?? context.tsconfig.tsconfigJson.level
|
|
25
25
|
},
|
|
26
26
|
fileName: id,
|
|
27
27
|
transformers: {
|
|
@@ -32,4 +32,5 @@ function transpile(context, code, id, options = {}) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
|
-
exports.transpile = transpile;
|
|
35
|
+
exports.transpile = transpile;
|
|
36
|
+
//# sourceMappingURL=transpile.cjs.map
|
package/dist/transpile.d.cts
CHANGED
package/dist/transpile.d.mts
CHANGED
package/dist/transpile.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-CQR2M4x_.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/transpile.ts
|
|
@@ -18,7 +18,7 @@ function transpile(context, code, id, options = {}) {
|
|
|
18
18
|
compilerOptions: {
|
|
19
19
|
...context.tsconfig.options,
|
|
20
20
|
reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
|
|
21
|
-
|
|
21
|
+
level: options.level ?? context.tsconfig.tsconfigJson.compilerOptions?.level ?? context.tsconfig.tsconfigJson.level
|
|
22
22
|
},
|
|
23
23
|
fileName: id,
|
|
24
24
|
transformers: {
|
package/dist/types.d.cts
CHANGED
package/dist/types.d.mts
CHANGED
package/dist/utilities.cjs
CHANGED
|
@@ -115,4 +115,5 @@ exports.isStringUnion = isStringUnion;
|
|
|
115
115
|
exports.kindToName = kindToName;
|
|
116
116
|
exports.stringifyDefaultValue = stringifyDefaultValue;
|
|
117
117
|
exports.stringifyStringValue = stringifyStringValue;
|
|
118
|
-
exports.stringifyValue = stringifyValue;
|
|
118
|
+
exports.stringifyValue = stringifyValue;
|
|
119
|
+
//# sourceMappingURL=utilities.cjs.map
|