@powerlines/deepkit 0.7.7 → 0.8.0
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/{packages/deepkit/schemas/reflection.cjs → capnp-CkbeQ2uR.cjs} +1189 -4
- package/dist/{packages/deepkit/schemas/reflection.mjs → capnp-D0NNeu5y.mjs} +1175 -259
- package/dist/capnp.cjs +46 -955
- package/dist/capnp.d.cts +3 -1
- package/dist/capnp.d.mts +3 -1
- package/dist/capnp.mjs +2 -911
- package/dist/{_virtual/_rolldown/runtime.cjs → chunk-BmvPcxpV.cjs} +12 -2
- package/dist/config-ClUYu_c-.d.mts +40 -0
- package/dist/config-u7zg69VP.d.cts +40 -0
- package/dist/esbuild-plugin.cjs +1 -1
- package/dist/esbuild-plugin.d.cts +7 -8
- package/dist/esbuild-plugin.d.mts +7 -8
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/dist/reflect-type.cjs +3 -3
- package/dist/reflect-type.mjs +1 -1
- package/dist/{packages/deepkit/schemas/reflection.d.mts → reflection-8fgblw1P.d.cts} +4 -2
- package/dist/{packages/deepkit/schemas/reflection.d.cts → reflection-l3nKKCgX.d.mts} +4 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/transformer-BseLGhId.mjs +1360 -0
- package/dist/transformer-Ct9lYNRY.cjs +1367 -0
- package/dist/transformer.cjs +3 -52
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -50
- package/dist/transpile.cjs +4 -4
- 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 +1 -1
- package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-Ba99lbTF.mjs} +11 -12
- package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-CZ0k-pTB.d.cts} +6 -6
- package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-DIcnaeXC.d.mts} +6 -6
- package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-DYfCGCv5.cjs} +10 -11
- package/dist/vendor/{config-eSNKiBGB.mjs → config-BFH3ETeQ.mjs} +16 -15
- package/dist/vendor/{config-BTErH18l.d.mts → config-BQtfsjwX.d.mts} +32 -18
- package/dist/vendor/{config-BbFVGRVh.cjs → config-Cadu6Rkt.cjs} +18 -17
- package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D0jKbRFV.d.cts} +32 -18
- package/dist/vendor/core.cjs +97 -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 +5 -5
- 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.cjs +11015 -4928
- package/dist/vendor/type.d.cts +220 -24
- package/dist/vendor/type.d.mts +220 -24
- package/dist/vendor/type.mjs +11521 -5630
- package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
- package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +41 -0
- 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/_virtual/_rolldown/runtime.mjs +0 -8
package/dist/transformer.cjs
CHANGED
|
@@ -1,54 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_compiler = require('./node_modules/.pnpm/@deepkit_type-compiler@1.0.5_patch_hash_439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.cjs');
|
|
4
|
-
let _powerlines_deepkit_vendor_type_compiler = require("@powerlines/deepkit/vendor/type-compiler");
|
|
5
|
-
let defu = require("defu");
|
|
6
|
-
defu = require_runtime.__toESM(defu);
|
|
2
|
+
const require_transformer = require('./transformer-Ct9lYNRY.cjs');
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const cache = new require_compiler.Cache();
|
|
11
|
-
/**
|
|
12
|
-
* Creates a Deepkit TypeScript transformer.
|
|
13
|
-
*
|
|
14
|
-
* @param context - The Powerlines plugin context.
|
|
15
|
-
* @param options - The transformation options.
|
|
16
|
-
* @returns A Deepkit TypeScript custom transformer factory.
|
|
17
|
-
*/
|
|
18
|
-
function createTransformer(context, options = {}) {
|
|
19
|
-
return function transformer(ctx) {
|
|
20
|
-
if (!loaded) loaded = true;
|
|
21
|
-
cache.tick();
|
|
22
|
-
return new _powerlines_deepkit_vendor_type_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
23
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
24
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
25
|
-
}, {
|
|
26
|
-
exclude: [],
|
|
27
|
-
reflection: "default",
|
|
28
|
-
reflectionLevel: "normal"
|
|
29
|
-
}));
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Creates a Deepkit TypeScript declaration transformer.
|
|
34
|
-
*
|
|
35
|
-
* @param context - The Powerlines plugin context.
|
|
36
|
-
* @param options - The transformation options.
|
|
37
|
-
* @returns A Deepkit TypeScript custom declaration transformer factory.
|
|
38
|
-
*/
|
|
39
|
-
function createDeclarationTransformer(context, options = {}) {
|
|
40
|
-
return function declarationTransformer(ctx) {
|
|
41
|
-
return new _powerlines_deepkit_vendor_type_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
42
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
43
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
44
|
-
}, {
|
|
45
|
-
exclude: [],
|
|
46
|
-
reflection: "default",
|
|
47
|
-
reflectionLevel: "normal"
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
exports.createDeclarationTransformer = createDeclarationTransformer;
|
|
54
|
-
exports.createTransformer = createTransformer;
|
|
4
|
+
exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
|
|
5
|
+
exports.createTransformer = require_transformer.createTransformer;
|
package/dist/transformer.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-u7zg69VP.cjs";
|
|
2
2
|
import { Context } from "@powerlines/core";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
|
package/dist/transformer.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-ClUYu_c-.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Context } from "@powerlines/core";
|
|
4
4
|
|
package/dist/transformer.mjs
CHANGED
|
@@ -1,51 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DeclarationTransformer, ReflectionTransformer } from "@powerlines/deepkit/vendor/type-compiler";
|
|
3
|
-
import defu from "defu";
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BseLGhId.mjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
let loaded = false;
|
|
7
|
-
const cache = new Cache();
|
|
8
|
-
/**
|
|
9
|
-
* Creates a Deepkit TypeScript transformer.
|
|
10
|
-
*
|
|
11
|
-
* @param context - The Powerlines plugin context.
|
|
12
|
-
* @param options - The transformation options.
|
|
13
|
-
* @returns A Deepkit TypeScript custom transformer factory.
|
|
14
|
-
*/
|
|
15
|
-
function createTransformer(context, options = {}) {
|
|
16
|
-
return function transformer(ctx) {
|
|
17
|
-
if (!loaded) loaded = true;
|
|
18
|
-
cache.tick();
|
|
19
|
-
return new ReflectionTransformer(ctx, cache).withReflection(defu(options, {
|
|
20
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
21
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
22
|
-
}, {
|
|
23
|
-
exclude: [],
|
|
24
|
-
reflection: "default",
|
|
25
|
-
reflectionLevel: "normal"
|
|
26
|
-
}));
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Creates a Deepkit TypeScript declaration transformer.
|
|
31
|
-
*
|
|
32
|
-
* @param context - The Powerlines plugin context.
|
|
33
|
-
* @param options - The transformation options.
|
|
34
|
-
* @returns A Deepkit TypeScript custom declaration transformer factory.
|
|
35
|
-
*/
|
|
36
|
-
function createDeclarationTransformer(context, options = {}) {
|
|
37
|
-
return function declarationTransformer(ctx) {
|
|
38
|
-
return new DeclarationTransformer(ctx, cache).withReflection(defu(options, {
|
|
39
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
40
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
41
|
-
}, {
|
|
42
|
-
exclude: [],
|
|
43
|
-
reflection: "default",
|
|
44
|
-
reflectionLevel: "normal"
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { createDeclarationTransformer, createTransformer };
|
|
51
|
-
//# sourceMappingURL=transformer.mjs.map
|
|
3
|
+
export { createDeclarationTransformer, createTransformer };
|
package/dist/transpile.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_transformer = require('./transformer.cjs');
|
|
2
|
+
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
|
+
const require_transformer = require('./transformer-Ct9lYNRY.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
|
-
typescript =
|
|
5
|
+
typescript = require_chunk.__toESM(typescript);
|
|
6
6
|
|
|
7
7
|
//#region src/transpile.ts
|
|
8
8
|
/**
|
|
@@ -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: {
|
package/dist/transpile.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-u7zg69VP.cjs";
|
|
2
2
|
import { Context } from "@powerlines/core";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
|
package/dist/transpile.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-ClUYu_c-.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Context } from "@powerlines/core";
|
|
4
4
|
|
package/dist/transpile.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BseLGhId.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
3
|
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
4
4
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
5
5
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./chunk-CgI6uo-e.mjs";
|
|
2
2
|
import { n as TypeNumberBrand, t as ReflectionOp } from "./type-wscUl8NW.mjs";
|
|
3
|
-
import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-
|
|
3
|
+
import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-BFH3ETeQ.mjs";
|
|
4
4
|
import ts, { isBigIntLiteral } from "typescript";
|
|
5
5
|
|
|
6
6
|
//#region ../../node_modules/.pnpm/@typescript+vfs@1.6.4_typescript@5.9.3/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
|
|
@@ -4579,7 +4579,7 @@ function executeCloneNode(node, options) {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
|
|
4581
4581
|
//#endregion
|
|
4582
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4582
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
4583
4583
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$1, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = ts;
|
|
4584
4584
|
function is__String(value) {
|
|
4585
4585
|
return typeof value === "string";
|
|
@@ -4815,7 +4815,7 @@ function finish(oldNode, newNode) {
|
|
|
4815
4815
|
}
|
|
4816
4816
|
|
|
4817
4817
|
//#endregion
|
|
4818
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4818
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
4819
4819
|
var import_dist = require_dist();
|
|
4820
4820
|
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: ScriptKind$1 } = ts;
|
|
4821
4821
|
function encodeOps(ops) {
|
|
@@ -5124,7 +5124,7 @@ var ReflectionTransformer = class {
|
|
|
5124
5124
|
}
|
|
5125
5125
|
withReflection(config) {
|
|
5126
5126
|
const configResolver = {
|
|
5127
|
-
|
|
5127
|
+
level: "default",
|
|
5128
5128
|
...config,
|
|
5129
5129
|
path: "",
|
|
5130
5130
|
mergeStrategy: "replace",
|
|
@@ -5134,7 +5134,7 @@ var ReflectionTransformer = class {
|
|
|
5134
5134
|
return {
|
|
5135
5135
|
mode: reflectionModeMatcher(config, path),
|
|
5136
5136
|
tsConfigPath: "",
|
|
5137
|
-
level: configResolver.
|
|
5137
|
+
level: configResolver.level
|
|
5138
5138
|
};
|
|
5139
5139
|
};
|
|
5140
5140
|
this.overriddenConfigResolver = {
|
|
@@ -5482,13 +5482,12 @@ var ReflectionTransformer = class {
|
|
|
5482
5482
|
tags.hidden = extractJSDocBoolean(this.sourceFile, node, "hidden");
|
|
5483
5483
|
tags.ignore = extractJSDocBoolean(this.sourceFile, node, "ignore");
|
|
5484
5484
|
tags.internal = extractJSDocBoolean(this.sourceFile, node, "internal");
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
} else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
|
|
5485
|
+
tags.runtime = extractJSDocBoolean(this.sourceFile, node, "runtime");
|
|
5486
|
+
if (this.getReflectionConfig(this.sourceFile).level === "default") tags.alias = extractJSDocArray(this.sourceFile, node, "alias");
|
|
5487
|
+
else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
|
|
5489
5488
|
tags.permission = extractJSDocArray(this.sourceFile, node, "permission");
|
|
5490
5489
|
tags.domain = extractJSDocAttribute(this.sourceFile, node, "domain");
|
|
5491
|
-
} else if (this.getReflectionConfig(this.sourceFile).level === "
|
|
5490
|
+
} else if (this.getReflectionConfig(this.sourceFile).level === "all") tags.title = extractJSDocAttribute(this.sourceFile, node, "title");
|
|
5492
5491
|
return tags;
|
|
5493
5492
|
}
|
|
5494
5493
|
extractTagReflections(program, node) {
|
|
@@ -5505,7 +5504,7 @@ var ReflectionTransformer = class {
|
|
|
5505
5504
|
if (defaultValue) program.pushOp(ReflectionOp.defaultValue, program.findOrAddStackEntry(this.parseDefaultValue((node.kind === SyntaxKind.ClassDeclaration || node.kind === SyntaxKind.ClassExpression ? node?.name?.parent?.kind : node.kind === SyntaxKind.PropertySignature || node.kind === SyntaxKind.PropertyDeclaration ? node.type?.kind : node.kind) || SyntaxKind.StringKeyword, defaultValue.trim().replace(/^"/gm, "").replace(/"$/gm, ""))));
|
|
5506
5505
|
}
|
|
5507
5506
|
extractDescriptionReflection(program, node) {
|
|
5508
|
-
if (!node || this.getReflectionConfig(this.sourceFile).level !== "
|
|
5507
|
+
if (!node || this.getReflectionConfig(this.sourceFile).level !== "all") return;
|
|
5509
5508
|
const description = extractJSDocAttribute(this.sourceFile, node, "description");
|
|
5510
5509
|
if (description) program.pushOp(ReflectionOp.description, program.findOrAddStackEntry(description.trim().replace(/^"/gm, "").replace(/"$/gm, "")));
|
|
5511
5510
|
}
|
|
@@ -6549,4 +6548,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
6549
6548
|
|
|
6550
6549
|
//#endregion
|
|
6551
6550
|
export { declarationTransformer as a, packSizeByte as c, debugPackStruct as i, transformer as l, DeclarationTransformer as n, encodeOps as o, ReflectionTransformer as r, packSize as s, Cache as t };
|
|
6552
|
-
//# sourceMappingURL=compiler-
|
|
6551
|
+
//# sourceMappingURL=compiler-Ba99lbTF.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ReflectionOp } from "./type-2yMJb9Mw.cjs";
|
|
2
|
-
import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-
|
|
2
|
+
import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-D0jKbRFV.cjs";
|
|
3
3
|
import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
4
4
|
|
|
5
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
5
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
8
8
|
*/
|
|
@@ -20,7 +20,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
20
20
|
symbol?: Symbol$1;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
23
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
24
24
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
25
25
|
declare class NodeConverter {
|
|
26
26
|
protected f: NodeFactory;
|
|
@@ -28,7 +28,7 @@ declare class NodeConverter {
|
|
|
28
28
|
toExpression<T extends PackExpression | PackExpression[]>(node?: T): Expression;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
31
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts
|
|
32
32
|
/**
|
|
33
33
|
* A utility to resolve a module path and its declaration.
|
|
34
34
|
*
|
|
@@ -55,7 +55,7 @@ declare class Resolver {
|
|
|
55
55
|
resolveSourceFile(sourceFile: SourceFile, modulePath: StringLiteral): SourceFile | undefined;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
58
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
59
59
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
60
60
|
declare const packSizeByte: number;
|
|
61
61
|
/**
|
|
@@ -377,4 +377,4 @@ declare const transformer: CustomTransformerFactory;
|
|
|
377
377
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
378
378
|
//#endregion
|
|
379
379
|
export { debugPackStruct as a, packSize as c, TagsReflectionStruct as i, packSizeByte as l, DeclarationTransformer as n, declarationTransformer as o, ReflectionTransformer as r, encodeOps as s, Cache as t, transformer as u };
|
|
380
|
-
//# sourceMappingURL=compiler-
|
|
380
|
+
//# sourceMappingURL=compiler-CZ0k-pTB.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ReflectionOp } from "./type-BoBEcrg7.mjs";
|
|
2
|
-
import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-
|
|
2
|
+
import { c as ReflectionConfig, i as MatchResult, l as ReflectionConfigCache, t as ConfigResolver } from "./config-BQtfsjwX.mjs";
|
|
3
3
|
import ts, { ArrowFunction, Bundle, ClassDeclaration, ClassExpression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
4
4
|
|
|
5
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
5
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
8
8
|
*/
|
|
@@ -20,7 +20,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
20
20
|
symbol?: Symbol$1;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
23
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
24
24
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
25
25
|
declare class NodeConverter {
|
|
26
26
|
protected f: NodeFactory;
|
|
@@ -28,7 +28,7 @@ declare class NodeConverter {
|
|
|
28
28
|
toExpression<T extends PackExpression | PackExpression[]>(node?: T): Expression;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
31
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts
|
|
32
32
|
/**
|
|
33
33
|
* A utility to resolve a module path and its declaration.
|
|
34
34
|
*
|
|
@@ -55,7 +55,7 @@ declare class Resolver {
|
|
|
55
55
|
resolveSourceFile(sourceFile: SourceFile, modulePath: StringLiteral): SourceFile | undefined;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
58
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
59
59
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
60
60
|
declare const packSizeByte: number;
|
|
61
61
|
/**
|
|
@@ -377,4 +377,4 @@ declare const transformer: CustomTransformerFactory;
|
|
|
377
377
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
378
378
|
//#endregion
|
|
379
379
|
export { debugPackStruct as a, packSize as c, TagsReflectionStruct as i, packSizeByte as l, DeclarationTransformer as n, declarationTransformer as o, ReflectionTransformer as r, encodeOps as s, Cache as t, transformer as u };
|
|
380
|
-
//# sourceMappingURL=compiler-
|
|
380
|
+
//# sourceMappingURL=compiler-DIcnaeXC.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
2
2
|
const require_type = require('./type-fEQrgtBF.cjs');
|
|
3
|
-
const require_config = require('./config-
|
|
3
|
+
const require_config = require('./config-Cadu6Rkt.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
5
|
typescript = require_chunk.__toESM(typescript);
|
|
6
6
|
|
|
@@ -4580,7 +4580,7 @@ function executeCloneNode(node, options) {
|
|
|
4580
4580
|
}
|
|
4581
4581
|
|
|
4582
4582
|
//#endregion
|
|
4583
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4583
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
4584
4584
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$1, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = typescript.default;
|
|
4585
4585
|
function is__String(value) {
|
|
4586
4586
|
return typeof value === "string";
|
|
@@ -4816,7 +4816,7 @@ function finish(oldNode, newNode) {
|
|
|
4816
4816
|
}
|
|
4817
4817
|
|
|
4818
4818
|
//#endregion
|
|
4819
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4819
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
4820
4820
|
var import_dist = require_dist();
|
|
4821
4821
|
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;
|
|
4822
4822
|
function encodeOps(ops) {
|
|
@@ -5125,7 +5125,7 @@ var ReflectionTransformer = class {
|
|
|
5125
5125
|
}
|
|
5126
5126
|
withReflection(config) {
|
|
5127
5127
|
const configResolver = {
|
|
5128
|
-
|
|
5128
|
+
level: "default",
|
|
5129
5129
|
...config,
|
|
5130
5130
|
path: "",
|
|
5131
5131
|
mergeStrategy: "replace",
|
|
@@ -5135,7 +5135,7 @@ var ReflectionTransformer = class {
|
|
|
5135
5135
|
return {
|
|
5136
5136
|
mode: require_config.reflectionModeMatcher(config, path),
|
|
5137
5137
|
tsConfigPath: "",
|
|
5138
|
-
level: configResolver.
|
|
5138
|
+
level: configResolver.level
|
|
5139
5139
|
};
|
|
5140
5140
|
};
|
|
5141
5141
|
this.overriddenConfigResolver = {
|
|
@@ -5483,13 +5483,12 @@ var ReflectionTransformer = class {
|
|
|
5483
5483
|
tags.hidden = extractJSDocBoolean(this.sourceFile, node, "hidden");
|
|
5484
5484
|
tags.ignore = extractJSDocBoolean(this.sourceFile, node, "ignore");
|
|
5485
5485
|
tags.internal = extractJSDocBoolean(this.sourceFile, node, "internal");
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
} else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
|
|
5486
|
+
tags.runtime = extractJSDocBoolean(this.sourceFile, node, "runtime");
|
|
5487
|
+
if (this.getReflectionConfig(this.sourceFile).level === "default") tags.alias = extractJSDocArray(this.sourceFile, node, "alias");
|
|
5488
|
+
else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
|
|
5490
5489
|
tags.permission = extractJSDocArray(this.sourceFile, node, "permission");
|
|
5491
5490
|
tags.domain = extractJSDocAttribute(this.sourceFile, node, "domain");
|
|
5492
|
-
} else if (this.getReflectionConfig(this.sourceFile).level === "
|
|
5491
|
+
} else if (this.getReflectionConfig(this.sourceFile).level === "all") tags.title = extractJSDocAttribute(this.sourceFile, node, "title");
|
|
5493
5492
|
return tags;
|
|
5494
5493
|
}
|
|
5495
5494
|
extractTagReflections(program, node) {
|
|
@@ -5506,7 +5505,7 @@ var ReflectionTransformer = class {
|
|
|
5506
5505
|
if (defaultValue) program.pushOp(require_type.ReflectionOp.defaultValue, program.findOrAddStackEntry(this.parseDefaultValue((node.kind === SyntaxKind.ClassDeclaration || node.kind === SyntaxKind.ClassExpression ? node?.name?.parent?.kind : node.kind === SyntaxKind.PropertySignature || node.kind === SyntaxKind.PropertyDeclaration ? node.type?.kind : node.kind) || SyntaxKind.StringKeyword, defaultValue.trim().replace(/^"/gm, "").replace(/"$/gm, ""))));
|
|
5507
5506
|
}
|
|
5508
5507
|
extractDescriptionReflection(program, node) {
|
|
5509
|
-
if (!node || this.getReflectionConfig(this.sourceFile).level !== "
|
|
5508
|
+
if (!node || this.getReflectionConfig(this.sourceFile).level !== "all") return;
|
|
5510
5509
|
const description = extractJSDocAttribute(this.sourceFile, node, "description");
|
|
5511
5510
|
if (description) program.pushOp(require_type.ReflectionOp.description, program.findOrAddStackEntry(description.trim().replace(/^"/gm, "").replace(/"$/gm, "")));
|
|
5512
5511
|
}
|
|
@@ -3,7 +3,7 @@ import ts from "typescript";
|
|
|
3
3
|
import { dirname, isAbsolute, join } from "node:path";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
6
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
7
7
|
function isDebug(level = 1) {
|
|
8
8
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
9
9
|
return "undefined" !== typeof process && "string" === typeof process.env.DEBUG && process.env.DEBUG.includes(expected);
|
|
@@ -3364,7 +3364,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3364
3364
|
}));
|
|
3365
3365
|
|
|
3366
3366
|
//#endregion
|
|
3367
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3367
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
3368
3368
|
var import_micromatch = /* @__PURE__ */ __toESM(require_micromatch(), 1);
|
|
3369
3369
|
const { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = ts;
|
|
3370
3370
|
function patternMatch(path, patterns, base) {
|
|
@@ -3424,7 +3424,7 @@ var Resolver = class {
|
|
|
3424
3424
|
};
|
|
3425
3425
|
|
|
3426
3426
|
//#endregion
|
|
3427
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3427
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
3428
3428
|
/**
|
|
3429
3429
|
* Default means reflection is enabled for this file.
|
|
3430
3430
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -3441,11 +3441,11 @@ function isObject(obj) {
|
|
|
3441
3441
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
3442
3442
|
}
|
|
3443
3443
|
const defaultMergeStrategy = "merge";
|
|
3444
|
-
const
|
|
3444
|
+
const level = [
|
|
3445
3445
|
"minimal",
|
|
3446
|
-
"
|
|
3446
|
+
"default",
|
|
3447
3447
|
"extended",
|
|
3448
|
-
"
|
|
3448
|
+
"all"
|
|
3449
3449
|
];
|
|
3450
3450
|
/**
|
|
3451
3451
|
* Read config and parses under TypeScript specification.
|
|
@@ -3466,7 +3466,7 @@ function readTsConfig(parseConfigHost, path) {
|
|
|
3466
3466
|
const tsconfig = JSON.parse(json);
|
|
3467
3467
|
return Object.assign(configFile.config, {
|
|
3468
3468
|
compilerOptions: parsed.options,
|
|
3469
|
-
|
|
3469
|
+
level: tsconfig.level ? String(tsconfig.level) : void 0
|
|
3470
3470
|
});
|
|
3471
3471
|
}
|
|
3472
3472
|
function reflectionModeMatcher(config, filePath) {
|
|
@@ -3510,8 +3510,9 @@ function appendPaths(strategy = defaultMergeStrategy, parent, existing) {
|
|
|
3510
3510
|
return [...parent, ...existing];
|
|
3511
3511
|
}
|
|
3512
3512
|
function applyConfigValues(existing, parent, baseDir) {
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3513
|
+
const parentLevel = parent.deepkitCompilerOptions?.level || parent.level || parent.compilerOptions?.level;
|
|
3514
|
+
let parentReflection = isObject(parent.deepkitCompilerOptions) ? parent.deepkitCompilerOptions?.reflection : parent.reflection;
|
|
3515
|
+
if (parentLevel && !parentReflection) parentReflection = "default";
|
|
3515
3516
|
if (isObject(parent.deepkitCompilerOptions) && "undefined" === typeof existing.mergeStrategy) existing.mergeStrategy = parent.deepkitCompilerOptions.mergeStrategy;
|
|
3516
3517
|
if ("undefined" !== typeof parentReflection) {
|
|
3517
3518
|
const next = parseRawMode(parentReflection);
|
|
@@ -3519,8 +3520,8 @@ function applyConfigValues(existing, parent, baseDir) {
|
|
|
3519
3520
|
else if ("string" === typeof existing.reflection) {} else if (Array.isArray(next) && Array.isArray(existing.reflection)) existing.reflection = appendPaths(existing.mergeStrategy, next, existing.reflection);
|
|
3520
3521
|
else if ("string" === typeof next && Array.isArray(existing.reflection)) {}
|
|
3521
3522
|
}
|
|
3522
|
-
if ("undefined" !== typeof
|
|
3523
|
-
if ("undefined" === typeof existing.
|
|
3523
|
+
if ("undefined" !== typeof parentLevel) {
|
|
3524
|
+
if ("undefined" === typeof existing.level) existing.level = parentLevel;
|
|
3524
3525
|
}
|
|
3525
3526
|
if (isObject(parent.deepkitCompilerOptions)) {
|
|
3526
3527
|
if (`undefined` !== typeof parent.deepkitCompilerOptions.exclude) {
|
|
@@ -3589,7 +3590,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3589
3590
|
compilerOptions: Object.assign(config.compilerOptions, compilerOptions),
|
|
3590
3591
|
exclude: config.exclude,
|
|
3591
3592
|
reflection: config.reflection,
|
|
3592
|
-
|
|
3593
|
+
level: config.level || (config.compilerOptions?.level ? String(config.compilerOptions?.level) : void 0) || "default",
|
|
3593
3594
|
mergeStrategy: config.mergeStrategy || defaultMergeStrategy
|
|
3594
3595
|
};
|
|
3595
3596
|
if (isDebug()) debug(`Found config ${resolvedConfig.path}:\nreflection:`, resolvedConfig.reflection, `\nexclude:`, resolvedConfig.exclude, `\npaths:`, resolvedConfig.compilerOptions.paths);
|
|
@@ -3597,7 +3598,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3597
3598
|
return {
|
|
3598
3599
|
mode: reflectionModeMatcher(config, path),
|
|
3599
3600
|
tsConfigPath,
|
|
3600
|
-
level: resolvedConfig.
|
|
3601
|
+
level: resolvedConfig.level
|
|
3601
3602
|
};
|
|
3602
3603
|
};
|
|
3603
3604
|
return cache[tsConfigPath] = {
|
|
@@ -3607,5 +3608,5 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3607
3608
|
}
|
|
3608
3609
|
|
|
3609
3610
|
//#endregion
|
|
3610
|
-
export {
|
|
3611
|
-
//# sourceMappingURL=config-
|
|
3611
|
+
export { parseRawMode as a, Resolver as c, level as i, debug as l, getConfigResolver as n, reflectionModeMatcher as o, isObject as r, reflectionModes as s, defaultExcluded as t, debug2 as u };
|
|
3612
|
+
//# sourceMappingURL=config-BFH3ETeQ.mjs.map
|