@power-plant/schema 0.0.42 → 0.0.44
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/{deepkit-Bur3kvxc.cjs → deepkit-BiQwD8ud.cjs} +9 -9
- package/dist/{deepkit-Dau45R-d.mjs → deepkit-DzjNJe42.mjs} +10 -10
- package/dist/deepkit-DzjNJe42.mjs.map +1 -0
- package/dist/deepkit.cjs +1 -1
- package/dist/deepkit.d.cts +6 -6
- package/dist/deepkit.d.cts.map +1 -1
- package/dist/deepkit.d.mts +6 -6
- package/dist/deepkit.d.mts.map +1 -1
- package/dist/deepkit.mjs +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +7 -5
- package/package.json +2 -2
- package/dist/deepkit-Dau45R-d.mjs.map +0 -1
|
@@ -3523,7 +3523,7 @@ function executeCloneNode(node, options) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
|
|
3525
3525
|
//#endregion
|
|
3526
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
3526
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
3527
3527
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$2, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = typescript.default;
|
|
3528
3528
|
function is__String(value) {
|
|
3529
3529
|
return typeof value === "string";
|
|
@@ -7141,7 +7141,7 @@ var require_micromatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
|
|
|
7141
7141
|
}));
|
|
7142
7142
|
|
|
7143
7143
|
//#endregion
|
|
7144
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
7144
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
7145
7145
|
var import_micromatch = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_micromatch(), 1);
|
|
7146
7146
|
const { createSourceFile, resolveModuleName, isStringLiteral: isStringLiteral$1, JSDocParsingMode, ScriptTarget: ScriptTarget$1 } = typescript.default;
|
|
7147
7147
|
function patternMatch(path, patterns, base) {
|
|
@@ -7201,7 +7201,7 @@ var Resolver = class {
|
|
|
7201
7201
|
};
|
|
7202
7202
|
|
|
7203
7203
|
//#endregion
|
|
7204
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
7204
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
|
|
7205
7205
|
var require_vfs_cjs_production_min = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7206
7206
|
function e() {
|
|
7207
7207
|
return (e = Object.assign || function(e) {
|
|
@@ -7605,7 +7605,7 @@ var require_vfs_cjs_production_min = /* @__PURE__ */ require_rolldown_runtime.__
|
|
|
7605
7605
|
}));
|
|
7606
7606
|
|
|
7607
7607
|
//#endregion
|
|
7608
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
7608
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.development.js
|
|
7609
7609
|
var require_vfs_cjs_development = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7610
7610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7611
7611
|
function _extends() {
|
|
@@ -8145,14 +8145,14 @@ var require_vfs_cjs_development = /* @__PURE__ */ require_rolldown_runtime.__com
|
|
|
8145
8145
|
}));
|
|
8146
8146
|
|
|
8147
8147
|
//#endregion
|
|
8148
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
8148
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/index.js
|
|
8149
8149
|
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
8150
8150
|
if (process.env.NODE_ENV === "production") module.exports = require_vfs_cjs_production_min();
|
|
8151
8151
|
else module.exports = require_vfs_cjs_development();
|
|
8152
8152
|
}));
|
|
8153
8153
|
|
|
8154
8154
|
//#endregion
|
|
8155
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8155
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
8156
8156
|
var import_dist = require_dist();
|
|
8157
8157
|
function isDebug(level = 1) {
|
|
8158
8158
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
@@ -8172,7 +8172,7 @@ function debug2(...message) {
|
|
|
8172
8172
|
}
|
|
8173
8173
|
|
|
8174
8174
|
//#endregion
|
|
8175
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8175
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
8176
8176
|
function isObject(obj) {
|
|
8177
8177
|
if (!obj) return false;
|
|
8178
8178
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
@@ -8327,7 +8327,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
8327
8327
|
}
|
|
8328
8328
|
|
|
8329
8329
|
//#endregion
|
|
8330
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8330
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
8331
8331
|
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;
|
|
8332
8332
|
function encodeOps(ops) {
|
|
8333
8333
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -10082,7 +10082,7 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
10082
10082
|
};
|
|
10083
10083
|
|
|
10084
10084
|
//#endregion
|
|
10085
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
10085
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
10086
10086
|
var DeepkitLoader = class {
|
|
10087
10087
|
constructor() {
|
|
10088
10088
|
this.options = {
|
|
@@ -3551,7 +3551,7 @@ function executeCloneNode(node, options) {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
|
|
3553
3553
|
//#endregion
|
|
3554
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
3554
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
|
|
3555
3555
|
const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$2, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = ts;
|
|
3556
3556
|
function is__String(value) {
|
|
3557
3557
|
return typeof value === "string";
|
|
@@ -7169,7 +7169,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7169
7169
|
}));
|
|
7170
7170
|
|
|
7171
7171
|
//#endregion
|
|
7172
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
7172
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/resolver.js
|
|
7173
7173
|
var import_micromatch = /* @__PURE__ */ __toESM(require_micromatch(), 1);
|
|
7174
7174
|
const { createSourceFile, resolveModuleName, isStringLiteral: isStringLiteral$1, JSDocParsingMode, ScriptTarget: ScriptTarget$1 } = ts;
|
|
7175
7175
|
function patternMatch(path, patterns, base) {
|
|
@@ -7229,7 +7229,7 @@ var Resolver = class {
|
|
|
7229
7229
|
};
|
|
7230
7230
|
|
|
7231
7231
|
//#endregion
|
|
7232
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
7232
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
|
|
7233
7233
|
var require_vfs_cjs_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7234
7234
|
function e() {
|
|
7235
7235
|
return (e = Object.assign || function(e) {
|
|
@@ -7633,7 +7633,7 @@ var require_vfs_cjs_production_min = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
7633
7633
|
}));
|
|
7634
7634
|
|
|
7635
7635
|
//#endregion
|
|
7636
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
7636
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/vfs.cjs.development.js
|
|
7637
7637
|
var require_vfs_cjs_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7638
7638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7639
7639
|
function _extends() {
|
|
@@ -8173,14 +8173,14 @@ var require_vfs_cjs_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8173
8173
|
}));
|
|
8174
8174
|
|
|
8175
8175
|
//#endregion
|
|
8176
|
-
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.
|
|
8176
|
+
//#region ../../../node_modules/.pnpm/@typescript+vfs@1.5.0/node_modules/@typescript/vfs/dist/index.js
|
|
8177
8177
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8178
8178
|
if (process.env.NODE_ENV === "production") module.exports = require_vfs_cjs_production_min();
|
|
8179
8179
|
else module.exports = require_vfs_cjs_development();
|
|
8180
8180
|
}));
|
|
8181
8181
|
|
|
8182
8182
|
//#endregion
|
|
8183
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8183
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/debug.js
|
|
8184
8184
|
var import_dist = require_dist();
|
|
8185
8185
|
function isDebug(level = 1) {
|
|
8186
8186
|
const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
|
|
@@ -8200,7 +8200,7 @@ function debug2(...message) {
|
|
|
8200
8200
|
}
|
|
8201
8201
|
|
|
8202
8202
|
//#endregion
|
|
8203
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8203
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/config.js
|
|
8204
8204
|
function isObject(obj) {
|
|
8205
8205
|
if (!obj) return false;
|
|
8206
8206
|
return typeof obj === "object" && !Array.isArray(obj);
|
|
@@ -8355,7 +8355,7 @@ function getConfigResolver(cache, host, compilerOptions, sourceFile, tsConfigPat
|
|
|
8355
8355
|
}
|
|
8356
8356
|
|
|
8357
8357
|
//#endregion
|
|
8358
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
8358
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
|
|
8359
8359
|
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;
|
|
8360
8360
|
function encodeOps(ops) {
|
|
8361
8361
|
return ops.map((v) => String.fromCharCode(v + 33)).join("");
|
|
@@ -10110,7 +10110,7 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
|
|
|
10110
10110
|
};
|
|
10111
10111
|
|
|
10112
10112
|
//#endregion
|
|
10113
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
10113
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/esm/src/loader.js
|
|
10114
10114
|
var DeepkitLoader = class {
|
|
10115
10115
|
constructor() {
|
|
10116
10116
|
this.options = {
|
|
@@ -10153,4 +10153,4 @@ var DeepkitLoader = class {
|
|
|
10153
10153
|
|
|
10154
10154
|
//#endregion
|
|
10155
10155
|
export { debugPackStruct as a, packSize as c, ReflectionTransformer as i, packSizeByte as l, Cache as n, declarationTransformer as o, DeclarationTransformer as r, encodeOps as s, DeepkitLoader as t, transformer as u };
|
|
10156
|
-
//# sourceMappingURL=deepkit-
|
|
10156
|
+
//# sourceMappingURL=deepkit-DzjNJe42.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepkit-DzjNJe42.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/deepkit.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_deepkit = require('./deepkit-
|
|
2
|
+
const require_deepkit = require('./deepkit-BiQwD8ud.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Cache = require_deepkit.Cache;
|
|
5
5
|
exports.DeclarationTransformer = require_deepkit.DeclarationTransformer;
|
package/dist/deepkit.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeAnnotation } from "@deepkit/core";
|
|
2
2
|
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, NodeArray, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
3
3
|
import { ReflectionOp } from "@deepkit/type-spec";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
7
7
|
*/
|
|
@@ -19,7 +19,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
19
19
|
symbol?: Symbol$1;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
22
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
23
23
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
24
24
|
type JSDocTagValue = string | boolean;
|
|
25
25
|
declare class NodeConverter {
|
|
@@ -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.19_patch_hash=
|
|
31
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/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.19_patch_hash=
|
|
58
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
59
59
|
/**
|
|
60
60
|
* Default means reflection is enabled for this file.
|
|
61
61
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -94,7 +94,7 @@ type ReflectionConfigCache = {
|
|
|
94
94
|
[path: string]: ConfigResolver;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
97
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
98
98
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
99
99
|
declare const packSizeByte: number;
|
|
100
100
|
/**
|
|
@@ -423,7 +423,7 @@ declare class DeclarationTransformer extends ReflectionTransformer {
|
|
|
423
423
|
declare const transformer: CustomTransformerFactory;
|
|
424
424
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
425
425
|
//#endregion
|
|
426
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
426
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
427
427
|
declare class DeepkitLoader {
|
|
428
428
|
protected options: CompilerOptions;
|
|
429
429
|
protected host: ts.CompilerHost;
|
package/dist/deepkit.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
1
|
+
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts","../src/deepkit.ts"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;UAIiB,qBAAmB;;;;;;EAMhC;EACA,aAAa;EACb,0BAA0B;EAC1B,0BAA0B;EAC1B,wBAAwB;EACxB,SAAS;;;;KCbD,iBAAiB;KAUjB;cA6BS;YACP,GAAG;EACb,YAAY,GAAG;EACf,aAAa,UAAU,iBAAiB,kBAAkB,OAAO,IAAI;;;;;;;;;cCrCpD;EACjB,iBAAiB;EACjB,MAAM;YACI;KACL,mBAAmB;;EAExB,YAAY,iBAAiB,iBAAiB,MAAM,cAAc;KAC7D,mBAAmB;;EAExB,QAAQ,MAAM,YAAY,oBAAoB,oBAAoB,oBAAoB,iBAAiB;YAC7F,YAAY,YAAY,eAAe,YAAY,aAAa;;;;;;;;EAQ1E,kBAAkB,YAAY,YAAY,YAAY,gBAAgB;;;;;;;;;;cCjBrD;KACT,eAAe;UAkCV;;;;;EAKb;;;;;EAKA,wBAAwB;;UAOX,uBAAuB;EACpC;EACA,iBAAiB,GAAG;EACpB;;UAIa;EACb;EACA,cAAc;;KAGN,WAAW,iBAAiB;KAC5B;EACR,OAAO;EACP,QAAQ;;KAEA;GACP,eAAe;;;;iBCxEI,UAAU,KAAK;cAClB;;;;cAIA;iBACG,gBAAgB,YAAY,cAAY,SAAS,MAAM;EAC3E,KAAK;EACL,OAAO;;UAED;EACN;IACI;IACA;;EAEJ;EACA;EACA,WAAW;;KAEV,aAAa;cACJ;EACV,SAAS;EACT,aAAa;YACH,KAAK;YACL,OAAO;YACP;YACA;YACA,OAAO;YACP;IACN,KAAK;;YAEC;IACN,KAAK;;EAET,YAAY,SAAS,MAAM,aAAa;EACxC;IACI,KAAK;IACL,OAAO;;EAEX;EACA;EACA,UAAU,MAAM;EAChB;EACA;EACA,UAAU,KA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ression, CompilerHost, CompilerOptions, ConstructorDeclaration, CustomTransformer, CustomTransformerFactory, Declaration, EntityName, ExportDeclaration, Expression, ExpressionWithTypeArguments, FunctionDeclaration, FunctionExpression, Identifier, ImportDeclaration, JSDocImportTag, MethodDeclaration, ModuleDeclaration, ModuleExportName, Node, NodeArray, NodeFactory, ParseConfigHost, PropertyAccessExpression, QualifiedName, ResolvedModule, ScriptKind, SourceFile, Statement, StringLiteral, Symbol as Symbol$1, SymbolTable, TransformationContext, TypeAliasDeclaration, TypeChecker, TypeParameterDeclaration, TypeReferenceNode } from "typescript";
|
|
2
2
|
import { ReflectionOp } from "@deepkit/type-spec";
|
|
3
3
|
import { TypeAnnotation } from "@deepkit/core";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Contains @internal properties that are not yet in the public API of TS.
|
|
7
7
|
*/
|
|
@@ -19,7 +19,7 @@ interface SourceFile$1 extends SourceFile {
|
|
|
19
19
|
symbol?: Symbol$1;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
22
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts
|
|
23
23
|
type PackExpression = Expression | string | number | boolean | bigint;
|
|
24
24
|
type JSDocTagValue = string | boolean;
|
|
25
25
|
declare class NodeConverter {
|
|
@@ -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.19_patch_hash=
|
|
31
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/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.19_patch_hash=
|
|
58
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
59
59
|
/**
|
|
60
60
|
* Default means reflection is enabled for this file.
|
|
61
61
|
* Never means the whole reflection is disabled for this file.
|
|
@@ -94,7 +94,7 @@ type ReflectionConfigCache = {
|
|
|
94
94
|
[path: string]: ConfigResolver;
|
|
95
95
|
};
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
97
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts
|
|
98
98
|
declare function encodeOps(ops: ReflectionOp[]): string;
|
|
99
99
|
declare const packSizeByte: number;
|
|
100
100
|
/**
|
|
@@ -423,7 +423,7 @@ declare class DeclarationTransformer extends ReflectionTransformer {
|
|
|
423
423
|
declare const transformer: CustomTransformerFactory;
|
|
424
424
|
declare const declarationTransformer: CustomTransformerFactory;
|
|
425
425
|
//#endregion
|
|
426
|
-
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
426
|
+
//#region ../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts
|
|
427
427
|
declare class DeepkitLoader {
|
|
428
428
|
protected options: CompilerOptions;
|
|
429
429
|
protected host: ts.CompilerHost;
|
package/dist/deepkit.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=
|
|
1
|
+
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/ts-types.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/reflection-ast.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/resolver.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/compiler.d.ts","../../../../node_modules/.pnpm/@deepkit+type-compiler@1.0.19_patch_hash=bd438188cbc12e606ed4d519c25ab921a833fbc2d92357_6a684e66d4b3cbae9668be2ba2ab89f2/node_modules/@deepkit/type-compiler/dist/cjs/src/loader.d.ts","../src/deepkit.ts"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":""}
|
package/dist/deepkit.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as debugPackStruct, c as packSize, i as ReflectionTransformer, l as packSizeByte, n as Cache, o as declarationTransformer, r as DeclarationTransformer, s as encodeOps, t as DeepkitLoader, u as transformer } from "./deepkit-
|
|
1
|
+
import { a as debugPackStruct, c as packSize, i as ReflectionTransformer, l as packSizeByte, n as Cache, o as declarationTransformer, r as DeclarationTransformer, s as encodeOps, t as DeepkitLoader, u as transformer } from "./deepkit-DzjNJe42.mjs";
|
|
2
2
|
|
|
3
3
|
export { Cache, DeclarationTransformer, DeepkitLoader, ReflectionTransformer, debugPackStruct, declarationTransformer, encodeOps, packSize, packSizeByte, transformer };
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-fl3r8ClO.cjs');
|
|
3
3
|
const require_constants = require('./constants-CEmLvTDd.cjs');
|
|
4
4
|
const require_helpers = require('./helpers-DVg8wtqZ.cjs');
|
|
5
|
-
const require_deepkit = require('./deepkit-
|
|
5
|
+
const require_deepkit = require('./deepkit-BiQwD8ud.cjs');
|
|
6
6
|
const require_codegen = require('./codegen.cjs');
|
|
7
7
|
const require_storage = require('./storage-C8Lnl5Hw.cjs');
|
|
8
8
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
@@ -1002,9 +1002,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1002
1002
|
splitting: false,
|
|
1003
1003
|
treeShaking: true,
|
|
1004
1004
|
bundle: true,
|
|
1005
|
-
packages: "bundle",
|
|
1006
1005
|
keepNames: true,
|
|
1007
1006
|
metafile: false,
|
|
1007
|
+
minify: true,
|
|
1008
|
+
legalComments: "none",
|
|
1009
|
+
target: "es2022",
|
|
1008
1010
|
absWorkingDir: cwd,
|
|
1009
1011
|
plugins: [createDeepkitPlugin(options)]
|
|
1010
1012
|
});
|
|
@@ -1030,11 +1032,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1030
1032
|
if (!schema) throw new Error(`The export "${exportName}" could not be converted to a JSON Schema.`);
|
|
1031
1033
|
return schema;
|
|
1032
1034
|
} catch (error) {
|
|
1033
|
-
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}`);
|
|
1035
|
+
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}${error.stack ? `\n${error.stack}` : ""}`);
|
|
1034
1036
|
}
|
|
1035
1037
|
}
|
|
1036
1038
|
/**
|
|
1037
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1039
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1038
1040
|
*
|
|
1039
1041
|
* @example
|
|
1040
1042
|
* ```ts
|
|
@@ -1129,7 +1131,7 @@ async function extractSchemaWithSource(input, options = {}) {
|
|
|
1129
1131
|
};
|
|
1130
1132
|
}
|
|
1131
1133
|
/**
|
|
1132
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1134
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1133
1135
|
*
|
|
1134
1136
|
* @example
|
|
1135
1137
|
* ```ts
|
package/dist/index.d.cts
CHANGED
|
@@ -100,7 +100,7 @@ declare function extractSource(variant: SchemaSourceVariant, input: SchemaSource
|
|
|
100
100
|
*/
|
|
101
101
|
declare function extractTSType(input: FileReferenceInput, options?: InferLoadOptions<typeof input> & BaseExtractOptions): Promise<JsonSchema>;
|
|
102
102
|
/**
|
|
103
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
103
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
* ```ts
|
|
@@ -134,7 +134,7 @@ declare function extractTSType(input: FileReferenceInput, options?: InferLoadOpt
|
|
|
134
134
|
*/
|
|
135
135
|
declare function extractSchemaWithSource<TSpec = any>(input: SchemaConfig, options?: InferExtractOptions<typeof input>): Promise<ExtractedSchemaEnvelope<TSpec>>;
|
|
136
136
|
/**
|
|
137
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
137
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
140
|
* ```ts
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAwGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBCoDc,iBAAiB,QAAQ,aAAa;;;;iBAgMtC,YACd,SAAS,qBACT,OAAO;;;;iBA+CO,kBAAkB,YAAY,OAAO;;;;;;;iBAcrC,kBAAkB,kBAAkB;;;;;;;;iBAoCpC,uBACd,OAAO,qBACN;;;;;;;iBA4Ba,eAAe,OAAO,eAAe;;;;;;;;;iBAsB/B,cACpB,OAAO,oBACP,UAAU,sBACT,QAAQ;;;;;;;;;iBAqCK,cACd,SAAS,qBACT,OAAO,qBACN;;;;;;;;;;;iBA4NmB,cACpB,OAAO,oBACP,UAAS,wBAAwB,SAAS,qBACzC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAwGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBCoDc,iBAAiB,QAAQ,aAAa;;;;iBAgMtC,YACd,SAAS,qBACT,OAAO;;;;iBA+CO,kBAAkB,YAAY,OAAO;;;;;;;iBAcrC,kBAAkB,kBAAkB;;;;;;;;iBAoCpC,uBACd,OAAO,qBACN;;;;;;;iBA4Ba,eAAe,OAAO,eAAe;;;;;;;;;iBAsB/B,cACpB,OAAO,oBACP,UAAU,sBACT,QAAQ;;;;;;;;;iBAqCK,cACd,SAAS,qBACT,OAAO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;;;;;;;iBAa/C,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;iBAyD1C,sBAAsB,iBAAiB,SAAS;;;;;;;;;;;cAmBnD,uBAAc;iBAEX,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;;cA2B7C,6BAAoB;iBAEjB,sBACd,iBACC,SAAS;;;;;;;iBAuBI,SAAS,iBAAiB,SAAS;;;;;;;iBAkBnC,WAAW,OACzB,iBACC,SAAS,iBAAiB;;;;;;;iBAUb,mBAAmB,iBAAiB,SAAS;;;;;;;iBAiB7C,eACd,iBACC,SAAS,eAAe"}
|
package/dist/index.d.mts
CHANGED
|
@@ -100,7 +100,7 @@ declare function extractSource(variant: SchemaSourceVariant, input: SchemaSource
|
|
|
100
100
|
*/
|
|
101
101
|
declare function extractTSType(input: FileReferenceInput, options?: InferLoadOptions<typeof input> & BaseExtractOptions): Promise<JsonSchema>;
|
|
102
102
|
/**
|
|
103
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
103
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
* ```ts
|
|
@@ -134,7 +134,7 @@ declare function extractTSType(input: FileReferenceInput, options?: InferLoadOpt
|
|
|
134
134
|
*/
|
|
135
135
|
declare function extractSchemaWithSource<TSpec = any>(input: SchemaConfig, options?: InferExtractOptions<typeof input>): Promise<ExtractedSchemaEnvelope<TSpec>>;
|
|
136
136
|
/**
|
|
137
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
137
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
140
|
* ```ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ReflectionTransformer, n as Cache, r as DeclarationTransformer } from "./deepkit-
|
|
1
|
+
import { i as ReflectionTransformer, n as Cache, r as DeclarationTransformer } from "./deepkit-DzjNJe42.mjs";
|
|
2
2
|
import { a as JsonSchemaTypeNames, c as SCHEMA_SINGLE_KEYWORDS, i as JSON_SCHEMA_TYPES, n as JSON_SCHEMA_METADATA_KEYS, o as SCHEMA_ARRAY_CONCAT_KEYWORDS, r as JSON_SCHEMA_PRIMITIVE_TYPES, s as SCHEMA_RECORD_KEYWORDS, t as JSON_SCHEMA_CONSTRUCTOR_KEY } from "./constants-BlppSDwG.mjs";
|
|
3
3
|
import { $ as isUntypedConfig, A as isJsonSchemaNativeEnum, B as isJsonSchemaSet, C as isJsonSchemaDate, D as isJsonSchemaKeywords, E as isJsonSchemaInteger, F as isJsonSchemaObject, G as isJsonSchemaUnion, H as isJsonSchemaTuple, I as isJsonSchemaPrimitiveType, J as isSchema, K as isJsonSchemaUnknown, L as isJsonSchemaPrimitiveUnion, M as isJsonSchemaNull, N as isJsonSchemaNullable, O as isJsonSchemaLiteral, P as isJsonSchemaNumber, Q as isStandardSchema, R as isJsonSchemaRecord, S as isJsonSchemaBoolean, T as isJsonSchemaEnum, U as isJsonSchemaType, V as isJsonSchemaString, W as isJsonSchemaUndefined, X as isSchemaOf, Y as isSchemaObject, Z as isSchemaWithSource, _ as isJsonSchemaAllOf, a as getPropertiesList, at as isValibotSchema, b as isJsonSchemaArray, c as isSchemaNullable, ct as readSchemaTypes, d as merge, et as isUntypedConfigStrict, f as mergeMetadata, g as isJsonSchema, h as isFileReference, i as getProperties, it as isUntypedSchemaStrict, j as isJsonSchemaNever, k as isJsonSchemaMap, l as isValidSchemaConfigFile, m as hasJsonSchemaConstructorFlag, n as getJsonSchema, nt as isUntypedInputStrict, o as getProperty, ot as applyJsonSchemaMetadata, p as traverseSchema, q as isNullOnlyJsonSchema, r as getJsonSchemaObject, rt as isUntypedSchema, s as isPropertyOptional, st as getPrimarySchemaType, t as addProperty, tt as isUntypedInput, u as isValidSchemaInputFile, v as isJsonSchemaAny, w as isJsonSchemaDecimal, x as isJsonSchemaBigint, y as isJsonSchemaAnyOf, z as isJsonSchemaRef } from "./helpers-_8ADIMSN.mjs";
|
|
4
4
|
import { getJsonSchemaType } from "./codegen.mjs";
|
|
@@ -998,9 +998,11 @@ async function extractTSType(input, options = {}) {
|
|
|
998
998
|
splitting: false,
|
|
999
999
|
treeShaking: true,
|
|
1000
1000
|
bundle: true,
|
|
1001
|
-
packages: "bundle",
|
|
1002
1001
|
keepNames: true,
|
|
1003
1002
|
metafile: false,
|
|
1003
|
+
minify: true,
|
|
1004
|
+
legalComments: "none",
|
|
1005
|
+
target: "es2022",
|
|
1004
1006
|
absWorkingDir: cwd,
|
|
1005
1007
|
plugins: [createDeepkitPlugin(options)]
|
|
1006
1008
|
});
|
|
@@ -1026,11 +1028,11 @@ async function extractTSType(input, options = {}) {
|
|
|
1026
1028
|
if (!schema) throw new Error(`The export "${exportName}" could not be converted to a JSON Schema.`);
|
|
1027
1029
|
return schema;
|
|
1028
1030
|
} catch (error) {
|
|
1029
|
-
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}`);
|
|
1031
|
+
throw new Error(`Failed to generate a JSON schema for "${fileReference.file}"${resolvedPath && resolvedPath !== fileReference.file ? ` (resolved: ${resolvedPath})` : ""} using the type "${exportName}". Error: ${error.message}${error.stack ? `\n${error.stack}` : ""}`);
|
|
1030
1032
|
}
|
|
1031
1033
|
}
|
|
1032
1034
|
/**
|
|
1033
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1035
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1034
1036
|
*
|
|
1035
1037
|
* @example
|
|
1036
1038
|
* ```ts
|
|
@@ -1125,7 +1127,7 @@ async function extractSchemaWithSource(input, options = {}) {
|
|
|
1125
1127
|
};
|
|
1126
1128
|
}
|
|
1127
1129
|
/**
|
|
1128
|
-
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [
|
|
1130
|
+
* Extracts a JSON Schema from a given schema definition input, which can be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, a Deepkit Type object, or a {@link FileReferenceInput} to an exported TypeScript type definition or any of the previous options. If the input is a {@link FileReferenceInput} (e.g. a file path with an export), the source code will be bundled with [esbuild](https://esbuild.github.io) using [\@deepkit/type-compiler](https://deepkit.io/en/documentation/runtime-types/getting-started) reflection to obtain the actual schema definition before extraction.
|
|
1129
1131
|
*
|
|
1130
1132
|
* @example
|
|
1131
1133
|
* ```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"picomatch": "2.3.2",
|
|
188
188
|
"to-regex-range": "5.0.1"
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "6b19a0185343ce0068a955fb2a958308084120c3"
|
|
191
191
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit-Dau45R-d.mjs","names":[],"sources":[],"mappings":""}
|