multicloud_rule_manager 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,9 +12,9 @@ export function saveAlias(alias, creds) {
12
12
  storage[alias] = {
13
13
  clientId: CryptoJS.AES.encrypt(creds.clientId, secretKey).toString(),
14
14
  clientSecret: CryptoJS.AES.encrypt(creds.clientSecret, secretKey).toString(),
15
- username: CryptoJS.AES.encrypt(creds.username, secretKey).toString(),
16
15
  password: CryptoJS.AES.encrypt(creds.password, secretKey).toString(),
17
- realm: CryptoJS.AES.encrypt(creds.realm, secretKey).toString()
16
+ username: creds.username,
17
+ realm: creds.realm
18
18
  };
19
19
 
20
20
  fs.writeFileSync(storagePath, JSON.stringify(storage, null, 2));
@@ -31,8 +31,8 @@ export function getAlias(alias) {
31
31
  return {
32
32
  clientId: decrypt(storage[alias].clientId),
33
33
  clientSecret: decrypt(storage[alias].clientSecret),
34
- username: decrypt(storage[alias].username),
34
+ username: storage[alias].username,
35
35
  password: decrypt(storage[alias].password),
36
- realm: decrypt(storage[alias].realm)
36
+ realm: storage[alias].realm
37
37
  };
38
38
  }