@powerlines/deepkit 0.8.0 → 0.8.2
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-CkbeQ2uR.cjs → capnp-SW2Ro2lE.cjs} +1 -1
- package/dist/capnp.cjs +1 -1
- package/dist/{config-ClUYu_c-.d.mts → config-WhZyw1PK.d.mts} +2 -2
- package/dist/{config-u7zg69VP.d.cts → config-omER4_br.d.cts} +2 -2
- package/dist/esbuild-plugin.d.cts +1 -1
- package/dist/esbuild-plugin.d.mts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/reflect-type.cjs +1 -1
- package/dist/{transformer-Ct9lYNRY.cjs → transformer-BaG4yeVb.cjs} +2 -2
- package/dist/{transformer-BseLGhId.mjs → transformer-CQR2M4x_.mjs} +2 -2
- 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 +2 -2
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +1 -1
- package/dist/vendor/{compiler-Ba99lbTF.mjs → compiler-BTPzbHyC.mjs} +15 -12
- package/dist/vendor/{compiler-DYfCGCv5.cjs → compiler-C0u000J9.cjs} +175 -171
- package/dist/vendor/{compiler-CZ0k-pTB.d.cts → compiler-DZULKKdI.d.cts} +6 -6
- package/dist/vendor/{compiler-DIcnaeXC.d.mts → compiler-tVqzhDgZ.d.mts} +6 -6
- package/dist/vendor/{config-BQtfsjwX.d.mts → config-B7x14BD7.d.cts} +2 -2
- package/dist/vendor/{config-D0jKbRFV.d.cts → config-D6zsQbZD.d.mts} +2 -2
- package/dist/vendor/{config-BFH3ETeQ.mjs → config-DH0_s6ur.mjs} +4 -4
- package/dist/vendor/{config-Cadu6Rkt.cjs → config-DND92zIN.cjs} +6 -5
- package/dist/vendor/core.cjs +1 -1
- package/dist/vendor/core.mjs +1 -1
- 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 +1 -1
- package/dist/vendor/type-compiler/config.d.cts +1 -1
- package/dist/vendor/type-compiler/config.d.mts +1 -1
- package/dist/vendor/type-compiler/config.mjs +1 -1
- package/dist/vendor/type-compiler/index.cjs +4 -4
- package/dist/vendor/type-compiler/index.d.cts +3 -3
- package/dist/vendor/type-compiler/index.d.mts +3 -3
- package/dist/vendor/type-compiler/index.mjs +3 -3
- package/dist/vendor/type.cjs +47 -39
- package/dist/vendor/type.d.cts +23 -23
- package/dist/vendor/type.d.mts +23 -23
- package/dist/vendor/type.mjs +47 -39
- package/dist/vendor/{types--t65boB8.mjs → types-BkXamnO8.mjs} +2 -2
- package/dist/vendor/{types-BzOSMMf1.cjs → types-Dd5_2tGT.cjs} +1 -1
- package/package.json +6 -6
- package/schemas/reflection.cjs +1 -1
|
@@ -2,7 +2,7 @@ const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
|
2
2
|
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
3
3
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
4
4
|
let _stryke_capnp = require("@stryke/capnp");
|
|
5
|
-
_stryke_capnp = require_chunk.__toESM(_stryke_capnp);
|
|
5
|
+
_stryke_capnp = require_chunk.__toESM(_stryke_capnp, 1);
|
|
6
6
|
|
|
7
7
|
//#region schemas/reflection.ts
|
|
8
8
|
const ReflectionVisibility$1 = {
|
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-SW2Ro2lE.cjs');
|
|
3
3
|
|
|
4
4
|
exports.convertFromCapnp = require_capnp.convertFromCapnp;
|
|
5
5
|
exports.convertFromCapnpArray = require_capnp.convertFromCapnpArray;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
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
4
|
/**
|
|
5
5
|
* Default means reflection is enabled for this file.
|
|
6
6
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -37,4 +37,4 @@ interface ReflectionConfig {
|
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
40
|
-
//# sourceMappingURL=config-
|
|
40
|
+
//# sourceMappingURL=config-WhZyw1PK.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
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
4
|
/**
|
|
5
5
|
* Default means reflection is enabled for this file.
|
|
6
6
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -37,4 +37,4 @@ interface ReflectionConfig {
|
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
40
|
-
//# sourceMappingURL=config-
|
|
40
|
+
//# sourceMappingURL=config-omER4_br.d.cts.map
|
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-SW2Ro2lE.cjs');
|
|
3
|
+
const require_transformer = require('./transformer-BaG4yeVb.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,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 { 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";
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -3,7 +3,7 @@ const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
|
3
3
|
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
4
4
|
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
5
|
let defu = require("defu");
|
|
6
|
-
defu = require_chunk.__toESM(defu);
|
|
6
|
+
defu = require_chunk.__toESM(defu, 1);
|
|
7
7
|
let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
|
|
8
8
|
|
|
9
9
|
//#region src/reflect-type.ts
|
|
@@ -3,7 +3,7 @@ let typescript = require("typescript");
|
|
|
3
3
|
typescript = require_chunk.__toESM(typescript);
|
|
4
4
|
let _powerlines_deepkit_vendor_type_compiler = require("@powerlines/deepkit/vendor/type-compiler");
|
|
5
5
|
let defu = require("defu");
|
|
6
|
-
defu = require_chunk.__toESM(defu);
|
|
6
|
+
defu = require_chunk.__toESM(defu, 1);
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
|
|
9
9
|
/**
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1357,4 +1357,4 @@ function createDeclarationTransformer(context, options = {}) {
|
|
|
1357
1357
|
|
|
1358
1358
|
//#endregion
|
|
1359
1359
|
export { createTransformer as n, createDeclarationTransformer as t };
|
|
1360
|
-
//# sourceMappingURL=transformer-
|
|
1360
|
+
//# sourceMappingURL=transformer-CQR2M4x_.mjs.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-BaG4yeVb.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,8 +1,8 @@
|
|
|
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-BaG4yeVb.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
|
-
typescript = require_chunk.__toESM(typescript);
|
|
5
|
+
typescript = require_chunk.__toESM(typescript, 1);
|
|
6
6
|
|
|
7
7
|
//#region src/transpile.ts
|
|
8
8
|
/**
|
package/dist/transpile.d.cts
CHANGED
package/dist/transpile.d.mts
CHANGED
package/dist/transpile.mjs
CHANGED
|
@@ -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-DH0_s6ur.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
|
|
@@ -1064,6 +1064,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1064
1064
|
|
|
1065
1065
|
//#endregion
|
|
1066
1066
|
//#region ../../node_modules/.pnpm/compatfactory@2.0.9_typescript@5.9.3/node_modules/compatfactory/dist/esm/index.js
|
|
1067
|
+
var import_dist = require_dist();
|
|
1067
1068
|
function ensureNodeFactory(factoryLike) {
|
|
1068
1069
|
if ("factory" in factoryLike && factoryLike.factory != null) return normalizeNodeFactory(factoryLike.factory);
|
|
1069
1070
|
else if (!("updateSourceFileNode" in factoryLike)) return normalizeNodeFactory(factoryLike);
|
|
@@ -4579,7 +4580,7 @@ function executeCloneNode(node, options) {
|
|
|
4579
4580
|
}
|
|
4580
4581
|
|
|
4581
4582
|
//#endregion
|
|
4582
|
-
//#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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
4583
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 } = ts;
|
|
4584
4585
|
function is__String(value) {
|
|
4585
4586
|
return typeof value === "string";
|
|
@@ -4639,7 +4640,7 @@ function parseJSDocAttributeFromText(comment, attribute) {
|
|
|
4639
4640
|
}).join("\n").replace(/\n*$/g, ""), end + 1];
|
|
4640
4641
|
}
|
|
4641
4642
|
function parseJSDocBooleanFromText(comment, attribute) {
|
|
4642
|
-
return new RegExp(
|
|
4643
|
+
return new RegExp(`^\\s*\\*?\\s*@${attribute?.trim()}\\s*(false|False|FALSE|0|n|N|no|No|NO)\\s*$`, "gm").test(comment?.trim()) ? false : new RegExp(`^\\s*\\*?\\s*@${attribute?.trim()}.*\\s*`, "gm").test(comment?.trim()) ? true : void 0;
|
|
4643
4644
|
}
|
|
4644
4645
|
function parseJSDocDescription(comment) {
|
|
4645
4646
|
let lines = comment.split("\n").filter((line) => line && !line.includes("/**") && !line.includes("*/")).map((line) => line.replace(/^\s*\*\s*/g, "").replace(/^\*\s*/g, "").trim());
|
|
@@ -4815,8 +4816,7 @@ function finish(oldNode, newNode) {
|
|
|
4815
4816
|
}
|
|
4816
4817
|
|
|
4817
4818
|
//#endregion
|
|
4818
|
-
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4819
|
-
var import_dist = require_dist();
|
|
4819
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_dee3caf063df4f5ec81fe038695162cd/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
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) {
|
|
4822
4822
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -5483,18 +5483,21 @@ var ReflectionTransformer = class {
|
|
|
5483
5483
|
tags.ignore = extractJSDocBoolean(this.sourceFile, node, "ignore");
|
|
5484
5484
|
tags.internal = extractJSDocBoolean(this.sourceFile, node, "internal");
|
|
5485
5485
|
tags.runtime = extractJSDocBoolean(this.sourceFile, node, "runtime");
|
|
5486
|
-
if (this.getReflectionConfig(this.sourceFile).level === "default"
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5486
|
+
if (this.getReflectionConfig(this.sourceFile).level === "default" || this.getReflectionConfig(this.sourceFile).level === "extended" || this.getReflectionConfig(this.sourceFile).level === "all") {
|
|
5487
|
+
tags.alias = extractJSDocArray(this.sourceFile, node, "alias");
|
|
5488
|
+
if (this.getReflectionConfig(this.sourceFile).level === "extended" || this.getReflectionConfig(this.sourceFile).level === "all") {
|
|
5489
|
+
tags.permission = extractJSDocArray(this.sourceFile, node, "permission");
|
|
5490
|
+
tags.domain = extractJSDocAttribute(this.sourceFile, node, "domain");
|
|
5491
|
+
if (this.getReflectionConfig(this.sourceFile).level === "all") tags.title = extractJSDocAttribute(this.sourceFile, node, "title");
|
|
5492
|
+
}
|
|
5493
|
+
}
|
|
5491
5494
|
return tags;
|
|
5492
5495
|
}
|
|
5493
5496
|
extractTagReflections(program, node) {
|
|
5494
5497
|
if (!node) return;
|
|
5495
5498
|
const tags = this.parseTagReflection(node);
|
|
5496
5499
|
if (Object.entries(tags).filter(([, value]) => value !== void 0 && (!Array.isArray(value) || value.length > 0) && (typeof value !== "string" || value?.trim().replace(/^"/gm, "").replace(/"$/gm, ""))).length > 0) program.pushOp(ReflectionOp.tags, program.findOrAddStackEntry(this.f.createObjectLiteralExpression(this.f.createNodeArray(Object.entries(tags).filter(([, value]) => value !== void 0 && (!Array.isArray(value) || value.length > 0) && (typeof value !== "string" || value.trim().replace(/^"/gm, "").replace(/"$/gm, ""))).map(([key, value]) => {
|
|
5497
|
-
return this.f.createPropertyAssignment(key, Array.isArray(value) ? this.f.createArrayLiteralExpression(value.map((item) => this.valueToExpression(item))) :
|
|
5500
|
+
return this.f.createPropertyAssignment(key, Array.isArray(value) ? this.f.createArrayLiteralExpression(value.map((item) => this.valueToExpression(item))) : this.valueToExpression(value));
|
|
5498
5501
|
})))));
|
|
5499
5502
|
}
|
|
5500
5503
|
extractDefaultValueReflection(program, node) {
|
|
@@ -6548,4 +6551,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
6548
6551
|
|
|
6549
6552
|
//#endregion
|
|
6550
6553
|
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 };
|
|
6551
|
-
//# sourceMappingURL=compiler-
|
|
6554
|
+
//# sourceMappingURL=compiler-BTPzbHyC.mjs.map
|