New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basis-theory/basis-theory-js

Package Overview
Dependencies
Maintainers
11
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-js - npm Package Compare versions

Comparing version

to
4.2.2

2

package.json
{
"name": "@basis-theory/basis-theory-js",
"version": "4.2.1",
"version": "4.2.2",
"repository": "https://github.com/Basis-Theory/basis-theory-js",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -6,3 +6,2 @@ import type { HttpClient } from '../../types/sdk';

import type { CardMetadata, DataElementReference, ElementMetadata } from './shared';
type ValueSetter<T> = (value: T) => void;
interface BaseElement<UpdateOptions, ElementEvents> {

@@ -25,3 +24,3 @@ readonly mounted: boolean;

type TextElement = BaseElement<UpdateTextElementOptions, TextElementEvents> & {
setValueRef: ValueSetter<TextElement>;
setValueRef(value: TextElement): void;
setValue(value: DataElementReference): void;

@@ -31,7 +30,7 @@ };

readonly cardMetadata?: CardMetadata;
setValueRef: ValueSetter<CardNumberElement>;
setValueRef(value: CardNumberElement): void;
setValue(value: DataElementReference): void;
};
type CardExpirationDateElement = BaseElement<UpdateCardExpirationDateElementOptions, CardExpirationDateElementEvents> & {
setValueRef: ValueSetter<CardExpirationDateElement>;
setValueRef(value: CardExpirationDateElement): void;
setValue(value: CardExpirationDateValue<'reference'>): void;

@@ -43,3 +42,3 @@ month(): ElementWrapper<CardExpirationDateElement>;

type CardVerificationCodeElement = BaseElement<UpdateCardVerificationCodeElementOptions, CardVerificationCodeElementEvents> & {
setValueRef: ValueSetter<CardVerificationCodeElement>;
setValueRef(value: CardVerificationCodeElement): void;
setValue(value: DataElementReference): void;

@@ -46,0 +45,0 @@ };