Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import {
mockMarkNotificationsAsRead,
} from './__fixtures__/mockServices';
import { waitFor } from './__fixtures__/test-utils';
import {
NotificationServicesController,
import NotificationServicesController, {
defaultState,
} from './NotificationServicesController';
import type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ type FeatureAnnouncementEnv = {
/**
* Controller that enables wallet notifications and feature announcements
*/
export class NotificationServicesController extends BaseController<
export default class NotificationServicesController extends BaseController<
typeof controllerName,
NotificationServicesControllerState,
NotificationServicesControllerMessenger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Controller from './NotificationServicesController';

export { Controller };
export * from './NotificationServicesController';
export * as Types from './types';
export * as Mocks from './__fixtures__';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ControllerMessenger } from '@metamask/base-controller';
import type { AuthenticationController } from '@metamask/profile-sync-controller';

import { NotificationServicesPushController } from './NotificationServicesPushController';
import NotificationServicesPushController from './NotificationServicesPushController';
import type {
AllowedActions,
AllowedEvents,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type ControllerConfig = {
*
* @augments {BaseController<typeof controllerName, NotificationServicesPushControllerState, NotificationServicesPushControllerMessenger>}
*/
export class NotificationServicesPushController extends BaseController<
export default class NotificationServicesPushController extends BaseController<
typeof controllerName,
NotificationServicesPushControllerState,
NotificationServicesPushControllerMessenger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Controller from './NotificationServicesPushController';

export { Controller };
export * from './NotificationServicesPushController';
export * as Types from './types';
export * as Utils from './utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
import Controller from './AuthenticationController';

export { Controller };
export * from './AuthenticationController';
export * as Mocks from './__fixtures__';
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Encryption from './encryption';

export { Encryption };
export * from './encryption';
export default Encryption;
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Controller from './UserStorageController';

export { Controller };
export * from './UserStorageController';
export * from './encryption';

export * as Mocks from './__fixtures__';
4 changes: 2 additions & 2 deletions packages/profile-sync-controller/src/sdk/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ class EncryptorDecryptor {
}
}

const encryption = new EncryptorDecryptor();
export default encryption;
export const Encryption = new EncryptorDecryptor();
export default Encryption;

/**
* Create a SHA-256 hash from a given string.
Expand Down