Skip to content

Commit

Permalink
fix(pubsub): Fix vite build issue (#10298)
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro authored Sep 8, 2022
1 parent 1862cc7 commit 89cdfd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/pubsub/src/Providers/MqttOverWSProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import {
ConnectionStateMonitor,
CONNECTION_CHANGE,
} from '../utils/ConnectionStateMonitor';
import { AMPLIFY_SYMBOL } from './constants';
import { CONNECTION_STATE_CHANGE } from '..';
import { AMPLIFY_SYMBOL, CONNECTION_STATE_CHANGE } from './constants';

const logger = new Logger('MqttOverWSProvider');

Expand Down
2 changes: 2 additions & 0 deletions packages/pubsub/src/Providers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export const MAX_DELAY_MS = 5000;

export const NON_RETRYABLE_CODES = [400, 401, 403];

export const CONNECTION_STATE_CHANGE = 'ConnectionStateChange';

export enum MESSAGE_TYPES {
/**
* Client -> Server message.
Expand Down
3 changes: 2 additions & 1 deletion packages/pubsub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ enum CONTROL_MSG {
TIMEOUT_DISCONNECT = 'Timeout disconnect',
}

export const CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
export { CONNECTION_STATE_CHANGE } from './Providers/constants';

export { ConnectionState } from './types';

export { PubSub, CONTROL_MSG };
Expand Down

0 comments on commit 89cdfd3

Please sign in to comment.