howsmydriving-dummy
Advanced tools
Comparing version 0.1.99 to 0.1.100
@@ -215,8 +215,14 @@ "use strict"; | ||
DummyRegion.prototype.GetRecentCollisions = function () { | ||
logging_2.log.info("Getting recent " + this.name + " collisions..."); | ||
return Promise.all([ | ||
this.getLastCollisionsWithCondition('FATALITIES>0', 1), | ||
this.getLastCollisionsWithCondition('SERIOUSINJURIES>0', 1), | ||
this.getLastCollisionsWithCondition('INJURIES>0', 1) | ||
]); | ||
var _this = this; | ||
return new Promise(function (resolve, reject) { | ||
logging_2.log.info("Getting recent " + _this.name + " collisions..."); | ||
Promise.all([ | ||
_this.getLastCollisionsWithCondition('FATALITIES>0', 1), | ||
_this.getLastCollisionsWithCondition('SERIOUSINJURIES>0', 1), | ||
_this.getLastCollisionsWithCondition('INJURIES>0', 1) | ||
]).then(function (collisions) { | ||
logging_2.log.info("Returning " + collisions.length + " collisions."); | ||
resolve(collisions); | ||
}); | ||
}); | ||
}; | ||
@@ -223,0 +229,0 @@ DummyRegion.prototype.ProcessCollisions = function (collisions) { |
{ | ||
"name": "howsmydriving-dummy", | ||
"version": "0.1.99", | ||
"version": "0.1.100", | ||
"description": "Dummy region plug-in for @HowsMyDrivingWA.", | ||
@@ -5,0 +5,0 @@ "declaration": true, |
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
43540
863