@@ -11,40 +11,40 @@ const REQUIRED_ENTRIES = [
1111 'node_modules'
1212] ;
1313
14- function getEntries ( whitelist ) {
15- if ( whitelist . files ) {
16- // Extract the property from the whitelist
17- const { service, main, files } = whitelist ;
18- const whitelistFromSections = [ service ] ;
14+ function getEntries ( allowlist ) {
15+ if ( allowlist . files ) {
16+ // Extract the property from the allowlist
17+ const { service, main, files } = allowlist ;
18+ const allowlistFromSections = [ service ] ;
1919
2020 /*
2121 * It flattens the content of both properties (main and files) in the
22- * "whitelistFromSections " array.
22+ * "allowlistFromSections " array.
2323 */
2424 if ( main ) {
25- whitelistFromSections . push ( main ) ;
25+ allowlistFromSections . push ( main ) ;
2626 }
2727
2828 if ( files ) {
29- whitelistFromSections . push ( ...files ) ;
29+ allowlistFromSections . push ( ...files ) ;
3030 }
3131
32- if ( ! whitelistFromSections . length ) {
32+ if ( ! allowlistFromSections . length ) {
3333 return ;
3434 }
3535
36- return REQUIRED_ENTRIES . concat ( whitelistFromSections ) ;
36+ return REQUIRED_ENTRIES . concat ( allowlistFromSections ) ;
3737 }
3838}
3939
40- module . exports . compress = async function ( source , target , whitelist ) {
40+ module . exports . compress = async function ( source , target , allowlist ) {
4141 const gzip = zlib . createGzip ( ) ;
4242 const ws = fs . createWriteStream ( target ) ;
4343 const rs = tar . pack ( source , {
4444 ignore : function ( name ) {
4545 return IGNORE_REGEX . test ( path . relative ( source , name ) ) ;
4646 } ,
47- entries : getEntries ( whitelist )
47+ entries : getEntries ( allowlist )
4848 } ) ;
4949
5050 return new Promise ( ( resolve , reject ) => {
0 commit comments