ingeniuscliq-core 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2130,8 +2130,22 @@ class Rv {
2130
2130
  getComponents: () => n().components,
2131
2131
  getStyles: () => n().styles,
2132
2132
  getSettings: () => n().settings,
2133
- fetchTemplate: async () => (await this.customizationService.fetchTemplate()).data.data,
2134
- fetchSettings: async () => (await this.customizationService.fetchSettings()).data.data.configuration,
2133
+ fetchTemplate: async () => {
2134
+ try {
2135
+ const r = await this.customizationService.fetchTemplate();
2136
+ return t({ template: r.data.data.template, styles: r.data.data.styles }), r.data.data;
2137
+ } catch (r) {
2138
+ throw t({ error: r }), r;
2139
+ }
2140
+ },
2141
+ fetchSettings: async () => {
2142
+ try {
2143
+ const r = await this.customizationService.fetchSettings();
2144
+ return t({ settings: r.data.data.configuration }), r.data.data.configuration;
2145
+ } catch (r) {
2146
+ throw t({ error: r }), r;
2147
+ }
2148
+ },
2135
2149
  setTemplate: (r) => t({ template: r }),
2136
2150
  setComponents: (r) => t({ components: r }),
2137
2151
  setStyles: (r) => t({ styles: r }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",