@instadapp/interop-x 0.0.0-dev.285d847 → 0.0.0-dev.38887dd
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/dist/package.json
CHANGED
package/dist/src/index.js
CHANGED
@@ -38,7 +38,7 @@ if (process.argv.at(-1) === 'help') {
|
|
38
38
|
process.exit(0);
|
39
39
|
}
|
40
40
|
if (process.argv.at(-1) === 'version') {
|
41
|
-
console.log(`Interop X Node (v${package_json_1.default.version} - rev.
|
41
|
+
console.log(`Interop X Node (v${package_json_1.default.version} - rev.38887dd)`);
|
42
42
|
process.exit(0);
|
43
43
|
}
|
44
44
|
if (!process.env.PRIVATE_KEY) {
|
@@ -18,7 +18,7 @@ class AutoUpdateTask extends BaseTask_1.BaseTask {
|
|
18
18
|
this.pollIntervalMs = 60 * 1000;
|
19
19
|
}
|
20
20
|
prePollHandler() {
|
21
|
-
return config_1.default.autoUpdate
|
21
|
+
return config_1.default.autoUpdate;
|
22
22
|
}
|
23
23
|
async pollHandler() {
|
24
24
|
const { data } = await utils_1.http.get('https://registry.npmjs.org/@instadapp/interop-x');
|
@@ -31,13 +31,7 @@ class AutoUpdateTask extends BaseTask_1.BaseTask {
|
|
31
31
|
update.on("close", () => {
|
32
32
|
this.logger.warn(`Installed version ${version}`);
|
33
33
|
this.logger.warn(`Restarting...`);
|
34
|
-
|
35
|
-
cwd: process.cwd(),
|
36
|
-
env: Object.create(process.env),
|
37
|
-
detached: true,
|
38
|
-
stdio: "inherit"
|
39
|
-
});
|
40
|
-
process.exit();
|
34
|
+
process.exit(0);
|
41
35
|
});
|
42
36
|
}
|
43
37
|
}
|
package/package.json
CHANGED
@@ -17,7 +17,7 @@ class AutoUpdateTask extends BaseTask {
|
|
17
17
|
|
18
18
|
|
19
19
|
prePollHandler(): boolean {
|
20
|
-
return config.autoUpdate
|
20
|
+
return config.autoUpdate;
|
21
21
|
}
|
22
22
|
|
23
23
|
async pollHandler() {
|
@@ -38,15 +38,7 @@ class AutoUpdateTask extends BaseTask {
|
|
38
38
|
update.on("close", () => {
|
39
39
|
this.logger.warn(`Installed version ${version}`)
|
40
40
|
this.logger.warn(`Restarting...`)
|
41
|
-
|
42
|
-
spawn(process.argv[0], process.argv.slice(1), {
|
43
|
-
cwd: process.cwd(),
|
44
|
-
env: Object.create(process.env),
|
45
|
-
detached: true,
|
46
|
-
stdio: "inherit"
|
47
|
-
});
|
48
|
-
|
49
|
-
process.exit()
|
41
|
+
process.exit(0)
|
50
42
|
})
|
51
43
|
}
|
52
44
|
}
|