Skip to content

Commit

Permalink
(#8089) - update EventEmitter imports to use the default export
Browse files Browse the repository at this point in the history
  • Loading branch information
jshemas committed Jun 25, 2020
1 parent c81a783 commit 55c24df
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-core/src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
guardedConsole,
isRemote
} from 'pouchdb-utils';
import { EventEmitter } from 'events';
import EventEmitter from 'events';
import inherits from 'inherits';
import Changes from './changes';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-core/src/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
collectConflicts
} from 'pouchdb-merge';
import inherits from 'inherits';
import { EventEmitter as EE } from 'events';
import EE from 'events';


import PouchDB from './setup';
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-core/src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import PouchDB from './constructor';
import inherits from 'inherits';
import { EventEmitter as EE } from 'events';
import EE from 'events';
import { fetch } from 'pouchdb-fetch';

PouchDB.adapters = {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventEmitter as EE } from 'events';
import EE from 'events';
import inherits from 'inherits';

// We create a basic promise so the caller can cancel the replication possibly
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-replication/src/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
toPouch
} from './replicateWrapper';
import inherits from 'inherits';
import { EventEmitter as EE } from 'events';
import EE from 'events';
import { clone } from 'pouchdb-utils';

inherits(Sync, EE);
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-utils/src/changesHandler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventEmitter as EventEmitter } from 'events';
import EventEmitter from 'events';
import inherits from 'inherits';
import hasLocalStorage from './env/hasLocalStorage';
import pick from './pick';
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-utils/src/listenerCount.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventEmitter as EE } from 'events';
import EE from 'events';

function listenerCount(ee, type) {
return 'listenerCount' in ee ? ee.listenerCount(type) :
Expand Down

0 comments on commit 55c24df

Please sign in to comment.