diff --git a/config/env/common.js b/config/env/common.js index 49540d1..a015072 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -17,7 +17,7 @@ const ipfsCoordName = process.env.COORD_NAME export default { // Configure TCP port. - port: process.env.PORT || 5001, + port: process.env.PORT || 5020, // Password for HTML UI that displays logs. logPass: 'test', diff --git a/package-lock.json b/package-lock.json index 354d30a..4558ce0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "axios": "0.27.2", "bcryptjs": "2.4.3", "glob": "7.1.6", - "ipfs-coord-esm": "9.1.1", + "ipfs-coord-esm": "9.1.2", "ipfs-http-client": "58.0.0", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", @@ -29,7 +29,7 @@ "koa-static": "5.0.0", "koa2-ratelimit": "0.9.1", "line-reader": "0.4.0", - "minimal-slp-wallet": "5.0.3", + "minimal-slp-wallet": "5.1.0", "mongoose": "5.13.14", "node-fetch": "npm:@achingbrain/node-fetch@2.6.7", "nodemailer": "6.7.5", @@ -6072,9 +6072,9 @@ } }, "node_modules/ipfs-coord-esm": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/ipfs-coord-esm/-/ipfs-coord-esm-9.1.1.tgz", - "integrity": "sha512-hDU5lTxGizVWSZDXGJZbEMjIjAwurk4S357k/kWPYuUgSdNsGy0IRlHQxUEDaHaxjTgAs1QYFIbwhhaUY+Pwvg==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/ipfs-coord-esm/-/ipfs-coord-esm-9.1.2.tgz", + "integrity": "sha512-tZZMtBS7TTatDJD2gWdu9EOPt5E2kxwSRr5GMeRKRPnP4z1Z4QTpP94nmDhcDDABpdD4IseVQjcwUED5fd+IgQ==", "dependencies": { "bch-encrypt-lib": "2.0.0", "uuid": "9.0.0" @@ -7978,9 +7978,9 @@ } }, "node_modules/minimal-slp-wallet": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-5.0.3.tgz", - "integrity": "sha512-tB2H0udGovM5TDUQIGqnpABnAh3fZafYFv1QLXUqKlSpLYxkI1GaKVzAuq5VdRu6GlIpKggN057AL02KTooNQg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-5.1.0.tgz", + "integrity": "sha512-ZOzvWKowVN32KUC9AGIIM8wLzG/fycmoat28aNfEy2mDrHonmQeyrRcLXv1B1cLYS/Gbe5q0kaRalQmgpyPf7A==", "dependencies": { "@psf/bch-js": "6.4.5", "apidoc": "0.51.0", @@ -19425,9 +19425,9 @@ "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==" }, "ipfs-coord-esm": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/ipfs-coord-esm/-/ipfs-coord-esm-9.1.1.tgz", - "integrity": "sha512-hDU5lTxGizVWSZDXGJZbEMjIjAwurk4S357k/kWPYuUgSdNsGy0IRlHQxUEDaHaxjTgAs1QYFIbwhhaUY+Pwvg==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/ipfs-coord-esm/-/ipfs-coord-esm-9.1.2.tgz", + "integrity": "sha512-tZZMtBS7TTatDJD2gWdu9EOPt5E2kxwSRr5GMeRKRPnP4z1Z4QTpP94nmDhcDDABpdD4IseVQjcwUED5fd+IgQ==", "requires": { "bch-encrypt-lib": "2.0.0", "uuid": "9.0.0" @@ -20917,9 +20917,9 @@ "dev": true }, "minimal-slp-wallet": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-5.0.3.tgz", - "integrity": "sha512-tB2H0udGovM5TDUQIGqnpABnAh3fZafYFv1QLXUqKlSpLYxkI1GaKVzAuq5VdRu6GlIpKggN057AL02KTooNQg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimal-slp-wallet/-/minimal-slp-wallet-5.1.0.tgz", + "integrity": "sha512-ZOzvWKowVN32KUC9AGIIM8wLzG/fycmoat28aNfEy2mDrHonmQeyrRcLXv1B1cLYS/Gbe5q0kaRalQmgpyPf7A==", "requires": { "@psf/bch-js": "6.4.5", "apidoc": "0.51.0", diff --git a/package.json b/package.json index e4746a9..d7892cc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "axios": "0.27.2", "bcryptjs": "2.4.3", "glob": "7.1.6", - "ipfs-coord-esm": "9.1.1", + "ipfs-coord-esm": "9.1.2", "ipfs-http-client": "58.0.0", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", @@ -44,7 +44,7 @@ "koa-static": "5.0.0", "koa2-ratelimit": "0.9.1", "line-reader": "0.4.0", - "minimal-slp-wallet": "5.0.3", + "minimal-slp-wallet": "5.1.0", "mongoose": "5.13.14", "node-fetch": "npm:@achingbrain/node-fetch@2.6.7", "nodemailer": "6.7.5", diff --git a/test/unit/misc/config.js b/test/unit/misc/config.js new file mode 100644 index 0000000..7c5c597 --- /dev/null +++ b/test/unit/misc/config.js @@ -0,0 +1,22 @@ +/* + Unit tests for the config directory +*/ + +let currentEnv + +describe('#config', () => { + before(() => { + // Backup the current environment setting. + currentEnv = process.env.SVC_ENV + }) + + after(() => { + // Restore the environment setting before starting these tests. + process.env.SVC_ENV = currentEnv + }) + + it('Should return development environment config', () => { + // import config from '../../../config/index.js' + // console.log('config: ', config) + }) +})