node_modules/@analytics/core/lib/analytics.es.js
/* Supe up dispatch with callback promise resolver. Happens in enrichMeta */
Supe up dispatch with callback promise resolver. Happens in enrichMeta
Supe up dispatch with callback promise resolver . Happens in enrichMeta
function enhanceDispatch(fn) {
    return function (event, resolver, callbacks) {
      var meta = generateMeta(event.meta, resolver, ensureArray(callbacks)); 
      var newEvent = objectSpread2(objectSpread2({}, event), {
        meta: meta
      }); 
      return fn.apply(null, [newEvent]);
    };
  } 
function enhanceDispatch ( fn ) { return function ( event , resolver , callbacks ) { var meta = generateMeta ( event . meta , resolver , ensureArray ( callbacks ) ) ; var newEvent = objectSpread2 ( objectSpread2 ( { } , event ) , { meta : meta } ) ; return fn . apply ( null , [ newEvent ] ) ; } ; }
Supe up dispatch with callback promise resolver.
Supe up dispatch with callback promise resolver .
// console.log('original event', event) // if (resolver) console.log('dispatch resolver', resolver) // if (callbacks) console.log('dispatch callbacks', callbacks) // console.log('newEvent', newEvent) // Automatically apply meta to dispatch calls