slicejs-cli 1.0.32 → 1.0.34

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/client.js CHANGED
@@ -52,6 +52,7 @@ sliceClient
52
52
  .action((componentName, options) => {
53
53
  const { Category } = options;
54
54
  deleteComponent(componentName, Category);
55
+ listComponents();
55
56
  });
56
57
 
57
58
  // Comando para listar todos los componentes
@@ -9,10 +9,10 @@ export default class Validations{
9
9
 
10
10
  static isValidCategory(category){
11
11
  const categoryVariations = {
12
- 'Service': ['service', 'servicio', 'serv'],
13
- 'Visual': ['visual', 'vis'],
14
- 'Provider': ['provider', 'proveedor', 'prov'],
15
- 'Structural': ['structural', 'estructural', 'est']
12
+ 'Service': ['service', 'servicio', 'serv', 's'],
13
+ 'Visual': ['visual', 'vis', 'v'],
14
+ 'Provider': ['provider', 'proveedor', 'prov' , 'p'],
15
+ 'Structural': ['structural', 'estructural', 'est', 'st']
16
16
  };
17
17
 
18
18
  let categoryIsValid = false;
@@ -26,5 +26,5 @@ export default class Validations{
26
26
  return ({isValid: categoryIsValid, category: category})
27
27
  }
28
28
 
29
-
29
+
30
30
  }
@@ -1,7 +1,6 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import Validations from '../Validations.js';
4
- import formatComponentCode from '../format.js';
5
4
  const __dirname = path.dirname(new URL(import.meta.url).pathname);
6
5
 
7
6
 
@@ -64,7 +63,6 @@ function modifyComponent(componentName, category, addProperties, removePropertie
64
63
  });
65
64
 
66
65
  componentContent = updateComponentProps(componentContent, existingProperties);
67
- componentContent = formatComponentCode(componentContent);
68
66
  fs.writeFileSync(componentPath, componentContent);
69
67
  console.log(`Component '${componentName}' modified successfully.`);
70
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Command client for developing web applications with Slice.js",
5
5
  "main": "client.js",
6
6
  "scripts": {