code: function getPageInfo( event ) {
     const pageDefinitions = {};
     const compositionDefinitions = {};
     const widgetDescriptors = {};
  
     let pageReference;
  
     Object.keys( event.pages ).forEach( ref => {
        const page = event.pages[ ref ];
  
        pageReference = ref;
        pageDefinitions[ ref ] = definitions( page );
        compositionDefinitions[ ref ] = {};
  
        page.compositions.forEach( composition => {
           compositionDefinitions[ ref ][ composition.id ] = definitions( composition );
        } );
     } );
  
     Object.keys( event.widgets ).forEach( ref => {
        const widget = event.widgets[ ref ];
  
        widgetDescriptors[ ref ] = widget.DESC;
     } );
  
     return {
        pageDefinitions,
        pageReference,
        compositionDefinitions,
        widgetDescriptors
     };
  
     function definitions( info ) {
        return {
           [ FLAT ]: info.FLAT,
           [ COMPACT ]: info.COMPACT
        };
     }
  }
docs: //////////////////////////////////////////////////////////////////////////////////////////////////////////// 
  Generate the "old" page info object from the debug info in the onChange event.
  
  @param {String} event
  the data received from the toolings onChange handler
  
  @return {Object} the page information
  @private