multicloud_rule_manager 1.0.29 → 1.0.30

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.
@@ -1,6 +1,6 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
- import fetch from "node:fetch"; // fetch nativo Node 18+
3
+
4
4
 
5
5
  // --- token già recuperato ---
6
6
  console.log("🔹 Recupero credenziali per alias:", argv.alias);
@@ -1,4 +1,3 @@
1
-
2
1
  import fs from "fs";
3
2
  import { getAlias } from "../utils/aliasManager.js";
4
3
 
@@ -41,7 +40,7 @@ export default {
41
40
  // --- SECONDA CHIAMATA: retrieve ---
42
41
  console.log("🔹 Inizio richiesta dati API...");
43
42
  const apiResp = await fetch(
44
- "https://eon-dev-01.bit2win.cloud/api/data/v1/rules",
43
+ `https://${cred.realm}.cloud/api/data/v1/rules`,
45
44
  {
46
45
  method: "GET",
47
46
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",