@adaptivestone/framework 4.3.0 → 4.3.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ ### 4.3.1
2
+
3
+ [UPDATE] Yup file validator update. As formidable now return all fields as an array
4
+
1
5
  ### 4.3.0
2
6
 
3
- [BREAKING] updated formidable with a new version + tests. Marked as breaking because of a new major version, but this is internal of framework and exernal still the same. Shoukd break nothing
7
+ [BREAKING] updated formidable with a new version + tests. Marked as breaking because of a new major version, but this is internal of framework and exernal still the same. Should break nothing
4
8
 
5
9
  ### 4.2.0
6
10
 
package/helpers/yup.js CHANGED
@@ -13,7 +13,8 @@ class YupFile extends Schema {
13
13
  constructor() {
14
14
  super({
15
15
  type: 'file',
16
- check: (value) => value instanceof formidable.PersistentFile,
16
+ check: (value) =>
17
+ value.every((item) => item instanceof formidable.PersistentFile),
17
18
  });
18
19
  }
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptivestone/framework",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Adaptive stone node js framework",
5
5
  "main": "index.js",
6
6
  "engines": {