Skip to content

Commit b28f7a0

Browse files
committed
Use clightning-client from the NPM registry
This was previously only published as a forked github repo, now available as a package too.
1 parent 4e9a291 commit b28f7a0

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
lines changed

npm-shrinkwrap.json

+32-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"@babel/polyfill": "^7.4.4",
3535
"basic-auth": "^2.0.1",
3636
"body-parser": "^1.19.0",
37+
"clightning-client": "^0.1.0",
3738
"compression": "^1.7.4",
3839
"cookie-parser": "^1.4.4",
3940
"express": "^4.17.1",
4041
"helmet": "^3.18.0",
4142
"ini": "^1.3.5",
4243
"is-ip": "^3.1.0",
43-
"lightning-client": "github:shesek/lightning-client-js#ccb565d889803bce65a1a0e42d3948332a7fcdac",
4444
"meow": "^5.0.0",
4545
"mkdirp": "^0.5.1",
4646
"morgan": "^1.9.1",

src/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(async function() { // IIFE
22
const app = require('express')()
3-
, ln = require('lightning-client')(process.env.LN_PATH)
3+
, ln = require('clightning-client')(process.env.LN_PATH)
44
, cmd = require('./cmd')(ln)
55

66
// Test connection

src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if (!process.env.NO_COOKIE_FILE && !process.env.COOKIE_FILE)
7878
process.env.COOKIE_FILE = path.join(os.homedir(), '.spark-wallet', 'cookie')
7979

8080
process.env.NODE_ENV || (process.env.NODE_ENV = 'production')
81-
process.env.VERBOSE && (process.env.DEBUG = `lightning-client,spark,superagent,${process.env.DEBUG||''}`)
81+
process.env.VERBOSE && (process.env.DEBUG = `clightning-client,spark,superagent,${process.env.DEBUG||''}`)
8282
process.env.ONION_PATH && (process.env.ONION = true) // --onion-path implies --onion
8383
process.env.ONION_NONANONYMOUS && (process.env.ONION = true) // --onion-nonanonymous implies --onion
8484
process.env.PAIRING_QR && (process.env.PRINT_QR = true) // --pairing-qr implies --print-qr

src/stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LightningClient from 'lightning-client'
1+
import LightningClient from 'clightning-client'
22
import EventEmitter from 'events'
33
import { fetchRate } from './exchange-rate'
44

0 commit comments

Comments
 (0)