wormclaude 1.0.36 → 1.0.37
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/auth.js +5 -2
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -98,8 +98,11 @@ export async function checkForUpdate(current) {
|
|
|
98
98
|
export function runUpdate() {
|
|
99
99
|
return new Promise((resolve) => {
|
|
100
100
|
process.stdout.write('WormClaude güncelleniyor...\n');
|
|
101
|
-
|
|
102
|
-
const
|
|
101
|
+
// Windows + Node ≥20: `.cmd`/`.bat` spawn'ı shell:true gerektirir (yoksa EINVAL).
|
|
102
|
+
const win = process.platform === 'win32';
|
|
103
|
+
const cmd = win ? 'npm install -g wormclaude@latest' : 'npm';
|
|
104
|
+
const args = win ? [] : ['install', '-g', 'wormclaude@latest'];
|
|
105
|
+
const child = spawn(cmd, args, { stdio: 'inherit', shell: true });
|
|
103
106
|
child.on('error', (e) => { process.stderr.write('Güncellenemedi: ' + (e?.message || e) + '\n'); resolve(); });
|
|
104
107
|
child.on('exit', () => resolve());
|
|
105
108
|
});
|
package/dist/theme.js
CHANGED