Skip to content

Commit

Permalink
remove export default
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Aug 13, 2019
1 parent fdcf68c commit 7a790a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function diffParties(oldParties: Party[], updatedParties: Party[]) {
return diffs;
}

export default class Session extends EventEmitter {
export class Session extends EventEmitter {
private _data: any;
private _eventSequence: Number;
private _sdk: any;
Expand Down
2 changes: 1 addition & 1 deletion src/formatParty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function formatParty({ owner, ...party }) {
export function formatParty({ owner, ...party }) {
if (!owner) {
if (!party.extensionId && party.accountId) {
delete party.accountId;
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EventEmitter } from 'events';
import RingCentral from 'ringcentral';
import Session from './Session';
import formatParty from './formatParty';
import { Session } from './Session';
import { formatParty } from './formatParty';

export interface SessionsMap {
[key: string]: any;
Expand Down Expand Up @@ -66,7 +66,7 @@ export interface CallOutToParams {
extensionNumber?: string;
}

export default class RingCentralCallControl extends EventEmitter {
export class RingCentralCallControl extends EventEmitter {
private _sdk: RingCentral;
private _sessionsMap: SessionsMap;
private _devices: Device[];
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
path: path.resolve(__dirname, 'build'),
library: 'RingCentralCallControl',
libraryTarget: 'umd',
libraryExport: 'default'
libraryExport: 'RingCentralCallControl'
},
externals: {
externals: {
Expand Down

0 comments on commit 7a790a6

Please sign in to comment.