rsibot-utils 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/db.js +1 -1
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/db.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
  const { DB_USER, DB_PASSWORD } = require('./config');
3
- const { write } = require('./index');
3
+ const { write } = require('./index.js');
4
4
 
5
5
  mongoose.Promise = global.Promise;
6
6
  const { Schema } = mongoose;
package/index.js CHANGED
@@ -3,11 +3,13 @@ const path = require('path');
3
3
  const util = require('util');
4
4
  const exec = util.promisify(require('child_process').exec);
5
5
  const dbUtils = require('./db')
6
+ const config = require('./config')
6
7
  const cname = process.env.CNAME;
7
8
  const LOGS_PATH = cname?`${cname}_logs.txt`:"commander_logs.txt";
8
9
 
9
10
  module.exports = {
10
11
  ...dbUtils,
12
+ ...config,
11
13
  sortByPercent: function (a, b) {
12
14
  return b.percentChange - a.percentChange;
13
15
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsibot-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {