skapi-js 1.0.14 → 1.0.15

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
@@ -22,7 +22,7 @@ export default class Skapi {
22
22
  set user(value) {
23
23
  }
24
24
  constructor(service, owner, options) {
25
- this.version = '1.0.14';
25
+ this.version = '1.0.15';
26
26
  this.session = null;
27
27
  this.connection = null;
28
28
  this.host = 'skapi';
@@ -368,8 +368,8 @@ export async function signup(form, option) {
368
368
  if (admin_creating_account) {
369
369
  params.owner = this.__user.user_id;
370
370
  }
371
- else {
372
- if (!is_admin && params.access_group) {
371
+ else if (!is_admin) {
372
+ if (params.access_group) {
373
373
  throw new SkapiError('Only admins can set "access_group" parameter.', { code: 'INVALID_PARAMETER' });
374
374
  }
375
375
  await this.logout();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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",