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

lightrail-client

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightrail-client - npm Package Compare versions

Comparing version 1.6.1 to 1.7.0

3

dist/accounts.d.ts
import { CapturePendingTransactionParams, CreateAccountCardParams, CreateTransactionParams, SimulateTransactionParams, VoidPendingTransactionParams } from "./params";
import { Card, ContactIdentifier, Transaction } from "./model";
import { Card, CardDetails, ContactIdentifier, Transaction } from "./model";
/**

@@ -8,2 +8,3 @@ * Creates a contact first if contact doesn't exist (if userSuppliedId or shopperId provided)

export declare function createAccount(contact: ContactIdentifier, params: CreateAccountCardParams): Promise<Card>;
export declare function getDetails(contact: ContactIdentifier, currency: string): Promise<CardDetails>;
export declare function createTransaction(contact: ContactIdentifier, params: CreateTransactionParams): Promise<Transaction>;

@@ -10,0 +11,0 @@ export declare function capturePendingTransaction(contact: ContactIdentifier, transaction: Transaction, params: CapturePendingTransactionParams): Promise<Transaction>;

@@ -41,2 +41,16 @@ "use strict";

exports.createAccount = createAccount;
function getDetails(contact, currency) {
return __awaiter(this, void 0, void 0, function* () {
const contactId = yield getContactId(contact);
if (!contactId) {
return null;
}
const accountCard = yield cards.getAccountCardByContactAndCurrency(contactId, currency);
if (!accountCard) {
return null;
}
return cards.getDetails(accountCard);
});
}
exports.getDetails = getDetails;
function createTransaction(contact, params) {

@@ -43,0 +57,0 @@ return __awaiter(this, void 0, void 0, function* () {

{
"name": "lightrail-client",
"version": "1.6.1",
"version": "1.7.0",
"description": "A Javascript and Typescript client for Lightrail",

@@ -5,0 +5,0 @@ "main": "dist/index.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