Skip to content

Commit 53ca96d

Browse files
authored
Merge pull request #58 from lightninglabs/main
[Releases] v0.1.11-alpha.1
2 parents 38fad04 + 6a59ac8 commit 53ca96d

File tree

12 files changed

+93
-23
lines changed

12 files changed

+93
-23
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Use Node.js
9+
uses: actions/setup-node@v3
10+
with:
11+
node-version: '12.x'
12+
- run: npm ci
13+
- run: npm run build

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint
2+
on: [push]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Use Node.js
9+
uses: actions/setup-node@v3
10+
with:
11+
node-version: '12.x'
12+
- run: npm ci
13+
- run: npm run lint

.github/workflows/prettier.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Prettier
2+
on: [push]
3+
jobs:
4+
prettier:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Use Node.js
9+
uses: actions/setup-node@v3
10+
with:
11+
node-version: '12.x'
12+
- run: npm ci
13+
- run: npm run prettier

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.github/**
2+
demos/**
3+
dist/**
4+
lib/types/**
5+
lib/wasm_exec.js
6+
package-lock.json
7+
package.json
8+
README.md
9+
test/**
10+
tsconfig.json
11+
tslint.json
12+
webpack.config.js

demos/connect-demo/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/connect-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@lightninglabs/lnc-web": "^0.0.1-alpha.rc2",
6+
"@lightninglabs/lnc-web": "0.1.11-alpha",
77
"@testing-library/jest-dom": "^5.16.4",
88
"@testing-library/react": "^13.3.0",
99
"@testing-library/user-event": "^13.5.0",

demos/kitchen-sink/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/kitchen-sink/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"dependencies": {
6-
"@lightninglabs/lnc-web": "^0.0.1-alpha.rc2",
6+
"@lightninglabs/lnc-web": "0.1.11-alpha",
77
"@testing-library/jest-dom": "5.16.2",
88
"@testing-library/react": "12.1.3",
99
"@testing-library/user-event": "13.5.0",

lib/lnc.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export default class LNC {
203203
} else if (counter > 20) {
204204
clearInterval(interval);
205205
reject(
206-
'Failed to connect the WASM client to the proxy server'
206+
new Error(
207+
'Failed to connect the WASM client to the proxy server'
208+
)
207209
);
208210
}
209211
}, 500);
@@ -231,7 +233,7 @@ export default class LNC {
231233
log.info('The WASM client is ready');
232234
} else if (counter > 20) {
233235
clearInterval(interval);
234-
reject('Failed to load the WASM client');
236+
reject(new Error('Failed to load the WASM client'));
235237
}
236238
}, 500);
237239
});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)