@cocreate/api 1.10.8 → 1.10.9
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 +8 -0
- package/CoCreate.config.js +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/server.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.10.9](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.8...v1.10.9) (2023-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* apikey renamed to key ([81bdb4b](https://github.com/CoCreate-app/CoCreate-api/commit/81bdb4bf945c1c9e74440264659b0024cebe3898))
|
|
7
|
+
* apikey renamed to key ([2a2f48b](https://github.com/CoCreate-app/CoCreate-api/commit/2a2f48bf165f59f1e699a9a51155c0afae99ca34))
|
|
8
|
+
|
|
1
9
|
## [1.10.8](https://github.com/CoCreate-app/CoCreate-api/compare/v1.10.7...v1.10.8) (2023-05-06)
|
|
2
10
|
|
|
3
11
|
|
package/CoCreate.config.js
CHANGED
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.10.9",
|
|
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",
|
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
|
-
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
"
|
|
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
|
-
|
|
96
|
+
key: org["key"],
|
|
97
97
|
organization_id: org["_id"],
|
|
98
98
|
document: {
|
|
99
99
|
_id: org["_id"]
|