@open-tender/utils 0.4.92 → 0.4.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/hooks/useCreditCard.js +1 -1
- package/dist/cjs/hooks/useCreditCardForm.d.ts +1 -1
- package/dist/cjs/hooks/useCreditCardForm.js +2 -2
- package/dist/cjs/hooks/useDonationForm.d.ts +1 -1
- package/dist/cjs/hooks/useDonationForm.js +2 -2
- package/dist/cjs/hooks/useGiftCardsForm.d.ts +1 -1
- package/dist/cjs/hooks/useGiftCardsForm.js +2 -2
- package/dist/cjs/utils/cards.d.ts +1 -1
- package/dist/cjs/utils/cards.js +7 -3
- package/dist/esm/hooks/useCreditCard.js +1 -1
- package/dist/esm/hooks/useCreditCardForm.d.ts +1 -1
- package/dist/esm/hooks/useCreditCardForm.js +2 -2
- package/dist/esm/hooks/useDonationForm.d.ts +1 -1
- package/dist/esm/hooks/useDonationForm.js +2 -2
- package/dist/esm/hooks/useGiftCardsForm.d.ts +1 -1
- package/dist/esm/hooks/useGiftCardsForm.js +2 -2
- package/dist/esm/utils/cards.d.ts +1 -1
- package/dist/esm/utils/cards.js +7 -3
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ const useCreditCard = (initState, cardErrors = {}, disabled = false, includeAddr
|
|
|
45
45
|
setData(Object.assign(Object.assign({}, data), { [name]: value }));
|
|
46
46
|
};
|
|
47
47
|
const handleBlur = (name) => {
|
|
48
|
-
const { errors: validationErrors } = (0, index_1.validateCreditCard)(data, cardType);
|
|
48
|
+
const { errors: validationErrors } = (0, index_1.validateCreditCard)(data, cardType, requireCardholderName);
|
|
49
49
|
if (validationErrors) {
|
|
50
50
|
const error = validationErrors[name];
|
|
51
51
|
setErrors(Object.assign(Object.assign({}, errors), { [name]: error }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardType, CreditCardData, CreditCardErrors, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
|
-
export declare const useCreditCardForm: (loading: RequestStatus, error: RequestError, data: CreditCardData | null, cardType: CardType | null, addCard: (data: CreditCardData, callback: () => void) => void, callback: () => void, recaptchaKey: string | null, revenue_center_id: number | null, kountSessionId?: string | null) => {
|
|
3
|
+
export declare const useCreditCardForm: (loading: RequestStatus, error: RequestError, data: CreditCardData | null, cardType: CardType | null, addCard: (data: CreditCardData, callback: () => void) => void, callback: () => void, recaptchaKey: string | null, revenue_center_id: number | null, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
4
4
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
5
5
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
6
6
|
data: CreditCardData | null;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useCreditCardForm = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const __1 = require("../");
|
|
6
|
-
const useCreditCardForm = (loading, error, data, cardType, addCard, callback, recaptchaKey, revenue_center_id, kountSessionId) => {
|
|
6
|
+
const useCreditCardForm = (loading, error, data, cardType, addCard, callback, recaptchaKey, revenue_center_id, kountSessionId, requireCardholderName = false) => {
|
|
7
7
|
const submitRef = (0, react_1.useRef)(null);
|
|
8
8
|
const recaptchaRef = (0, react_1.useRef)(null);
|
|
9
9
|
const [submitting, setSubmitting] = (0, react_1.useState)(false);
|
|
@@ -24,7 +24,7 @@ const useCreditCardForm = (loading, error, data, cardType, addCard, callback, re
|
|
|
24
24
|
setErrors({});
|
|
25
25
|
if (!data || !cardType)
|
|
26
26
|
return;
|
|
27
|
-
const { card, errors: cardErrors } = (0, __1.validateCreditCard)(data, cardType);
|
|
27
|
+
const { card, errors: cardErrors } = (0, __1.validateCreditCard)(data, cardType, requireCardholderName);
|
|
28
28
|
if (cardErrors) {
|
|
29
29
|
setErrors(cardErrors);
|
|
30
30
|
setSubmitting(false);
|
|
@@ -3,7 +3,7 @@ import { CardType, CreditCardData, CreditCardSaved, CreditCards, Customer, Donat
|
|
|
3
3
|
export declare const useDonationsForm: (purchase: (data: DonationPurchase, callback?: () => void) => void, reset: () => void, setAlert: (data: {
|
|
4
4
|
type: string;
|
|
5
5
|
args?: unknown;
|
|
6
|
-
}) => void, loading: RequestStatus, error: RequestError, success: boolean, customer?: Customer, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, windowRef?: Window, kountSessionId?: string | null) => {
|
|
6
|
+
}) => void, loading: RequestStatus, error: RequestError, success: boolean, customer?: Customer, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, windowRef?: Window, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
7
7
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
8
8
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
9
9
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useDonationsForm = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
const useDonationsForm = (purchase, reset, setAlert, loading, error, success, customer, creditCards, recaptchaKey, cardData, cardType, windowRef, kountSessionId) => {
|
|
6
|
+
const useDonationsForm = (purchase, reset, setAlert, loading, error, success, customer, creditCards, recaptchaKey, cardData, cardType, windowRef, kountSessionId, requireCardholderName = false) => {
|
|
7
7
|
const submitRef = (0, react_1.useRef)(null);
|
|
8
8
|
const inputRef = (0, react_1.useRef)(null);
|
|
9
9
|
const recaptchaRef = (0, react_1.useRef)(null);
|
|
@@ -117,7 +117,7 @@ const useDonationsForm = (purchase, reset, setAlert, loading, error, success, cu
|
|
|
117
117
|
else {
|
|
118
118
|
if (isNewCard) {
|
|
119
119
|
if (cardData && cardType) {
|
|
120
|
-
const { card, errors: errs } = (0, utils_1.validateCreditCard)(cardData, cardType);
|
|
120
|
+
const { card, errors: errs } = (0, utils_1.validateCreditCard)(cardData, cardType, requireCardholderName);
|
|
121
121
|
if (errs) {
|
|
122
122
|
setErrors(Object.assign(Object.assign({}, errs), { form: 'There are one or more credit card errors below' }));
|
|
123
123
|
setSubmitting(false);
|
|
@@ -3,7 +3,7 @@ import { CardType, CreditCardData, CreditCardSaved, CreditCards, Customer, GiftC
|
|
|
3
3
|
export declare const useGiftCardsForm: (purchase: (data: GiftCardsPurchase, callback?: () => void) => void, reset: () => void, setAlert: (data: {
|
|
4
4
|
type: string;
|
|
5
5
|
args?: unknown;
|
|
6
|
-
}) => void, loading: RequestStatus, error: RequestError, success: boolean, initState: GiftCardPurchaseData, customer?: Customer | null, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, url?: string, kountSessionId?: string | null) => {
|
|
6
|
+
}) => void, loading: RequestStatus, error: RequestError, success: boolean, initState: GiftCardPurchaseData, customer?: Customer | null, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, url?: string, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
7
7
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
8
8
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
9
9
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useGiftCardsForm = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
const useGiftCardsForm = (purchase, reset, setAlert, loading, error, success, initState, customer, creditCards, recaptchaKey, cardData, cardType, url, kountSessionId) => {
|
|
6
|
+
const useGiftCardsForm = (purchase, reset, setAlert, loading, error, success, initState, customer, creditCards, recaptchaKey, cardData, cardType, url, kountSessionId, requireCardholderName = false) => {
|
|
7
7
|
const submitRef = (0, react_1.useRef)(null);
|
|
8
8
|
const inputRef = (0, react_1.useRef)(null);
|
|
9
9
|
const recaptchaRef = (0, react_1.useRef)(null);
|
|
@@ -142,7 +142,7 @@ const useGiftCardsForm = (purchase, reset, setAlert, loading, error, success, in
|
|
|
142
142
|
else {
|
|
143
143
|
if (isNewCard) {
|
|
144
144
|
if (cardData && cardType) {
|
|
145
|
-
const { card, errors } = (0, utils_1.validateCreditCard)(cardData, cardType);
|
|
145
|
+
const { card, errors } = (0, utils_1.validateCreditCard)(cardData, cardType, requireCardholderName);
|
|
146
146
|
if (errors) {
|
|
147
147
|
setErrors(Object.assign(Object.assign({}, errors), { form: 'There are one or more credit card errors below' }));
|
|
148
148
|
setSubmitting(false);
|
|
@@ -17,4 +17,4 @@ export declare const makeNumeric: (str: string) => string;
|
|
|
17
17
|
export declare const makeAcctNumber: (str: string, cardType: CardType) => string;
|
|
18
18
|
export declare const formatCardField: (field: keyof CreditCardData, value: string) => string;
|
|
19
19
|
export declare const formatCard: (card: CreditCardData | null) => [CreditCardData | null, CardType | null];
|
|
20
|
-
export declare const validateCreditCard: (card: CreditCardData, cardType: CardType) => CreditCardValidate;
|
|
20
|
+
export declare const validateCreditCard: (card: CreditCardData, cardType: CardType, requireCardholderName?: boolean) => CreditCardValidate;
|
package/dist/cjs/utils/cards.js
CHANGED
|
@@ -110,9 +110,9 @@ const formatCard = (card) => {
|
|
|
110
110
|
return [creditCard, creditCardType];
|
|
111
111
|
};
|
|
112
112
|
exports.formatCard = formatCard;
|
|
113
|
-
const validateCreditCard = (card, cardType) => {
|
|
113
|
+
const validateCreditCard = (card, cardType, requireCardholderName = false) => {
|
|
114
114
|
const errors = {};
|
|
115
|
-
let { acct, exp, cvv, zip } = card;
|
|
115
|
+
let { acct, exp, cvv, zip, cardholder_name } = card;
|
|
116
116
|
const acctLength = cardType === 'AMEX' ? 15 : 16;
|
|
117
117
|
acct = acct ? acct.replace(/\s/g, '') : '';
|
|
118
118
|
if (acct.length !== acctLength) {
|
|
@@ -148,10 +148,14 @@ const validateCreditCard = (card, cardType) => {
|
|
|
148
148
|
else if (!(0, helpers_1.isNum)(zip)) {
|
|
149
149
|
errors.zip = 'Zip code must be only numbers';
|
|
150
150
|
}
|
|
151
|
+
cardholder_name = cardholder_name === null || cardholder_name === void 0 ? void 0 : cardholder_name.trim();
|
|
152
|
+
if (requireCardholderName && !cardholder_name) {
|
|
153
|
+
errors.cardholder_name = 'Cardholder name is required';
|
|
154
|
+
}
|
|
151
155
|
if (!(0, helpers_1.isEmpty)(errors)) {
|
|
152
156
|
return { card, cardType, errors };
|
|
153
157
|
}
|
|
154
|
-
card = Object.assign(Object.assign({}, card), { acct, exp, cvv, zip });
|
|
158
|
+
card = Object.assign(Object.assign({}, card), { acct, exp, cvv, zip, cardholder_name });
|
|
155
159
|
return { card, cardType, errors: null };
|
|
156
160
|
};
|
|
157
161
|
exports.validateCreditCard = validateCreditCard;
|
|
@@ -42,7 +42,7 @@ export const useCreditCard = (initState, cardErrors = {}, disabled = false, incl
|
|
|
42
42
|
setData(Object.assign(Object.assign({}, data), { [name]: value }));
|
|
43
43
|
};
|
|
44
44
|
const handleBlur = (name) => {
|
|
45
|
-
const { errors: validationErrors } = validateCreditCard(data, cardType);
|
|
45
|
+
const { errors: validationErrors } = validateCreditCard(data, cardType, requireCardholderName);
|
|
46
46
|
if (validationErrors) {
|
|
47
47
|
const error = validationErrors[name];
|
|
48
48
|
setErrors(Object.assign(Object.assign({}, errors), { [name]: error }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardType, CreditCardData, CreditCardErrors, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
|
-
export declare const useCreditCardForm: (loading: RequestStatus, error: RequestError, data: CreditCardData | null, cardType: CardType | null, addCard: (data: CreditCardData, callback: () => void) => void, callback: () => void, recaptchaKey: string | null, revenue_center_id: number | null, kountSessionId?: string | null) => {
|
|
3
|
+
export declare const useCreditCardForm: (loading: RequestStatus, error: RequestError, data: CreditCardData | null, cardType: CardType | null, addCard: (data: CreditCardData, callback: () => void) => void, callback: () => void, recaptchaKey: string | null, revenue_center_id: number | null, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
4
4
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
5
5
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
6
6
|
data: CreditCardData | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { makeFormErrors, validateCreditCard } from '../';
|
|
3
|
-
export const useCreditCardForm = (loading, error, data, cardType, addCard, callback, recaptchaKey, revenue_center_id, kountSessionId) => {
|
|
3
|
+
export const useCreditCardForm = (loading, error, data, cardType, addCard, callback, recaptchaKey, revenue_center_id, kountSessionId, requireCardholderName = false) => {
|
|
4
4
|
const submitRef = useRef(null);
|
|
5
5
|
const recaptchaRef = useRef(null);
|
|
6
6
|
const [submitting, setSubmitting] = useState(false);
|
|
@@ -21,7 +21,7 @@ export const useCreditCardForm = (loading, error, data, cardType, addCard, callb
|
|
|
21
21
|
setErrors({});
|
|
22
22
|
if (!data || !cardType)
|
|
23
23
|
return;
|
|
24
|
-
const { card, errors: cardErrors } = validateCreditCard(data, cardType);
|
|
24
|
+
const { card, errors: cardErrors } = validateCreditCard(data, cardType, requireCardholderName);
|
|
25
25
|
if (cardErrors) {
|
|
26
26
|
setErrors(cardErrors);
|
|
27
27
|
setSubmitting(false);
|
|
@@ -3,7 +3,7 @@ import { CardType, CreditCardData, CreditCardSaved, CreditCards, Customer, Donat
|
|
|
3
3
|
export declare const useDonationsForm: (purchase: (data: DonationPurchase, callback?: () => void) => void, reset: () => void, setAlert: (data: {
|
|
4
4
|
type: string;
|
|
5
5
|
args?: unknown;
|
|
6
|
-
}) => void, loading: RequestStatus, error: RequestError, success: boolean, customer?: Customer, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, windowRef?: Window, kountSessionId?: string | null) => {
|
|
6
|
+
}) => void, loading: RequestStatus, error: RequestError, success: boolean, customer?: Customer, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, windowRef?: Window, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
7
7
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
8
8
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
9
9
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { makeFormErrors, makeNumeric, validateCreditCard } from '../utils';
|
|
3
|
-
export const useDonationsForm = (purchase, reset, setAlert, loading, error, success, customer, creditCards, recaptchaKey, cardData, cardType, windowRef, kountSessionId) => {
|
|
3
|
+
export const useDonationsForm = (purchase, reset, setAlert, loading, error, success, customer, creditCards, recaptchaKey, cardData, cardType, windowRef, kountSessionId, requireCardholderName = false) => {
|
|
4
4
|
const submitRef = useRef(null);
|
|
5
5
|
const inputRef = useRef(null);
|
|
6
6
|
const recaptchaRef = useRef(null);
|
|
@@ -114,7 +114,7 @@ export const useDonationsForm = (purchase, reset, setAlert, loading, error, succ
|
|
|
114
114
|
else {
|
|
115
115
|
if (isNewCard) {
|
|
116
116
|
if (cardData && cardType) {
|
|
117
|
-
const { card, errors: errs } = validateCreditCard(cardData, cardType);
|
|
117
|
+
const { card, errors: errs } = validateCreditCard(cardData, cardType, requireCardholderName);
|
|
118
118
|
if (errs) {
|
|
119
119
|
setErrors(Object.assign(Object.assign({}, errs), { form: 'There are one or more credit card errors below' }));
|
|
120
120
|
setSubmitting(false);
|
|
@@ -3,7 +3,7 @@ import { CardType, CreditCardData, CreditCardSaved, CreditCards, Customer, GiftC
|
|
|
3
3
|
export declare const useGiftCardsForm: (purchase: (data: GiftCardsPurchase, callback?: () => void) => void, reset: () => void, setAlert: (data: {
|
|
4
4
|
type: string;
|
|
5
5
|
args?: unknown;
|
|
6
|
-
}) => void, loading: RequestStatus, error: RequestError, success: boolean, initState: GiftCardPurchaseData, customer?: Customer | null, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, url?: string, kountSessionId?: string | null) => {
|
|
6
|
+
}) => void, loading: RequestStatus, error: RequestError, success: boolean, initState: GiftCardPurchaseData, customer?: Customer | null, creditCards?: CreditCards, recaptchaKey?: string | null, cardData?: CreditCardData, cardType?: CardType, url?: string, kountSessionId?: string | null, requireCardholderName?: boolean) => {
|
|
7
7
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
8
8
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
9
9
|
recaptchaRef: import("react").MutableRefObject<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { makeFormErrors, validateCreditCard } from '../utils';
|
|
3
|
-
export const useGiftCardsForm = (purchase, reset, setAlert, loading, error, success, initState, customer, creditCards, recaptchaKey, cardData, cardType, url, kountSessionId) => {
|
|
3
|
+
export const useGiftCardsForm = (purchase, reset, setAlert, loading, error, success, initState, customer, creditCards, recaptchaKey, cardData, cardType, url, kountSessionId, requireCardholderName = false) => {
|
|
4
4
|
const submitRef = useRef(null);
|
|
5
5
|
const inputRef = useRef(null);
|
|
6
6
|
const recaptchaRef = useRef(null);
|
|
@@ -139,7 +139,7 @@ export const useGiftCardsForm = (purchase, reset, setAlert, loading, error, succ
|
|
|
139
139
|
else {
|
|
140
140
|
if (isNewCard) {
|
|
141
141
|
if (cardData && cardType) {
|
|
142
|
-
const { card, errors } = validateCreditCard(cardData, cardType);
|
|
142
|
+
const { card, errors } = validateCreditCard(cardData, cardType, requireCardholderName);
|
|
143
143
|
if (errors) {
|
|
144
144
|
setErrors(Object.assign(Object.assign({}, errors), { form: 'There are one or more credit card errors below' }));
|
|
145
145
|
setSubmitting(false);
|
|
@@ -17,4 +17,4 @@ export declare const makeNumeric: (str: string) => string;
|
|
|
17
17
|
export declare const makeAcctNumber: (str: string, cardType: CardType) => string;
|
|
18
18
|
export declare const formatCardField: (field: keyof CreditCardData, value: string) => string;
|
|
19
19
|
export declare const formatCard: (card: CreditCardData | null) => [CreditCardData | null, CardType | null];
|
|
20
|
-
export declare const validateCreditCard: (card: CreditCardData, cardType: CardType) => CreditCardValidate;
|
|
20
|
+
export declare const validateCreditCard: (card: CreditCardData, cardType: CardType, requireCardholderName?: boolean) => CreditCardValidate;
|
package/dist/esm/utils/cards.js
CHANGED
|
@@ -102,9 +102,9 @@ export const formatCard = (card) => {
|
|
|
102
102
|
creditCard.cardholder_name = card.cardholder_name;
|
|
103
103
|
return [creditCard, creditCardType];
|
|
104
104
|
};
|
|
105
|
-
export const validateCreditCard = (card, cardType) => {
|
|
105
|
+
export const validateCreditCard = (card, cardType, requireCardholderName = false) => {
|
|
106
106
|
const errors = {};
|
|
107
|
-
let { acct, exp, cvv, zip } = card;
|
|
107
|
+
let { acct, exp, cvv, zip, cardholder_name } = card;
|
|
108
108
|
const acctLength = cardType === 'AMEX' ? 15 : 16;
|
|
109
109
|
acct = acct ? acct.replace(/\s/g, '') : '';
|
|
110
110
|
if (acct.length !== acctLength) {
|
|
@@ -140,9 +140,13 @@ export const validateCreditCard = (card, cardType) => {
|
|
|
140
140
|
else if (!isNum(zip)) {
|
|
141
141
|
errors.zip = 'Zip code must be only numbers';
|
|
142
142
|
}
|
|
143
|
+
cardholder_name = cardholder_name === null || cardholder_name === void 0 ? void 0 : cardholder_name.trim();
|
|
144
|
+
if (requireCardholderName && !cardholder_name) {
|
|
145
|
+
errors.cardholder_name = 'Cardholder name is required';
|
|
146
|
+
}
|
|
143
147
|
if (!isEmpty(errors)) {
|
|
144
148
|
return { card, cardType, errors };
|
|
145
149
|
}
|
|
146
|
-
card = Object.assign(Object.assign({}, card), { acct, exp, cvv, zip });
|
|
150
|
+
card = Object.assign(Object.assign({}, card), { acct, exp, cvv, zip, cardholder_name });
|
|
147
151
|
return { card, cardType, errors: null };
|
|
148
152
|
};
|
package/package.json
CHANGED