@powerlines/deepkit 0.5.0 → 0.5.1
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.cjs +48 -47
- package/dist/capnp.js +3 -2
- package/dist/{chunk-TVDEXHJN.js → chunk-4V4LIAN2.js} +8 -9
- package/dist/chunk-7J3ZDT6O.cjs +30 -0
- package/dist/{chunk-U4JSDAXK.js → chunk-B6GTAZEL.js} +8 -7
- package/dist/{chunk-KYFUOGZ6.cjs → chunk-ESVH44QW.cjs} +9 -10
- package/dist/chunk-FFBZWTR7.cjs +63 -0
- package/dist/chunk-GRNJVY7I.cjs +19 -0
- package/dist/{chunk-DGXATHAN.js → chunk-I5CVIT7W.js} +41 -46
- package/dist/chunk-IRPJW6HH.js +16 -0
- package/dist/{chunk-SKYW5GV2.cjs → chunk-J2FVIV7W.cjs} +127 -132
- package/dist/chunk-J4SVRFV4.js +127 -0
- package/dist/{chunk-FEBG7WWO.js → chunk-MEMIQ5AA.js} +1 -3
- package/dist/chunk-ORA4UQMU.cjs +2 -0
- package/dist/chunk-OULCUN6I.js +1 -0
- package/dist/chunk-PKLLVKY2.cjs +193 -0
- package/dist/chunk-QLKLDV3V.cjs +135 -0
- package/dist/chunk-U5O6DHJ2.js +187 -0
- package/dist/{chunk-JHEBLHYK.cjs → chunk-VMRRVNO2.cjs} +2 -4
- package/dist/{chunk-55HOZO7D.cjs → chunk-VWKKT7CM.cjs} +5 -7
- package/dist/chunk-XGQQM64U.js +8 -0
- package/dist/{chunk-BTXPY3B4.js → chunk-YQQIT5YX.js} +2 -4
- package/dist/esbuild-plugin.cjs +5 -5
- package/dist/esbuild-plugin.d.cts +3 -2
- package/dist/esbuild-plugin.d.ts +3 -2
- package/dist/esbuild-plugin.js +4 -4
- package/dist/index.cjs +69 -69
- package/dist/index.js +10 -12
- package/dist/reflect-type.cjs +7 -6
- package/dist/reflect-type.js +6 -5
- package/dist/resolve-reflections.cjs +3 -3
- package/dist/resolve-reflections.js +2 -2
- package/dist/transformer.cjs +4 -4
- package/dist/transformer.js +2 -2
- package/dist/transpile.cjs +4 -4
- package/dist/transpile.js +3 -3
- package/dist/types.cjs +1 -2
- package/dist/types.js +1 -2
- package/dist/utilities.cjs +10 -9
- package/dist/utilities.js +3 -2
- package/dist/{chunk-YKFG2BZQ.cjs → vendor/chunk-5NPGWGPO.cjs} +0 -6
- package/dist/vendor/{chunk-BLN7QVCP.js → chunk-7LAB3COT.js} +7 -154
- package/dist/vendor/chunk-IOMA7ABE.js +359 -0
- package/dist/vendor/chunk-K5KCTNDL.cjs +2678 -0
- package/dist/vendor/chunk-L3KIZV6P.js +2664 -0
- package/dist/vendor/chunk-M3FJ3QXG.cjs +377 -0
- package/dist/vendor/chunk-SHUYVCID.js +4 -0
- package/dist/vendor/chunk-USNT2KNT.cjs +6 -0
- package/dist/{chunk-4WJJKR53.js → vendor/chunk-ZDFKNN7Y.cjs} +281 -322
- package/dist/vendor/compiler.cjs +12 -13
- package/dist/vendor/compiler.js +2 -5
- package/dist/vendor/config.cjs +9 -10
- package/dist/vendor/config.js +1 -5
- package/dist/vendor/core.cjs +130 -131
- package/dist/vendor/core.js +2 -5
- package/dist/vendor/index.cjs +14 -22
- package/dist/vendor/index.js +3 -11
- package/dist/vendor/type-spec.cjs +5 -6
- package/dist/vendor/type-spec.js +2 -5
- package/dist/vendor/type.cjs +631 -758
- package/dist/vendor/type.js +15 -138
- package/package.json +4 -4
- package/dist/chunk-2V4ET57D.js +0 -6954
- package/dist/chunk-6ETLMANX.js +0 -3472
- package/dist/chunk-6IQVU53O.cjs +0 -24
- package/dist/chunk-6OXPIOZY.cjs +0 -43
- package/dist/chunk-7WAH4JD3.js +0 -115
- package/dist/chunk-B4PTD5KQ.js +0 -4
- package/dist/chunk-ITQKPDCW.cjs +0 -3859
- package/dist/chunk-LBHO5BRF.js +0 -2251
- package/dist/chunk-OYRIJX67.cjs +0 -3487
- package/dist/chunk-PANPZ6S6.cjs +0 -6
- package/dist/chunk-QPSZUUB6.cjs +0 -2259
- package/dist/chunk-QQ7GKXIS.js +0 -43
- package/dist/chunk-SA3DCC4M.cjs +0 -6968
- package/dist/chunk-WVKPC33H.cjs +0 -49
- package/dist/chunk-YUO4MCOI.js +0 -18
- package/dist/vendor/chunk-5BKT4CS5.js +0 -28
- package/dist/vendor/chunk-BDXVTHBY.cjs +0 -3859
- package/dist/vendor/chunk-EQXMWOHO.cjs +0 -115
- package/dist/vendor/chunk-MCNMRQDT.js +0 -3513
- package/dist/vendor/chunk-MO4O4UYI.cjs +0 -42
- package/dist/vendor/chunk-RH4YMONA.js +0 -7064
- package/dist/vendor/chunk-RZKB5IQZ.cjs +0 -3531
- package/dist/vendor/chunk-WOXMCJJU.cjs +0 -7078
- package/dist/vendor/type-compiler/compiler.cjs +0 -46
- package/dist/vendor/type-compiler/compiler.d.cts +0 -1
- package/dist/vendor/type-compiler/compiler.d.ts +0 -1
- package/dist/vendor/type-compiler/compiler.js +0 -7
- package/dist/vendor/type-compiler/config.cjs +0 -36
- package/dist/vendor/type-compiler/config.d.cts +0 -6
- package/dist/vendor/type-compiler/config.d.ts +0 -6
- package/dist/vendor/type-compiler/config.js +0 -5
- package/dist/vendor/type-compiler/index.cjs +0 -108
- package/dist/vendor/type-compiler/index.d.cts +0 -1
- package/dist/vendor/type-compiler/index.d.ts +0 -1
- package/dist/vendor/type-compiler/index.js +0 -67
package/dist/capnp.cjs
CHANGED
|
@@ -1,187 +1,188 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkJ2FVIV7W_cjs = require('./chunk-J2FVIV7W.cjs');
|
|
4
|
+
require('./chunk-7J3ZDT6O.cjs');
|
|
5
|
+
require('./chunk-GRNJVY7I.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
Object.defineProperty(exports, "convertFromCapnp", {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnp; }
|
|
11
12
|
});
|
|
12
13
|
Object.defineProperty(exports, "convertFromCapnpArray", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpArray; }
|
|
15
16
|
});
|
|
16
17
|
Object.defineProperty(exports, "convertFromCapnpBase", {
|
|
17
18
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpBase; }
|
|
19
20
|
});
|
|
20
21
|
Object.defineProperty(exports, "convertFromCapnpClassType", {
|
|
21
22
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpClassType; }
|
|
23
24
|
});
|
|
24
25
|
Object.defineProperty(exports, "convertFromCapnpDefault", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpDefault; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "convertFromCapnpEnum", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpEnum; }
|
|
31
32
|
});
|
|
32
33
|
Object.defineProperty(exports, "convertFromCapnpFunction", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpFunction; }
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(exports, "convertFromCapnpIndexAccessOrigin", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpIndexAccessOrigin; }
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(exports, "convertFromCapnpInfer", {
|
|
41
42
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpInfer; }
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(exports, "convertFromCapnpIntersection", {
|
|
45
46
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpIntersection; }
|
|
47
48
|
});
|
|
48
49
|
Object.defineProperty(exports, "convertFromCapnpLiteral", {
|
|
49
50
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpLiteral; }
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(exports, "convertFromCapnpMethodSignature", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpMethodSignature; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "convertFromCapnpObjectLiteral", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpObjectLiteral; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "convertFromCapnpOther", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpOther; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "convertFromCapnpParameter", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpParameter; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "convertFromCapnpProperty", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpProperty; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "convertFromCapnpPropertySignature", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpPropertySignature; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "convertFromCapnpSimple", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpSimple; }
|
|
79
80
|
});
|
|
80
81
|
Object.defineProperty(exports, "convertFromCapnpTagsReflection", {
|
|
81
82
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpTagsReflection; }
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(exports, "convertFromCapnpTuple", {
|
|
85
86
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpTuple; }
|
|
87
88
|
});
|
|
88
89
|
Object.defineProperty(exports, "convertFromCapnpTupleMember", {
|
|
89
90
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpTupleMember; }
|
|
91
92
|
});
|
|
92
93
|
Object.defineProperty(exports, "convertFromCapnpUnion", {
|
|
93
94
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertFromCapnpUnion; }
|
|
95
96
|
});
|
|
96
97
|
Object.defineProperty(exports, "convertToCapnp", {
|
|
97
98
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnp; }
|
|
99
100
|
});
|
|
100
101
|
Object.defineProperty(exports, "convertToCapnpArray", {
|
|
101
102
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpArray; }
|
|
103
104
|
});
|
|
104
105
|
Object.defineProperty(exports, "convertToCapnpBase", {
|
|
105
106
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpBase; }
|
|
107
108
|
});
|
|
108
109
|
Object.defineProperty(exports, "convertToCapnpClassType", {
|
|
109
110
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpClassType; }
|
|
111
112
|
});
|
|
112
113
|
Object.defineProperty(exports, "convertToCapnpDefault", {
|
|
113
114
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpDefault; }
|
|
115
116
|
});
|
|
116
117
|
Object.defineProperty(exports, "convertToCapnpEnum", {
|
|
117
118
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpEnum; }
|
|
119
120
|
});
|
|
120
121
|
Object.defineProperty(exports, "convertToCapnpFunction", {
|
|
121
122
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpFunction; }
|
|
123
124
|
});
|
|
124
125
|
Object.defineProperty(exports, "convertToCapnpIndexAccessOrigin", {
|
|
125
126
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpIndexAccessOrigin; }
|
|
127
128
|
});
|
|
128
129
|
Object.defineProperty(exports, "convertToCapnpInfer", {
|
|
129
130
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpInfer; }
|
|
131
132
|
});
|
|
132
133
|
Object.defineProperty(exports, "convertToCapnpIntersection", {
|
|
133
134
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpIntersection; }
|
|
135
136
|
});
|
|
136
137
|
Object.defineProperty(exports, "convertToCapnpLiteral", {
|
|
137
138
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpLiteral; }
|
|
139
140
|
});
|
|
140
141
|
Object.defineProperty(exports, "convertToCapnpMethod", {
|
|
141
142
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpMethod; }
|
|
143
144
|
});
|
|
144
145
|
Object.defineProperty(exports, "convertToCapnpMethodSignature", {
|
|
145
146
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpMethodSignature; }
|
|
147
148
|
});
|
|
148
149
|
Object.defineProperty(exports, "convertToCapnpObjectLiteral", {
|
|
149
150
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpObjectLiteral; }
|
|
151
152
|
});
|
|
152
153
|
Object.defineProperty(exports, "convertToCapnpOther", {
|
|
153
154
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpOther; }
|
|
155
156
|
});
|
|
156
157
|
Object.defineProperty(exports, "convertToCapnpParameter", {
|
|
157
158
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpParameter; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "convertToCapnpProperty", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpProperty; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "convertToCapnpPropertySignature", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpPropertySignature; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "convertToCapnpSimple", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpSimple; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "convertToCapnpTagsReflection", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpTagsReflection; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "convertToCapnpTuple", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpTuple; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "convertToCapnpTupleMember", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpTupleMember; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "convertToCapnpUnion", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkJ2FVIV7W_cjs.convertToCapnpUnion; }
|
|
187
188
|
});
|
package/dist/capnp.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
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-
|
|
2
|
-
import './chunk-
|
|
1
|
+
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';
|
|
2
|
+
import './chunk-XGQQM64U.js';
|
|
3
|
+
import './chunk-IRPJW6HH.js';
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { transpile } from './chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { transpile } from './chunk-YQQIT5YX.js';
|
|
2
|
+
import { __name } from './chunk-IRPJW6HH.js';
|
|
3
3
|
import { isString } from '@stryke/type-checks';
|
|
4
4
|
import { DiagnosticCategory } from 'typescript';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
init_esm_shims();
|
|
8
|
-
var esbuildPlugin = /* @__PURE__ */ __name((context) => {
|
|
6
|
+
var esbuildPlugin = /* @__PURE__ */ __name((context, options = {}) => {
|
|
9
7
|
return {
|
|
10
8
|
name: "powerlines:deepkit",
|
|
11
9
|
setup(build) {
|
|
12
10
|
build.onLoad({
|
|
13
|
-
filter: /\.tsx
|
|
11
|
+
filter: /\.(m|c)?tsx?$/,
|
|
12
|
+
...options
|
|
14
13
|
}, async (args) => {
|
|
15
14
|
const contents = await context.fs.read(args.path);
|
|
16
15
|
if (!contents) {
|
|
@@ -28,15 +27,15 @@ var esbuildPlugin = /* @__PURE__ */ __name((context) => {
|
|
|
28
27
|
const result = transpile(context, contents, args.path);
|
|
29
28
|
if (result.diagnostics && result.diagnostics.length > 0) {
|
|
30
29
|
if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Error)) {
|
|
31
|
-
const errorMessage = `Deepkit Type reflection transpilation errors
|
|
30
|
+
const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path}
|
|
32
31
|
${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
|
|
33
32
|
context.error(errorMessage);
|
|
34
33
|
throw new Error(errorMessage);
|
|
35
34
|
} else if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Warning)) {
|
|
36
|
-
context.warn(`Deepkit Type reflection transpilation warnings
|
|
35
|
+
context.warn(`Deepkit Type reflection transpilation warnings: ${args.path}
|
|
37
36
|
${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
38
37
|
} else {
|
|
39
|
-
context.debug(`Deepkit Type reflection transpilation
|
|
38
|
+
context.debug(`Deepkit Type reflection transpilation diagnostics: ${args.path}
|
|
40
39
|
${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
4
|
+
var type_star = require('@deepkit/type');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var type_star__namespace = /*#__PURE__*/_interopNamespace(type_star);
|
|
25
|
+
|
|
26
|
+
// src/vendor/type.ts
|
|
27
|
+
var type_exports = {};
|
|
28
|
+
chunkGRNJVY7I_cjs.__reExport(type_exports, type_star__namespace);
|
|
29
|
+
|
|
30
|
+
exports.type_exports = type_exports;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { __reExport, __name } from './chunk-IRPJW6HH.js';
|
|
2
|
+
import * as type_compiler_star from '@deepkit/type-compiler';
|
|
3
3
|
import defu from 'defu';
|
|
4
4
|
|
|
5
|
-
// src/
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
// src/vendor/type-compiler/index.ts
|
|
6
|
+
var type_compiler_exports = {};
|
|
7
|
+
__reExport(type_compiler_exports, type_compiler_star);
|
|
8
|
+
var cache = new type_compiler_exports.Cache();
|
|
8
9
|
function createTransformer(context, options = {}) {
|
|
9
10
|
return /* @__PURE__ */ __name(function transformer(ctx) {
|
|
10
11
|
cache.tick();
|
|
11
|
-
return new ReflectionTransformer(ctx, cache).withReflection(defu(options, {
|
|
12
|
+
return new type_compiler_exports.ReflectionTransformer(ctx, cache).withReflection(defu(options, {
|
|
12
13
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
13
14
|
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
14
15
|
}, {
|
|
@@ -21,7 +22,7 @@ function createTransformer(context, options = {}) {
|
|
|
21
22
|
__name(createTransformer, "createTransformer");
|
|
22
23
|
function createDeclarationTransformer(context, options = {}) {
|
|
23
24
|
return /* @__PURE__ */ __name(function declarationTransformer(ctx) {
|
|
24
|
-
return new DeclarationTransformer(ctx, cache).withReflection(defu(options, {
|
|
25
|
+
return new type_compiler_exports.DeclarationTransformer(ctx, cache).withReflection(defu(options, {
|
|
25
26
|
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
26
27
|
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
27
28
|
}, {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkVWKKT7CM_cjs = require('./chunk-VWKKT7CM.cjs');
|
|
4
|
+
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
5
5
|
var typeChecks = require('@stryke/type-checks');
|
|
6
6
|
var typescript = require('typescript');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
10
|
-
var esbuildPlugin = /* @__PURE__ */ chunkWVKPC33H_cjs.__name((context) => {
|
|
8
|
+
var esbuildPlugin = /* @__PURE__ */ chunkGRNJVY7I_cjs.__name((context, options = {}) => {
|
|
11
9
|
return {
|
|
12
10
|
name: "powerlines:deepkit",
|
|
13
11
|
setup(build) {
|
|
14
12
|
build.onLoad({
|
|
15
|
-
filter: /\.tsx
|
|
13
|
+
filter: /\.(m|c)?tsx?$/,
|
|
14
|
+
...options
|
|
16
15
|
}, async (args) => {
|
|
17
16
|
const contents = await context.fs.read(args.path);
|
|
18
17
|
if (!contents) {
|
|
@@ -27,18 +26,18 @@ var esbuildPlugin = /* @__PURE__ */ chunkWVKPC33H_cjs.__name((context) => {
|
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
|
-
const result =
|
|
29
|
+
const result = chunkVWKKT7CM_cjs.transpile(context, contents, args.path);
|
|
31
30
|
if (result.diagnostics && result.diagnostics.length > 0) {
|
|
32
31
|
if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
|
|
33
|
-
const errorMessage = `Deepkit Type reflection transpilation errors
|
|
32
|
+
const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path}
|
|
34
33
|
${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
|
|
35
34
|
context.error(errorMessage);
|
|
36
35
|
throw new Error(errorMessage);
|
|
37
36
|
} else if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Warning)) {
|
|
38
|
-
context.warn(`Deepkit Type reflection transpilation warnings
|
|
37
|
+
context.warn(`Deepkit Type reflection transpilation warnings: ${args.path}
|
|
39
38
|
${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
40
39
|
} else {
|
|
41
|
-
context.debug(`Deepkit Type reflection transpilation
|
|
40
|
+
context.debug(`Deepkit Type reflection transpilation diagnostics: ${args.path}
|
|
42
41
|
${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
43
42
|
}
|
|
44
43
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
4
|
+
var type_compiler_star = require('@deepkit/type-compiler');
|
|
5
|
+
var defu = require('defu');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var type_compiler_star__namespace = /*#__PURE__*/_interopNamespace(type_compiler_star);
|
|
28
|
+
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
29
|
+
|
|
30
|
+
// src/vendor/type-compiler/index.ts
|
|
31
|
+
var type_compiler_exports = {};
|
|
32
|
+
chunkGRNJVY7I_cjs.__reExport(type_compiler_exports, type_compiler_star__namespace);
|
|
33
|
+
var cache = new type_compiler_exports.Cache();
|
|
34
|
+
function createTransformer(context, options = {}) {
|
|
35
|
+
return /* @__PURE__ */ chunkGRNJVY7I_cjs.__name(function transformer(ctx) {
|
|
36
|
+
cache.tick();
|
|
37
|
+
return new type_compiler_exports.ReflectionTransformer(ctx, cache).withReflection(defu__default.default(options, {
|
|
38
|
+
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
39
|
+
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
40
|
+
}, {
|
|
41
|
+
exclude: [],
|
|
42
|
+
reflection: "default",
|
|
43
|
+
reflectionLevel: "minimal"
|
|
44
|
+
}));
|
|
45
|
+
}, "transformer");
|
|
46
|
+
}
|
|
47
|
+
chunkGRNJVY7I_cjs.__name(createTransformer, "createTransformer");
|
|
48
|
+
function createDeclarationTransformer(context, options = {}) {
|
|
49
|
+
return /* @__PURE__ */ chunkGRNJVY7I_cjs.__name(function declarationTransformer(ctx) {
|
|
50
|
+
return new type_compiler_exports.DeclarationTransformer(ctx, cache).withReflection(defu__default.default(options, {
|
|
51
|
+
reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
|
|
52
|
+
reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
|
|
53
|
+
}, {
|
|
54
|
+
exclude: [],
|
|
55
|
+
reflection: "default",
|
|
56
|
+
reflectionLevel: "minimal"
|
|
57
|
+
}));
|
|
58
|
+
}, "declarationTransformer");
|
|
59
|
+
}
|
|
60
|
+
chunkGRNJVY7I_cjs.__name(createDeclarationTransformer, "createDeclarationTransformer");
|
|
61
|
+
|
|
62
|
+
exports.createDeclarationTransformer = createDeclarationTransformer;
|
|
63
|
+
exports.createTransformer = createTransformer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
|
|
18
|
+
exports.__name = __name;
|
|
19
|
+
exports.__reExport = __reExport;
|