diff --git a/src/factories/payments-processors/lnbits-payments-processor-factory.ts b/src/factories/payments-processors/lnbits-payments-processor-factory.ts index 48652077..582593bb 100644 --- a/src/factories/payments-processors/lnbits-payments-processor-factory.ts +++ b/src/factories/payments-processors/lnbits-payments-processor-factory.ts @@ -3,7 +3,7 @@ import { path } from 'ramda' import { createSettings } from '../settings-factory' import { IPaymentsProcessor } from '../../@types/clients' -import { LNbitsPaymentsProcesor } from '../../payments-processors/lnbits-payment-processor' +import { LNbitsPaymentsProcessor } from '../../payments-processors/lnbits-payment-processor' import { Settings } from '../../@types/settings' @@ -35,5 +35,5 @@ export const createLNbitsPaymentProcessor = (settings: Settings): IPaymentsProce const client = axios.create(config) - return new LNbitsPaymentsProcesor(client, createSettings) + return new LNbitsPaymentsProcessor(client, createSettings) } diff --git a/src/factories/payments-processors/lnurl-payments-processor-factory.ts b/src/factories/payments-processors/lnurl-payments-processor-factory.ts index 5ed5ae1c..f1254a19 100644 --- a/src/factories/payments-processors/lnurl-payments-processor-factory.ts +++ b/src/factories/payments-processors/lnurl-payments-processor-factory.ts @@ -3,7 +3,7 @@ import { path } from 'ramda' import { createSettings } from '../settings-factory' import { IPaymentsProcessor } from '../../@types/clients' -import { LnurlPaymentsProcesor } from '../../payments-processors/lnurl-payments-processor' +import { LnurlPaymentsProcessor } from '../../payments-processors/lnurl-payments-processor' import { Settings } from '../../@types/settings' export const createLnurlPaymentsProcessor = (settings: Settings): IPaymentsProcessor => { @@ -14,5 +14,5 @@ export const createLnurlPaymentsProcessor = (settings: Settings): IPaymentsProce const client = axios.create() - return new LnurlPaymentsProcesor(client, createSettings) + return new LnurlPaymentsProcessor(client, createSettings) } diff --git a/src/factories/payments-processors/nodeless-payments-processor-factory.ts b/src/factories/payments-processors/nodeless-payments-processor-factory.ts index 39e8c702..ab0abd33 100644 --- a/src/factories/payments-processors/nodeless-payments-processor-factory.ts +++ b/src/factories/payments-processors/nodeless-payments-processor-factory.ts @@ -3,7 +3,7 @@ import { path } from 'ramda' import { createSettings } from '../settings-factory' import { IPaymentsProcessor } from '../../@types/clients' -import { NodelessPaymentsProcesor } from '../../payments-processors/nodeless-payments-processor' +import { NodelessPaymentsProcessor } from '../../payments-processors/nodeless-payments-processor' import { Settings } from '../../@types/settings' const getNodelessAxiosConfig = (settings: Settings): CreateAxiosDefaults => { @@ -27,5 +27,5 @@ const getNodelessAxiosConfig = (settings: Settings): CreateAxiosDefaults => export const createNodelessPaymentsProcessor = (settings: Settings): IPaymentsProcessor => { const client = axios.create(getNodelessAxiosConfig(settings)) - return new NodelessPaymentsProcesor(client, createSettings) + return new NodelessPaymentsProcessor(client, createSettings) } diff --git a/src/factories/payments-processors/opennode-payments-processor-factory.ts b/src/factories/payments-processors/opennode-payments-processor-factory.ts index fa89960c..9a51853b 100644 --- a/src/factories/payments-processors/opennode-payments-processor-factory.ts +++ b/src/factories/payments-processors/opennode-payments-processor-factory.ts @@ -3,7 +3,7 @@ import { path } from 'ramda' import { createSettings } from '../settings-factory' import { IPaymentsProcessor } from '../../@types/clients' -import { OpenNodePaymentsProcesor } from '../../payments-processors/opennode-payments-processor' +import { OpenNodePaymentsProcessor } from '../../payments-processors/opennode-payments-processor' import { Settings } from '../../@types/settings' const getOpenNodeAxiosConfig = (settings: Settings): CreateAxiosDefaults => { @@ -35,5 +35,5 @@ export const createOpenNodePaymentsProcessor = (settings: Settings): IPaymentsPr const config = getOpenNodeAxiosConfig(settings) const client = axios.create(config) - return new OpenNodePaymentsProcesor(client, createSettings) + return new OpenNodePaymentsProcessor(client, createSettings) } diff --git a/src/factories/payments-processors/zebedee-payments-processor-factory.ts b/src/factories/payments-processors/zebedee-payments-processor-factory.ts index b8380daf..ba3841a7 100644 --- a/src/factories/payments-processors/zebedee-payments-processor-factory.ts +++ b/src/factories/payments-processors/zebedee-payments-processor-factory.ts @@ -4,7 +4,7 @@ import { path } from 'ramda' import { createSettings } from '../settings-factory' import { IPaymentsProcessor } from '../../@types/clients' import { Settings } from '../../@types/settings' -import { ZebedeePaymentsProcesor } from '../../payments-processors/zebedee-payments-processor' +import { ZebedeePaymentsProcessor } from '../../payments-processors/zebedee-payments-processor' const getZebedeeAxiosConfig = (settings: Settings): CreateAxiosDefaults => { if (!process.env.ZEBEDEE_API_KEY) { @@ -46,5 +46,5 @@ export const createZebedeePaymentsProcessor = (settings: Settings): IPaymentsPro const client = axios.create(config) - return new ZebedeePaymentsProcesor(client, createSettings) -} \ No newline at end of file + return new ZebedeePaymentsProcessor(client, createSettings) +} diff --git a/src/handlers/subscribe-message-handler.ts b/src/handlers/subscribe-message-handler.ts index f85c2a5f..1ab4e322 100644 --- a/src/handlers/subscribe-message-handler.ts +++ b/src/handlers/subscribe-message-handler.ts @@ -90,7 +90,7 @@ export class SubscribeMessageHandler implements IMessageHandler, IAbortable { const subscriptionLimits = this.settings().limits?.client?.subscription if (existingSubscription?.length && equals(filters, existingSubscription)) { - return `Duplicate subscription ${subscriptionId}: Ignorning` + return `Duplicate subscription ${subscriptionId}: Ignoring` } const maxSubscriptions = subscriptionLimits?.maxSubscriptions ?? 0 diff --git a/src/payments-processors/lnbits-payment-processor.ts b/src/payments-processors/lnbits-payment-processor.ts index 6996c083..fc70aa6a 100644 --- a/src/payments-processors/lnbits-payment-processor.ts +++ b/src/payments-processors/lnbits-payment-processor.ts @@ -39,7 +39,7 @@ export class LNbitsCreateInvoiceResponse implements CreateInvoiceResponse { rawResponse?: string } -export class LNbitsPaymentsProcesor implements IPaymentsProcessor { +export class LNbitsPaymentsProcessor implements IPaymentsProcessor { public constructor( private httpClient: AxiosInstance, private settings: Factory diff --git a/src/payments-processors/lnurl-payments-processor.ts b/src/payments-processors/lnurl-payments-processor.ts index ed95e1c0..30fe6420 100644 --- a/src/payments-processors/lnurl-payments-processor.ts +++ b/src/payments-processors/lnurl-payments-processor.ts @@ -9,7 +9,7 @@ import { Settings } from '../@types/settings' const debug = createLogger('lnurl-payments-processor') -export class LnurlPaymentsProcesor implements IPaymentsProcessor { +export class LnurlPaymentsProcessor implements IPaymentsProcessor { public constructor( private httpClient: AxiosInstance, private settings: Factory diff --git a/src/payments-processors/nodeless-payments-processor.ts b/src/payments-processors/nodeless-payments-processor.ts index 81eeb311..c9a78e15 100644 --- a/src/payments-processors/nodeless-payments-processor.ts +++ b/src/payments-processors/nodeless-payments-processor.ts @@ -8,7 +8,7 @@ import { Settings } from '../@types/settings' const debug = createLogger('nodeless-payments-processor') -export class NodelessPaymentsProcesor implements IPaymentsProcessor { +export class NodelessPaymentsProcessor implements IPaymentsProcessor { public constructor( private httpClient: AxiosInstance, private settings: Factory diff --git a/src/payments-processors/opennode-payments-processor.ts b/src/payments-processors/opennode-payments-processor.ts index f5c340e6..4c006d90 100644 --- a/src/payments-processors/opennode-payments-processor.ts +++ b/src/payments-processors/opennode-payments-processor.ts @@ -8,7 +8,7 @@ import { Settings } from '../@types/settings' const debug = createLogger('opennode-payments-processor') -export class OpenNodePaymentsProcesor implements IPaymentsProcessor { +export class OpenNodePaymentsProcessor implements IPaymentsProcessor { public constructor( private httpClient: AxiosInstance, private settings: Factory diff --git a/src/payments-processors/zebedee-payments-processor.ts b/src/payments-processors/zebedee-payments-processor.ts index 1b8339db..d24427bd 100644 --- a/src/payments-processors/zebedee-payments-processor.ts +++ b/src/payments-processors/zebedee-payments-processor.ts @@ -8,7 +8,7 @@ import { Settings } from '../@types/settings' const debug = createLogger('zebedee-payments-processor') -export class ZebedeePaymentsProcesor implements IPaymentsProcessor { +export class ZebedeePaymentsProcessor implements IPaymentsProcessor { public constructor( private httpClient: AxiosInstance, private settings: Factory diff --git a/src/utils/transform.ts b/src/utils/transform.ts index 664f4ec2..33aa9244 100644 --- a/src/utils/transform.ts +++ b/src/utils/transform.ts @@ -84,7 +84,7 @@ export const fromZebedeeInvoice = applySpec({ pipe(prop('createdAt'), toDate), always(null), ), - rawRespose: toJSON, + rawResponse: toJSON, }) export const fromNodelessInvoice = applySpec({ diff --git a/test/unit/handlers/subscribe-message-handler.spec.ts b/test/unit/handlers/subscribe-message-handler.spec.ts index 45b6fd0d..adcdbb5a 100644 --- a/test/unit/handlers/subscribe-message-handler.spec.ts +++ b/test/unit/handlers/subscribe-message-handler.spec.ts @@ -270,7 +270,7 @@ describe('SubscribeMessageHandler', () => { subscriptions.set(subscriptionId, filters) expect((handler as any).canSubscribe(subscriptionId, filters)) - .to.equal('Duplicate subscription subscriptionId: Ignorning') + .to.equal('Duplicate subscription subscriptionId: Ignoring') }) it('returns reason if client subscriptions exceed limits', () => { @@ -305,4 +305,4 @@ describe('SubscribeMessageHandler', () => { expect((handler as any).canSubscribe(subscriptionId, filters)).to.equal('Too many filters: Number of filters per susbscription must be less then or equal to 1') }) }) -}) \ No newline at end of file +}) diff --git a/test/unit/tor/onion.spec.ts b/test/unit/tor/onion.spec.ts index 6f9e6d09..ec1d8a5d 100644 --- a/test/unit/tor/onion.spec.ts +++ b/test/unit/tor/onion.spec.ts @@ -82,7 +82,7 @@ describe('onion',()=>{ sandbox.restore() }) - it('config emty',()=>{ + it('config empty',()=>{ const config = createTorConfig() expect(config).to.include({ port: 9051 }) }) @@ -109,7 +109,7 @@ describe('onion',()=>{ } expect(client).be.undefined }) - it('tor connect sucess',async ()=>{ + it('tor connect success',async ()=>{ //mockTor(sandbox) process.env.TOR_HOST = hostname() process.env.TOR_CONTROL_PORT = '9051' @@ -175,7 +175,7 @@ describe('onion',()=>{ console.log('domain: '+domain) expect(domain).be.undefined }) - it('add onion sucess read fail',async ()=>{ + it('add onion success read fail',async ()=>{ mock(sandbox,true) process.env.TOR_HOST = hostname() process.env.TOR_CONTROL_PORT = '9051' @@ -191,7 +191,7 @@ describe('onion',()=>{ console.log('domain: '+domain) expect(domain).be.not.undefined }) - it('add onion sucess',async ()=>{ + it('add onion success',async ()=>{ mock(sandbox) process.env.TOR_HOST = hostname() process.env.TOR_CONTROL_PORT = '9051' @@ -207,4 +207,4 @@ describe('onion',()=>{ console.log('domain: '+domain) expect(domain).be.not.undefined }) -}) \ No newline at end of file +})