@cocreate/api 1.10.8 → 1.10.10

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.10.10](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.9...v1.10.10) (2023-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. ([c5518b9](https://github.com/CoCreate-app/CoCreate-api/commit/c5518b90158d6db6bc9aa351fececd91184cd340))
7
+
8
+ ## [1.10.9](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.8...v1.10.9) (2023-05-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * apikey renamed to key ([81bdb4b](https://github.com/CoCreate-app/CoCreate-api/commit/81bdb4bf945c1c9e74440264659b0024cebe3898))
14
+ * apikey renamed to key ([2a2f48b](https://github.com/CoCreate-app/CoCreate-api/commit/2a2f48bf165f59f1e699a9a51155c0afae99ca34))
15
+
1
16
  ## [1.10.8](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.7...v1.10.8) (2023-05-06)
2
17
 
3
18
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
3
  "organization_id": "5ff747727005da1c272740ab",
4
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
+ "key": "2061acef-0451-4545-f754-60cf8160",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
  "sources": [
package/docs/index.html CHANGED
@@ -102,7 +102,7 @@
102
102
  In order to the client to use the local server, it should be set as follows.
103
103
  <pre><code class="language-javascript">
104
104
  var CoCreateConfig = {
105
- apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
105
+ key: '2061acef-0451-4545-f754-60cf8160',
106
106
  organization_id: '5ff747727005da1c272740ab',
107
107
  host: 'localhost:8081'
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/api",
3
- "version": "1.10.8",
3
+ "version": "1.10.10",
4
4
  "description": "A simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. CoCreate-api includes the client component and server side for api processing. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. ",
5
5
  "keywords": [
6
6
  "thirdparty-api-intergration",
@@ -60,13 +60,13 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/actions": "^1.8.8",
64
- "@cocreate/crud-client": "^1.20.4",
65
- "@cocreate/docs": "^1.7.8",
66
- "@cocreate/element-prototype": "^1.8.7",
67
- "@cocreate/hosting": "^1.10.0",
68
- "@cocreate/render": "^1.24.8",
69
- "@cocreate/socket-client": "^1.20.3",
70
- "@cocreate/utils": "^1.20.6"
63
+ "@cocreate/actions": "^1.8.10",
64
+ "@cocreate/crud-client": "^1.21.1",
65
+ "@cocreate/docs": "^1.7.10",
66
+ "@cocreate/element-prototype": "^1.8.10",
67
+ "@cocreate/hosting": "^1.10.2",
68
+ "@cocreate/render": "^1.24.10",
69
+ "@cocreate/socket-client": "^1.23.1",
70
+ "@cocreate/utils": "^1.20.8"
71
71
  }
72
72
  }
package/src/server.js CHANGED
@@ -28,7 +28,7 @@ var api = ( ()=> {
28
28
 
29
29
  let org = await crud.readDocument({
30
30
  collection: "organizations",
31
- apiKey: config["apiKey"],
31
+ key: config["key"],
32
32
  organization_id: config["organization_id"],
33
33
  document: {
34
34
  _id: config["organization_id"]
@@ -47,7 +47,7 @@ var api = ( ()=> {
47
47
  getOrgInRoutesbyHostname : async (config, hostname) => {
48
48
  var socket_config = {
49
49
  "config": {
50
- "apiKey": config["config"]["apiKey"],
50
+ "key": config["config"]["key"],
51
51
  "organization_id": config["config"]["organization_id"],
52
52
  },
53
53
  "prefix": "ws",
@@ -69,7 +69,7 @@ var api = ( ()=> {
69
69
  value: [hostname]
70
70
  }],
71
71
  },
72
- apiKey: config["config"]["apiKey"],
72
+ key: config["config"]["key"],
73
73
  organization_id: config["config"]["organization_id"]
74
74
  });
75
75
 
@@ -77,7 +77,7 @@ var api = ( ()=> {
77
77
 
78
78
  var socket_config = {
79
79
  "config": {
80
- "apiKey": org["apiKey"],
80
+ "key": org["key"],
81
81
  "organization_id": org["_id"].toString(),
82
82
  },
83
83
  "prefix": "ws",
@@ -93,7 +93,7 @@ var api = ( ()=> {
93
93
 
94
94
  let myOrg = await crud.readDocument({
95
95
  collection: "organizations",
96
- apiKey: org["apiKey"],
96
+ key: org["key"],
97
97
  organization_id: org["_id"],
98
98
  document: {
99
99
  _id: org["_id"]