@cocreate/file 1.3.9 → 1.3.11

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.3.11](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.10...v1.3.11) (2023-06-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([5fff8c2](https://github.com/CoCreate-app/CoCreate-file/commit/5fff8c278a0b1da78417c075216b950bfb80f180))
7
+
8
+ ## [1.3.10](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.9...v1.3.10) (2023-06-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Refactor repositories object in newConfig to only include necessary keys ([9cc2559](https://github.com/CoCreate-app/CoCreate-file/commit/9cc2559f0dadec0bf1f6b9f45599435644631ca9))
14
+
1
15
  ## [1.3.9](https://github.com/CoCreate-app/CoCreate-file/compare/v1.3.8...v1.3.9) (2023-06-15)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
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",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@cocreate/actions": "^1.8.32",
63
- "@cocreate/config": "^1.0.8",
63
+ "@cocreate/config": "^1.1.0",
64
64
  "@cocreate/render": "^1.24.32",
65
65
  "@cocreate/utils": "^1.21.16"
66
66
  }
package/src/server.js CHANGED
@@ -410,6 +410,14 @@ module.exports = async function file(CoCreateConfig) {
410
410
 
411
411
  newConfig.sources = sources
412
412
 
413
+ newConfig.repositories.forEach(obj => {
414
+ for (const key in obj) {
415
+ if (!["path", "repo", "exclude"].includes(key)) {
416
+ delete obj[key];
417
+ }
418
+ }
419
+ });
420
+
413
421
  delete newConfig.url
414
422
  delete newConfig.broadcast
415
423
  const write_str = `module.exports = ${JSON.stringify(newConfig, null, 4)};`;