@powerlines/deepkit 0.7.6 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{capnp-BqAglxrS.mjs → capnp-BYEUkMpr.mjs} +265 -265
- package/dist/{capnp-BLCHrDSY.cjs → capnp-C8UENZHc.cjs} +41 -41
- package/dist/capnp.cjs +1 -1
- package/dist/capnp.d.cts +41 -41
- package/dist/capnp.d.mts +41 -41
- package/dist/capnp.mjs +1 -1
- package/dist/config-B6lMYoYG.d.mts +32 -0
- package/dist/config-C8svu6th.d.cts +32 -0
- package/dist/esbuild-plugin.d.cts +1 -1
- package/dist/esbuild-plugin.d.mts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/reflect-type.cjs +2 -2
- package/dist/reflect-type.d.cts +1 -1
- package/dist/reflect-type.d.mts +1 -1
- package/dist/reflect-type.mjs +1 -1
- package/dist/{reflection-lA4jBKKP.d.mts → reflection-DaLz4ZT5.d.mts} +1 -1
- package/dist/transformer-BiefehPu.mjs +1360 -0
- package/dist/transformer-DS0zKU7l.cjs +1367 -0
- package/dist/transformer.cjs +3 -51
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -49
- 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 +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/utilities.cjs +42 -42
- package/dist/utilities.d.cts +1 -1
- package/dist/utilities.d.mts +1 -1
- package/dist/utilities.mjs +1 -1
- package/dist/vendor/chunk-BmvPcxpV.cjs +41 -0
- package/dist/{compiler-DLeSXEon.d.mts → vendor/compiler-BYhFaVxE.d.mts} +3 -3
- package/dist/{compiler-TYAnj4GK.cjs → vendor/compiler-Ci5aO9pY.cjs} +2 -2
- package/dist/{compiler-CoBHJbw6.mjs → vendor/compiler-CqkzeoNX.mjs} +3 -3
- package/dist/{compiler-B-zwyGQf.d.cts → vendor/compiler-Dz2b4nOM.d.cts} +3 -3
- package/dist/{config-DCmu3CV2.d.cts → vendor/config-BTErH18l.d.mts} +1 -1
- package/dist/{config-SjpQNPJf.d.mts → vendor/config-Cc2qE8fH.d.cts} +1 -1
- package/dist/{config-ldWMxkkM.mjs → vendor/config-eSNKiBGB.mjs} +1 -1
- package/dist/vendor/core.cjs +1 -1
- package/dist/vendor/core.d.cts +1 -1
- package/dist/vendor/core.d.mts +1 -1
- package/dist/vendor/core.mjs +1 -1
- package/dist/{string-CjkshhTG.mjs → vendor/string-DoT35ViA.mjs} +1 -1
- package/dist/{type-DR66Hepn.d.cts → vendor/type-2yMJb9Mw.d.cts} +1 -1
- package/dist/{type-C4eOl66J.d.mts → vendor/type-BoBEcrg7.d.mts} +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 +2 -2
- package/dist/vendor/type-compiler/index.d.mts +2 -2
- package/dist/vendor/type-compiler/index.mjs +2 -2
- package/dist/vendor/type-spec.cjs +1 -1
- package/dist/vendor/type-spec.d.cts +1 -1
- package/dist/vendor/type-spec.d.mts +1 -1
- package/dist/vendor/type-spec.mjs +1 -1
- package/dist/{type-BWm74eaQ.mjs → vendor/type-wscUl8NW.mjs} +1 -1
- package/dist/vendor/type.cjs +9375 -268
- package/dist/vendor/type.d.cts +2969 -3
- package/dist/vendor/type.d.mts +2969 -3
- package/dist/vendor/type.mjs +9109 -3
- package/dist/{types-Bb6lL3KL.d.cts → vendor/types-BwPWMe3m.d.mts} +1 -1
- package/dist/{types-DYGcIrk3.d.mts → vendor/types-exLGvFgG.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/config-DDRKbv_W.d.mts +0 -1
- package/dist/config-GPeRZeGl.d.cts +0 -1
- package/dist/type-8AL5U7vn.d.cts +0 -2969
- package/dist/type-C7UXbXfx.cjs +0 -10688
- package/dist/type-SyDc32SL.d.mts +0 -2969
- package/dist/type-ma8o4dJG.mjs +0 -9110
- /package/dist/{chunk-CgI6uo-e.mjs → vendor/chunk-CgI6uo-e.mjs} +0 -0
- /package/dist/{config-V3ttv0UZ.cjs → vendor/config-BbFVGRVh.cjs} +0 -0
- /package/dist/{string-CpVz34Gv.cjs → vendor/string-LTCnMzW_.cjs} +0 -0
- /package/dist/{type-DhqntM0q.cjs → vendor/type-fEQrgtBF.cjs} +0 -0
package/dist/capnp.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-
|
|
1
|
+
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BYEUkMpr.mjs";
|
|
2
2
|
|
|
3
3
|
export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default means reflection is enabled for this file.
|
|
6
|
+
* Never means the whole reflection is disabled for this file.
|
|
7
|
+
* Explicit means that reflection is per default disabled for this file, but each symbol/type
|
|
8
|
+
* in it is allowed to enable it using jsdoc `@reflection`.
|
|
9
|
+
*/
|
|
10
|
+
declare const reflectionModes: readonly ["default", "explicit", "never"];
|
|
11
|
+
type Mode = (typeof reflectionModes)[number];
|
|
12
|
+
declare const reflectionLevel: string[];
|
|
13
|
+
type Level = (typeof reflectionLevel)[number];
|
|
14
|
+
interface ReflectionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Allows to exclude type definitions/TS files from being included in the type compilation step.
|
|
17
|
+
* When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
|
|
18
|
+
*/
|
|
19
|
+
exclude?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Either a boolean indication general reflection mode,
|
|
22
|
+
* or a list of globs to match against.
|
|
23
|
+
*/
|
|
24
|
+
reflection?: string[] | Mode;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
27
|
+
*/
|
|
28
|
+
reflectionLevel?: Level;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
32
|
+
//# sourceMappingURL=config-B6lMYoYG.d.mts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default means reflection is enabled for this file.
|
|
6
|
+
* Never means the whole reflection is disabled for this file.
|
|
7
|
+
* Explicit means that reflection is per default disabled for this file, but each symbol/type
|
|
8
|
+
* in it is allowed to enable it using jsdoc `@reflection`.
|
|
9
|
+
*/
|
|
10
|
+
declare const reflectionModes: readonly ["default", "explicit", "never"];
|
|
11
|
+
type Mode = (typeof reflectionModes)[number];
|
|
12
|
+
declare const reflectionLevel: string[];
|
|
13
|
+
type Level = (typeof reflectionLevel)[number];
|
|
14
|
+
interface ReflectionConfig {
|
|
15
|
+
/**
|
|
16
|
+
* Allows to exclude type definitions/TS files from being included in the type compilation step.
|
|
17
|
+
* When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
|
|
18
|
+
*/
|
|
19
|
+
exclude?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Either a boolean indication general reflection mode,
|
|
22
|
+
* or a list of globs to match against.
|
|
23
|
+
*/
|
|
24
|
+
reflection?: string[] | Mode;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
27
|
+
*/
|
|
28
|
+
reflectionLevel?: Level;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Mode as n, ReflectionConfig as r, Level as t };
|
|
32
|
+
//# sourceMappingURL=config-C8svu6th.d.cts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_capnp = require('./capnp-
|
|
3
|
-
const require_transformer = require('./transformer.cjs');
|
|
2
|
+
const require_capnp = require('./capnp-C8UENZHc.cjs');
|
|
3
|
+
const require_transformer = require('./transformer-DS0zKU7l.cjs');
|
|
4
4
|
const require_transpile = require('./transpile.cjs');
|
|
5
5
|
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
6
6
|
const require_reflect_type = require('./reflect-type.cjs');
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
|
|
2
|
+
import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BYEUkMpr.mjs";
|
|
3
3
|
import { transpile } from "./transpile.mjs";
|
|
4
4
|
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
5
5
|
import { reflectType } from "./reflect-type.mjs";
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
|
-
const require_type = require('./type-C7UXbXfx.cjs');
|
|
4
3
|
const require_esbuild_plugin = require('./esbuild-plugin.cjs');
|
|
4
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
5
|
let defu = require("defu");
|
|
6
6
|
defu = require_chunk.__toESM(defu);
|
|
7
7
|
let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
|
|
@@ -16,7 +16,7 @@ let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esb
|
|
|
16
16
|
* @returns A promise that resolves to the compiled module.
|
|
17
17
|
*/
|
|
18
18
|
async function reflectType(context, type, overrides = {}) {
|
|
19
|
-
return
|
|
19
|
+
return (0, _powerlines_deepkit_vendor_type.reflect)(await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(context, type, (0, defu.default)(overrides, { plugins: [require_esbuild_plugin.esbuildPlugin(context, {
|
|
20
20
|
reflection: "default",
|
|
21
21
|
reflectionLevel: "verbose"
|
|
22
22
|
})] })));
|
package/dist/reflect-type.d.cts
CHANGED
package/dist/reflect-type.d.mts
CHANGED
package/dist/reflect-type.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Zt as reflect } from "./type-ma8o4dJG.mjs";
|
|
2
1
|
import { esbuildPlugin } from "./esbuild-plugin.mjs";
|
|
2
|
+
import { reflect } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
import defu from "defu";
|
|
4
4
|
import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
|
|
5
5
|
|
|
@@ -1558,4 +1558,4 @@ declare class SerializedTypes extends $.Struct {
|
|
|
1558
1558
|
} //#endregion
|
|
1559
1559
|
//#endregion
|
|
1560
1560
|
export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
|
|
1561
|
-
//# sourceMappingURL=reflection-
|
|
1561
|
+
//# sourceMappingURL=reflection-DaLz4ZT5.d.mts.map
|