multicloud_rule_manager 1.0.7 → 1.0.8

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.
@@ -34,13 +34,13 @@ export default {
34
34
  let loginData;
35
35
  try {
36
36
  loginData = JSON.parse(loginText);
37
- console.log("🔹 Token JSON parsed:", loginData);
37
+ var access_token = loginData.access_token;
38
+ if (!access_token) throw new Error("Token non ricevuto nel campo 'access'");
38
39
  } catch (err) {
39
40
  throw new Error(`Token JSON parsing failed: ${err.message}`);
40
41
  }
41
42
 
42
- const { access_token } = loginData;
43
- if (!access_token) throw new Error("Token non ricevuto");
43
+
44
44
 
45
45
  // --- SECONDA CHIAMATA: retrieve ---
46
46
  console.log("🔹 Inizio richiesta dati API...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",