@cocreate/api 1.2.32 → 1.2.33
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 +7 -0
- package/CoCreate.config.js +1 -1
- package/demo/index.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/server.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.2.33](https://github.com/CoCreate-app/CoCreate-api/compare/v1.2.32...v1.2.33) (2022-05-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update config organization_Id to organization_id ([da12a15](https://github.com/CoCreate-app/CoCreate-api/commit/da12a15f26ec015d1bfdd45ff3ff43cd8433427a))
|
|
7
|
+
|
|
1
8
|
## [1.2.32](https://github.com/CoCreate-app/CoCreate-api/compare/v1.2.31...v1.2.32) (2022-03-06)
|
|
2
9
|
|
|
3
10
|
|
package/CoCreate.config.js
CHANGED
package/demo/index.html
CHANGED
package/docs/index.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
<pre><code class="language-javascript">
|
|
103
103
|
var config = {
|
|
104
104
|
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
|
|
105
|
-
|
|
105
|
+
organization_id: '5de0387b12e200ea63204d6c',
|
|
106
106
|
host: 'localhost:8081'
|
|
107
107
|
}
|
|
108
108
|
</code></pre>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.33",
|
|
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/client.js
CHANGED
|
@@ -154,7 +154,7 @@ const CoCreateApi = {
|
|
|
154
154
|
getCommonParams: function(info) {
|
|
155
155
|
return {
|
|
156
156
|
"apiKey": info.apiKey || config.apiKey,
|
|
157
|
-
"organization_id": info.organization_id || config.
|
|
157
|
+
"organization_id": info.organization_id || config.organization_id,
|
|
158
158
|
"host": info.host || config.host
|
|
159
159
|
};
|
|
160
160
|
}
|
package/src/server.js
CHANGED
|
@@ -46,14 +46,14 @@ var api = ( ()=> {
|
|
|
46
46
|
var socket_config = {
|
|
47
47
|
"config": {
|
|
48
48
|
"apiKey": config["config"]["apiKey"],
|
|
49
|
-
"
|
|
49
|
+
"organization_id": config["config"]["organization_id"],
|
|
50
50
|
},
|
|
51
51
|
"prefix": "ws",
|
|
52
52
|
"host": "server.cocreate.app:8088"
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
socket.create({
|
|
56
|
-
namespace: socket_config.config.
|
|
56
|
+
namespace: socket_config.config.organization_id,
|
|
57
57
|
room: null,
|
|
58
58
|
host: socket_config.host
|
|
59
59
|
})
|
|
@@ -80,7 +80,7 @@ var api = ( ()=> {
|
|
|
80
80
|
var socket_config = {
|
|
81
81
|
"config": {
|
|
82
82
|
"apiKey": org["apiKey"],
|
|
83
|
-
"
|
|
83
|
+
"organization_id": org["_id"].toString(),
|
|
84
84
|
},
|
|
85
85
|
"prefix": "ws",
|
|
86
86
|
"host": "server.cocreate.app:8088"
|
|
@@ -88,7 +88,7 @@ var api = ( ()=> {
|
|
|
88
88
|
|
|
89
89
|
//other connection
|
|
90
90
|
socket.create({
|
|
91
|
-
namespace: socket_config.config.
|
|
91
|
+
namespace: socket_config.config.organization_id,
|
|
92
92
|
room: null,
|
|
93
93
|
host: socket_config.host
|
|
94
94
|
})
|