chore: bump deps

This commit is contained in:
apotdevin 2021-07-04 19:32:38 +02:00
parent 79e5ef1da0
commit 8e5f161f98
No known key found for this signature in database
GPG key ID: 4403F1DFBE779457
6 changed files with 2015 additions and 2379 deletions

4
.husky/commit-msg Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit $1

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run lint-staged

View file

@ -473,27 +473,3 @@ To get ThunderHub running with docker follow these steps:
2. `docker run --rm -it -p 3000:3000/tcp apotdevin/thunderhub:v0.5.5`
You can now go to `localhost:3000` to see your running instance of ThunderHub
## SSL Certificates
Thunderhub has the ability to automatically provision SSL certificates for itself via [ZeroSSL](https://zerossl.com). In order to use this, you must configure the `SSL Config` section of the [`.env`](.env) file. To options are as follows:
- `PUBLIC_URL` is the publicly reachable URL that Thunderhub would be servered from.
- `SSL_PORT` is the port the Certificate Validation server will run on. This _must_ either be running on port `80` or you must proxy this port to port `80` with something like Nginx.
- `SSL_SAVE` specifies whether you want Thunderhub to save the generate SSL private key and certificate to disk or not.
You must also specify your ZeroSSL API key either in the [`.env`](.env) file or export it as an environment variable:
```
$ export ZEROSSL_API_KEY="a1b2c3d4e5f6g7h8i9"
```
Once you have Thunderhub configured you can start the secure server with:
```
$ npm run start:secure
```
This will request a certificate from ZeroSSL for the given `PUBLIC_URL` and serve the HTTP challenge via the Certificate Validation server. Once the certificate is verified and issued, Thunderhub downloads the certificate and shuts down the Certificate Validation server. Then it will bring up the Thunerhub web server and use the newly provisioned SSL certificates.

1
next-env.d.ts vendored
View file

@ -1,2 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

4281
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,6 +12,7 @@
"start:cookie": "sh ./scripts/initCookie.sh",
"start:secure": "node server/utils/secure-server.js",
"lint": "eslint . --ext ts --ext tsx --ext js",
"lint-staged": "lint-staged",
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
"release": "standard-version",
"release:test": "standard-version --dry-run",
@ -28,7 +29,8 @@
"build:all": "sh ./scripts/buildAllImages.sh",
"upgrade-latest": "npx npm-check -u",
"tsc": "tsc",
"update": "sh ./scripts/updateToLatest.sh"
"update": "sh ./scripts/updateToLatest.sh",
"prepare": "husky install"
},
"keywords": [],
"author": "",
@ -36,17 +38,17 @@
"dependencies": {
"@apollo/client": "^3.3.20",
"@emotion/babel-plugin": "^11.3.0",
"@visx/axis": "^1.12.0",
"@visx/axis": "^1.16.0",
"@visx/chord": "^1.7.0",
"@visx/curve": "^1.7.0",
"@visx/event": "^1.7.0",
"@visx/group": "^1.7.0",
"@visx/responsive": "^1.10.1",
"@visx/scale": "^1.11.1",
"@visx/shape": "^1.11.1",
"@visx/scale": "^1.14.0",
"@visx/shape": "^1.16.0",
"@visx/tooltip": "^1.7.2",
"apollo-server-micro": "^2.25.1",
"balanceofsatoshis": "^10.1.0",
"apollo-server-micro": "^2.25.2",
"balanceofsatoshis": "^10.5.1",
"bcryptjs": "^2.4.3",
"bech32": "^2.0.0",
"bip32": "^2.0.6",
@ -65,9 +67,9 @@
"js-cookie": "^2.2.1",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^8.5.1",
"ln-service": "^51.8.4",
"ln-service": "^51.8.5",
"lodash": "^4.17.21",
"next": "^11.0.0",
"next": "^11.0.1",
"node-fetch": "^2.6.1",
"numeral": "^2.0.6",
"qrcode.react": "^1.0.1",
@ -86,7 +88,7 @@
"react-toastify": "^7.0.4",
"react-tooltip": "^4.2.21",
"secp256k1": "^4.0.2",
"socks-proxy-agent": "^5.0.0",
"socks-proxy-agent": "^6.0.0",
"styled-components": "^5.3.0",
"styled-react-modal": "^2.1.0",
"styled-theming": "^2.2.0",
@ -98,16 +100,16 @@
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@graphql-codegen/add": "^2.0.2",
"@graphql-codegen/cli": "^1.21.5",
"@graphql-codegen/cli": "^1.21.6",
"@graphql-codegen/fragment-matcher": "^2.0.1",
"@graphql-codegen/introspection": "^1.18.2",
"@graphql-codegen/near-operation-file-preset": "^1.18.2",
"@graphql-codegen/typescript": "^1.22.2",
"@graphql-codegen/typescript-operations": "^1.18.1",
"@graphql-codegen/typescript-react-apollo": "^2.2.6",
"@graphql-codegen/typescript-resolvers": "^1.19.3",
"@graphql-codegen/near-operation-file-preset": "^1.18.4",
"@graphql-codegen/typescript": "^1.22.4",
"@graphql-codegen/typescript-operations": "^1.18.3",
"@graphql-codegen/typescript-react-apollo": "^2.3.0",
"@graphql-codegen/typescript-resolvers": "^1.19.5",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/react": "^12.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/cookie": "^0.4.0",
"@types/crypto-js": "^4.0.1",
@ -116,35 +118,34 @@
"@types/graphql-iso-date": "^3.4.0",
"@types/js-cookie": "^2.2.6",
"@types/js-yaml": "^4.0.1",
"@types/jsonwebtoken": "^8.5.2",
"@types/node": "^15.12.4",
"@types/jsonwebtoken": "^8.5.3",
"@types/node": "^16.0.0",
"@types/node-fetch": "^2.5.10",
"@types/numeral": "^2.0.1",
"@types/qrcode.react": "^1.0.1",
"@types/react": "^17.0.11",
"@types/react": "^17.0.13",
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-grid-layout": "^1.1.1",
"@types/react-qr-reader": "^2.1.3",
"@types/react-select": "^4.0.15",
"@types/react-select": "^4.0.16",
"@types/react-slider": "^1.3.0",
"@types/react-table": "^7.7.1",
"@types/secp256k1": "^4.0.2",
"@types/styled-components": "^5.1.10",
"@types/styled-react-modal": "^1.2.0",
"@types/styled-components": "^5.1.11",
"@types/styled-react-modal": "^1.2.1",
"@types/styled-theming": "^2.2.5",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"apollo-server": "^2.25.1",
"apollo-server-testing": "^2.25.1",
"babel-jest": "^27.0.2",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"apollo-server": "^2.25.2",
"apollo-server-testing": "^2.25.2",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.2",
"babel-plugin-inline-react-svg": "^2.0.1",
"babel-plugin-styled-components": "^1.12.0",
"babel-plugin-styled-components": "^1.13.1",
"babel-preset-react-app": "^10.0.0",
"devmoji": "^2.3.0",
"eslint": "^7.29.0",
"eslint-config-next": "^11.0.0",
"eslint": "^7.30.0",
"eslint-config-next": "^11.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
@ -152,20 +153,13 @@
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^6.0.0",
"jest": "^27.0.4",
"husky": "^7.0.0",
"jest": "^27.0.6",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^11.0.0",
"prettier": "^2.3.1",
"prettier": "^2.3.2",
"standard-version": "^9.3.0",
"typescript": "^4.3.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "devmoji -e",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
"typescript": "^4.3.5"
},
"lint-staged": {
"*.+(ts|tsx)": [