skapi-js 1.0.42 → 1.0.44

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,7 +23,7 @@ export default class Skapi {
23
23
  set user(value) {
24
24
  }
25
25
  constructor(service, owner, options, __etc) {
26
- this.version = '1.0.42';
26
+ this.version = '1.0.44';
27
27
  this.session = null;
28
28
  this.connection = null;
29
29
  this.host = 'skapi';
@@ -97,7 +97,7 @@ export default class Skapi {
97
97
  }
98
98
  this.service = service;
99
99
  this.owner = owner;
100
- let autoLogin = typeof options?.autoLogin === 'boolean' ? options.autoLogin : true;
100
+ let autoLogin = !!options?.autoLogin;
101
101
  this.target_cdn = __etc?.target_cdn || this.target_cdn;
102
102
  this.hostDomain = __etc?.hostDomain || this.hostDomain;
103
103
  const cdn_domain = `https://${this.target_cdn}.cloudfront.net`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Skapi: Backend API Library for HTML frontend.",
5
5
  "main": "./dist/skapi.module.js",
6
6
  "types": "./js/Main.d.ts",