@cocreate/file-server 1.12.0 → 1.12.2

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,19 @@
1
+ ## [1.12.2](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.12.1...v1.12.2) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * favicon.ico path ([c043a19](https://github.com/CoCreate-app/CoCreate-file-server/commit/c043a195998d3f19c1836acdf45ec195995e6c3d))
7
+ * update dependencies to the lates versions ([e0d056a](https://github.com/CoCreate-app/CoCreate-file-server/commit/e0d056a766fd5d7e92509ee104780d20190501ae))
8
+ * update method to use object.update etc ([6aa9f1b](https://github.com/CoCreate-app/CoCreate-file-server/commit/6aa9f1b3e9d27b0b2b709ef854505d4c09a26076))
9
+
10
+ ## [1.12.1](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.12.0...v1.12.1) (2023-10-25)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bump dependencies ([306cd2a](https://github.com/CoCreate-app/CoCreate-file-server/commit/306cd2a4dc252202e9beecec8ffb3d0f1d4abb0f))
16
+
1
17
  # [1.12.0](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.11.4...v1.12.0) (2023-10-22)
2
18
 
3
19
 
package/demo/index.html CHANGED
@@ -6,9 +6,9 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
  <link
8
8
  rel="icon"
9
- href="https://cdn.cocreate.app/favicon.ico"
10
- type="image/ico"
11
- sizes="16x16" />
9
+ type="image/png"
10
+ sizes="32x32"
11
+ href="../assets/favicon.ico" />
12
12
  <title>file-server | CoCreateJS</title>
13
13
  </head>
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/file-server",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
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
@@ -37,7 +37,7 @@ class CoCreateFileSystem {
37
37
  let organization = organizations.get(hostname);
38
38
  if (!organization) {
39
39
  let org = await crud.send({
40
- method: 'read.object',
40
+ method: 'object.read',
41
41
  array: 'organizations',
42
42
  $filter: {
43
43
  query: [
@@ -86,7 +86,7 @@ class CoCreateFileSystem {
86
86
  }
87
87
 
88
88
  let data = {
89
- method: 'read.object',
89
+ method: 'object.read',
90
90
  array: 'files',
91
91
  $filter: {
92
92
  query: [
@@ -120,7 +120,7 @@ class CoCreateFileSystem {
120
120
  src = file['src'];
121
121
  else {
122
122
  let fileSrc = await crud.send({
123
- method: 'read.object',
123
+ method: 'object.read',
124
124
  array: file['array'],
125
125
  object: {
126
126
  _id: file._id
@@ -207,7 +207,7 @@ class CoCreateFileSystem {
207
207
  }
208
208
 
209
209
  crud.send({
210
- method: 'create.object',
210
+ method: 'object.create',
211
211
  array: 'files',
212
212
  object: defaultFile.object[0],
213
213
  organization_id