fluentreports
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -23,2 +23,3 @@ 0.0.1 - [2013/08/15] - Initial Release | ||
1.1.0 - Added Ability to use .recordCount & cancel report and fixed issue where Header wasn't printing on no data. | ||
1.1.1 - Fix issue with Streamlined .recordCount callback support | ||
@@ -25,0 +26,0 @@ |
@@ -100,2 +100,5 @@ # fluentReports Commands | ||
* recordCountCallback function | ||
##### continueCallback | ||
* dummy (the callback does not use the dummy; but to keep the same normal type of node callback (err, value)) | ||
* continueReport - boolean false = cancel report; any other value (and no value) will continue the report. | ||
@@ -105,5 +108,5 @@ ##### Example: | ||
function rcCount(count, continueCallback) { | ||
if (count === 0) { console.log("No records"); callback(false); } | ||
else if (count > 250) { console.log("Too many records") callback(false); } | ||
else callback( /* you can pass in true if you want */); | ||
if (count === 0) { console.log("No records"); callback(null, false); } | ||
else if (count > 250) { console.log("Too many records") callback(null, false); } | ||
else callback(); | ||
} | ||
@@ -110,0 +113,0 @@ MyReportObject.recordCount(rcCount); |
@@ -32,3 +32,3 @@ { | ||
"main": "lib/fluentReports", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"engines": { | ||
@@ -35,0 +35,0 @@ "node": ">= 0.6.0" |
@@ -38,2 +38,3 @@ # Fluent Reports | ||
* Text rotation | ||
* Cancelling of report | ||
@@ -40,0 +41,0 @@ See the simple & stupid examples for a overview on how to generate a somewhat complex report. |
Sorry, the diff of this file is too big to display
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
594715
210