simply-xp 1.3.5-beta-1 → 1.3.5-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -4
  2. package/src/connect.js +4 -2
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "simply-xp",
3
- "version": "1.3.5-beta-1",
3
+ "version": "1.3.5-beta-2",
4
4
  "description": "A Simple, Easy and Beginner Friendly XP System",
5
5
  "main": "simplyxp.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "beta": "npm publish --tag beta"
9
10
  },
10
11
  "author": "Rahuletto",
11
12
  "keywords": [
@@ -40,8 +41,8 @@
40
41
  },
41
42
  "dependencies": {
42
43
  "@napi-rs/canvas": "^0.1.30",
43
- "chart.js": "^3.9.1",
44
- "mongoose": "^6.6.5"
44
+ "chart.js": "^4.1.1",
45
+ "mongoose": "^6.8.1"
45
46
  },
46
47
  "peerDependencies": {
47
48
  "discord.js": ">=13.12.0"
package/src/connect.js CHANGED
@@ -7,14 +7,16 @@ const mongoose = require('mongoose')
7
7
 
8
8
  async function connect(db, options = []) {
9
9
  if (!db) throw new Error('[XP] Database URL was not provided')
10
-
10
+ mongoose.set('strictQuery', true);
11
+
11
12
  mongoose.connect(db, {
12
13
  useNewUrlParser: true,
13
14
  useUnifiedTopology: true
14
15
  })
15
16
 
17
+
16
18
  if (options.notify === false) return
17
19
  else return console.log('{ XP } Database Connected')
18
20
  }
19
21
 
20
- module.exports = connect
22
+ module.exports = connect