Skip to content

Commit

Permalink
feat(customer-payment-authorizenet)!: move error matcher injection to…
Browse files Browse the repository at this point in the history
…ken to state subpackage (#2645)

BREAKING CHANGE: error matcher injection token has moved to state subpackage
  • Loading branch information
griest024 committed Dec 11, 2023
1 parent 25bd578 commit 3343af0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion libs/customer-payment-authorizenet/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './constants/public_api';
export * from './models/public_api';
export * from './injection-tokens/public_api';
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { daffTransformErrorToStateError } from '@daffodil/core/state';
* Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
* Can be used to further refine Daffodil errors into more specific app errors.
*/
export const DAFF_CUSTOMER_PAYMENT_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(
'DAFF_CUSTOMER_PAYMENT_ERROR_MATCHER',
export const DAFF_CUSTOMER_PAYMENT_AUTHORIZENET_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(
'DAFF_CUSTOMER_PAYMENT_AUTHORIZENET_ERROR_MATCHER',
{ factory: () => daffTransformErrorToStateError },
);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DAFF_CUSTOMER_PAYMENT_AUTHORIZENET_ERROR_MATCHER } from './error-matcher.token';
1 change: 1 addition & 0 deletions libs/customer-payment-authorizenet/state/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './injection-tokens/public_api';
export * from './actions/payment.actions';
export { DaffCustomerPaymentAuthorizeNetPaymentStateModule } from './payment-state.module';

0 comments on commit 3343af0

Please sign in to comment.