codebuff 1.0.534 → 1.0.535
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/index.js +3 -4
- package/package.json +1 -1
- package/postinstall.js +1 -1
package/index.js
CHANGED
|
@@ -114,21 +114,20 @@ function getCurrentVersion() {
|
|
|
114
114
|
if (!fs.existsSync(CONFIG.binaryPath)) return null
|
|
115
115
|
|
|
116
116
|
try {
|
|
117
|
-
return new Promise((resolve
|
|
117
|
+
return new Promise((resolve) => {
|
|
118
118
|
const child = spawn(CONFIG.binaryPath, ['--version'], {
|
|
119
119
|
cwd: os.homedir(),
|
|
120
120
|
stdio: 'pipe',
|
|
121
121
|
})
|
|
122
122
|
|
|
123
123
|
let output = ''
|
|
124
|
-
let errorOutput = ''
|
|
125
124
|
|
|
126
125
|
child.stdout.on('data', (data) => {
|
|
127
126
|
output += data.toString()
|
|
128
127
|
})
|
|
129
128
|
|
|
130
|
-
child.stderr.on('data', (
|
|
131
|
-
|
|
129
|
+
child.stderr.on('data', () => {
|
|
130
|
+
// Ignore stderr output
|
|
132
131
|
})
|
|
133
132
|
|
|
134
133
|
const timeout = setTimeout(() => {
|
package/package.json
CHANGED