@vocollege/app 0.0.95 → 0.0.96
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/modules/VoAuth.js
CHANGED
|
@@ -307,9 +307,9 @@ var VoAuth = /** @class */ (function (_super) {
|
|
|
307
307
|
var _this = this;
|
|
308
308
|
if (forceRedirect === void 0) { forceRedirect = false; }
|
|
309
309
|
if (forceLoad === void 0) { forceLoad = false; }
|
|
310
|
-
console.log("VoAuth.check() 1");
|
|
310
|
+
console.log("VoAuth.check() 1 -");
|
|
311
311
|
this.checkConfig();
|
|
312
|
-
console.log("VoAuth.check() 2");
|
|
312
|
+
console.log("VoAuth.check() 2 -");
|
|
313
313
|
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
314
314
|
var currentCookies, cookieName, token, error_3;
|
|
315
315
|
return __generator(this, function (_a) {
|
package/dist/modules/VoBase.js
CHANGED
|
@@ -10,9 +10,11 @@ var VoBase = /** @class */ (function () {
|
|
|
10
10
|
}
|
|
11
11
|
VoBase.prototype.checkConfig = function () {
|
|
12
12
|
console.log("VoBase.checkConfig() VoConfig.get", VoConfig_1.default.get);
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// if (VoConfig.get.BASE_URL === "") {
|
|
14
|
+
// throw new Error(
|
|
15
|
+
// "VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
|
16
|
+
// );
|
|
17
|
+
// }
|
|
16
18
|
};
|
|
17
19
|
Object.defineProperty(VoBase.prototype, "getUrl", {
|
|
18
20
|
get: function () {
|
package/package.json
CHANGED
package/src/modules/VoAuth.ts
CHANGED
|
@@ -206,11 +206,11 @@ class VoAuth extends VoBase {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
check(forceRedirect = false, forceLoad = false): Promise<any> {
|
|
209
|
-
console.log("VoAuth.check() 1");
|
|
209
|
+
console.log("VoAuth.check() 1 -");
|
|
210
210
|
|
|
211
211
|
this.checkConfig();
|
|
212
212
|
|
|
213
|
-
console.log("VoAuth.check() 2");
|
|
213
|
+
console.log("VoAuth.check() 2 -");
|
|
214
214
|
|
|
215
215
|
return new Promise(async (resolve, reject) => {
|
|
216
216
|
// VC-231 | Clear up unnecessary cookies.
|
package/src/modules/VoBase.ts
CHANGED
|
@@ -8,11 +8,11 @@ class VoBase {
|
|
|
8
8
|
checkConfig() {
|
|
9
9
|
console.log("VoBase.checkConfig() VoConfig.get", VoConfig.get);
|
|
10
10
|
|
|
11
|
-
if (VoConfig.get.BASE_URL === "") {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
11
|
+
// if (VoConfig.get.BASE_URL === "") {
|
|
12
|
+
// throw new Error(
|
|
13
|
+
// "VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
|
14
|
+
// );
|
|
15
|
+
// }
|
|
16
16
|
}
|
|
17
17
|
get getUrl() {
|
|
18
18
|
let envKey = `${this.configKey.toUpperCase()}_BASE_URL`;
|