@lunch-money/binance-to-lunch-money
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,4 +1,4 @@ | ||
import { default as Binance } from 'binance-api-node'; | ||
import { LunchMoneyCryptoConnection, LunchMoneyCryptoConnectionContext, LunchMoneyCryptoConnectionConfig } from './types.js'; | ||
export { LunchMoneyCryptoConnection } from './types.js'; | ||
import { BinanceClient } from './client.js'; | ||
interface LunchMoneyBinanceConnectionConfig extends LunchMoneyCryptoConnectionConfig { | ||
@@ -9,4 +9,4 @@ apiKey: string; | ||
interface LunchMoneyBinanceConnectionContext extends LunchMoneyCryptoConnectionContext { | ||
binanceClientConstructor?: typeof BinanceClient; | ||
binanceClientConstructor?: typeof Binance; | ||
} | ||
export declare const LunchMoneyBinanceConnection: LunchMoneyCryptoConnection<LunchMoneyBinanceConnectionConfig, LunchMoneyBinanceConnectionContext>; |
@@ -11,5 +11,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LunchMoneyBinanceConnection = void 0; | ||
const client_js_1 = require("./client.js"); | ||
const binance_api_node_1 = __importDefault(require("binance-api-node")); | ||
exports.LunchMoneyBinanceConnection = { | ||
@@ -21,3 +24,3 @@ initiate(config, context) { | ||
}, | ||
getBalances(config, { binanceClientConstructor = client_js_1.BinanceClient }) { | ||
getBalances(config, { binanceClientConstructor = binance_api_node_1.default }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -24,0 +27,0 @@ const client = binanceClientConstructor(Object.assign({}, config)); |
@@ -0,4 +1,4 @@ | ||
import { default as Binance } from 'binance-api-node'; | ||
import { LunchMoneyCryptoConnection, LunchMoneyCryptoConnectionContext, LunchMoneyCryptoConnectionConfig } from './types.js'; | ||
export { LunchMoneyCryptoConnection } from './types.js'; | ||
import { BinanceClient } from './client.js'; | ||
interface LunchMoneyBinanceConnectionConfig extends LunchMoneyCryptoConnectionConfig { | ||
@@ -9,4 +9,4 @@ apiKey: string; | ||
interface LunchMoneyBinanceConnectionContext extends LunchMoneyCryptoConnectionContext { | ||
binanceClientConstructor?: typeof BinanceClient; | ||
binanceClientConstructor?: typeof Binance; | ||
} | ||
export declare const LunchMoneyBinanceConnection: LunchMoneyCryptoConnection<LunchMoneyBinanceConnectionConfig, LunchMoneyBinanceConnectionContext>; |
@@ -1,2 +0,2 @@ | ||
import { BinanceClient } from './client.js'; | ||
import { default as Binance } from 'binance-api-node'; | ||
export const LunchMoneyBinanceConnection = { | ||
@@ -6,3 +6,3 @@ async initiate(config, context) { | ||
}, | ||
async getBalances(config, { binanceClientConstructor = BinanceClient }) { | ||
async getBalances(config, { binanceClientConstructor = Binance }) { | ||
const client = binanceClientConstructor({ ...config }); | ||
@@ -9,0 +9,0 @@ const snapshot = await client.accountSnapshot({ |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/lunch-money/binance-to-lunch-money#README", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -13,0 +13,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14361
16
166