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

@nimiq/hub-api

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/hub-api - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

4

dist/src/client/HubApi.d.ts

@@ -29,3 +29,5 @@ import { PopupRequestBehavior, RequestBehavior, RedirectRequestBehavior, BehaviorType } from './RequestBehavior';

manageCashlink<B extends BehaviorType = DB>(request: Promise<ManageCashlinkRequest> | ManageCashlinkRequest, requestBehavior?: RequestBehavior<B>): Promise<B extends BehaviorType.REDIRECT ? void : Cashlink>;
checkout<B extends BehaviorType = DB>(request: Promise<CheckoutRequest> | CheckoutRequest, requestBehavior?: RequestBehavior<B>): Promise<B extends BehaviorType.REDIRECT ? void : SignedTransaction>;
checkout<R extends CheckoutRequest, B extends BehaviorType = DB>(request: Promise<R> | R, requestBehavior?: RequestBehavior<B>): Promise<B extends BehaviorType.REDIRECT ? void : R extends {
version: 2;
} ? SimpleResult | SignedTransaction : SignedTransaction>;
chooseAddress<B extends BehaviorType = DB>(request: Promise<BasicRequest> | BasicRequest, requestBehavior?: RequestBehavior<B>): Promise<B extends BehaviorType.REDIRECT ? void : Address>;

@@ -32,0 +34,0 @@ signTransaction<B extends BehaviorType = DB>(request: Promise<SignTransactionRequest> | SignTransactionRequest, requestBehavior?: RequestBehavior<B>): Promise<B extends BehaviorType.REDIRECT ? void : SignedTransaction>;

export declare function setHistoryStorage(key: string, data: any): void;
export declare function getHistoryStorage(key: string): any | undefined;
export declare const loadNimiq: () => Promise<void>;
export declare function isPriviledgedOrigin(origin: string): any;
export declare function includesOrigin(list: string[], origin: string): boolean;
export declare function isDesktop(): boolean;
export declare function isMilliseconds(time: number): boolean;

@@ -62,2 +62,3 @@ import { WalletType } from './WalletInfo';

validityDuration?: number;
disableDisclaimer?: boolean;
}

@@ -131,2 +132,6 @@ export declare enum PaymentType {

paymentOptions: AvailablePaymentOptions[];
/**
* Option to disable the disclaimer at the bottom of the checkout page. Only allowed for privileged origins.
*/
disableDisclaimer?: boolean;
}

@@ -252,3 +257,3 @@ export declare type CheckoutRequest = NimiqCheckoutRequest | MultiCurrencyCheckoutRequest;

export declare type RpcResult = SignedTransaction | Account | Account[] | SimpleResult | Address | Cashlink | SignedMessage | ExportResult;
export declare type ResultByRequestType<T> = T extends RequestType.RENAME ? Account : T extends RequestType.ONBOARD | RequestType.SIGNUP | RequestType.LOGIN | RequestType.MIGRATE | RequestType.LIST ? Account[] : T extends RequestType.LIST_CASHLINKS ? Cashlink[] : T extends RequestType.CHOOSE_ADDRESS | RequestType.ADD_ADDRESS ? Address : T extends RequestType.SIGN_TRANSACTION | RequestType.CHECKOUT ? SignedTransaction : T extends RequestType.SIGN_MESSAGE ? SignedMessage : T extends RequestType.LOGOUT | RequestType.CHANGE_PASSWORD ? SimpleResult : T extends RequestType.EXPORT ? ExportResult : T extends RequestType.CREATE_CASHLINK | RequestType.MANAGE_CASHLINK ? Cashlink : never;
export declare type ResultByRequestType<T> = T extends RequestType.RENAME ? Account : T extends RequestType.ONBOARD | RequestType.SIGNUP | RequestType.LOGIN | RequestType.MIGRATE | RequestType.LIST ? Account[] : T extends RequestType.LIST_CASHLINKS ? Cashlink[] : T extends RequestType.CHOOSE_ADDRESS | RequestType.ADD_ADDRESS ? Address : T extends RequestType.SIGN_TRANSACTION ? SignedTransaction : T extends RequestType.CHECKOUT ? SignedTransaction | SimpleResult : T extends RequestType.SIGN_MESSAGE ? SignedMessage : T extends RequestType.LOGOUT | RequestType.CHANGE_PASSWORD ? SimpleResult : T extends RequestType.EXPORT ? ExportResult : T extends RequestType.CREATE_CASHLINK | RequestType.MANAGE_CASHLINK ? Cashlink : never;
export {};

@@ -40,2 +40,3 @@ import { Currency, PaymentType, RequestType } from './PublicRequestTypes';

paymentOptions: AvailableParsedPaymentOptions[];
disableDisclaimer: boolean;
}

@@ -42,0 +43,0 @@ export interface ParsedSignMessageRequest extends ParsedBasicRequest {

{
"name": "@nimiq/hub-api",
"version": "1.2.2",
"version": "1.2.3",
"main": "dist/HubApi.umd.js",

@@ -5,0 +5,0 @@ "module": "dist/HubApi.es.js",

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