mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
fix: typos (#334)
This commit is contained in:
parent
d1d4cb9e25
commit
3b5b1fc85f
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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<any> => {
|
||||
@ -27,5 +27,5 @@ const getNodelessAxiosConfig = (settings: Settings): CreateAxiosDefaults<any> =>
|
||||
export const createNodelessPaymentsProcessor = (settings: Settings): IPaymentsProcessor => {
|
||||
const client = axios.create(getNodelessAxiosConfig(settings))
|
||||
|
||||
return new NodelessPaymentsProcesor(client, createSettings)
|
||||
return new NodelessPaymentsProcessor(client, createSettings)
|
||||
}
|
||||
|
@ -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<any> => {
|
||||
@ -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)
|
||||
}
|
||||
|
@ -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<any> => {
|
||||
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)
|
||||
}
|
||||
return new ZebedeePaymentsProcessor(client, createSettings)
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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<Settings>
|
||||
|
@ -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<Settings>
|
||||
|
@ -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<Settings>
|
||||
|
@ -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<Settings>
|
||||
|
@ -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<Settings>
|
||||
|
@ -84,7 +84,7 @@ export const fromZebedeeInvoice = applySpec<Invoice>({
|
||||
pipe(prop('createdAt'), toDate),
|
||||
always(null),
|
||||
),
|
||||
rawRespose: toJSON,
|
||||
rawResponse: toJSON,
|
||||
})
|
||||
|
||||
export const fromNodelessInvoice = applySpec<Invoice>({
|
||||
|
@ -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')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -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
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user