@powerlines/deepkit 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4V4LIAN2.js → chunk-2ODODKQQ.js} +1 -1
- package/dist/{chunk-ESVH44QW.cjs → chunk-6QPIKQMO.cjs} +2 -2
- package/dist/{chunk-U5O6DHJ2.js → chunk-C7BRLIIA.js} +1 -1
- package/dist/{chunk-VWKKT7CM.cjs → chunk-EKHXI2JI.cjs} +3 -3
- package/dist/{chunk-YQQIT5YX.js → chunk-LPLPOVLC.js} +1 -1
- package/dist/{chunk-B6GTAZEL.js → chunk-MNUBEEIW.js} +4 -0
- package/dist/{chunk-PKLLVKY2.cjs → chunk-QABG54Y3.cjs} +2 -2
- package/dist/{chunk-FFBZWTR7.cjs → chunk-VXZTOOL6.cjs} +6 -0
- package/dist/esbuild-plugin.cjs +4 -4
- package/dist/esbuild-plugin.js +3 -3
- package/dist/index.cjs +9 -9
- package/dist/index.js +4 -4
- package/dist/reflect-type.cjs +5 -5
- package/dist/reflect-type.js +4 -4
- package/dist/transformer.cjs +3 -3
- package/dist/transformer.js +1 -1
- package/dist/transpile.cjs +3 -3
- package/dist/transpile.js +2 -2
- package/dist/vendor/chunk-5BKT4CS5.js +28 -0
- package/dist/vendor/{chunk-ZDFKNN7Y.cjs → chunk-BDXVTHBY.cjs} +322 -153
- package/dist/vendor/{chunk-7LAB3COT.js → chunk-BLN7QVCP.js} +154 -7
- package/dist/vendor/{chunk-5NPGWGPO.cjs → chunk-EQXMWOHO.cjs} +6 -0
- package/dist/vendor/chunk-MO4O4UYI.cjs +42 -0
- package/dist/vendor/core.cjs +131 -130
- package/dist/vendor/core.js +2 -2
- package/dist/vendor/index.cjs +28 -0
- package/dist/vendor/index.d.cts +2 -0
- package/dist/vendor/index.d.ts +2 -0
- package/dist/vendor/index.js +1 -0
- package/dist/vendor/type-spec.cjs +6 -5
- package/dist/vendor/type-spec.js +1 -1
- package/dist/vendor/type.cjs +2346 -641
- package/dist/vendor/type.js +1661 -23
- package/package.json +5 -5
- package/dist/vendor/chunk-SHUYVCID.js +0 -4
- package/dist/vendor/chunk-USNT2KNT.cjs +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEKHXI2JI_cjs = require('./chunk-EKHXI2JI.cjs');
|
|
4
4
|
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
5
5
|
var typeChecks = require('@stryke/type-checks');
|
|
6
6
|
var typescript = require('typescript');
|
|
@@ -26,7 +26,7 @@ var esbuildPlugin = /* @__PURE__ */ chunkGRNJVY7I_cjs.__name((context, options =
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
const result =
|
|
29
|
+
const result = chunkEKHXI2JI_cjs.transpile(context, contents, args.path);
|
|
30
30
|
if (result.diagnostics && result.diagnostics.length > 0) {
|
|
31
31
|
if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
|
|
32
32
|
const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type_exports } from './chunk-XGQQM64U.js';
|
|
2
|
-
import { esbuildPlugin } from './chunk-
|
|
2
|
+
import { esbuildPlugin } from './chunk-2ODODKQQ.js';
|
|
3
3
|
import { __name } from './chunk-IRPJW6HH.js';
|
|
4
4
|
import defu from 'defu';
|
|
5
5
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVXZTOOL6_cjs = require('./chunk-VXZTOOL6.cjs');
|
|
4
4
|
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
5
5
|
var ts = require('typescript');
|
|
6
6
|
|
|
@@ -9,8 +9,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var ts__default = /*#__PURE__*/_interopDefault(ts);
|
|
10
10
|
|
|
11
11
|
function transpile(context, code, id) {
|
|
12
|
-
const transformer =
|
|
13
|
-
const declarationTransformer =
|
|
12
|
+
const transformer = chunkVXZTOOL6_cjs.createTransformer(context);
|
|
13
|
+
const declarationTransformer = chunkVXZTOOL6_cjs.createDeclarationTransformer(context);
|
|
14
14
|
return ts__default.default.transpileModule(code, {
|
|
15
15
|
compilerOptions: {
|
|
16
16
|
...context.tsconfig.options
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { __reExport, __name } from './chunk-IRPJW6HH.js';
|
|
2
2
|
import * as type_compiler_star from '@deepkit/type-compiler';
|
|
3
|
+
import * as compiler_star from '@deepkit/type-compiler/compiler';
|
|
4
|
+
import * as config_star from '@deepkit/type-compiler/config';
|
|
3
5
|
import defu from 'defu';
|
|
4
6
|
|
|
5
7
|
// src/vendor/type-compiler/index.ts
|
|
6
8
|
var type_compiler_exports = {};
|
|
7
9
|
__reExport(type_compiler_exports, type_compiler_star);
|
|
10
|
+
__reExport(type_compiler_exports, compiler_star);
|
|
11
|
+
__reExport(type_compiler_exports, config_star);
|
|
8
12
|
var cache = new type_compiler_exports.Cache();
|
|
9
13
|
function createTransformer(context, options = {}) {
|
|
10
14
|
return /* @__PURE__ */ __name(function transformer(ctx) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk7J3ZDT6O_cjs = require('./chunk-7J3ZDT6O.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk6QPIKQMO_cjs = require('./chunk-6QPIKQMO.cjs');
|
|
5
5
|
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
6
6
|
var defu = require('defu');
|
|
7
7
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
@@ -184,7 +184,7 @@ chunkGRNJVY7I_cjs.__name(resolve, "resolve");
|
|
|
184
184
|
async function reflectType(context, type, overrides = {}) {
|
|
185
185
|
return (0, chunk7J3ZDT6O_cjs.type_exports.reflect)(await resolve(context, type, defu__default.default(overrides, {
|
|
186
186
|
plugins: [
|
|
187
|
-
|
|
187
|
+
chunk6QPIKQMO_cjs.esbuildPlugin(context)
|
|
188
188
|
]
|
|
189
189
|
})));
|
|
190
190
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
4
4
|
var type_compiler_star = require('@deepkit/type-compiler');
|
|
5
|
+
var compiler_star = require('@deepkit/type-compiler/compiler');
|
|
6
|
+
var config_star = require('@deepkit/type-compiler/config');
|
|
5
7
|
var defu = require('defu');
|
|
6
8
|
|
|
7
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -25,11 +27,15 @@ function _interopNamespace(e) {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
var type_compiler_star__namespace = /*#__PURE__*/_interopNamespace(type_compiler_star);
|
|
30
|
+
var compiler_star__namespace = /*#__PURE__*/_interopNamespace(compiler_star);
|
|
31
|
+
var config_star__namespace = /*#__PURE__*/_interopNamespace(config_star);
|
|
28
32
|
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
29
33
|
|
|
30
34
|
// src/vendor/type-compiler/index.ts
|
|
31
35
|
var type_compiler_exports = {};
|
|
32
36
|
chunkGRNJVY7I_cjs.__reExport(type_compiler_exports, type_compiler_star__namespace);
|
|
37
|
+
chunkGRNJVY7I_cjs.__reExport(type_compiler_exports, compiler_star__namespace);
|
|
38
|
+
chunkGRNJVY7I_cjs.__reExport(type_compiler_exports, config_star__namespace);
|
|
33
39
|
var cache = new type_compiler_exports.Cache();
|
|
34
40
|
function createTransformer(context, options = {}) {
|
|
35
41
|
return /* @__PURE__ */ chunkGRNJVY7I_cjs.__name(function transformer(ctx) {
|
package/dist/esbuild-plugin.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk6QPIKQMO_cjs = require('./chunk-6QPIKQMO.cjs');
|
|
4
|
+
require('./chunk-EKHXI2JI.cjs');
|
|
5
|
+
require('./chunk-VXZTOOL6.cjs');
|
|
6
6
|
require('./chunk-GRNJVY7I.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "esbuildPlugin", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk6QPIKQMO_cjs.esbuildPlugin; }
|
|
13
13
|
});
|
package/dist/esbuild-plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { esbuildPlugin } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { esbuildPlugin } from './chunk-2ODODKQQ.js';
|
|
2
|
+
import './chunk-LPLPOVLC.js';
|
|
3
|
+
import './chunk-MNUBEEIW.js';
|
|
4
4
|
import './chunk-IRPJW6HH.js';
|
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQLKLDV3V_cjs = require('./chunk-QLKLDV3V.cjs');
|
|
4
4
|
var chunkJ2FVIV7W_cjs = require('./chunk-J2FVIV7W.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkQABG54Y3_cjs = require('./chunk-QABG54Y3.cjs');
|
|
6
6
|
require('./chunk-7J3ZDT6O.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk6QPIKQMO_cjs = require('./chunk-6QPIKQMO.cjs');
|
|
8
8
|
var chunkVMRRVNO2_cjs = require('./chunk-VMRRVNO2.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var chunkEKHXI2JI_cjs = require('./chunk-EKHXI2JI.cjs');
|
|
10
|
+
var chunkVXZTOOL6_cjs = require('./chunk-VXZTOOL6.cjs');
|
|
11
11
|
require('./chunk-GRNJVY7I.cjs');
|
|
12
12
|
require('./chunk-ORA4UQMU.cjs');
|
|
13
13
|
|
|
@@ -223,11 +223,11 @@ Object.defineProperty(exports, "convertToCapnpUnion", {
|
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "reflectType", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkQABG54Y3_cjs.reflectType; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "esbuildPlugin", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk6QPIKQMO_cjs.esbuildPlugin; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "getReflectionsPath", {
|
|
233
233
|
enumerable: true,
|
|
@@ -235,13 +235,13 @@ Object.defineProperty(exports, "getReflectionsPath", {
|
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "transpile", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkEKHXI2JI_cjs.transpile; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "createDeclarationTransformer", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkVXZTOOL6_cjs.createDeclarationTransformer; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "createTransformer", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkVXZTOOL6_cjs.createTransformer; }
|
|
247
247
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-J4SVRFV4.js';
|
|
2
2
|
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 } from './chunk-I5CVIT7W.js';
|
|
3
|
-
export { reflectType } from './chunk-
|
|
3
|
+
export { reflectType } from './chunk-C7BRLIIA.js';
|
|
4
4
|
import './chunk-XGQQM64U.js';
|
|
5
|
-
export { esbuildPlugin } from './chunk-
|
|
5
|
+
export { esbuildPlugin } from './chunk-2ODODKQQ.js';
|
|
6
6
|
export { getReflectionsPath } from './chunk-MEMIQ5AA.js';
|
|
7
|
-
export { transpile } from './chunk-
|
|
8
|
-
export { createDeclarationTransformer, createTransformer } from './chunk-
|
|
7
|
+
export { transpile } from './chunk-LPLPOVLC.js';
|
|
8
|
+
export { createDeclarationTransformer, createTransformer } from './chunk-MNUBEEIW.js';
|
|
9
9
|
import './chunk-IRPJW6HH.js';
|
|
10
10
|
import './chunk-OULCUN6I.js';
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQABG54Y3_cjs = require('./chunk-QABG54Y3.cjs');
|
|
4
4
|
require('./chunk-7J3ZDT6O.cjs');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-6QPIKQMO.cjs');
|
|
6
|
+
require('./chunk-EKHXI2JI.cjs');
|
|
7
|
+
require('./chunk-VXZTOOL6.cjs');
|
|
8
8
|
require('./chunk-GRNJVY7I.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "reflectType", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkQABG54Y3_cjs.reflectType; }
|
|
15
15
|
});
|
package/dist/reflect-type.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { reflectType } from './chunk-
|
|
1
|
+
export { reflectType } from './chunk-C7BRLIIA.js';
|
|
2
2
|
import './chunk-XGQQM64U.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import './chunk-2ODODKQQ.js';
|
|
4
|
+
import './chunk-LPLPOVLC.js';
|
|
5
|
+
import './chunk-MNUBEEIW.js';
|
|
6
6
|
import './chunk-IRPJW6HH.js';
|
package/dist/transformer.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVXZTOOL6_cjs = require('./chunk-VXZTOOL6.cjs');
|
|
4
4
|
require('./chunk-GRNJVY7I.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "createDeclarationTransformer", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkVXZTOOL6_cjs.createDeclarationTransformer; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createTransformer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkVXZTOOL6_cjs.createTransformer; }
|
|
15
15
|
});
|
package/dist/transformer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createDeclarationTransformer, createTransformer } from './chunk-
|
|
1
|
+
export { createDeclarationTransformer, createTransformer } from './chunk-MNUBEEIW.js';
|
|
2
2
|
import './chunk-IRPJW6HH.js';
|
package/dist/transpile.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkEKHXI2JI_cjs = require('./chunk-EKHXI2JI.cjs');
|
|
4
|
+
require('./chunk-VXZTOOL6.cjs');
|
|
5
5
|
require('./chunk-GRNJVY7I.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "transpile", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkEKHXI2JI_cjs.transpile; }
|
|
12
12
|
});
|
package/dist/transpile.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { transpile } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { transpile } from './chunk-LPLPOVLC.js';
|
|
2
|
+
import './chunk-MNUBEEIW.js';
|
|
3
3
|
import './chunk-IRPJW6HH.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
export { __commonJS, __name, __toESM };
|