@cocreate/file-server 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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.4.1](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.4.0...v1.4.1) (2023-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * hostNotFound response ([c97ea45](https://github.com/CoCreate-app/CoCreate-file-server/commit/c97ea4511e1275aacbe71bb08d4f4efed2b290a4))
7
+
1
8
  # [1.4.0](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.3.0...v1.4.0) (2023-05-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file-server",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A simple file-server component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "file-server",
package/src/index.js CHANGED
@@ -56,7 +56,7 @@ class CoCreateFileSystem {
56
56
  })
57
57
 
58
58
  if (!org || !org.document || !org.document[0]) {
59
- hostNotFound = hostNotFound || 'Organization cannot be found using the host: ' + hostname + ' in platformDB: ' + process.env.organization_id
59
+ hostNotFound = hostNotFound || 'An organization could not be found using the host: ' + hostname + ' in platformDB: ' + process.env.organization_id
60
60
  return res.end(hostNotFound);
61
61
  } else {
62
62
  organization = { _id: org.document[0]._id }