Comparing version 0.1.50 to 0.1.51
@@ -8,3 +8,2 @@ var gulp = require('gulp'); | ||
var log = require('fancy-log'); | ||
var PluginError = require('plugin-error'); | ||
var exec = require('child_process').exec; | ||
@@ -22,5 +21,10 @@ const fs = require('fs'); | ||
if (err) { | ||
throw new PluginError("webpack", err); | ||
callback(err); | ||
return; | ||
} | ||
log("[webpack]", stats.toString({})); | ||
if (stats.compilation.errors && stats.compilation.errors.length) { | ||
callback(stats.compilation.errors); | ||
return; | ||
} | ||
callback(); | ||
@@ -33,5 +37,10 @@ }); | ||
if (err) { | ||
throw new PluginError("webpack", err); | ||
callback(err); | ||
return; | ||
} | ||
log("[webpack]", stats.toString({})); | ||
if (stats.compilation.errors && stats.compilation.errors.length) { | ||
callback(stats.compilation.errors); | ||
return; | ||
} | ||
callback(); | ||
@@ -38,0 +47,0 @@ }); |
{ | ||
"name": "pdfmake", | ||
"version": "0.1.50", | ||
"version": "0.1.51", | ||
"description": "Client/server side PDF printing in pure JavaScript", | ||
@@ -28,3 +28,2 @@ "main": "src/printer.js", | ||
"mocha": "^5.2.0", | ||
"plugin-error": "^1.0.1", | ||
"rewire": "^4.0.1", | ||
@@ -31,0 +30,0 @@ "sinon": "^7.2.3", |
@@ -341,6 +341,6 @@ 'use strict'; | ||
var x1f = xs[i].x + (widthLeftBorder / 2); | ||
var x1f = this.dontBreakRows ? xs[i].x + widthLeftBorder : xs[i].x + (widthLeftBorder / 2); | ||
var y1f = this.dontBreakRows ? y1 : y1 - (hzLineOffset / 2); | ||
var x2f = xs[i + 1].x + widthRightBorder; | ||
var y2f = y2 + (this.bottomLineWidth / 2); | ||
var y2f = this.dontBreakRows ? y2 + this.bottomLineWidth : y2 + (this.bottomLineWidth / 2); | ||
writer.addVector({ | ||
@@ -347,0 +347,0 @@ type: 'rect', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
13210950
18
67166