@powerlines/deepkit 0.5.0 → 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/capnp.cjs +48 -47
- package/dist/capnp.js +3 -2
- package/dist/{chunk-TVDEXHJN.js → chunk-2ODODKQQ.js} +8 -9
- package/dist/{chunk-KYFUOGZ6.cjs → chunk-6QPIKQMO.cjs} +9 -10
- package/dist/chunk-7J3ZDT6O.cjs +30 -0
- package/dist/chunk-C7BRLIIA.js +187 -0
- package/dist/{chunk-55HOZO7D.cjs → chunk-EKHXI2JI.cjs} +5 -7
- 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-BTXPY3B4.js → chunk-LPLPOVLC.js} +2 -4
- package/dist/{chunk-FEBG7WWO.js → chunk-MEMIQ5AA.js} +1 -3
- package/dist/{chunk-U4JSDAXK.js → chunk-MNUBEEIW.js} +12 -7
- package/dist/chunk-ORA4UQMU.cjs +2 -0
- package/dist/chunk-OULCUN6I.js +1 -0
- package/dist/chunk-QABG54Y3.cjs +193 -0
- package/dist/chunk-QLKLDV3V.cjs +135 -0
- package/dist/{chunk-JHEBLHYK.cjs → chunk-VMRRVNO2.cjs} +2 -4
- package/dist/chunk-VXZTOOL6.cjs +69 -0
- package/dist/chunk-XGQQM64U.js +8 -0
- 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/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/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 -130
- package/dist/vendor/core.js +2 -5
- package/dist/vendor/index.cjs +42 -22
- package/dist/vendor/index.d.cts +2 -0
- package/dist/vendor/index.d.ts +2 -0
- package/dist/vendor/index.js +4 -11
- package/dist/vendor/type-spec.cjs +5 -5
- package/dist/vendor/type-spec.js +2 -5
- package/dist/vendor/type.cjs +2269 -691
- package/dist/vendor/type.js +1607 -92
- package/package.json +5 -5
- package/dist/chunk-2V4ET57D.js +0 -6954
- package/dist/chunk-4WJJKR53.js +0 -3731
- 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-YKFG2BZQ.cjs +0 -115
- package/dist/chunk-YUO4MCOI.js +0 -18
- package/dist/vendor/chunk-MCNMRQDT.js +0 -3513
- 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-LPLPOVLC.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
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEKHXI2JI_cjs = require('./chunk-EKHXI2JI.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 = chunkEKHXI2JI_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,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;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { type_exports } from './chunk-XGQQM64U.js';
|
|
2
|
+
import { esbuildPlugin } from './chunk-2ODODKQQ.js';
|
|
3
|
+
import { __name } from './chunk-IRPJW6HH.js';
|
|
4
|
+
import defu from 'defu';
|
|
5
|
+
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
6
|
+
import { isSetString } from '@stryke/type-checks/is-set-string';
|
|
7
|
+
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
8
|
+
import { build } from 'esbuild';
|
|
9
|
+
import { omit } from '@stryke/helpers/omit';
|
|
10
|
+
import { joinPaths } from '@stryke/path/join-paths';
|
|
11
|
+
import '@stryke/path/replace';
|
|
12
|
+
import { camelCase } from '@stryke/string-format/camel-case';
|
|
13
|
+
import '@stryke/type-checks/is-string';
|
|
14
|
+
import '@stryke/convert/to-array';
|
|
15
|
+
import '@stryke/fs/is-file';
|
|
16
|
+
import '@stryke/fs/list-files';
|
|
17
|
+
import '@stryke/hash/murmurhash';
|
|
18
|
+
import '@stryke/helpers/get-unique';
|
|
19
|
+
import '@stryke/path/append';
|
|
20
|
+
|
|
21
|
+
// ../powerlines/src/lib/build/esbuild.ts
|
|
22
|
+
var DEFAULT_ESBUILD_CONFIG = {
|
|
23
|
+
target: "esnext",
|
|
24
|
+
platform: "neutral",
|
|
25
|
+
format: "esm",
|
|
26
|
+
write: true,
|
|
27
|
+
minify: true,
|
|
28
|
+
sourcemap: false,
|
|
29
|
+
bundle: true,
|
|
30
|
+
treeShaking: true,
|
|
31
|
+
keepNames: true,
|
|
32
|
+
splitting: true,
|
|
33
|
+
logLevel: "silent"
|
|
34
|
+
};
|
|
35
|
+
function extractESBuildConfig(context) {
|
|
36
|
+
const inject = context.config.build.override.inject ?? context.config.build.inject;
|
|
37
|
+
if (inject && Object.keys(inject).length > 0) {
|
|
38
|
+
context.fs.writeSync(joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.artifactsPath, "inject-shim.js"), Object.entries(inject).map(([key, value]) => {
|
|
39
|
+
if (value) {
|
|
40
|
+
if (Array.isArray(value)) {
|
|
41
|
+
if (camelCase(key) !== key) {
|
|
42
|
+
if (value.length === 1) {
|
|
43
|
+
return `
|
|
44
|
+
import ${camelCase(key)} from "${value[0]}";
|
|
45
|
+
export { ${camelCase(key)} as "${key}" }`;
|
|
46
|
+
} else if (value.length > 1) {
|
|
47
|
+
return `
|
|
48
|
+
import ${value[1] === "*" ? `* as ${camelCase(key)}` : `{ ${value[1]} as ${camelCase(key)} }`} from "${value[0]}";
|
|
49
|
+
export { ${camelCase(key)} as "${key}" }`;
|
|
50
|
+
}
|
|
51
|
+
} else if (value.length === 1) {
|
|
52
|
+
return `
|
|
53
|
+
import ${key} from "${value[0]}";
|
|
54
|
+
export { ${key} };`;
|
|
55
|
+
} else if (value.length > 1) {
|
|
56
|
+
return `
|
|
57
|
+
import ${value[1] === "*" ? `* as ${key}` : `{ ${value[1]} as ${key} }`} from "${value[0]}";
|
|
58
|
+
export { ${key} };`;
|
|
59
|
+
}
|
|
60
|
+
} else if (camelCase(key) !== key) {
|
|
61
|
+
return `
|
|
62
|
+
import ${camelCase(key)} from "${value[0]}";
|
|
63
|
+
export { ${camelCase(key)} as "${key}" }`;
|
|
64
|
+
} else {
|
|
65
|
+
return `
|
|
66
|
+
import ${key} from "${value}";
|
|
67
|
+
export { ${key} };`;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return "";
|
|
71
|
+
}).join("\n"));
|
|
72
|
+
}
|
|
73
|
+
return defu({
|
|
74
|
+
alias: context.builtins.reduce((ret, id) => {
|
|
75
|
+
if (!ret[id]) {
|
|
76
|
+
const path = context.fs.ids[id];
|
|
77
|
+
if (path) {
|
|
78
|
+
ret[id] = path;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return ret;
|
|
82
|
+
}, context.config.build.alias ? Array.isArray(context.config.build.alias) ? context.config.build.alias.reduce((ret, alias) => {
|
|
83
|
+
if (!ret[alias.find.toString()]) {
|
|
84
|
+
ret[alias.find.toString()] = alias.replacement;
|
|
85
|
+
}
|
|
86
|
+
return ret;
|
|
87
|
+
}, {}) : context.config.build.alias : {}),
|
|
88
|
+
inject: inject && Object.keys(inject).length > 0 ? [
|
|
89
|
+
joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.artifactsPath, "inject-shim.js")
|
|
90
|
+
] : void 0
|
|
91
|
+
}, context.config.build.variant === "esbuild" ? omit(context.config.build.override, [
|
|
92
|
+
"alias",
|
|
93
|
+
"inject",
|
|
94
|
+
"external",
|
|
95
|
+
"noExternal",
|
|
96
|
+
"skipNodeModulesBundle",
|
|
97
|
+
"extensions"
|
|
98
|
+
]) : {}, context.config.build.variant === "esbuild" ? omit(context.config.build, [
|
|
99
|
+
"alias",
|
|
100
|
+
"inject",
|
|
101
|
+
"external",
|
|
102
|
+
"noExternal",
|
|
103
|
+
"skipNodeModulesBundle",
|
|
104
|
+
"extensions",
|
|
105
|
+
"variant",
|
|
106
|
+
"override"
|
|
107
|
+
]) : {}, {
|
|
108
|
+
mainFields: context.config.build.mainFields,
|
|
109
|
+
conditions: context.config.build.conditions,
|
|
110
|
+
define: context.config.build.define,
|
|
111
|
+
resolveExtensions: context.config.build.extensions,
|
|
112
|
+
packages: context.config.build.skipNodeModulesBundle ? "external" : context.config.build.variant === "esbuild" ? context.config.build.packages : void 0,
|
|
113
|
+
format: Array.isArray(context.config.output.format) ? context.config.output.format[0] : context.config.output.format,
|
|
114
|
+
platform: context.config.build.platform,
|
|
115
|
+
treeShaking: Boolean(context.config.build?.treeshake) || context.config.build?.treeShaking,
|
|
116
|
+
outdir: context.config.output.buildPath,
|
|
117
|
+
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
118
|
+
minify: context.config.mode !== "development",
|
|
119
|
+
metafile: context.config.mode === "development",
|
|
120
|
+
sourcemap: context.config.mode === "development"
|
|
121
|
+
}, DEFAULT_ESBUILD_CONFIG);
|
|
122
|
+
}
|
|
123
|
+
__name(extractESBuildConfig, "extractESBuildConfig");
|
|
124
|
+
|
|
125
|
+
// ../powerlines/src/lib/utilities/bundle.ts
|
|
126
|
+
async function bundle(context, file, overrides = {}) {
|
|
127
|
+
const path = await context.fs.resolve(file);
|
|
128
|
+
if (!path || !context.fs.existsSync(path)) {
|
|
129
|
+
throw new Error(`Module not found: "${file}". Please check the path and try again.`);
|
|
130
|
+
}
|
|
131
|
+
const result = await build({
|
|
132
|
+
...extractESBuildConfig(context),
|
|
133
|
+
entryPoints: [
|
|
134
|
+
path
|
|
135
|
+
],
|
|
136
|
+
write: false,
|
|
137
|
+
sourcemap: false,
|
|
138
|
+
splitting: false,
|
|
139
|
+
treeShaking: false,
|
|
140
|
+
bundle: true,
|
|
141
|
+
...overrides
|
|
142
|
+
});
|
|
143
|
+
if (result.errors.length > 0) {
|
|
144
|
+
throw new Error(`Failed to transpile ${file}: ${result.errors.map((error) => error.text).join(", ")}`);
|
|
145
|
+
}
|
|
146
|
+
if (result.warnings.length > 0) {
|
|
147
|
+
context.log(LogLevelLabel.WARN, `Warnings while transpiling ${file}: ${result.warnings.map((warning) => warning.text).join(", ")}`);
|
|
148
|
+
}
|
|
149
|
+
if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {
|
|
150
|
+
throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
|
|
151
|
+
}
|
|
152
|
+
return result.outputFiles.filter(Boolean)[0];
|
|
153
|
+
}
|
|
154
|
+
__name(bundle, "bundle");
|
|
155
|
+
|
|
156
|
+
// ../powerlines/src/lib/utilities/resolve.ts
|
|
157
|
+
async function resolve(context, type, overrides = {}) {
|
|
158
|
+
let typeDefinition;
|
|
159
|
+
if (isSetString(type)) {
|
|
160
|
+
typeDefinition = parseTypeDefinition(type);
|
|
161
|
+
} else {
|
|
162
|
+
typeDefinition = type;
|
|
163
|
+
}
|
|
164
|
+
const result = await bundle(context, typeDefinition.file, overrides);
|
|
165
|
+
const resolved = await context.resolver.evalModule(result.text, {
|
|
166
|
+
filename: result.path,
|
|
167
|
+
forceTranspile: true
|
|
168
|
+
});
|
|
169
|
+
let exportName = typeDefinition.name;
|
|
170
|
+
if (!exportName) {
|
|
171
|
+
exportName = "default";
|
|
172
|
+
}
|
|
173
|
+
return resolved[exportName] ?? resolved[`__\u03A9${exportName}`];
|
|
174
|
+
}
|
|
175
|
+
__name(resolve, "resolve");
|
|
176
|
+
|
|
177
|
+
// src/reflect-type.ts
|
|
178
|
+
async function reflectType(context, type, overrides = {}) {
|
|
179
|
+
return (0, type_exports.reflect)(await resolve(context, type, defu(overrides, {
|
|
180
|
+
plugins: [
|
|
181
|
+
esbuildPlugin(context)
|
|
182
|
+
]
|
|
183
|
+
})));
|
|
184
|
+
}
|
|
185
|
+
__name(reflectType, "reflectType");
|
|
186
|
+
|
|
187
|
+
export { reflectType };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkVXZTOOL6_cjs = require('./chunk-VXZTOOL6.cjs');
|
|
4
|
+
var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs');
|
|
5
5
|
var ts = require('typescript');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
9
9
|
var ts__default = /*#__PURE__*/_interopDefault(ts);
|
|
10
10
|
|
|
11
|
-
// src/transpile.ts
|
|
12
|
-
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
13
11
|
function transpile(context, code, id) {
|
|
14
|
-
const transformer =
|
|
15
|
-
const declarationTransformer =
|
|
12
|
+
const transformer = chunkVXZTOOL6_cjs.createTransformer(context);
|
|
13
|
+
const declarationTransformer = chunkVXZTOOL6_cjs.createDeclarationTransformer(context);
|
|
16
14
|
return ts__default.default.transpileModule(code, {
|
|
17
15
|
compilerOptions: {
|
|
18
16
|
...context.tsconfig.options
|
|
@@ -28,6 +26,6 @@ function transpile(context, code, id) {
|
|
|
28
26
|
}
|
|
29
27
|
});
|
|
30
28
|
}
|
|
31
|
-
|
|
29
|
+
chunkGRNJVY7I_cjs.__name(transpile, "transpile");
|
|
32
30
|
|
|
33
31
|
exports.transpile = transpile;
|
|
@@ -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;
|