@aift/antigravity 1.0.1 → 1.0.3
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 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import fs from 'fs';
|
|
|
7
7
|
import path from 'path';
|
|
8
8
|
|
|
9
9
|
const program = new Command();
|
|
10
|
-
const API_URL = 'https://
|
|
10
|
+
const API_URL = 'https://bmycrqkprypainwocgnl.supabase.co/functions/v1/pull-skill';
|
|
11
11
|
|
|
12
12
|
program
|
|
13
13
|
.name('antigravity')
|
|
@@ -31,9 +31,9 @@ program
|
|
|
31
31
|
throw new Error(`Erreur serveur (${response.status})`);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const content = await response.text();
|
|
35
35
|
|
|
36
|
-
if (!content) {
|
|
36
|
+
if (!content || content.trim() === '') {
|
|
37
37
|
throw new Error('Le contenu du skill est vide.');
|
|
38
38
|
}
|
|
39
39
|
|