@cocreate/file 1.5.3 → 1.6.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,3 +1,17 @@
1
+ ## [1.6.1](https://github.com/CoCreate-app/CoCreate-file/compare/v1.6.0...v1.6.1) (2023-08-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * if directories or source is undefined ([daa2a3a](https://github.com/CoCreate-app/CoCreate-file/commit/daa2a3a86eaabf4838bb20e69e2d1413b04eebf4))
7
+
8
+ # [1.6.0](https://github.com/CoCreate-app/CoCreate-file/compare/v1.5.3...v1.6.0) (2023-08-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * Update cocreate dependencies for the latest features and bug fixes ([2aab571](https://github.com/CoCreate-app/CoCreate-file/commit/2aab571f45cb35ef84a2df219c2a129299c918bd))
14
+
1
15
  ## [1.5.3](https://github.com/CoCreate-app/CoCreate-file/compare/v1.5.2...v1.5.3) (2023-08-21)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file",
3
- "version": "1.5.3",
3
+ "version": "1.6.1",
4
4
  "description": "A headless file uploader that uses HTML5 attributes for customization. Allows easy upload of files to server.",
5
5
  "keywords": [
6
6
  "file",
@@ -59,9 +59,9 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/actions": "^1.9.0",
63
- "@cocreate/config": "^1.2.0",
64
- "@cocreate/render": "^1.25.0",
65
- "@cocreate/utils": "^1.22.0"
62
+ "@cocreate/actions": "^1.10.2",
63
+ "@cocreate/config": "^1.4.0",
64
+ "@cocreate/render": "^1.26.1",
65
+ "@cocreate/utils": "^1.23.1"
66
66
  }
67
67
  }
package/src/server.js CHANGED
@@ -78,7 +78,9 @@ const mimeTypes = {
78
78
  }
79
79
 
80
80
  module.exports = async function file(CoCreateConfig, configPath) {
81
- let { directories, sources } = CoCreateConfig;
81
+ let directories = CoCreateConfig.directories
82
+ let sources = CoCreateConfig.sources
83
+
82
84
  let config = await Config({
83
85
  organization_id: {
84
86
  prompt: 'Enter your organization_id: '