@powerlines/deepkit 0.7.7 → 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/{packages/deepkit/schemas/reflection.mjs → capnp-BYEUkMpr.mjs} +1167 -259
- package/dist/{packages/deepkit/schemas/reflection.cjs → capnp-C8UENZHc.cjs} +1181 -4
- package/dist/capnp.cjs +46 -955
- package/dist/capnp.d.cts +1 -1
- package/dist/capnp.d.mts +1 -1
- package/dist/capnp.mjs +2 -911
- package/dist/{_virtual/_rolldown/runtime.cjs → chunk-BmvPcxpV.cjs} +12 -2
- package/dist/config-B6lMYoYG.d.mts +32 -0
- package/dist/config-C8svu6th.d.cts +32 -0
- package/dist/esbuild-plugin.cjs +1 -1
- package/dist/esbuild-plugin.d.cts +1 -1
- package/dist/esbuild-plugin.d.mts +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/dist/reflect-type.cjs +2 -2
- package/dist/{packages/deepkit/schemas/reflection.d.mts → reflection-DGOuMF8F.d.cts} +2 -2
- package/dist/{packages/deepkit/schemas/reflection.d.cts → reflection-DaLz4ZT5.d.mts} +2 -2
- package/dist/resolve-reflections.cjs +1 -1
- package/dist/rolldown-plugin.cjs +1 -1
- package/dist/transformer-BiefehPu.mjs +1360 -0
- package/dist/transformer-DS0zKU7l.cjs +1367 -0
- package/dist/transformer.cjs +3 -52
- package/dist/transformer.d.cts +1 -1
- package/dist/transformer.d.mts +1 -1
- package/dist/transformer.mjs +2 -50
- package/dist/transpile.cjs +3 -3
- 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/utilities.cjs +1 -1
- package/package.json +2 -2
- package/dist/_virtual/_rolldown/runtime.mjs +0 -8
package/dist/transformer.cjs
CHANGED
|
@@ -1,54 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_compiler = require('./node_modules/.pnpm/@deepkit_type-compiler@1.0.5_patch_hash_439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.cjs');
|
|
4
|
-
let _powerlines_deepkit_vendor_type_compiler = require("@powerlines/deepkit/vendor/type-compiler");
|
|
5
|
-
let defu = require("defu");
|
|
6
|
-
defu = require_runtime.__toESM(defu);
|
|
2
|
+
const require_transformer = require('./transformer-DS0zKU7l.cjs');
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const cache = new require_compiler.Cache();
|
|
11
|
-
/**
|
|
12
|
-
* Creates a Deepkit TypeScript transformer.
|
|
13
|
-
*
|
|
14
|
-
* @param context - The Powerlines plugin context.
|
|
15
|
-
* @param options - The transformation options.
|
|
16
|
-
* @returns A Deepkit TypeScript custom transformer factory.
|
|
17
|
-
*/
|
|
18
|
-
function createTransformer(context, options = {}) {
|
|
19
|
-
return function transformer(ctx) {
|
|
20
|
-
if (!loaded) loaded = true;
|
|
21
|
-
cache.tick();
|
|
22
|
-
return new _powerlines_deepkit_vendor_type_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
23
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
24
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
25
|
-
}, {
|
|
26
|
-
exclude: [],
|
|
27
|
-
reflection: "default",
|
|
28
|
-
reflectionLevel: "normal"
|
|
29
|
-
}));
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Creates a Deepkit TypeScript declaration transformer.
|
|
34
|
-
*
|
|
35
|
-
* @param context - The Powerlines plugin context.
|
|
36
|
-
* @param options - The transformation options.
|
|
37
|
-
* @returns A Deepkit TypeScript custom declaration transformer factory.
|
|
38
|
-
*/
|
|
39
|
-
function createDeclarationTransformer(context, options = {}) {
|
|
40
|
-
return function declarationTransformer(ctx) {
|
|
41
|
-
return new _powerlines_deepkit_vendor_type_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
|
|
42
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
43
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
44
|
-
}, {
|
|
45
|
-
exclude: [],
|
|
46
|
-
reflection: "default",
|
|
47
|
-
reflectionLevel: "normal"
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
exports.createDeclarationTransformer = createDeclarationTransformer;
|
|
54
|
-
exports.createTransformer = createTransformer;
|
|
4
|
+
exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
|
|
5
|
+
exports.createTransformer = require_transformer.createTransformer;
|
package/dist/transformer.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-C8svu6th.cjs";
|
|
2
2
|
import { Context } from "@powerlines/core";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
|
package/dist/transformer.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-B6lMYoYG.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Context } from "@powerlines/core";
|
|
4
4
|
|
package/dist/transformer.mjs
CHANGED
|
@@ -1,51 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DeclarationTransformer, ReflectionTransformer } from "@powerlines/deepkit/vendor/type-compiler";
|
|
3
|
-
import defu from "defu";
|
|
1
|
+
import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
let loaded = false;
|
|
7
|
-
const cache = new Cache();
|
|
8
|
-
/**
|
|
9
|
-
* Creates a Deepkit TypeScript transformer.
|
|
10
|
-
*
|
|
11
|
-
* @param context - The Powerlines plugin context.
|
|
12
|
-
* @param options - The transformation options.
|
|
13
|
-
* @returns A Deepkit TypeScript custom transformer factory.
|
|
14
|
-
*/
|
|
15
|
-
function createTransformer(context, options = {}) {
|
|
16
|
-
return function transformer(ctx) {
|
|
17
|
-
if (!loaded) loaded = true;
|
|
18
|
-
cache.tick();
|
|
19
|
-
return new ReflectionTransformer(ctx, cache).withReflection(defu(options, {
|
|
20
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
21
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
22
|
-
}, {
|
|
23
|
-
exclude: [],
|
|
24
|
-
reflection: "default",
|
|
25
|
-
reflectionLevel: "normal"
|
|
26
|
-
}));
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Creates a Deepkit TypeScript declaration transformer.
|
|
31
|
-
*
|
|
32
|
-
* @param context - The Powerlines plugin context.
|
|
33
|
-
* @param options - The transformation options.
|
|
34
|
-
* @returns A Deepkit TypeScript custom declaration transformer factory.
|
|
35
|
-
*/
|
|
36
|
-
function createDeclarationTransformer(context, options = {}) {
|
|
37
|
-
return function declarationTransformer(ctx) {
|
|
38
|
-
return new DeclarationTransformer(ctx, cache).withReflection(defu(options, {
|
|
39
|
-
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
40
|
-
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
41
|
-
}, {
|
|
42
|
-
exclude: [],
|
|
43
|
-
reflection: "default",
|
|
44
|
-
reflectionLevel: "normal"
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { createDeclarationTransformer, createTransformer };
|
|
51
|
-
//# sourceMappingURL=transformer.mjs.map
|
|
3
|
+
export { createDeclarationTransformer, createTransformer };
|
package/dist/transpile.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const require_transformer = require('./transformer.cjs');
|
|
2
|
+
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
|
+
const require_transformer = require('./transformer-DS0zKU7l.cjs');
|
|
4
4
|
let typescript = require("typescript");
|
|
5
|
-
typescript =
|
|
5
|
+
typescript = require_chunk.__toESM(typescript);
|
|
6
6
|
|
|
7
7
|
//#region src/transpile.ts
|
|
8
8
|
/**
|
package/dist/transpile.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-C8svu6th.cjs";
|
|
2
2
|
import { Context } from "@powerlines/core";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
|
package/dist/transpile.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReflectionConfig } from "./
|
|
1
|
+
import { r as ReflectionConfig } from "./config-B6lMYoYG.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Context } from "@powerlines/core";
|
|
4
4
|
|
package/dist/transpile.mjs
CHANGED
package/dist/types.d.cts
CHANGED
package/dist/types.d.mts
CHANGED
package/dist/utilities.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_chunk = require('./chunk-BmvPcxpV.cjs');
|
|
3
3
|
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
4
4
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
5
5
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/deepkit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
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"],
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"rolldown": { "optional": true }
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": { "access": "public" },
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "ebb3c7faf787b60313824df7d801ea077abe23b1"
|
|
149
149
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
5
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { __commonJSMin, __require };
|