@powerlines/deepkit 0.9.92 → 0.9.94
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/{config-shXD7QWT.d.cts → config-Bgt67as0.d.cts} +2 -2
- package/dist/{config-shXD7QWT.d.mts → config-Bgt67as0.d.mts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{transformer-CAi9vHA4.mjs → transformer-9Qq95aUb.mjs} +3 -3
- package/dist/{transformer-7DQ8Tkkt.cjs → transformer-DnuSSWPR.cjs} +1 -1
- 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 +1 -1
- package/dist/transpile.d.cts +1 -1
- package/dist/transpile.d.mts +1 -1
- package/dist/transpile.mjs +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/vendor/{compiler-CXK8gKSY.mjs → compiler-8hCF4N7g.mjs} +11 -8
- package/dist/vendor/{compiler-D03k8NWY.d.cts → compiler-CFzs_txx.d.cts} +6 -6
- package/dist/vendor/{compiler-CjFKqh4P.d.mts → compiler-D4QaHzhD.d.mts} +6 -6
- package/dist/vendor/{compiler-CXihtDBP.cjs → compiler-EgkBSwnY.cjs} +9 -6
- package/dist/vendor/{config-B3V3WHQZ.d.cts → config-B8wUohU6.d.cts} +2 -2
- package/dist/vendor/{config-B3V3WHQZ.d.mts → config-B8wUohU6.d.mts} +2 -2
- package/dist/vendor/{config-C1c7pdZr.mjs → config-BlXGGlxS.mjs} +10 -8
- package/dist/vendor/{config-CKgRJyMm.cjs → config-Cm6GJCxo.cjs} +8 -6
- package/dist/vendor/core.mjs +1 -1
- package/dist/vendor/{rolldown-runtime-DIDmlKNL.mjs → rolldown-runtime-DyRPXdT2.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 +3 -3
- 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 +5 -3
- package/dist/vendor/type.mjs +6 -4
- package/dist/vendor/{types-DRiMlmXc.mjs → types-C3PrIcBl.mjs} +2 -2
- package/package.json +15 -16
|
@@ -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_9287880872ab70824e8df5717a572baa/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-Bgt67as0.d.cts.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_9287880872ab70824e8df5717a572baa/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-Bgt67as0.d.mts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_capnp = require('./capnp-CblJY6J6.cjs');
|
|
3
|
-
const require_transformer = require('./transformer-
|
|
3
|
+
const require_transformer = require('./transformer-DnuSSWPR.cjs');
|
|
4
4
|
const require_transpile = require('./transpile.cjs');
|
|
5
5
|
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
6
6
|
const require_resolve_reflections = require('./resolve-reflections.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-9Qq95aUb.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-DMIKW0SW.mjs";
|
|
3
3
|
import { transpile } from "./transpile.mjs";
|
|
4
4
|
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
@@ -5,7 +5,7 @@ import defu from "defu";
|
|
|
5
5
|
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
7
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
8
|
-
var __require = /*
|
|
8
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
|
|
@@ -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_9287880872ab70824e8df5717a572baa/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-9Qq95aUb.mjs.map
|
|
@@ -1254,7 +1254,7 @@ var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expo
|
|
|
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_9287880872ab70824e8df5717a572baa/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;
|
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-DnuSSWPR.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_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
3
|
-
const require_transformer = require('./transformer-
|
|
3
|
+
const require_transformer = require('./transformer-DnuSSWPR.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
5
|
typescript = require_rolldown_runtime.__toESM(typescript, 1);
|
|
6
6
|
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
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-9Qq95aUb.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { removeVirtualPrefix } from "@powerlines/core/plugin-utils";
|
|
4
4
|
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SerializedTypes$1 } from "./reflection-dZCCqxc3.cjs";
|
|
2
|
-
import { n as Mode, t as Level } from "./config-
|
|
2
|
+
import { n as Mode, t as Level } from "./config-Bgt67as0.cjs";
|
|
3
3
|
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
|
|
5
5
|
//#region src/types.d.ts
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SerializedTypes$1 } from "./reflection-dZCCqxc3.mjs";
|
|
2
|
-
import { n as Mode, t as Level } from "./config-
|
|
2
|
+
import { n as Mode, t as Level } from "./config-Bgt67as0.mjs";
|
|
3
3
|
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
|
|
5
5
|
//#region src/types.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DyRPXdT2.mjs";
|
|
2
2
|
import { n as TypeNumberBrand, t as ReflectionOp } from "./type-LC3QSAmx.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-BlXGGlxS.mjs";
|
|
4
4
|
import ts, { isBigIntLiteral } from "typescript";
|
|
5
5
|
|
|
6
6
|
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.6.4_typescript@6.0.3/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
|
|
@@ -4583,7 +4583,7 @@ function executeCloneNode(node, options) {
|
|
|
4583
4583
|
}
|
|
4584
4584
|
|
|
4585
4585
|
//#endregion
|
|
4586
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4586
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
4587
4587
|
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;
|
|
4588
4588
|
function is__String(value) {
|
|
4589
4589
|
return typeof value === "string";
|
|
@@ -4819,7 +4819,7 @@ function finish(oldNode, newNode) {
|
|
|
4819
4819
|
}
|
|
4820
4820
|
|
|
4821
4821
|
//#endregion
|
|
4822
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4822
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
4823
4823
|
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;
|
|
4824
4824
|
function encodeOps(ops) {
|
|
4825
4825
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -5254,7 +5254,8 @@ var ReflectionTransformer = class {
|
|
|
5254
5254
|
return this.f.updateCallExpression(node, node.expression, node.typeArguments, this.f.createNodeArray(args));
|
|
5255
5255
|
}
|
|
5256
5256
|
}
|
|
5257
|
-
|
|
5257
|
+
const expressionToCheck = getAssignTypeExpression(node.expression) || node.expression;
|
|
5258
|
+
if (isArrowFunction(expressionToCheck)) return node;
|
|
5258
5259
|
const typeExpressions = [];
|
|
5259
5260
|
for (const a of node.typeArguments) {
|
|
5260
5261
|
const type = this.getTypeOfType(a);
|
|
@@ -5321,12 +5322,14 @@ var ReflectionTransformer = class {
|
|
|
5321
5322
|
handledIdentifier.push(getIdentifierName(imp.identifier));
|
|
5322
5323
|
if (this.getModuleType() === "cjs") {
|
|
5323
5324
|
const test = this.f.createIdentifier(getIdentifierName(imp.identifier));
|
|
5324
|
-
const
|
|
5325
|
+
const variable = this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const));
|
|
5326
|
+
const typeDeclWithComment = addSyntheticLeadingComment(variable, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
|
|
5325
5327
|
newTopStatements.push(typeDeclWithComment);
|
|
5326
5328
|
} else {
|
|
5327
5329
|
const specifier = this.f.createImportSpecifier(false, void 0, imp.identifier);
|
|
5328
5330
|
const namedImports = this.f.createNamedImports([specifier]);
|
|
5329
|
-
const
|
|
5331
|
+
const importStatement = this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from);
|
|
5332
|
+
const typeDeclWithComment = addSyntheticLeadingComment(importStatement, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
|
|
5330
5333
|
newTopStatements.push(typeDeclWithComment);
|
|
5331
5334
|
}
|
|
5332
5335
|
}
|
|
@@ -6554,4 +6557,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
6554
6557
|
|
|
6555
6558
|
//#endregion
|
|
6556
6559
|
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 };
|
|
6557
|
-
//# sourceMappingURL=compiler-
|
|
6560
|
+
//# sourceMappingURL=compiler-8hCF4N7g.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ReflectionOp } from "./type-BLubGRUo.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-B8wUohU6.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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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-CFzs_txx.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ReflectionOp } from "./type-BLubGRUo.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-B8wUohU6.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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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-D4QaHzhD.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
2
2
|
const require_type = require('./type-CgFyFu75.cjs');
|
|
3
|
-
const require_config = require('./config-
|
|
3
|
+
const require_config = require('./config-Cm6GJCxo.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
5
|
let typescript$1 = require_rolldown_runtime.__toESM(typescript, 1);
|
|
6
6
|
typescript = require_rolldown_runtime.__toESM(typescript);
|
|
@@ -4585,7 +4585,7 @@ function executeCloneNode(node, options) {
|
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
4587
|
//#endregion
|
|
4588
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4588
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
4589
4589
|
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$1.default;
|
|
4590
4590
|
function is__String(value) {
|
|
4591
4591
|
return typeof value === "string";
|
|
@@ -4821,7 +4821,7 @@ function finish(oldNode, newNode) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
|
|
4823
4823
|
//#endregion
|
|
4824
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
4824
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
4825
4825
|
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;
|
|
4826
4826
|
function encodeOps(ops) {
|
|
4827
4827
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -5256,7 +5256,8 @@ var ReflectionTransformer = class {
|
|
|
5256
5256
|
return this.f.updateCallExpression(node, node.expression, node.typeArguments, this.f.createNodeArray(args));
|
|
5257
5257
|
}
|
|
5258
5258
|
}
|
|
5259
|
-
|
|
5259
|
+
const expressionToCheck = getAssignTypeExpression(node.expression) || node.expression;
|
|
5260
|
+
if (isArrowFunction(expressionToCheck)) return node;
|
|
5260
5261
|
const typeExpressions = [];
|
|
5261
5262
|
for (const a of node.typeArguments) {
|
|
5262
5263
|
const type = this.getTypeOfType(a);
|
|
@@ -5323,12 +5324,14 @@ var ReflectionTransformer = class {
|
|
|
5323
5324
|
handledIdentifier.push(getIdentifierName(imp.identifier));
|
|
5324
5325
|
if (this.getModuleType() === "cjs") {
|
|
5325
5326
|
const test = this.f.createIdentifier(getIdentifierName(imp.identifier));
|
|
5326
|
-
const
|
|
5327
|
+
const variable = this.f.createVariableStatement(void 0, this.f.createVariableDeclarationList([this.f.createVariableDeclaration(this.f.createObjectBindingPattern([this.f.createBindingElement(void 0, void 0, test)]), void 0, void 0, this.f.createCallExpression(this.f.createIdentifier("require"), void 0, [imp.from]))], NodeFlags.Const));
|
|
5328
|
+
const typeDeclWithComment = addSyntheticLeadingComment(variable, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
|
|
5327
5329
|
newTopStatements.push(typeDeclWithComment);
|
|
5328
5330
|
} else {
|
|
5329
5331
|
const specifier = this.f.createImportSpecifier(false, void 0, imp.identifier);
|
|
5330
5332
|
const namedImports = this.f.createNamedImports([specifier]);
|
|
5331
|
-
const
|
|
5333
|
+
const importStatement = this.f.createImportDeclaration(void 0, this.f.createImportClause(false, void 0, namedImports), imp.from);
|
|
5334
|
+
const typeDeclWithComment = addSyntheticLeadingComment(importStatement, SyntaxKind.MultiLineCommentTrivia, "@ts-ignore", true);
|
|
5332
5335
|
newTopStatements.push(typeDeclWithComment);
|
|
5333
5336
|
}
|
|
5334
5337
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts, { CompilerOptions, ParseConfigHost } 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_9287880872ab70824e8df5717a572baa/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.
|
|
@@ -127,4 +127,4 @@ declare function getConfigResolver(cache: ReflectionConfigCache, host: ParseConf
|
|
|
127
127
|
}, tsConfigPath?: string): ConfigResolver;
|
|
128
128
|
//#endregion
|
|
129
129
|
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f, parseRawMode as g, level as h, MatchResult as i, ReflectionConfigCache as l, isObject as m, CurrentConfig as n, Mode as o, getConfigResolver as p, Level as r, RawMode as s, ConfigResolver as t, ResolvedConfig as u, reflectionModes as v };
|
|
130
|
-
//# sourceMappingURL=config-
|
|
130
|
+
//# sourceMappingURL=config-B8wUohU6.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts, { CompilerOptions, ParseConfigHost } 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_9287880872ab70824e8df5717a572baa/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.
|
|
@@ -127,4 +127,4 @@ declare function getConfigResolver(cache: ReflectionConfigCache, host: ParseConf
|
|
|
127
127
|
}, tsConfigPath?: string): ConfigResolver;
|
|
128
128
|
//#endregion
|
|
129
129
|
export { reflectionModeMatcher as _, Matcher as a, ReflectionConfig as c, TsConfigJson as d, defaultExcluded as f, parseRawMode as g, level as h, MatchResult as i, ReflectionConfigCache as l, isObject as m, CurrentConfig as n, Mode as o, getConfigResolver as p, Level as r, RawMode as s, ConfigResolver as t, ResolvedConfig as u, reflectionModes as v };
|
|
130
|
-
//# sourceMappingURL=config-
|
|
130
|
+
//# sourceMappingURL=config-B8wUohU6.d.mts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DyRPXdT2.mjs";
|
|
2
2
|
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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/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);
|
|
@@ -223,7 +223,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
223
223
|
let nines = 1;
|
|
224
224
|
let zeros = 1;
|
|
225
225
|
let stop = countNines(min, nines);
|
|
226
|
-
let stops = new Set([max]);
|
|
226
|
+
let stops = /* @__PURE__ */ new Set([max]);
|
|
227
227
|
while (min <= stop && stop <= max) {
|
|
228
228
|
stops.add(stop);
|
|
229
229
|
nines += 1;
|
|
@@ -1964,7 +1964,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1964
1964
|
};
|
|
1965
1965
|
const extglobClose = (token) => {
|
|
1966
1966
|
const literal = input.slice(token.startIndex, state.index + 1);
|
|
1967
|
-
const
|
|
1967
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
1968
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
1968
1969
|
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
1969
1970
|
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
1970
1971
|
const open = tokens[token.tokensIndex];
|
|
@@ -2090,7 +2091,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2090
2091
|
if (inner.includes(":")) {
|
|
2091
2092
|
const idx = prev.value.lastIndexOf("[");
|
|
2092
2093
|
const pre = prev.value.slice(0, idx);
|
|
2093
|
-
const
|
|
2094
|
+
const rest = prev.value.slice(idx + 2);
|
|
2095
|
+
const posix = POSIX_REGEX_SOURCE[rest];
|
|
2094
2096
|
if (posix) {
|
|
2095
2097
|
prev.value = pre + posix;
|
|
2096
2098
|
state.backtrack = true;
|
|
@@ -3370,7 +3372,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3370
3372
|
}));
|
|
3371
3373
|
|
|
3372
3374
|
//#endregion
|
|
3373
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3375
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
3374
3376
|
var import_micromatch = /* @__PURE__ */ __toESM(require_micromatch(), 1);
|
|
3375
3377
|
const { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = ts;
|
|
3376
3378
|
function patternMatch(path, patterns, base) {
|
|
@@ -3430,7 +3432,7 @@ var Resolver = class {
|
|
|
3430
3432
|
};
|
|
3431
3433
|
|
|
3432
3434
|
//#endregion
|
|
3433
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3435
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
3434
3436
|
/**
|
|
3435
3437
|
* Default means reflection is enabled for this file.
|
|
3436
3438
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -3615,4 +3617,4 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
3615
3617
|
|
|
3616
3618
|
//#endregion
|
|
3617
3619
|
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 };
|
|
3618
|
-
//# sourceMappingURL=config-
|
|
3620
|
+
//# sourceMappingURL=config-BlXGGlxS.mjs.map
|
|
@@ -5,7 +5,7 @@ typescript = require_rolldown_runtime.__toESM(typescript);
|
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
|
|
8
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
8
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
9
9
|
function isDebug(level = 1) {
|
|
10
10
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
11
11
|
return "undefined" !== typeof process && "string" === typeof process.env.DEBUG && process.env.DEBUG.includes(expected);
|
|
@@ -225,7 +225,7 @@ var require_to_regex_range = /* @__PURE__ */ require_rolldown_runtime.__commonJS
|
|
|
225
225
|
let nines = 1;
|
|
226
226
|
let zeros = 1;
|
|
227
227
|
let stop = countNines(min, nines);
|
|
228
|
-
let stops = new Set([max]);
|
|
228
|
+
let stops = /* @__PURE__ */ new Set([max]);
|
|
229
229
|
while (min <= stop && stop <= max) {
|
|
230
230
|
stops.add(stop);
|
|
231
231
|
nines += 1;
|
|
@@ -1966,7 +1966,8 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
1966
1966
|
};
|
|
1967
1967
|
const extglobClose = (token) => {
|
|
1968
1968
|
const literal = input.slice(token.startIndex, state.index + 1);
|
|
1969
|
-
const
|
|
1969
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
1970
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
1970
1971
|
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
1971
1972
|
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
1972
1973
|
const open = tokens[token.tokensIndex];
|
|
@@ -2092,7 +2093,8 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
2092
2093
|
if (inner.includes(":")) {
|
|
2093
2094
|
const idx = prev.value.lastIndexOf("[");
|
|
2094
2095
|
const pre = prev.value.slice(0, idx);
|
|
2095
|
-
const
|
|
2096
|
+
const rest = prev.value.slice(idx + 2);
|
|
2097
|
+
const posix = POSIX_REGEX_SOURCE[rest];
|
|
2096
2098
|
if (posix) {
|
|
2097
2099
|
prev.value = pre + posix;
|
|
2098
2100
|
state.backtrack = true;
|
|
@@ -3372,7 +3374,7 @@ var require_micromatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
|
|
|
3372
3374
|
}));
|
|
3373
3375
|
|
|
3374
3376
|
//#endregion
|
|
3375
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3377
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
3376
3378
|
var import_micromatch = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_micromatch(), 1);
|
|
3377
3379
|
const { createSourceFile, resolveModuleName, isStringLiteral, JSDocParsingMode, ScriptTarget } = typescript$1.default;
|
|
3378
3380
|
function patternMatch(path, patterns, base) {
|
|
@@ -3432,7 +3434,7 @@ var Resolver = class {
|
|
|
3432
3434
|
};
|
|
3433
3435
|
|
|
3434
3436
|
//#endregion
|
|
3435
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
3437
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
3436
3438
|
/**
|
|
3437
3439
|
* Default means reflection is enabled for this file.
|
|
3438
3440
|
* Never means the whole reflection is disabled for this file.
|
package/dist/vendor/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isClass, A as empty, At as time, B as getClassTypeFromInstance, C as average, Ct as prettyPrintObject, D as createDynamicClass, Dt as size, E as copy, Et as setPathValue, F as fixAsyncOperation, G as getPathValue, H as getInheritanceChain, I as formatError, J as identifyType, K as hasProperty, L as forwardTypeArguments, M as escapeRegExp, Mt as each, N as first, Nt as eachKey, O as createStack, Ot as sleep, P as firstKey, Pt as eachPair, Q as isAsyncFunction, R as getClassName, S as asyncOperation, St as prependObjectKeys, T as collectForMicrotask, Tt as rangeArray, U as getObjectKeysSize, V as getCurrentFileName, W as getParentClass, X as indexOf, Y as inDebugMode, Z as isArray, _ as __ΩExtractClassType, _t as iterableSize, a as indent, at as isIterable, b as assertDefined, bt as mergePromiseStack, c as arrayHasItem, ct as isNumeric, d as toFastProperties, dt as isPlainObject, et as isClassInstance, f as AsyncFunction, ft as isPromise, g as __ΩCustomError, gt as isUndefined, h as __ΩClassType, ht as isString, i as capitalize, it as isInteger, j as ensureError, jt as zip, k as deletePathValue, kt as stringifyValueWithType, l as arrayMoveItem, lt as isObject, m as __ΩAbstractClassType, mt as isSet, n as __ΩInjectMeta, nt as isFunction, o as CompilerContext, ot as isNull, p as CustomError, pt as isPrototypeOfBase, q as humanBytes, r as __ΩTypeAnnotation, rt as isGlobalClass, s as arrayClear, st as isNumber, t as __ΩInject, tt as isConstructable, u as arrayRemoveItem, ut as isObjectLiteral, v as appendObject, vt as last, w as changeClass, wt as range, x as assertInstanceOf, xt as mergeStack, y as applyDefaults, yt as lastKey, z as getClassPropertyName } from "./types-
|
|
1
|
+
import { $ as isClass, A as empty, At as time, B as getClassTypeFromInstance, C as average, Ct as prettyPrintObject, D as createDynamicClass, Dt as size, E as copy, Et as setPathValue, F as fixAsyncOperation, G as getPathValue, H as getInheritanceChain, I as formatError, J as identifyType, K as hasProperty, L as forwardTypeArguments, M as escapeRegExp, Mt as each, N as first, Nt as eachKey, O as createStack, Ot as sleep, P as firstKey, Pt as eachPair, Q as isAsyncFunction, R as getClassName, S as asyncOperation, St as prependObjectKeys, T as collectForMicrotask, Tt as rangeArray, U as getObjectKeysSize, V as getCurrentFileName, W as getParentClass, X as indexOf, Y as inDebugMode, Z as isArray, _ as __ΩExtractClassType, _t as iterableSize, a as indent, at as isIterable, b as assertDefined, bt as mergePromiseStack, c as arrayHasItem, ct as isNumeric, d as toFastProperties, dt as isPlainObject, et as isClassInstance, f as AsyncFunction, ft as isPromise, g as __ΩCustomError, gt as isUndefined, h as __ΩClassType, ht as isString, i as capitalize, it as isInteger, j as ensureError, jt as zip, k as deletePathValue, kt as stringifyValueWithType, l as arrayMoveItem, lt as isObject, m as __ΩAbstractClassType, mt as isSet, n as __ΩInjectMeta, nt as isFunction, o as CompilerContext, ot as isNull, p as CustomError, pt as isPrototypeOfBase, q as humanBytes, r as __ΩTypeAnnotation, rt as isGlobalClass, s as arrayClear, st as isNumber, t as __ΩInject, tt as isConstructable, u as arrayRemoveItem, ut as isObjectLiteral, v as appendObject, vt as last, w as changeClass, wt as range, x as assertInstanceOf, xt as mergeStack, y as applyDefaults, yt as lastKey, z as getClassPropertyName } from "./types-C3PrIcBl.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/decorators.js
|
|
4
4
|
const __ΩPropertyDescriptor = [
|
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
value: mod,
|
|
27
27
|
enumerable: true
|
|
28
28
|
}) : target, mod));
|
|
29
|
-
var __require = /*
|
|
29
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_compiler = require('../compiler-
|
|
2
|
+
const require_compiler = require('../compiler-EgkBSwnY.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Cache = require_compiler.Cache;
|
|
5
5
|
exports.DeclarationTransformer = require_compiler.DeclarationTransformer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-CFzs_txx.cjs";
|
|
2
2
|
export { Cache, DeclarationTransformer, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-D4QaHzhD.mjs";
|
|
2
2
|
export { Cache, DeclarationTransformer, ReflectionTransformer, TagsReflectionStruct, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-
|
|
1
|
+
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-8hCF4N7g.mjs";
|
|
2
2
|
|
|
3
3
|
export { Cache, DeclarationTransformer, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_config = require('../config-
|
|
2
|
+
const require_config = require('../config-Cm6GJCxo.cjs');
|
|
3
3
|
|
|
4
4
|
exports.defaultExcluded = require_config.defaultExcluded;
|
|
5
5
|
exports.getConfigResolver = require_config.getConfigResolver;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-B8wUohU6.cjs";
|
|
2
2
|
export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, level, parseRawMode, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-B8wUohU6.mjs";
|
|
2
2
|
export { ConfigResolver, CurrentConfig, Level, MatchResult, Matcher, Mode, RawMode, ReflectionConfig, ReflectionConfigCache, ResolvedConfig, TsConfigJson, defaultExcluded, getConfigResolver, isObject, level, parseRawMode, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-
|
|
1
|
+
import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-BlXGGlxS.mjs";
|
|
2
2
|
|
|
3
3
|
export { defaultExcluded, getConfigResolver, isObject, level, parseRawMode, reflectionModeMatcher, reflectionModes };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('../rolldown-runtime-fl3r8ClO.cjs');
|
|
3
|
-
const require_compiler = require('../compiler-
|
|
4
|
-
const require_config = require('../config-
|
|
3
|
+
const require_compiler = require('../compiler-EgkBSwnY.cjs');
|
|
4
|
+
const require_config = require('../config-Cm6GJCxo.cjs');
|
|
5
5
|
let typescript = require("typescript");
|
|
6
6
|
typescript = require_rolldown_runtime.__toESM(typescript, 1);
|
|
7
7
|
|
|
8
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=
|
|
8
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
9
9
|
var DeepkitLoader = class {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.options = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-
|
|
2
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-B8wUohU6.cjs";
|
|
2
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-CFzs_txx.cjs";
|
|
3
3
|
import ts, { CompilerOptions, SourceFile } 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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
6
6
|
declare class DeepkitLoader {
|
|
7
7
|
protected options: CompilerOptions;
|
|
8
8
|
protected host: ts.CompilerHost;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-
|
|
2
|
-
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-
|
|
1
|
+
import { _ as reflectionModeMatcher, a as Matcher, c as ReflectionConfig, d as TsConfigJson, f as defaultExcluded, g as parseRawMode, h as level, i as MatchResult, l as ReflectionConfigCache, m as isObject, n as CurrentConfig, o as Mode, p as getConfigResolver, r as Level, s as RawMode, t as ConfigResolver, u as ResolvedConfig, v as reflectionModes } from "../config-B8wUohU6.mjs";
|
|
2
|
+
import { a as debugPackStruct, c as packSize, i as TagsReflectionStruct, l as packSizeByte, n as DeclarationTransformer, o as declarationTransformer, r as ReflectionTransformer, s as encodeOps, t as Cache, u as transformer } from "../compiler-D4QaHzhD.mjs";
|
|
3
3
|
import ts, { CompilerOptions, SourceFile } 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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
6
6
|
declare class DeepkitLoader {
|
|
7
7
|
protected options: CompilerOptions;
|
|
8
8
|
protected host: ts.CompilerHost;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-
|
|
2
|
-
import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-
|
|
1
|
+
import { a as declarationTransformer, c as packSizeByte, i as debugPackStruct, l as transformer, n as DeclarationTransformer, o as encodeOps, r as ReflectionTransformer, s as packSize, t as Cache } from "../compiler-8hCF4N7g.mjs";
|
|
2
|
+
import { a as parseRawMode, i as level, n as getConfigResolver, o as reflectionModeMatcher, r as isObject, s as reflectionModes, t as defaultExcluded } from "../config-BlXGGlxS.mjs";
|
|
3
3
|
import ts 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=91a56c95b398f90e6f5e654820112642044b9b1e47990b7_9287880872ab70824e8df5717a572baa/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
6
6
|
var DeepkitLoader = class {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.options = {
|
package/dist/vendor/type.cjs
CHANGED
|
@@ -3770,7 +3770,7 @@ findCommonLiteral.__type = [
|
|
|
3770
3770
|
|
|
3771
3771
|
//#endregion
|
|
3772
3772
|
//#region ../../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js
|
|
3773
|
-
const rnds8Pool = new Uint8Array(256);
|
|
3773
|
+
const rnds8Pool = /* @__PURE__ */ new Uint8Array(256);
|
|
3774
3774
|
let poolPtr = rnds8Pool.length;
|
|
3775
3775
|
function rng() {
|
|
3776
3776
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
@@ -6202,7 +6202,8 @@ var ReflectionClass = class ReflectionClass {
|
|
|
6202
6202
|
};
|
|
6203
6203
|
if (type.kind !== ReflectionKind.class) throw new Error(`Given class is not a class but kind ${ReflectionKind[type.kind]}. classType: ${require_types.stringifyValueWithType(classType)}`);
|
|
6204
6204
|
const parentProto = Object.getPrototypeOf(classType.prototype);
|
|
6205
|
-
const
|
|
6205
|
+
const parentReflectionClass = parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0;
|
|
6206
|
+
const reflectionClass = new ReflectionClass(type, parentReflectionClass);
|
|
6206
6207
|
if (args.length === 0) {
|
|
6207
6208
|
classType.prototype[reflectionClassSymbol] = reflectionClass;
|
|
6208
6209
|
return reflectionClass;
|
|
@@ -12103,7 +12104,8 @@ function serializeObjectLiteral(type, state) {
|
|
|
12103
12104
|
const name = state.namingStrategy.getPropertyName(member, state.registry.serializer.name);
|
|
12104
12105
|
const readName = getNameExpression(state.isDeserialization ? name : memberNameToString(member.name), state);
|
|
12105
12106
|
existing.push(readName);
|
|
12106
|
-
const
|
|
12107
|
+
const writeName = getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state);
|
|
12108
|
+
const setter = new ContainerAccessor(v, writeName);
|
|
12107
12109
|
const propertyState = state.fork(setter, new ContainerAccessor(state.accessor, readName)).extendPath(String(member.name));
|
|
12108
12110
|
const staticDefault = getStaticDefaultCodeForProperty(member, setter, state);
|
|
12109
12111
|
if (hasEmbedded(member.type)) lines.push(executeTemplates(propertyState, member.type));
|
package/dist/vendor/type.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isClass, A as empty, B as getClassTypeFromInstance, H as getInheritanceChain, K as hasProperty, R as getClassName, U as getObjectKeysSize, W as getParentClass, Z as isArray, _ as __ΩExtractClassType, _t as iterableSize, a as indent, at as isIterable, ct as isNumeric, d as toFastProperties, h as __ΩClassType, it as isInteger, kt as stringifyValueWithType, lt as isObject, m as __ΩAbstractClassType, nt as isFunction, o as CompilerContext, p as CustomError, pt as isPrototypeOfBase, r as __ΩTypeAnnotation, rt as isGlobalClass, u as arrayRemoveItem, ut as isObjectLiteral } from "./types-
|
|
1
|
+
import { $ as isClass, A as empty, B as getClassTypeFromInstance, H as getInheritanceChain, K as hasProperty, R as getClassName, U as getObjectKeysSize, W as getParentClass, Z as isArray, _ as __ΩExtractClassType, _t as iterableSize, a as indent, at as isIterable, ct as isNumeric, d as toFastProperties, h as __ΩClassType, it as isInteger, kt as stringifyValueWithType, lt as isObject, m as __ΩAbstractClassType, nt as isFunction, o as CompilerContext, p as CustomError, pt as isPrototypeOfBase, r as __ΩTypeAnnotation, rt as isGlobalClass, u as arrayRemoveItem, ut as isObjectLiteral } from "./types-C3PrIcBl.mjs";
|
|
2
2
|
import { n as TypeNumberBrand, t as ReflectionOp } from "./type-LC3QSAmx.mjs";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import crypto from "node:crypto";
|
|
@@ -3767,7 +3767,7 @@ findCommonLiteral.__type = [
|
|
|
3767
3767
|
|
|
3768
3768
|
//#endregion
|
|
3769
3769
|
//#region ../../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js
|
|
3770
|
-
const rnds8Pool = new Uint8Array(256);
|
|
3770
|
+
const rnds8Pool = /* @__PURE__ */ new Uint8Array(256);
|
|
3771
3771
|
let poolPtr = rnds8Pool.length;
|
|
3772
3772
|
function rng() {
|
|
3773
3773
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
@@ -6199,7 +6199,8 @@ var ReflectionClass = class ReflectionClass {
|
|
|
6199
6199
|
};
|
|
6200
6200
|
if (type.kind !== ReflectionKind.class) throw new Error(`Given class is not a class but kind ${ReflectionKind[type.kind]}. classType: ${stringifyValueWithType(classType)}`);
|
|
6201
6201
|
const parentProto = Object.getPrototypeOf(classType.prototype);
|
|
6202
|
-
const
|
|
6202
|
+
const parentReflectionClass = parentProto && parentProto.constructor !== Object ? ReflectionClass.from(parentProto, type.extendsArguments) : void 0;
|
|
6203
|
+
const reflectionClass = new ReflectionClass(type, parentReflectionClass);
|
|
6203
6204
|
if (args.length === 0) {
|
|
6204
6205
|
classType.prototype[reflectionClassSymbol] = reflectionClass;
|
|
6205
6206
|
return reflectionClass;
|
|
@@ -12100,7 +12101,8 @@ function serializeObjectLiteral(type, state) {
|
|
|
12100
12101
|
const name = state.namingStrategy.getPropertyName(member, state.registry.serializer.name);
|
|
12101
12102
|
const readName = getNameExpression(state.isDeserialization ? name : memberNameToString(member.name), state);
|
|
12102
12103
|
existing.push(readName);
|
|
12103
|
-
const
|
|
12104
|
+
const writeName = getNameExpression(state.isDeserialization ? memberNameToString(member.name) : name, state);
|
|
12105
|
+
const setter = new ContainerAccessor(v, writeName);
|
|
12104
12106
|
const propertyState = state.fork(setter, new ContainerAccessor(state.accessor, readName)).extendPath(String(member.name));
|
|
12105
12107
|
const staticDefault = getStaticDefaultCodeForProperty(member, setter, state);
|
|
12106
12108
|
if (hasEmbedded(member.type)) lines.push(executeTemplates(propertyState, member.type));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DyRPXdT2.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../../node_modules/.pnpm/is-obj@2.0.0/node_modules/is-obj/index.js
|
|
4
4
|
var require_is_obj = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -2462,4 +2462,4 @@ const __ΩInject = [
|
|
|
2462
2462
|
|
|
2463
2463
|
//#endregion
|
|
2464
2464
|
export { isClass as $, empty as A, time as At, getClassTypeFromInstance as B, average as C, prettyPrintObject as Ct, createDynamicClass as D, size as Dt, copy as E, setPathValue as Et, fixAsyncOperation as F, getPathValue as G, getInheritanceChain as H, formatError as I, identifyType as J, hasProperty as K, forwardTypeArguments as L, escapeRegExp as M, each as Mt, first as N, eachKey as Nt, createStack as O, sleep as Ot, firstKey as P, eachPair as Pt, isAsyncFunction as Q, getClassName as R, asyncOperation as S, prependObjectKeys as St, collectForMicrotask as T, rangeArray as Tt, getObjectKeysSize as U, getCurrentFileName as V, getParentClass as W, indexOf as X, inDebugMode as Y, isArray as Z, __ΩExtractClassType as _, iterableSize as _t, indent as a, isIterable as at, assertDefined as b, mergePromiseStack as bt, arrayHasItem as c, isNumeric as ct, toFastProperties as d, isPlainObject as dt, isClassInstance as et, AsyncFunction as f, isPromise as ft, __ΩCustomError as g, isUndefined as gt, __ΩClassType as h, isString as ht, capitalize as i, isInteger as it, ensureError as j, zip as jt, deletePathValue as k, stringifyValueWithType as kt, arrayMoveItem as l, isObject as lt, __ΩAbstractClassType as m, isSet as mt, __ΩInjectMeta as n, isFunction as nt, CompilerContext as o, isNull as ot, CustomError as p, isPrototypeOfBase as pt, humanBytes as q, __ΩTypeAnnotation as r, isGlobalClass as rt, arrayClear as s, isNumber as st, __ΩInject as t, isConstructable as tt, arrayRemoveItem as u, isObjectLiteral as ut, appendObject as v, last as vt, changeClass as w, range as wt, assertInstanceOf as x, mergeStack as xt, applyDefaults as y, lastKey as yt, getClassPropertyName as z };
|
|
2465
|
-
//# sourceMappingURL=types-
|
|
2465
|
+
//# sourceMappingURL=types-C3PrIcBl.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/deepkit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.94",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["deepkit", "powerlines", "storm-software"],
|
|
@@ -114,17 +114,17 @@
|
|
|
114
114
|
"bin": { "deepkit-install": "bin/deepkit-install.cjs" },
|
|
115
115
|
"files": ["bin", "dist", "schemas"],
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@powerlines/core": "^0.48.
|
|
118
|
-
"@storm-software/config-tools": "^1.190.
|
|
119
|
-
"@stryke/capnp": "^0.12.
|
|
120
|
-
"@stryke/fs": "^0.33.
|
|
121
|
-
"@stryke/
|
|
122
|
-
"@stryke/json": "^0.15.
|
|
123
|
-
"@stryke/
|
|
124
|
-
"@stryke/type-checks": "^0.6.
|
|
125
|
-
"@stryke/types": "^0.12.
|
|
117
|
+
"@powerlines/core": "^0.48.62",
|
|
118
|
+
"@storm-software/config-tools": "^1.190.89",
|
|
119
|
+
"@stryke/capnp": "^0.12.122",
|
|
120
|
+
"@stryke/fs": "^0.33.96",
|
|
121
|
+
"@stryke/helpers": "^0.10.35",
|
|
122
|
+
"@stryke/json": "^0.15.19",
|
|
123
|
+
"@stryke/path": "^0.29.22",
|
|
124
|
+
"@stryke/type-checks": "^0.6.28",
|
|
125
|
+
"@stryke/types": "^0.12.23",
|
|
126
126
|
"defu": "^6.1.7",
|
|
127
|
-
"esbuild": "^0.
|
|
127
|
+
"esbuild": "^0.28.1",
|
|
128
128
|
"jiti": "^2.7.0",
|
|
129
129
|
"typescript": "^6.0.3"
|
|
130
130
|
},
|
|
@@ -133,10 +133,9 @@
|
|
|
133
133
|
"@deepkit/type": "1.0.5",
|
|
134
134
|
"@deepkit/type-compiler": "1.0.5",
|
|
135
135
|
"@deepkit/type-spec": "1.0.1",
|
|
136
|
-
"@types/node": "^25.9.
|
|
137
|
-
"rolldown": "^1.1.
|
|
138
|
-
"tsdown": "^0.22.
|
|
139
|
-
"esbuild": "^0.27.7"
|
|
136
|
+
"@types/node": "^25.9.4",
|
|
137
|
+
"rolldown": "^1.1.4",
|
|
138
|
+
"tsdown": "^0.22.3"
|
|
140
139
|
},
|
|
141
140
|
"peerDependencies": { "esbuild": "*", "rolldown": "*" },
|
|
142
141
|
"peerDependenciesMeta": {
|
|
@@ -144,5 +143,5 @@
|
|
|
144
143
|
"rolldown": { "optional": true }
|
|
145
144
|
},
|
|
146
145
|
"publishConfig": { "access": "public" },
|
|
147
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "c2c932341c73ce708ac8e69c0d6c692ea41b4675"
|
|
148
147
|
}
|