@growy/strapi-plugin-encrypted-field 1.4.0 → 1.4.1

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.
@@ -28,6 +28,8 @@ const Input = (props) => {
28
28
  });
29
29
  };
30
30
 
31
+ const label = intlLabel?.id ? formatMessage(intlLabel) : (intlLabel || name);
32
+
31
33
  return (
32
34
  <Field.Root
33
35
  name={name}
@@ -37,7 +39,7 @@ const Input = (props) => {
37
39
  required={required}
38
40
  >
39
41
  <Field.Label action={labelAction}>
40
- {intlLabel?.id ? formatMessage(intlLabel) : intlLabel}
42
+ {label}
41
43
  </Field.Label>
42
44
  <Field.Input
43
45
  type="text"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growy/strapi-plugin-encrypted-field",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Campo personalizado de texto cifrado para Strapi",
5
5
  "strapi": {
6
6
  "name": "encrypted-field",
@@ -64,6 +64,7 @@ module.exports = ({ strapi }) => {
64
64
  if (Object.prototype.hasOwnProperty.call(result, key)) {
65
65
  const value = result[key];
66
66
  if (typeof value === 'string' && value) {
67
+ strapi.log.info(`Descifrando campo ${key} en ${event.model.uid}`);
67
68
  result[key] = decrypt(value, strapi);
68
69
  }
69
70
  }