Skip to content

Commit 71fc151

Browse files
committed
Fix exports to match original API
1 parent 500259c commit 71fc151

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/simperium/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export { Bucket, Channel };
4040
* @param {number} [options.heartbeatInterval=4] - heartbeat interval for maintaining connection status with Simperium.com
4141
* @param {websocketClientProvider} [options.websocketClientProvider] - WebSocket transport, if not provided tries to use window.WebSocket
4242
*/
43-
export function Client( appId, accessToken, options ) {
43+
export default function Client( appId, accessToken, options ) {
4444
options = options || {};
4545

4646
options.ghostStoreProvider = options.ghostStoreProvider || defaultGhostStoreProvider;

src/simperium/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import Client from './client'
2-
import Auth from './auth'
3-
import * as util from './util'
1+
import Client from './client';
2+
import Bucket from './bucket';
3+
import Auth from './auth';
4+
import * as util from './util';
45

56
/**
67
* A Client is the main interface to Simperium.
@@ -23,4 +24,4 @@ export default function createClient( appId, token, options ) {
2324
return new Client( appId, token, options ).on( 'error', () => {} );
2425
}
2526

26-
export { Auth, Client, util }
27+
export { Auth, Client, Bucket, util };

0 commit comments

Comments
 (0)