Comparing version 0.1.51 to 0.1.52
{ | ||
"name": "pdfmake", | ||
"version": "0.1.51", | ||
"version": "0.1.52", | ||
"description": "Client/server side PDF printing in pure JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "src/printer.js", |
@@ -87,2 +87,27 @@ var path = require('path'); | ||
}, | ||
/* temporary bugfix for pdfkit version 0.9.0 - issue https://github.com/foliojs/pdfkit/issues/923 */ | ||
/* waiting to release included PR https://github.com/foliojs/pdfkit/pull/925 */ | ||
{test: /pdfkit[/\\]js[/\\]/, loader: StringReplacePlugin.replace({ | ||
replacements: [ | ||
{ | ||
pattern: "stringBuffer = swapBytes(new Buffer(", | ||
replacement: function () { | ||
return "stringBuffer = swapBytes(Buffer.from("; | ||
} | ||
} | ||
]}) | ||
}, | ||
{test: /pdfkit[/\\]js[/\\]/, loader: StringReplacePlugin.replace({ | ||
replacements: [ | ||
{ | ||
pattern: "stringBuffer = new Buffer(string, 'ascii');", | ||
replacement: function () { | ||
return "stringBuffer = Buffer.from(string.valueOf(), 'ascii');"; | ||
} | ||
} | ||
]}) | ||
}, | ||
/* *** */ | ||
{enforce: 'post', test: /fontkit[/\\]index.js$/, loader: "transform-loader?brfs"}, | ||
@@ -89,0 +114,0 @@ {enforce: 'post', test: /unicode-properties[/\\]index.js$/, loader: "transform-loader?brfs"}, |
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
13211585
67189