multicloud_rule_manager 1.0.46 → 1.0.48

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.
@@ -48,14 +48,14 @@ export default {
48
48
 
49
49
  // --- POST API ---
50
50
  try {
51
- const resp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules`, {
51
+ const resp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules/${guid}`, {
52
52
  method: "PATCH",
53
53
  headers: {
54
54
  "Authorization": `Bearer ${accessToken}`,
55
55
  "Content-Type": "application/json"
56
56
  },
57
57
  body: JSON.stringify({
58
- guid,
58
+
59
59
  dsl_internal: content
60
60
  })
61
61
  });
@@ -1,10 +1,5 @@
1
1
  import fs from "fs";
2
2
  import { getAlias } from "../utils/aliasManager.js";
3
- import path from "path";
4
-
5
- const pkgPath = path.resolve(new URL('../package.json', import.meta.url));
6
- const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
7
-
8
3
 
9
4
  export default {
10
5
  command: "retrieve <alias> [output]",
@@ -14,7 +9,6 @@ export default {
14
9
  },
15
10
  handler: async (argv) => {
16
11
  try {
17
- console.log(`📦 Versione pacchetto: ${pkg.name} v${pkg.version}`);
18
12
  console.log("🔹 Retrieve in corso..");
19
13
  console.log("🔹 Recupero credenziali per alias:", argv.alias);
20
14
  const cred = getAlias(argv.alias);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",