@vocollege/app 0.0.83 → 0.0.84
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/VoBase.js
CHANGED
|
@@ -9,14 +9,8 @@ var VoBase = /** @class */ (function () {
|
|
|
9
9
|
this.configKey = key;
|
|
10
10
|
}
|
|
11
11
|
VoBase.prototype.checkConfig = function () {
|
|
12
|
-
console.log("checkConfig");
|
|
13
|
-
console.log("VoConfig.get.BASE_URL", VoConfig_1.default.get.BASE_URL);
|
|
14
|
-
console.log("test", VoConfig_1.default.get.BASE_URL === "");
|
|
15
12
|
if (VoConfig_1.default.get.BASE_URL === "") {
|
|
16
|
-
|
|
17
|
-
// throw new Error(
|
|
18
|
-
// "VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
|
19
|
-
// );
|
|
13
|
+
throw new Error("VoApp is not configured properly. You need to initiate it with VoApp.configure() method.");
|
|
20
14
|
}
|
|
21
15
|
};
|
|
22
16
|
Object.defineProperty(VoBase.prototype, "getUrl", {
|
package/dist/modules/VoConfig.js
CHANGED
|
@@ -56,7 +56,6 @@ var VoConfig = /** @class */ (function () {
|
|
|
56
56
|
}
|
|
57
57
|
VoConfig.prototype.setConfig = function (config) {
|
|
58
58
|
this.config = __assign(__assign({}, this.config), config);
|
|
59
|
-
console.log("this.config", this.config);
|
|
60
59
|
};
|
|
61
60
|
Object.defineProperty(VoConfig.prototype, "get", {
|
|
62
61
|
get: function () {
|
package/package.json
CHANGED
package/src/modules/VoBase.ts
CHANGED
|
@@ -6,16 +6,10 @@ class VoBase {
|
|
|
6
6
|
this.configKey = key;
|
|
7
7
|
}
|
|
8
8
|
checkConfig() {
|
|
9
|
-
console.log("checkConfig");
|
|
10
|
-
console.log("VoConfig.get.BASE_URL", VoConfig.get.BASE_URL);
|
|
11
|
-
console.log("test", VoConfig.get.BASE_URL === "");
|
|
12
|
-
|
|
13
9
|
if (VoConfig.get.BASE_URL === "") {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// "VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
|
18
|
-
// );
|
|
10
|
+
throw new Error(
|
|
11
|
+
"VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
|
12
|
+
);
|
|
19
13
|
}
|
|
20
14
|
}
|
|
21
15
|
get getUrl() {
|