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/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.18-alpha';
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.app';
31
- this.target_cdn = 'd1wrj5ymxrt2ir';
30
+ this.hostDomain = 'skapi.com';
31
+ this.target_cdn = 'd3e9syvbtso631';
32
32
  this.__disabledAccount = null;
33
33
  this.__cached_requests = {};
34
34
  this.__startKeyHistory = {};
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "1.0.18-alpha",
3
+ "version": "1.0.19",
4
4
  "description": "Javascript library for Skapi: Complete JAM Stack, front-end driven serverless backend API service.",
5
5
  "main": "./dist/skapi.module.js",
6
6
  "types": "./js/Main.d.ts",