cja-phoenix 1.2.56 → 1.2.57

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
3
  "configKey": "cja-phoenix",
4
- "version": "1.2.56",
4
+ "version": "1.2.57",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -90,7 +90,7 @@ const file = (messages, options) => {
90
90
  validation = validation.test(
91
91
  "fileSize",
92
92
  messages.size,
93
- (v) => v?.file && options.size?.collectionType ? v.file?.size < byteSize[options.size?.collectionType] * options.size.value : true
93
+ (v) => v?.file && Object.keys(v.file).length != 0 && options.size?.collectionType ? v.file.size < byteSize[options.size?.collectionType] * options.size.value : true
94
94
  );
95
95
  }
96
96
  return validation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "Phoenix utility",
5
5
  "repository": {
6
6
  "type": "git",