@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.
@@ -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) {
@@ -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 (VoConfig_1.default.get.BASE_URL === "") {
14
- throw new Error("VoApp is not configured properly. You need to initiate it with VoApp.configure() method.");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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.
@@ -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
- throw new Error(
13
- "VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
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`;