diff --git a/dist/smartenv.objectstorage.js b/dist/smartenv.objectstorage.js
index 3ee4df9..63bfa65 100644
--- a/dist/smartenv.objectstorage.js
+++ b/dist/smartenv.objectstorage.js
@@ -1,22 +1,21 @@
///
var plugins = require("./smartenv.plugins");
-var beautylog = require("beautylog");
exports.obs = {
add: function (paramNameArg, objectArg) {
if (paramNameArg === void 0) { paramNameArg = "undefined"; }
if (objectArg === void 0) { objectArg = "undefined"; }
if (paramNameArg == "undefined") {
- beautylog.error("paramName is undefined");
+ console.log("paramName is undefined");
return;
}
if (objectArg == "undefined") {
- beautylog.error("objectArg is undefined");
+ console.log("objectArg is undefined");
}
if (typeof exports.obsItems[paramNameArg] === "undefined") {
exports.obsItems[paramNameArg] = objectArg;
}
else {
- beautylog.error("object is already present, so add operation has failed.");
+ console.log("object is already present, so add operation has failed.");
}
return exports.obsItems[paramNameArg];
},
@@ -28,7 +27,7 @@ exports.obs = {
exports.obsItems[paramNameArg] = plugins._.assign(exports.obsItems[paramNameArg], objectArg);
}
else {
- beautylog.error("object is not present, so there is nothing to merge");
+ console.log("object is not present, so there is nothing to merge");
}
},
get: function (keyName) {
@@ -44,4 +43,4 @@ exports.obs = {
};
exports.obsItems = {};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZW52Lm9iamVjdHN0b3JhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDO0FBQzFDLElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFDL0MsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQzFCLFdBQUcsR0FBTztJQUNqQixHQUFHLEVBQUUsVUFBUyxZQUEwQixFQUFDLFNBQXVCO1FBQWxELDRCQUEwQixHQUExQiwwQkFBMEI7UUFBQyx5QkFBdUIsR0FBdkIsdUJBQXVCO1FBQzVELEVBQUUsQ0FBQy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b2JzSXRlbXM7XG4gICAgfVxufTtcbmV4cG9ydCB2YXIgb2JzSXRlbXM6YW55ID0ge307Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/package.json b/package.json
index f735f0e..793512e 100644
--- a/package.json
+++ b/package.json
@@ -21,11 +21,11 @@
},
"homepage": "https://github.com/pushrocks/smartenv",
"dependencies": {
- "beautylog": "3.0.3",
- "lodash": "^4.5.0",
+ "lodash": "^4.5.1",
"q": "^1.4.1"
},
"devDependencies": {
+ "beautylog": "3.1.2",
"easyserve": "0.0.5",
"gulp": "^3.9.1",
"gulp-browser": "1.0.10",
diff --git a/ts/smartenv.objectstorage.ts b/ts/smartenv.objectstorage.ts
index fa62e5c..c2e9d9c 100644
--- a/ts/smartenv.objectstorage.ts
+++ b/ts/smartenv.objectstorage.ts
@@ -1,19 +1,18 @@
///
import plugins = require("./smartenv.plugins");
-var beautylog = require("beautylog");
export var obs:any = {
add: function(paramNameArg = "undefined",objectArg = "undefined") {
if (paramNameArg == "undefined"){
- beautylog.error("paramName is undefined");
+ console.log("paramName is undefined");
return;
}
if (objectArg == "undefined"){
- beautylog.error("objectArg is undefined");
+ console.log("objectArg is undefined");
}
if (typeof obsItems[paramNameArg] === "undefined"){
obsItems[paramNameArg] = objectArg;
} else {
- beautylog.error("object is already present, so add operation has failed.");
+ console.log("object is already present, so add operation has failed.");
}
return obsItems[paramNameArg];
},
@@ -24,7 +23,7 @@ export var obs:any = {
if(!(typeof obsItems[paramNameArg] === "undefined")){
obsItems[paramNameArg] = plugins._.assign(obsItems[paramNameArg],objectArg);
} else {
- beautylog.error("object is not present, so there is nothing to merge");
+ console.log("object is not present, so there is nothing to merge");
}
},
get: function(keyName) {