Comparing version 0.0.3 to 0.0.4
@@ -49,3 +49,4 @@ (function () { | ||
.sync() | ||
.done(function (data) { | ||
.catch(function (err) { | ||
console.error(err); | ||
}); | ||
@@ -69,2 +70,3 @@ | ||
// Print a message and save it on the database | ||
Nark.prototype.log = function (text,data) { | ||
@@ -84,3 +86,4 @@ console.log(text); | ||
Nark.prototype.error = function (text,data) { | ||
// Print an error message (red color) and save it | ||
Nark.prototype.warning = function (text,data) { | ||
console.error(colors.red(text)); | ||
@@ -96,2 +99,3 @@ this.Log.create({ | ||
// Print an error message and send an alert by email to notify about it | ||
Nark.prototype.danger = function (text,data,callback) { | ||
@@ -127,2 +131,3 @@ | ||
// Print message and send notification by email | ||
Nark.prototype.important = function (text,data,callback) { | ||
@@ -158,2 +163,3 @@ | ||
// Consume an array and make a table out of it that will be sent by email | ||
Nark._table = function (data) { | ||
@@ -160,0 +166,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"repository": { | ||
@@ -11,0 +11,0 @@ "type": "git", |
6244
141