@cocreate/socket-server 1.13.1 → 1.13.3

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,18 @@
1
+ ## [1.13.3](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.2...v1.13.3) (2023-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([a62ae11](https://github.com/CoCreate-app/CoCreate-socket-server/commit/a62ae119398771c088e82b7c20911c5ebaa9d12e))
7
+
8
+ ## [1.13.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.1...v1.13.2) (2023-06-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * renamed db to storage ([4766428](https://github.com/CoCreate-app/CoCreate-socket-server/commit/4766428c38e542282c301c457420dd3405a78206))
14
+ * renamed hosts to host. the value can be a string or an array of strings ([3c60a40](https://github.com/CoCreate-app/CoCreate-socket-server/commit/3c60a40d48dfd9b3343dfa738bb290cc47fb4766))
15
+
1
16
  ## [1.13.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.13.0...v1.13.1) (2023-06-10)
2
17
 
3
18
 
@@ -10,7 +10,7 @@ module.exports = {
10
10
  "name": "index.html",
11
11
  "path": "/docs/socket-server/index.html",
12
12
  "src": "{{./docs/index.html}}",
13
- "hosts": [
13
+ "host": [
14
14
  "*",
15
15
  "general.cocreate.app"
16
16
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/socket-server",
3
- "version": "1.13.1",
3
+ "version": "1.13.3",
4
4
  "description": "CoCreate-socket-server",
5
5
  "keywords": [
6
6
  "cocreate-socket",
@@ -40,10 +40,10 @@
40
40
  },
41
41
  "homepage": "https://cocreate.app/docs/CoCreate-socket-server",
42
42
  "devDependencies": {
43
- "@cocreate/cli": "^1.29.3"
43
+ "@cocreate/cli": "^1.33.0"
44
44
  },
45
45
  "dependencies": {
46
- "@cocreate/uuid": "^1.4.16",
46
+ "@cocreate/uuid": "^1.4.17",
47
47
  "ws": "7.5.9"
48
48
  }
49
49
  }
package/src/index.js CHANGED
@@ -134,7 +134,7 @@ class SocketServer extends EventEmitter {
134
134
  if (this.authorize) {
135
135
  data.host = this.getHost(req)
136
136
  const permission = await this.authorize.check(action, data, user_id)
137
- if (permission.dbUrl === false) {
137
+ if (permission.storage === false) {
138
138
  data.database = process.env.organization_id
139
139
  data.organization_id = process.env.organization_id
140
140