Skip to content

Commit

Permalink
chore(release): 0.10.2 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Jul 1, 2024
1 parent af78233 commit 11c863b
Show file tree
Hide file tree
Showing 10 changed files with 7,415 additions and 7,411 deletions.
14,796 changes: 7,399 additions & 7,397 deletions dist/html2pdf.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/html2pdf.bundle.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/html2pdf.bundle.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/

/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* html2pdf.js v0.10.2
* Copyright (c) 2024 Erik Koopmans
* Released under the MIT License.
*/

Expand Down
2 changes: 1 addition & 1 deletion dist/html2pdf.bundle.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/html2pdf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* html2pdf.js v0.10.2
* Copyright (c) 2024 Erik Koopmans
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
Expand Down Expand Up @@ -656,7 +656,7 @@ Worker.prototype.from = function from(src, type) {
return 'string';

case 'element':
return src.nodeName.toLowerCase === 'canvas' ? 'canvas' : 'element';
return src.nodeName.toLowerCase && src.nodeName.toLowerCase() === 'canvas' ? 'canvas' : 'element';

default:
return 'unknown';
Expand Down Expand Up @@ -800,6 +800,8 @@ Worker.prototype.toPdf = function toPdf() {
// Set up function prerequisites.
var prereqs = [function checkCanvas() {
return this.prop.canvas || this.toCanvas();
}, function checkPageSize() {
return this.prop.pageSize || this.setPageSize();
}]; // Fulfill prereqs then create the image.

return this.thenList(prereqs).then(function toPdf_main() {
Expand Down
2 changes: 1 addition & 1 deletion dist/html2pdf.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/html2pdf.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* html2pdf.js v0.10.2
* Copyright (c) 2024 Erik Koopmans
* Released under the MIT License.
*/

Expand Down
2 changes: 1 addition & 1 deletion dist/html2pdf.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html2pdf.js",
"version": "0.10.1",
"version": "0.10.2",
"description": "Client-side HTML-to-PDF rendering using pure JS",
"main": "dist/html2pdf.js",
"files": [
Expand Down

0 comments on commit 11c863b

Please sign in to comment.