@@ -84,7 +84,7 @@ class Runner {
8484
8585 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8686 const cargoManifest = this . __getManifest ( ) as any as CargoManifest
87- this . __whitelistApi ( cfg , cargoManifest )
87+ this . __allowlistApi ( cfg , cargoManifest )
8888 this . __rewriteManifest ( cargoManifest as unknown as toml . JsonMap )
8989
9090 const runningDevServer = devPath . startsWith ( 'http' )
@@ -248,7 +248,7 @@ class Runner {
248248 }
249249
250250 const cargoManifest = this . __getManifest ( )
251- this . __whitelistApi ( cfg , cargoManifest as unknown as CargoManifest )
251+ this . __allowlistApi ( cfg , cargoManifest as unknown as CargoManifest )
252252 this . __rewriteManifest ( cargoManifest )
253253
254254 const inlinedAssets = ( await this . __parseHtml ( cfg , cfg . build . distDir ) ) . inlinedAssets
@@ -507,24 +507,24 @@ class Runner {
507507 } , WATCHER_INTERVAL * 2 )
508508 }
509509
510- __whitelistApi (
510+ __allowlistApi (
511511 cfg : TauriConfig ,
512512 manifest : CargoManifest
513513 ) : void {
514514 const tomlFeatures = [ ]
515515
516- if ( cfg . tauri . whitelist . all ) {
516+ if ( cfg . tauri . allowlist . all ) {
517517 tomlFeatures . push ( 'all-api' )
518518 } else {
519519 const toKebabCase = ( value : string ) : string => {
520520 return value . replace ( / ( [ a - z ] ) ( [ A - Z ] ) / g, '$1-$2' )
521521 . replace ( / \s + / g, '-' )
522522 . toLowerCase ( )
523523 }
524- const whitelist = Object . keys ( cfg . tauri . whitelist ) . filter (
525- w => cfg . tauri . whitelist [ String ( w ) ]
524+ const allowlist = Object . keys ( cfg . tauri . allowlist ) . filter (
525+ w => cfg . tauri . allowlist [ String ( w ) ]
526526 )
527- tomlFeatures . push ( ...whitelist . map ( toKebabCase ) )
527+ tomlFeatures . push ( ...allowlist . map ( toKebabCase ) )
528528 }
529529
530530 if ( cfg . tauri . cli ) {
0 commit comments