@@ -6,14 +6,12 @@ import {
6
6
Config ,
7
7
ConfigCommand ,
8
8
ConfigMenuItemSeparator ,
9
- ConfigNetworkAccess ,
10
9
ConfigParameter ,
11
10
ConfigRelaunchButton ,
12
11
constants ,
13
12
Manifest ,
14
13
ManifestMenuItem ,
15
14
ManifestMenuItemSeparator ,
16
- ManifestNetworkAccess ,
17
15
ManifestParameter ,
18
16
ManifestRelaunchButton ,
19
17
writeFileAsync
@@ -42,13 +40,6 @@ export async function buildManifestAsync(options: {
42
40
parameters,
43
41
parameterOnly,
44
42
relaunchButtons,
45
- capabilities,
46
- permissions,
47
- documentAccess,
48
- networkAccess,
49
- enablePrivatePluginApi,
50
- enableProposedApi,
51
- build,
52
43
rest
53
44
} = config
54
45
const command = { commandId, name, main, ui, menu, parameters, parameterOnly }
@@ -82,16 +73,6 @@ export async function buildManifestAsync(options: {
82
73
relaunchButtons !== null
83
74
? createManifestRelaunchButtons ( relaunchButtons )
84
75
: undefined ,
85
- capabilities : capabilities !== null ? capabilities : undefined ,
86
- permissions : permissions !== null ? permissions : undefined ,
87
- documentAccess : documentAccess !== null ? documentAccess : undefined ,
88
- networkAccess :
89
- networkAccess !== null
90
- ? createManifestNetworkAccess ( networkAccess )
91
- : undefined ,
92
- enableProposedApi : enableProposedApi === true ? true : undefined ,
93
- enablePrivatePluginApi : enablePrivatePluginApi === true ? true : undefined ,
94
- build : build !== null ? build : undefined ,
95
76
...( rest !== null ? rest : { } )
96
77
}
97
78
const result = await overrideManifestAsync ( manifest )
@@ -192,22 +173,6 @@ function createManifestRelaunchButtons(
192
173
} )
193
174
}
194
175
195
- function createManifestNetworkAccess (
196
- networkAccess : ConfigNetworkAccess
197
- ) : ManifestNetworkAccess {
198
- const { allowedDomains, devAllowedDomains, reasoning } = networkAccess
199
- const result : ManifestNetworkAccess = {
200
- allowedDomains
201
- }
202
- if ( devAllowedDomains !== null ) {
203
- result . devAllowedDomains = devAllowedDomains
204
- }
205
- if ( reasoning !== null ) {
206
- result . reasoning = reasoning
207
- }
208
- return result
209
- }
210
-
211
176
async function overrideManifestAsync (
212
177
manifest : Manifest
213
178
) : Promise < Record < string , any > > {
0 commit comments