Skip to content

Commit

Permalink
Correctly export EventStore as property of itself
Browse files Browse the repository at this point in the history
Makes this work:

  const { EventStore, Consumer } = requre('event-storage');
  • Loading branch information
albe committed Feb 27, 2021
1 parent f02cad3 commit 16804b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = module.exports.EventStore = require('./src/EventStore');
module.exports = require('./src/EventStore');
module.exports.EventStore = module.exports;
module.exports.EventStream = require('./src/EventStream');
module.exports.Storage = require('./src/Storage');
module.exports.Index = require('./src/Index');
Expand Down

0 comments on commit 16804b1

Please sign in to comment.