plugin-tls 1.1.1 → 2.0.0
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/extend/extend.d.ts +2 -2
- package/dist/extend/extend.d.ts.map +1 -1
- package/dist/extend/mixin.d.ts.map +1 -1
- package/dist/index.js +1038 -0
- package/dist/index.umd.cjs +1 -0
- package/dist/options-manager/ModeOptions.d.ts.map +1 -1
- package/dist/options-manager/OptionsManager.d.ts.map +1 -1
- package/dist/options-manager/TierOptions.d.ts.map +1 -1
- package/dist/options-manager/defaultOptions.d.ts.map +1 -1
- package/dist/plugin-host/PluginHost.d.ts +53 -15
- package/dist/plugin-host/PluginHost.d.ts.map +1 -1
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +45 -16
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +1 -1
- package/dist/plugin-host/TierOptionsPluginHost.d.ts +43 -9
- package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +1 -1
- package/doc/api/index.md +23 -3
- package/doc/api/plugin-tls.adddefaultoptions.md +49 -4
- package/doc/api/plugin-tls.addinstoptions.md +59 -5
- package/doc/api/plugin-tls.allfunctionapply.md +59 -5
- package/doc/api/plugin-tls.becomepluginhost_extends.md +37 -9
- package/doc/api/plugin-tls.becomepluginhost_proxy.md +31 -3
- package/doc/api/plugin-tls.classextenderprivatemember.md +64 -4
- package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +43 -3
- package/doc/api/plugin-tls.classtype._new_.md +31 -3
- package/doc/api/plugin-tls.classtype.md +21 -3
- package/doc/api/plugin-tls.createcallerofprivatememberofextend.md +31 -3
- package/doc/api/plugin-tls.createextendtarget.md +33 -3
- package/doc/api/plugin-tls.createextendtargetwithinit.md +35 -5
- package/doc/api/plugin-tls.createmixintarget.md +31 -3
- package/doc/api/plugin-tls.createpluginhost.md +81 -9
- package/doc/api/plugin-tls.createpropertysetter.md +45 -4
- package/doc/api/plugin-tls.createtargetextend.md +33 -3
- package/doc/api/plugin-tls.createtargetextendwithinit.md +35 -5
- package/doc/api/plugin-tls.createtargetmixin.md +33 -3
- package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +81 -11
- package/doc/api/plugin-tls.createtieroptionspluginhost.md +78 -9
- package/doc/api/plugin-tls.defineextend.md +49 -4
- package/doc/api/plugin-tls.defineextendwithinit.md +49 -4
- package/doc/api/plugin-tls.definemixin.md +49 -4
- package/doc/api/plugin-tls.extendtarget.md +49 -4
- package/doc/api/plugin-tls.extendtargetwithinit.md +49 -4
- package/doc/api/plugin-tls.getpropertyvalue.md +45 -4
- package/doc/api/plugin-tls.getpropertyvaluebypath.md +45 -4
- package/doc/api/plugin-tls.gettargetproperties.md +45 -4
- package/doc/api/plugin-tls.idefaultoptionshost.md +41 -3
- package/doc/api/plugin-tls.iplugin.created.md +49 -4
- package/doc/api/plugin-tls.iplugin.destroyed.md +49 -4
- package/doc/api/plugin-tls.iplugin.md +45 -5
- package/doc/api/plugin-tls.iplugin.used.md +49 -4
- package/doc/api/plugin-tls.ipluginhost.md +23 -3
- package/doc/api/plugin-tls.ipluginhost.use.md +45 -4
- package/doc/api/plugin-tls.ipluginhostconstructor.md +23 -3
- package/doc/api/plugin-tls.ipluginhostconstructor.use.md +49 -4
- package/doc/api/plugin-tls.ipluginwithinit.inited.md +49 -4
- package/doc/api/plugin-tls.ipluginwithinit.md +23 -3
- package/doc/api/plugin-tls.itiermodeoptionshost.md +58 -4
- package/doc/api/plugin-tls.itieroptionshost.md +41 -3
- package/doc/api/plugin-tls.md +960 -92
- package/doc/api/plugin-tls.mergeproperties.md +45 -4
- package/doc/api/plugin-tls.mixin_4.md +49 -4
- package/doc/api/plugin-tls.mixintarget.md +49 -4
- package/doc/api/plugin-tls.modeoptions._constructor_.md +31 -3
- package/doc/api/plugin-tls.modeoptions._constructor__1.md +47 -4
- package/doc/api/plugin-tls.modeoptions.getfullmodeoption.md +31 -3
- package/doc/api/plugin-tls.modeoptions.getmodeoption.md +31 -3
- package/doc/api/plugin-tls.modeoptions.hasmode.md +31 -3
- package/doc/api/plugin-tls.modeoptions.md +347 -23
- package/doc/api/plugin-tls.modeoptions.setmodeoption.md +77 -6
- package/doc/api/plugin-tls.parsepropertypath.md +31 -3
- package/doc/api/{plugin-tls.pluginhost.destroy.md → plugin-tls.pluginhost.destroythis.md} +3 -3
- package/doc/api/plugin-tls.pluginhost.md +150 -11
- package/doc/api/plugin-tls.pluginhost.use.md +49 -4
- package/doc/api/plugin-tls.pluginmanager._constructor_.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.created.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.destroyed.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.instuse.md +61 -5
- package/doc/api/plugin-tls.pluginmanager.md +187 -14
- package/doc/api/plugin-tls.pluginmanager.use.md +49 -4
- package/doc/api/plugin-tls.pluginmanagerwithinit.inited.md +33 -3
- package/doc/api/plugin-tls.pluginmanagerwithinit.md +31 -3
- package/doc/api/plugin-tls.privatememberofextend._constructor.md +31 -3
- package/doc/api/plugin-tls.privatememberofextend.md +34 -4
- package/doc/api/plugin-tls.privatememberofextendwithinit._init.md +31 -3
- package/doc/api/plugin-tls.privatememberofextendwithinit.md +23 -3
- package/doc/api/plugin-tls.setpropertyvalue.md +59 -5
- package/doc/api/plugin-tls.setpropertyvaluebypath.md +59 -5
- package/doc/api/plugin-tls.targetextend.md +49 -4
- package/doc/api/plugin-tls.targetextendwithinit.md +49 -4
- package/doc/api/plugin-tls.targetmixin.md +49 -4
- package/doc/api/plugin-tls.tiermodeoptions._constructor_.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions._constructor__1.md +63 -5
- package/doc/api/plugin-tls.tiermodeoptions.getfullmodeoption.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getmember.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getmodeoptionmanager.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getvalue.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.hasmodeontier.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.md +227 -17
- package/doc/api/plugin-tls.tiermodeoptionsdecorator.md +45 -4
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._constructor_.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.md +152 -10
- package/doc/api/plugin-tls.tieroptions._constructor_.md +49 -4
- package/doc/api/plugin-tls.tieroptions.getmember.md +31 -3
- package/doc/api/plugin-tls.tieroptions.getvalue.md +31 -3
- package/doc/api/plugin-tls.tieroptions.md +209 -15
- package/doc/api/plugin-tls.tieroptionsdecorator.md +45 -4
- package/doc/api/plugin-tls.tieroptionspluginhost._constructor_.md +31 -3
- package/doc/api/plugin-tls.tieroptionspluginhost.md +116 -8
- package/package.json +29 -20
- package/dist/plugin-tls.d.ts +0 -1329
- package/dist/plugin-tls.iife.js +0 -1
- package/dist/plugin-tls.mjs +0 -1064
- package/dist/plugin-tls.umd.js +0 -1
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -13,25 +13,219 @@ export declare class TierOptions<Option extends {} = any> extends OptionsManager
|
|
|
13
13
|
|
|
14
14
|
## Constructors
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
<table><thead><tr><th>
|
|
17
|
+
|
|
18
|
+
Constructor
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</th><th>
|
|
22
|
+
|
|
23
|
+
Modifiers
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
</th><th>
|
|
27
|
+
|
|
28
|
+
Description
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</th></tr></thead>
|
|
32
|
+
<tbody><tr><td>
|
|
33
|
+
|
|
34
|
+
[(constructor)(option, extend)](./plugin-tls.tieroptions._constructor_.md)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</td><td>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
</td><td>
|
|
41
|
+
|
|
42
|
+
Constructs a new instance of the `TierOptions` class
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td></tr>
|
|
46
|
+
</tbody></table>
|
|
19
47
|
|
|
20
48
|
## Properties
|
|
21
49
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
50
|
+
<table><thead><tr><th>
|
|
51
|
+
|
|
52
|
+
Property
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</th><th>
|
|
56
|
+
|
|
57
|
+
Modifiers
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</th><th>
|
|
61
|
+
|
|
62
|
+
Type
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</th><th>
|
|
66
|
+
|
|
67
|
+
Description
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</th></tr></thead>
|
|
71
|
+
<tbody><tr><td>
|
|
72
|
+
|
|
73
|
+
[\_extends](./plugin-tls.tieroptions._extends.md)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</td><td>
|
|
77
|
+
|
|
78
|
+
`protected`
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
[TierOptions](./plugin-tls.tieroptions.md)<!-- --><Option> \| null
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</td><td>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td></tr>
|
|
90
|
+
<tr><td>
|
|
91
|
+
|
|
92
|
+
[\_plainFullOption](./plugin-tls.tieroptions._plainfulloption.md)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
</td><td>
|
|
96
|
+
|
|
97
|
+
`protected`
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
Option \| null
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</td><td>
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</td></tr>
|
|
109
|
+
<tr><td>
|
|
110
|
+
|
|
111
|
+
[extends](./plugin-tls.tieroptions.extends.md)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</td><td>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</td><td>
|
|
118
|
+
|
|
119
|
+
[TierOptions](./plugin-tls.tieroptions.md)<!-- --><Option> \| null
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
</td><td>
|
|
123
|
+
|
|
124
|
+
继承的选项
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</td></tr>
|
|
128
|
+
<tr><td>
|
|
129
|
+
|
|
130
|
+
[option](./plugin-tls.tieroptions.option.md)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</td><td>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</td><td>
|
|
137
|
+
|
|
138
|
+
Option
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</td><td>
|
|
142
|
+
|
|
143
|
+
选项
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</td></tr>
|
|
147
|
+
<tr><td>
|
|
148
|
+
|
|
149
|
+
[plainFullOption](./plugin-tls.tieroptions.plainfulloption.md)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
</td><td>
|
|
153
|
+
|
|
154
|
+
`readonly`
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</td><td>
|
|
158
|
+
|
|
159
|
+
Option
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</td><td>
|
|
163
|
+
|
|
164
|
+
获取完整的选项
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</td></tr>
|
|
168
|
+
</tbody></table>
|
|
29
169
|
|
|
30
170
|
## Methods
|
|
31
171
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
172
|
+
<table><thead><tr><th>
|
|
173
|
+
|
|
174
|
+
Method
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
</th><th>
|
|
178
|
+
|
|
179
|
+
Modifiers
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
</th><th>
|
|
183
|
+
|
|
184
|
+
Description
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</th></tr></thead>
|
|
188
|
+
<tbody><tr><td>
|
|
189
|
+
|
|
190
|
+
[getMember(key)](./plugin-tls.tieroptions.getmember.md)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
</td><td>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
</td><td>
|
|
197
|
+
|
|
198
|
+
获取选项成员
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
</td></tr>
|
|
202
|
+
<tr><td>
|
|
203
|
+
|
|
204
|
+
[getValue(propPath)](./plugin-tls.tieroptions.getvalue.md)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
</td><td>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
</td><td>
|
|
211
|
+
|
|
212
|
+
获取属性路径对应的值
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
</td></tr>
|
|
216
|
+
<tr><td>
|
|
217
|
+
|
|
218
|
+
[updateFullOption()](./plugin-tls.tieroptions.updatefulloption.md)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</td><td>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</td><td>
|
|
225
|
+
|
|
226
|
+
更新
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</td></tr>
|
|
230
|
+
</tbody></table>
|
|
37
231
|
|
|
@@ -14,10 +14,51 @@ export declare function tierOptionsDecorator<This, Value>(value: ClassAccessorDe
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
value
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
ClassAccessorDecoratorTarget<This, Value>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
<tr><td>
|
|
48
|
+
|
|
49
|
+
context
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</td><td>
|
|
53
|
+
|
|
54
|
+
ClassAccessorDecoratorContext<This, Value>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
21
62
|
|
|
22
63
|
**Returns:**
|
|
23
64
|
|
|
@@ -14,7 +14,35 @@ constructor(options: Options);
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
options
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
Options
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
20
48
|
|
|
@@ -21,15 +21,123 @@ export declare class TierOptionsPluginHost<Options extends {} = any> extends Plu
|
|
|
21
21
|
|
|
22
22
|
## Constructors
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
<table><thead><tr><th>
|
|
25
|
+
|
|
26
|
+
Constructor
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</th><th>
|
|
30
|
+
|
|
31
|
+
Modifiers
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</th><th>
|
|
35
|
+
|
|
36
|
+
Description
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
</th></tr></thead>
|
|
40
|
+
<tbody><tr><td>
|
|
41
|
+
|
|
42
|
+
[(constructor)(options)](./plugin-tls.tieroptionspluginhost._constructor_.md)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td><td>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td><td>
|
|
49
|
+
|
|
50
|
+
Constructs a new instance of the `TierOptionsPluginHost` class
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</td></tr>
|
|
54
|
+
</tbody></table>
|
|
27
55
|
|
|
28
56
|
## Properties
|
|
29
57
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
58
|
+
<table><thead><tr><th>
|
|
59
|
+
|
|
60
|
+
Property
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</th><th>
|
|
64
|
+
|
|
65
|
+
Modifiers
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</th><th>
|
|
69
|
+
|
|
70
|
+
Type
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</th><th>
|
|
74
|
+
|
|
75
|
+
Description
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
</th></tr></thead>
|
|
79
|
+
<tbody><tr><td>
|
|
80
|
+
|
|
81
|
+
[\_defaultOptions](./plugin-tls.tieroptionspluginhost._defaultoptions.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
`protected`
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
[TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td><td>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
<tr><td>
|
|
99
|
+
|
|
100
|
+
[defaultOptions](./plugin-tls.tieroptionspluginhost.defaultoptions.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
`readonly`
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</td><td>
|
|
109
|
+
|
|
110
|
+
[TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td><td>
|
|
114
|
+
|
|
115
|
+
实例级的默认选项
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</td></tr>
|
|
119
|
+
<tr><td>
|
|
120
|
+
|
|
121
|
+
[defaultOptions](./plugin-tls.tieroptionspluginhost.defaultoptions.md)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
</td><td>
|
|
125
|
+
|
|
126
|
+
`static`
|
|
127
|
+
|
|
128
|
+
`readonly`
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</td><td>
|
|
132
|
+
|
|
133
|
+
[TierOptions](./plugin-tls.tieroptions.md)<!-- --><any>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</td><td>
|
|
137
|
+
|
|
138
|
+
全局级别的默认选项
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</td></tr>
|
|
142
|
+
</tbody></table>
|
|
35
143
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-tls",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制",
|
|
5
|
-
"main": "./dist/
|
|
6
|
-
"module": "./dist/
|
|
5
|
+
"main": "./dist/index.umd.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"require": "./dist/index.umd.cjs",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
+
"type": "module",
|
|
13
14
|
"sideEffects": false,
|
|
14
15
|
"homepage": "https://github.com/GuoBinyong/plugin-tls#readme",
|
|
15
16
|
"repository": {
|
|
@@ -34,31 +35,39 @@
|
|
|
34
35
|
},
|
|
35
36
|
"license": "MIT",
|
|
36
37
|
"files": [
|
|
37
|
-
"dist
|
|
38
|
-
"types
|
|
38
|
+
"dist",
|
|
39
|
+
"types",
|
|
39
40
|
"docs/[^.]*",
|
|
40
41
|
"doc/[^.]*"
|
|
41
42
|
],
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-documenter": "
|
|
44
|
-
"@microsoft/api-extractor": "
|
|
45
|
-
"build-tls": "
|
|
46
|
-
"dts-bundle-generator": "
|
|
47
|
-
"package-tls": "
|
|
48
|
-
"rollup-plugin-preserve-shebang": "
|
|
49
|
-
"typescript": "
|
|
50
|
-
"vite": "
|
|
44
|
+
"@microsoft/api-documenter": "latest",
|
|
45
|
+
"@microsoft/api-extractor": "latest",
|
|
46
|
+
"build-tls": "latest",
|
|
47
|
+
"dts-bundle-generator": "latest",
|
|
48
|
+
"package-tls": "latest",
|
|
49
|
+
"rollup-plugin-preserve-shebang": "latest",
|
|
50
|
+
"typescript": "latest",
|
|
51
|
+
"vite": "latest",
|
|
52
|
+
"vite-node": "latest"
|
|
51
53
|
},
|
|
52
54
|
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
+
"@gby/destroyable": "^1.0.0",
|
|
56
|
+
"deepmerge-ts": "^7.1.5",
|
|
57
|
+
"type-tls": "^3.2.2"
|
|
55
58
|
},
|
|
56
59
|
"scripts": {
|
|
57
|
-
"
|
|
60
|
+
"serve": "vite",
|
|
61
|
+
"dev": "vite-node -w src/index.ts",
|
|
62
|
+
"dev:bin": "vite-node src/bin.ts",
|
|
58
63
|
"build": "vite build",
|
|
59
64
|
"bunch": "vite build --mode bunch",
|
|
60
65
|
"debug": "debug=true vite build",
|
|
61
66
|
"debug:bunch": "debug=true vite build --mode bunch",
|
|
67
|
+
"exe": "bun build --compile --minify ./src/bin.ts --outfile ./exe/library-vite-template",
|
|
68
|
+
"exe:win": "bun build --compile --minify --target=bun-windows-x64 ./src/bin.ts --outfile ./exe/library-vite-template_win",
|
|
69
|
+
"exe:linux": "bun build --compile --minify --target=bun-linux-x64 ./src/bin.ts --outfile ./exe/library-vite-template_linux",
|
|
70
|
+
"exe:mac": "bun build --compile --minify --target=bun-darwin-arm64 ./src/bin.ts --outfile ./exe/library-vite-template_mac",
|
|
62
71
|
"preview": "vite preview",
|
|
63
72
|
"api": "api-extractor run -c api-extractor.jsonc -l -v",
|
|
64
73
|
"doc": "api-documenter markdown -i ./temp -o doc/api",
|