@basis-theory/basis-theory-js 1.78.1 → 1.79.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.78.1",
3
+ "version": "1.79.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -29,6 +29,7 @@ type CardNumberElement = BaseElement<UpdateCardNumberElementOptions, CardNumberE
29
29
  type CardExpirationDateElement = BaseElement<UpdateCardExpirationDateElementOptions, CardExpirationDateElementEvents> & {
30
30
  month(): ElementWrapper<CardExpirationDateElement>;
31
31
  year(): ElementWrapper<CardExpirationDateElement>;
32
+ format(dateFormat: string): ElementWrapper<CardExpirationDateElement>;
32
33
  setValue(value: CardExpirationDateValue<'reference'>): void;
33
34
  };
34
35
  type CardVerificationCodeElement = BaseElement<UpdateCardVerificationCodeElementOptions, CardVerificationCodeElementEvents> & {
@@ -37,6 +38,9 @@ type CardVerificationCodeElement = BaseElement<UpdateCardVerificationCodeElement
37
38
  type ElementWrapper<T extends BaseElement<any, any> = BaseElement<any, any>> = {
38
39
  element: T;
39
40
  method?: string;
41
+ formattingOptions?: {
42
+ format: string;
43
+ };
40
44
  };
41
45
  type ElementValue = TextElement | CardElement | CardNumberElement | CardExpirationDateElement | CardVerificationCodeElement | ElementWrapper;
42
46
  interface BasisTheoryElements extends Tokenize {