Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evervault/react

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evervault/react - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0

73

dist/evervault-react.main.d.ts

@@ -0,1 +1,3 @@

/// <reference types="node" />
import { events } from 'events';

@@ -29,2 +31,3 @@ import * as React_2 from 'react';

fields: CardField[] | undefined;
acceptedBrands: CardBrandName[] | undefined;
};

@@ -39,2 +42,17 @@ };

export declare type CardBrandName =
"american-express" |
"visa" |
"mastercard" |
"discover" |
"jcb" |
"diners-club" |
"unionpay" |
"maestro" |
"mir" |
"elo" |
"hipercard" |
"hiper" |
"szep";
declare interface CardEvents {

@@ -77,2 +95,3 @@ ready: () => void;

fields?: CardField[];
acceptedBrands?: CardBrandName[];
translations?: Partial<CardTranslations>;

@@ -84,3 +103,4 @@ }

name: string | null;
brand: string | undefined;
brand: string | null;
localBrands: string[] | null;
number: string | null;

@@ -114,3 +134,3 @@ lastFour: string | null;

export declare interface CardTranslations extends TranslationsObject {
number: CardFieldTranslations<{ invalid?: string }>;
number: CardFieldTranslations<{ invalid?: string, unsupportedBrand?: string }>;
expiry: CardFieldTranslations<{ invalid?: string }>;

@@ -200,3 +220,3 @@ cvc: CardFieldTranslations<{ invalid?: string }>;

constructor(ecdhTeamKey: Uint8Array, ecdhPublicKey: CryptoKey, derivedSecret: ArrayBuffer, config: EncryptionSubConfig, isDebug: boolean);
encrypt(data: unknown): Promise<string | Blob | File | Datatypes.EncryptedValue | Datatypes.EncryptedValue[] | Datatypes.EncrypedObject>;
encrypt(data: unknown, role?: string): Promise<string | Blob | File | Datatypes.EncryptedValue | Datatypes.EncryptedValue[] | Datatypes.EncrypedObject>;
}

@@ -212,2 +232,3 @@

publicKey?: string;
appKey?: CageKey;
}

@@ -267,3 +288,6 @@

publicHash: "sha256";
evVersion: "NOC";
versions: {
NOC: "NOC";
LCY: "LCY";
};
header: {

@@ -287,3 +311,3 @@ iss: "evervault";

register(): void;
events: events;
events: events<[never]>;
};

@@ -296,2 +320,3 @@ config: Config;

}>;
getAppForms: () => Promise<Form[]>;
};

@@ -316,18 +341,16 @@ input: {

constructor(teamId: string, appId: string, customConfig?: CustomConfig_2);
loadKeys(): Promise<CoreCrypto>;
static init(teamUuid: string, appUuid: string, customConfig?: CustomConfig_2): Promise<EvervaultClient>;
getContext(origin: string, inputsUrl: string): SdkContext;
loadKeys(appPublicKey: CageKey | undefined): Promise<CoreCrypto>;
/**
* Initializes Evervault Inputs. Evervault Inputs makes it easy to collect encrypted cardholder data in a completely PCI-compliant environment.
* Evervault Inputs are served within an iFrame retrieved directly from Evervault’s PCI-compliant infrastructure, which can reduce your PCI DSS compliance scope to the simplest form (SAQ A).
* Simply pass the ID of the element in which the iFrame should be embedded.
* We also support themes and custom styles so you can customise how Inputs looks in your UI.
* Encrypts data using Evervaults encryption scheme.
* @param data - The data to encrypt.
* @returns The encrypted data.
*/
encrypt(data: File): Promise<File>;
encrypt(data: Blob): Promise<Blob>;
encrypt(data: Datatypes.EncryptableAsString): Promise<string>;
encrypt(data: Datatypes.EncryptableValue[]): Promise<Datatypes.EncryptedValue[]>;
encrypt(data: Datatypes.EncryptableObject): Promise<NonNullable<unknown>>;
encrypt(data: unknown): Promise<string>;
encrypt(data: File, role?: string): Promise<File>;
encrypt(data: Blob, role?: string): Promise<Blob>;
encrypt(data: Datatypes.EncryptableAsString, role?: string): Promise<string>;
encrypt(data: Datatypes.EncryptableValue[], role?: string): Promise<Datatypes.EncryptedValue[]>;
encrypt(data: Datatypes.EncryptableObject, role?: string): Promise<NonNullable<unknown>>;
encrypt(data: unknown, role?: string): Promise<string>;
/**

@@ -358,2 +381,3 @@ * Initializes Evervault Inputs. Evervault Inputs makes it easy to collect encrypted cardholder data in a completely PCI-compliant environment.

}>;
enableFormEncryption(thirdPartyForm: HTMLFormElement | undefined, formUuid: string | undefined): Promise<void>;
isInDebugMode(): boolean;

@@ -420,2 +444,11 @@ }

declare interface Form {
uuid: string;
targetElements: TargetElement[];
appUuid: string;
createdAt: Date;
updatedAt: Date | null;
deletedAt: Date | null;
}
declare interface HttpConfig {

@@ -872,3 +905,4 @@ keysUrl: string;

export declare interface SwipedCard {
brand: string | undefined;
brand: string | null;
localBrands: string[] | null;
number: string | null;

@@ -882,2 +916,7 @@ expiry: CardExpiry | null;

declare interface TargetElement {
elementType: string;
elementName: string;
}
export declare type ThemeDefinition = ThemeObject | ThemeFunction;

@@ -884,0 +923,0 @@

{
"private": false,
"name": "@evervault/react",
"version": "2.5.1",
"version": "2.6.0",
"description": "React package for the Evervault SDK",

@@ -34,7 +34,7 @@ "license": "MIT",

"react-dom": "^18.2.0",
"vite": "^4.5.1",
"vite": "^4.5.3",
"vite-plugin-dts": "^3.6.3",
"types": "^0.0.0",
"themes": "^0.0.0",
"@evervault/browser": "^2.18.0",
"@evervault/browser": "^2.23.0",
"tsconfig": "^0.0.1"

@@ -41,0 +41,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc