Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bootpay/bp-commerce-sdk

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bootpay/bp-commerce-sdk - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+9
dist/src/lib/event/hooks/brandpay-hook.d.ts
import { BootpayEventHook } from '../../../vendor/mixins/hook';
declare class BrandpayHook extends BootpayEventHook {
constructor(hooks?: {
[key: string]: Function;
});
}
export declare const BrandpayHooks: BrandpayHook;
export {};
export declare const BrandpayEvents: {
brandpayWalletUpdated(data: any): void;
brandpayManagerWindowReady: (data: any) => void;
bootpayWidgetPaymentWindowResize: (data: any) => void;
brandpayExternalPassword: (data: {
popup: boolean;
url: string;
}) => void;
externalPasswordResponse: (data: any) => void;
};
import { BootpayWindowEvent } from '../../vendor/mixins/event';
declare class BootpayWidgetEventManager extends BootpayWindowEvent {
constructor();
}
export declare const BootpayWidgetEvent: BootpayWidgetEventManager;
export {};
import { TemplateManager } from '../../vendor/mixins/template-manager';
declare class TemplateBrandpayManager extends TemplateManager {
$template: string;
$iFrameId: string;
$iFrameContainerId: string;
$exOverlayId: string;
$exOverlayContainerId: string;
$el: string | undefined;
constructor();
render(el: string, requestData: {
clientKey: string;
loginToken: string;
}): void;
templateRender({ clientKey, loginToken }: {
clientKey: string;
loginToken: string;
}): void;
resize(resizeData: any): void;
postMessage(event: string, data: any): void;
setIframeUrl(uri: string): void;
externalPassword({ popup, url }: {
popup: boolean;
url: string;
}): void;
}
export declare const TemplateBrandpay: TemplateBrandpayManager;
export {};
export declare const Const: {
PLATFORM: {
JS: number;
ANDROID: number;
IOS: number;
REST: number;
};
STORAGE_PREFIX(name: string): string;
};
+4
-0

@@ -9,2 +9,6 @@ import { BootpayManager } from '../vendor/mixins/bootpay-manager';

requestCheckoutUrl(url: string): Promise<any>;
launchBrandpayManager(el: string, requestData: {
clientKey: string;
loginToken: string;
}): void;
hideAlert(eventName?: string): void;

@@ -11,0 +15,0 @@ sendEvent(eventName: string, data: any): void;

@@ -15,2 +15,7 @@ export declare const EnvironmentEx: {

};
WIDGET_URL: {
development: string;
stage: string;
production: string;
};
set(env: "development" | "stage" | "production"): void;

@@ -21,4 +26,5 @@ setClientKey(clientKey: string): string | undefined;

toCheckoutApiUrl(uri: string): string;
toWidget(url: string): string;
isMobile(): boolean;
isMobileSafari(): boolean;
};
+2
-1

@@ -15,2 +15,4 @@ interface BootpayCommerceInterface {

setLogLevel(level: number): void
launchBrandpayManager(el: string, requestData: { client_key: string, login_token: string }): void
}

@@ -75,3 +77,2 @@

use_auto_login?: boolean
use_notification?: boolean
expired_at?: string

@@ -78,0 +79,0 @@ metadata?: Record<string, any>

{
"name": "@bootpay/bp-commerce-sdk",
"version": "1.0.2",
"version": "1.0.3",
"main": "dist/index.mjs",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display