Comparing version 1.0.113 to 1.0.114
@@ -28,3 +28,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
constructor(service, owner, options, __etc) { | ||
this.version = '1.0.113'; | ||
this.version = '1.0.114'; | ||
this.session = null; | ||
@@ -111,3 +111,3 @@ this.connection = null; | ||
this.owner = owner; | ||
let autoLogin = false; | ||
let autoLogin = true; | ||
if (options) { | ||
@@ -217,6 +217,15 @@ if (typeof options.autoLogin === 'boolean') { | ||
async updateConnection() { | ||
this.connection = await request.bind(this)('service', { | ||
service: this.service, | ||
owner: this.owner | ||
}, { bypassAwaitConnection: true, method: 'get' }); | ||
try { | ||
this.connection = await request.bind(this)('service', { | ||
service: this.service, | ||
owner: this.owner | ||
}, { bypassAwaitConnection: true, method: 'get' }); | ||
} | ||
catch (err) { | ||
if (window) { | ||
window.alert('Service is not available: ' + (err.message || err.toString())); | ||
} | ||
this.connection = null; | ||
throw err; | ||
} | ||
return this.connection; | ||
@@ -223,0 +232,0 @@ } |
{ | ||
"name": "skapi-js", | ||
"version": "1.0.113", | ||
"version": "1.0.114", | ||
"description": "Skapi: Backend API for HTML frontend.", | ||
@@ -5,0 +5,0 @@ "main": "dist/skapi.module.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2041914
6448