diff options
| author | Adam Soltys <[email protected]> | 2022-09-03 07:56:55 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-03 07:56:55 -0700 |
| commit | a5080abb26a1dbb65c6d0889d30ad58f2098dae7 (patch) | |
| tree | cb14dcca8365218fc913c0ce9241b8fe7d214199 | |
| parent | 981321e3722af3aba217aeddfba3843615085ec7 (diff) | |
| download | coinos-server-a5080abb26a1dbb65c6d0889d30ad58f2098dae7.tar.gz coinos-server-a5080abb26a1dbb65c6d0889d30ad58f2098dae7.zip | |
es6 migration
| -rw-r--r-- | app.js | 4 | ||||
| -rw-r--r-- | index.js | 6 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | pnpm-lock.yaml | 11 | ||||
| -rw-r--r-- | routes/assets.js | 1 |
5 files changed, 11 insertions, 13 deletions
@@ -1,2 +1,4 @@ import fastify from "fastify"; -export default fastify(); +import pino from "pino"; + +export default fastify({ logger: pino(), disableRequestLogging: true }); @@ -11,9 +11,9 @@ import "./lib/register.js"; import "./lib/upload.js"; import "./lib/send.js"; import "./lib/sync.js"; -// import "./routes/assets.js"; -// import "./routes/info.js"; -// import "./routes/users.js"; +import "./routes/assets.js"; +import "./routes/info.js"; +import "./routes/users.js"; // if (config.bitcoin) store.networks.push("bitcoin"); // if (config.liquid) store.networks.push("liquid"); // if (config.lna) store.networks.push("lightning"); diff --git a/package.json b/package.json index a8d4b455..d72602a0 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "passport": "0.4.0", "passport-jwt": "^4.0.0", "passport-local": "1.0.0", - "pino": "^6.13.2", + "pino": "8", "pino-pretty": "^7.0.0", "pm2": "^5.2.0", "postmark": "^3.0.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58c03459..147da67d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,7 @@ specifiers: passport: 0.4.0 passport-jwt: ^4.0.0 passport-local: 1.0.0 - pino: ^6.13.2 + pino: '8' pino-pretty: ^7.0.0 pm2: ^5.2.0 postmark: ^3.0.11 @@ -107,7 +107,7 @@ dependencies: passport: 0.4.0 passport-jwt: 4.0.0 passport-local: 1.0.0 - pino: 6.13.3 + pino: 8.4.2 pino-pretty: 7.0.1 pm2: 5.2.0 postmark: 3.0.11 @@ -2193,11 +2193,6 @@ packages: resolution: {integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=} dev: false - /fast-redact/3.0.2: - resolution: {integrity: sha512-YN+CYfCVRVMUZOUPeinHNKgytM1wPI/C/UCLEi56EsY2dwwvI00kIJHJoI7pMVqGoMew8SMZ2SSfHKHULHXDsg==} - engines: {node: '>=6'} - dev: false - /fast-redact/3.1.2: resolution: {integrity: sha512-+0em+Iya9fKGfEQGcd62Yv6onjBmmhV1uh86XVfOU8VwAe6kaFdQCWI9s0/Nnugx5Vd9tdbZ7e6gE2tR9dzXdw==} engines: {node: '>=6'} @@ -4122,7 +4117,7 @@ packages: resolution: {integrity: sha512-tJy6qVgkh9MwNgqX1/oYi3ehfl2Y9H0uHyEEMsBe74KinESIjdMrMQDWpcZPpPicg3VV35d/GLQZmo4QgU2Xkg==} hasBin: true dependencies: - fast-redact: 3.0.2 + fast-redact: 3.1.2 fast-safe-stringify: 2.1.1 fastify-warning: 0.2.0 flatstr: 1.0.12 diff --git a/routes/assets.js b/routes/assets.js index 320c2f3b..baf915e7 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -30,6 +30,7 @@ let fetchAssets; app.get( "/assets", async (req, res) => { + throw new Error("BOOM"); if (store.assets) { const accounts = await db.Account.findAll({ // group: ["asset"] |
