src/common/config/index.js
/**
   * Used to save the current set of local config data to disk
   *
   * @emits {update} emitted once all data has been saved
   * @emits {synchronize} emitted once all data has been saved; used to notify other config instances of changes
   * @emits {error} emitted if saving local config data to file fails
   */
Used to save the current set of local config data to disk
@emits {update} emitted once all data has been saved
@emits {synchronize} emitted once all data has been saved; used to notify other config instances of changes
@emits {error} emitted if saving local config data to file fails
Used to save the current set of local config data to disk @emits { update } emitted once all data has been saved @emits { synchronize } emitted once all data has been saved ; used to notify other config instances of changes @emits { error } emitted if saving local config data to file fails
saveLocalConfigData() {
    try {
      this.writeFile(this.configFilePath, this.localConfigData, (error) => {
        if (error) {
          throw new Error(error);
        }
        this.emit('update', this.combinedData);
        this.emit('synchronize');
      });
    } catch (error) {
      this.emit('error', error);
    }
  }
saveLocalConfigData ( ) { try { this . writeFile ( this . configFilePath , this . localConfigData , ( error ) => { if ( error ) { throw new Error ( error ) ; } this . emit ( 'update' , this . combinedData ) ; this . emit ( 'synchronize' ) ; } ) ; } catch ( error ) { this . emit ( 'error' , error ) ; } }
Used to save the current set of local config data to disk
 @emits {update} emitted once all data has been saved
 @emits {synchronize} emitted once all data has been saved; used to notify other config instances of changes
 @emits {error} emitted if saving local config data to file fails
Used to save the current set of local config data to disk @emits { update } emitted once all data has been saved @emits { synchronize } emitted once all data has been saved ; used to notify other config instances of changes @emits { error } emitted if saving local config data to file fails