@evervault/js 2.9.1 → 2.11.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/dist/evervault-js.umd.cjs +1 -1
- package/dist/evervault.d.ts +16 -8
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Evervault={}))})(this,function(t){"use strict";let e=null;async function u(){return e||(e=new Promise((o,r)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>o(),n.onerror=()=>{e=null,r()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),e)}async function i(){if(window.Evervault)return window.Evervault;try{return await u(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function l(o,r,n){const a=await i();return new a(o,r,n)}Promise.resolve().then(()=>{i()}),t.loadEvervault=l,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Evervault={}))})(this,(function(t){"use strict";let e=null;async function u(){return e||(e=new Promise((o,r)=>{const n=document.createElement("script");if(n.src="https://js.evervault.com/v2",n.onload=()=>o(),n.onerror=()=>{e=null,r()},!document.head)throw new Error("Expected document.head not to be null. Evervault.js requires a <head> element.");document.head.appendChild(n)}),e)}async function i(){if(window.Evervault)return window.Evervault;try{return await u(),window.Evervault}catch{throw new Error("Failed to load Evervault.js")}}async function l(o,r,n){const a=await i();return new a(o,r,n)}Promise.resolve().then(()=>{i()}),t.loadEvervault=l,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/evervault.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ declare interface ApplePayErrorMessage {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
declare interface ApplePayEvents {
|
|
73
|
+
ready: () => void;
|
|
73
74
|
success: () => void;
|
|
74
75
|
error: (message?: string) => void;
|
|
75
76
|
cancel: () => void;
|
|
@@ -783,7 +784,7 @@ declare namespace DataType {
|
|
|
783
784
|
}
|
|
784
785
|
|
|
785
786
|
declare namespace Datatypes {
|
|
786
|
-
|
|
787
|
+
export {
|
|
787
788
|
EncryptableAsString,
|
|
788
789
|
EncryptableValue,
|
|
789
790
|
EncryptableObject,
|
|
@@ -844,6 +845,7 @@ declare interface EncryptedDPAN<P> {
|
|
|
844
845
|
brand: string;
|
|
845
846
|
lastFour?: string;
|
|
846
847
|
displayName?: string;
|
|
848
|
+
paymentMethodType?: PaymentMethodType;
|
|
847
849
|
};
|
|
848
850
|
cryptogram: string;
|
|
849
851
|
eci: string;
|
|
@@ -857,6 +859,7 @@ declare interface EncryptedFPAN {
|
|
|
857
859
|
number: string;
|
|
858
860
|
lastFour?: string;
|
|
859
861
|
displayName?: string;
|
|
862
|
+
paymentMethodType?: PaymentMethodType;
|
|
860
863
|
expiry: {
|
|
861
864
|
month: string;
|
|
862
865
|
year: string;
|
|
@@ -2540,6 +2543,8 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
|
|
|
2540
2543
|
WebkitScrollSnapPointsY?: Property.ScrollSnapPointsY | undefined;
|
|
2541
2544
|
}
|
|
2542
2545
|
|
|
2546
|
+
declare type PaymentMethodType = "credit" | "debit" | "prepaid" | "store";
|
|
2547
|
+
|
|
2543
2548
|
declare interface PaymentMethodUpdate {
|
|
2544
2549
|
type?: string;
|
|
2545
2550
|
billingContact?: BillingContact;
|
|
@@ -4291,6 +4296,14 @@ declare namespace Property {
|
|
|
4291
4296
|
type VectorEffect = Globals | "non-scaling-stroke" | "none";
|
|
4292
4297
|
}
|
|
4293
4298
|
|
|
4299
|
+
declare type RecurringPaymentIntervalUnit =
|
|
4300
|
+
| "minute"
|
|
4301
|
+
| "hour"
|
|
4302
|
+
| "day"
|
|
4303
|
+
| "week"
|
|
4304
|
+
| "month"
|
|
4305
|
+
| "year";
|
|
4306
|
+
|
|
4294
4307
|
declare interface RecurringTransactionDetails extends BaseTransactionDetails {
|
|
4295
4308
|
type: "recurring";
|
|
4296
4309
|
managementURL: string;
|
|
@@ -4298,6 +4311,8 @@ declare interface RecurringTransactionDetails extends BaseTransactionDetails {
|
|
|
4298
4311
|
description: string;
|
|
4299
4312
|
regularBilling: TransactionLineItem & {
|
|
4300
4313
|
recurringPaymentStartDate: Date;
|
|
4314
|
+
recurringPaymentIntervalUnit?: RecurringPaymentIntervalUnit;
|
|
4315
|
+
recurringPaymentIntervalCount?: number;
|
|
4301
4316
|
};
|
|
4302
4317
|
trialBilling?: TransactionLineItem & {
|
|
4303
4318
|
trialPaymentStartDate: Date;
|
|
@@ -12399,10 +12414,3 @@ declare interface VendorShorthandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
12399
12414
|
declare type WalletDimension = string | number;
|
|
12400
12415
|
|
|
12401
12416
|
export { }
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
declare global {
|
|
12405
|
-
interface Window {
|
|
12406
|
-
Evervault: EvervaultConstructor | undefined;
|
|
12407
|
-
}
|
|
12408
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@evervault/js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.11.0",
|
|
5
5
|
"description": "Evervault.js loader for client-side browser applications",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"types": "dist/evervault.d.ts",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "5.5.4",
|
|
21
|
-
"vite": "^
|
|
22
|
-
"vite-plugin-dts": "^4.
|
|
23
|
-
"@evervault/browser": "2.51.1",
|
|
24
|
-
"tsconfig": "0.1.0",
|
|
21
|
+
"vite": "^7.3.1",
|
|
22
|
+
"vite-plugin-dts": "^4.5.4",
|
|
25
23
|
"themes": "0.1.22",
|
|
24
|
+
"tsconfig": "0.1.0",
|
|
25
|
+
"@evervault/browser": "2.54.0",
|
|
26
26
|
"types": "0.22.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|