Comparing version 0.0.7 to 0.0.8
@@ -21,3 +21,3 @@ const mysql = require('mysql'); | ||
if (self.connection) { | ||
return deferred.resolve(self.connection); | ||
return deferred.resolve(); | ||
} | ||
@@ -27,2 +27,3 @@ | ||
self.connection.connect(); | ||
deferred.resolve(); | ||
}); | ||
@@ -36,19 +37,5 @@ }; | ||
if (error) { | ||
throw error; | ||
return deferred.reject(error); | ||
} | ||
deferred.resolve(results); | ||
}); | ||
}); | ||
}); | ||
}; | ||
self.query = (query) => { | ||
return ratchet.defer((deferred) => { | ||
self.connect().then(() => { | ||
self.connection.query(query, function (error, results, fields) { | ||
if (error) { | ||
throw error; | ||
} | ||
deferred.resolve({ | ||
@@ -55,0 +42,0 @@ error: error, |
{ | ||
"name": "loshermes", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "", | ||
@@ -15,2 +15,4 @@ "keywords": [], | ||
"http": "0.0.0", | ||
"mathjs": "^3.20.2", | ||
"momentjs": "^2.0.0", | ||
"mysql": "2.15.0", | ||
@@ -17,0 +19,0 @@ "request": "2.83.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28770
9
847
11
+ Addedmathjs@^3.20.2
+ Addedmomentjs@^2.0.0
+ Addedmomentjs@2.0.0(transitive)