@@ -81,7 +81,7 @@ class API {
8181 if ( opts . pm2_home ) {
8282 // Override default conf file
8383 this . pm2_home = opts . pm2_home ;
84- conf = util . _extend ( conf , path_structure ( this . pm2_home ) ) ;
84+ conf = Object . assign ( conf , path_structure ( this . pm2_home ) ) ;
8585 }
8686 else if ( opts . independent == true && conf . IS_WINDOWS === false ) {
8787 // Create an unique pm2 instance
@@ -93,7 +93,7 @@ class API {
9393 // It will go as in proc
9494 if ( typeof ( opts . daemon_mode ) == 'undefined' )
9595 this . daemon_mode = false ;
96- conf = util . _extend ( conf , path_structure ( this . pm2_home ) ) ;
96+ conf = Object . assign ( conf , path_structure ( this . pm2_home ) ) ;
9797 }
9898
9999 this . _conf = conf ;
@@ -876,7 +876,7 @@ class API {
876876 resolved_paths . env [ 'PM2_HOME' ] = that . pm2_home ;
877877
878878 var additional_env = Modularizer . getAdditionalConf ( resolved_paths . name ) ;
879- util . _extend ( resolved_paths . env , additional_env ) ;
879+ Object . assign ( resolved_paths . env , additional_env ) ;
880880
881881 // Is KM linked?
882882 resolved_paths . km_link = that . gl_is_km_linked ;
@@ -1072,7 +1072,7 @@ class API {
10721072 // Notice: if people use the same name in different apps,
10731073 // duplicated envs will be overrode by the last one
10741074 var env = envs . reduce ( function ( e1 , e2 ) {
1075- return util . _extend ( e1 , e2 ) ;
1075+ return Object . assign ( e1 , e2 ) ;
10761076 } ) ;
10771077
10781078 // When we are processing JSON, allow to keep the new env by default
@@ -1147,7 +1147,7 @@ class API {
11471147 resolved_paths . env [ 'PM2_HOME' ] = that . pm2_home ;
11481148
11491149 var additional_env = Modularizer . getAdditionalConf ( resolved_paths . name ) ;
1150- util . _extend ( resolved_paths . env , additional_env ) ;
1150+ Object . assign ( resolved_paths . env , additional_env ) ;
11511151
11521152 resolved_paths . env = Common . mergeEnvironmentVariables ( resolved_paths , opts . env , deployConf ) ;
11531153
@@ -1368,7 +1368,7 @@ class API {
13681368 if ( conf . PM2_PROGRAMMATIC == true )
13691369 new_env = Common . safeExtend ( { } , process . env ) ;
13701370 else
1371- new_env = util . _extend ( { } , process . env ) ;
1371+ new_env = Object . assign ( { } , process . env ) ;
13721372
13731373 Object . keys ( envs ) . forEach ( function ( k ) {
13741374 new_env [ k ] = envs [ k ] ;
@@ -1510,7 +1510,7 @@ class API {
15101510 * if yes load configuration variables and merge with the current environment
15111511 */
15121512 var additional_env = Modularizer . getAdditionalConf ( process_name ) ;
1513- util . _extend ( envs , additional_env ) ;
1513+ Object . assign ( envs , additional_env ) ;
15141514 return processIds ( ids , cb ) ;
15151515 }
15161516
@@ -1529,7 +1529,7 @@ class API {
15291529 * if yes load configuration variables and merge with the current environment
15301530 */
15311531 var ns_additional_env = Modularizer . getAdditionalConf ( process_name ) ;
1532- util . _extend ( envs , ns_additional_env ) ;
1532+ Object . assign ( envs , ns_additional_env ) ;
15331533 return processIds ( ns_process_ids , cb ) ;
15341534 } ) ;
15351535 } ) ;
0 commit comments