skapi-js 1.0.18-alpha → 1.0.19
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/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +3 -3
- package/js/methods/realtime.js +2 -2
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
|
@@ -23,12 +23,12 @@ export default class Skapi {
|
|
|
23
23
|
set user(value) {
|
|
24
24
|
}
|
|
25
25
|
constructor(service, owner, options) {
|
|
26
|
-
this.version = '1.0.
|
|
26
|
+
this.version = '1.0.19';
|
|
27
27
|
this.session = null;
|
|
28
28
|
this.connection = null;
|
|
29
29
|
this.host = 'skapi';
|
|
30
|
-
this.hostDomain = 'skapi.
|
|
31
|
-
this.target_cdn = '
|
|
30
|
+
this.hostDomain = 'skapi.com';
|
|
31
|
+
this.target_cdn = 'd3e9syvbtso631';
|
|
32
32
|
this.__disabledAccount = null;
|
|
33
33
|
this.__cached_requests = {};
|
|
34
34
|
this.__startKeyHistory = {};
|
package/js/methods/realtime.js
CHANGED
|
@@ -147,13 +147,13 @@ export async function getRealtimeUsers(params, fetchOptions) {
|
|
|
147
147
|
if (!params.group) {
|
|
148
148
|
throw new SkapiError(`"group" is required.`, { code: 'INVALID_PARAMETER' });
|
|
149
149
|
}
|
|
150
|
-
let res = request.bind(this)('get-ws-group', params, {
|
|
150
|
+
let res = await request.bind(this)('get-ws-group', params, {
|
|
151
151
|
fetchOptions,
|
|
152
152
|
auth: true,
|
|
153
153
|
method: 'post'
|
|
154
154
|
});
|
|
155
155
|
for (let i = 0; i < res.list.length; i++) {
|
|
156
|
-
res[i] = res[i].uid.split('#')[1];
|
|
156
|
+
res.list[i] = res.list[i].uid.split('#')[1];
|
|
157
157
|
}
|
|
158
158
|
return res;
|
|
159
159
|
}
|
package/package.json
CHANGED