sehawq.db 4.0.3 → 4.0.5

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.
package/src/version.js CHANGED
@@ -1,38 +1,38 @@
1
- /**
2
- * SehawqDB Version Information
3
- *
4
- * Because knowing your version is kinda important 😅
5
- */
6
-
7
- const packageJson = require('../package.json');
8
-
9
- module.exports = {
10
- version: packageJson.version,
11
- name: packageJson.name,
12
- description: packageJson.description,
13
- author: packageJson.author,
14
- license: packageJson.license,
15
-
16
- getVersion() {
17
- return this.version;
18
- },
19
-
20
- getInfo() {
21
- return {
22
- name: this.name,
23
- version: this.version,
24
- description: this.description,
25
- author: this.author,
26
- license: this.license
27
- };
28
- },
29
-
30
- // Compatibility check
31
- isCompatibleWith(version) {
32
- const current = this.version.split('.').map(Number);
33
- const target = version.split('.').map(Number);
34
-
35
- // Major version must match, minor can be equal or higher
36
- return current[0] === target[0] && current[1] >= target[1];
37
- }
1
+ /**
2
+ * SehawqDB Version Information
3
+ *
4
+ * Because knowing your version is kinda important 😅
5
+ */
6
+
7
+ const packageJson = require('../package.json');
8
+
9
+ module.exports = {
10
+ version: packageJson.version,
11
+ name: packageJson.name,
12
+ description: packageJson.description,
13
+ author: packageJson.author,
14
+ license: packageJson.license,
15
+
16
+ getVersion() {
17
+ return this.version;
18
+ },
19
+
20
+ getInfo() {
21
+ return {
22
+ name: this.name,
23
+ version: this.version,
24
+ description: this.description,
25
+ author: this.author,
26
+ license: this.license
27
+ };
28
+ },
29
+
30
+ // Compatibility check
31
+ isCompatibleWith(version) {
32
+ const current = this.version.split('.').map(Number);
33
+ const target = version.split('.').map(Number);
34
+
35
+ // Major version must match, minor can be equal or higher
36
+ return current[0] === target[0] && current[1] >= target[1];
37
+ }
38
38
  };