multicloud_rule_manager 1.0.9 → 1.0.11

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.
@@ -44,13 +44,14 @@ export default {
44
44
 
45
45
  // --- SECONDA CHIAMATA: retrieve ---
46
46
  console.log("🔹 Inizio richiesta dati API...");
47
- const apiResp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules/`, {
48
- method: "GET",
49
- headers: {
50
- Authorization: `Bearer ${access_token}`,
51
- Accept: "application/json"
52
- }
53
- });
47
+ const apiResp = await fetch(`https://eon-dev-01.bit2win.cloud/api/data/v1/rules/`, { // usa dominio fisso
48
+ method: "GET",
49
+ headers: {
50
+ Authorization: `Bearer ${access_token}`,
51
+ Accept: "application/json"
52
+ },
53
+ redirect: "manual" // evita follow automatico dei redirect
54
+ });
54
55
 
55
56
  console.log("🔹 API status:", apiResp.status);
56
57
  const apiText = await apiResp.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",