ravejs 1.0.0 → 1.0.1
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 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.MD
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Work In Progress
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.
|
|
1
|
+
export declare const VERSION = "1.0.1";
|
|
2
2
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const child_process_1 = require("child_process");
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
console.log(`\x1b[34mVisit our community:\x1b[32m https://t.me/aminodorks\x1b[0m`);
|
|
6
|
-
(0, child_process_1.exec)('npm view
|
|
6
|
+
(0, child_process_1.exec)('npm view ravejs version', (error, stdout, stderr) => {
|
|
7
7
|
if (error) {
|
|
8
|
-
console.error(`Error retrieving npm package version for
|
|
8
|
+
console.error(`Error retrieving npm package version for ravejs: ${stderr.trim()}`);
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
const installedVersion = stdout.trim();
|
|
12
12
|
if (installedVersion !== constants_1.VERSION) {
|
|
13
|
-
console.log(`\x1b[33mYou're using outdated version.
|
|
13
|
+
console.log(`\x1b[33mYou're using outdated version. ravejs v${installedVersion} is available.\x1b[0m`);
|
|
14
14
|
}
|
|
15
15
|
});
|