@onedevil405/baileys 1.7.4 → 1.7.9
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/README.md +1 -1
- package/lib/index.js +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -14,10 +14,9 @@ import { createRequire } from 'module';
|
|
|
14
14
|
import chalk from 'chalk';
|
|
15
15
|
const require = createRequire(import.meta.url);
|
|
16
16
|
|
|
17
|
-
// --- NPM Update Check im Kasten ---
|
|
18
17
|
(() => {
|
|
19
18
|
try {
|
|
20
|
-
const pkg = require('../package.json');
|
|
19
|
+
const pkg = require('../package.json');
|
|
21
20
|
const localVersion = pkg.version;
|
|
22
21
|
const packageName = pkg.name;
|
|
23
22
|
|
|
@@ -33,9 +32,9 @@ const require = createRequire(import.meta.url);
|
|
|
33
32
|
let message;
|
|
34
33
|
|
|
35
34
|
if (latestVersion !== localVersion) {
|
|
36
|
-
message = `UPDATE AVAILABLE!
|
|
35
|
+
message = `[NPM_PACKAGE_SERVICE] UPDATE AVAILABLE! Aktuelle Version: ${localVersion}, Neueste Version: ${latestVersion}`;
|
|
37
36
|
} else {
|
|
38
|
-
message = `Du nutzt die aktuelle Version: ${localVersion}`;
|
|
37
|
+
message = `[NPM_PACKAGE_SERVICE] Du nutzt die aktuelle Version: ${localVersion}`;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
const paddedMsg = message.padStart((width + message.length)/2).padEnd(width);
|