Skip to content

Commit

Permalink
refactor: remove default export & dupe all events
Browse files Browse the repository at this point in the history
Signed-off-by: David Wells <>
  • Loading branch information
David Wells committed Feb 7, 2022
1 parent 91051bf commit ebd74ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/analytics-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ function analytics(config = {}) {
}, resolve, [callback])
})
},

// Future feature?
// get: () => {
// return store.getState('plugins')
// },

/*
* Load registered analytic providers.
* @param {String} plugins - integration namespace
Expand Down Expand Up @@ -814,7 +820,6 @@ function analytics(config = {}) {
* @type {Array}
*/
events: {
all: allSystemEvents,
core: coreEvents,
plugins: allPluginEvents,
// byType: (type) => {} @Todo grab logic from engine and give inspectable events
Expand Down Expand Up @@ -1001,8 +1006,6 @@ function analytics(config = {}) {
const before = 'before'
const after = 'after'

export default analytics

/*
* analytics.init exported for standalone browser build
* CDN build exposes global _analytics variable
Expand Down

0 comments on commit ebd74ec

Please sign in to comment.