Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SVGO library #213

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function image(url) {
if (res.body && mime.lookup(url) === 'image/svg+xml' &&
!inliner.options.nosvg) {
return new Promise(function (resolve, reject) {
svgo.optimize(res.body.toString(), function (result) {
svgo.optimize(res.body.toString()).then(result => {
debug('optimising svg');
if (result.error) {
debug('errored', result.error);
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function resolve(inliner, todo, $) {

source = top + source + '</svg>';

svgo.optimize(source, function (result) {
svgo.optimize(source).then(result => {
if (result.error) {
debug('svg failed', result.error);
return;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"ansi-styles": "^2.2.1",
"chalk": "^1.1.3",
"charset": "^1.0.0",
"cheerio": "^0.19.0",
"cheerio": "0.22.0",
"debug": "^2.2.0",
"es6-promise": "^2.3.0",
"iconv-lite": "^0.4.11",
Expand All @@ -43,7 +43,7 @@
"mime": "^1.3.4",
"minimist": "^1.1.3",
"request": "^2.74.0",
"svgo": "^0.6.6",
"svgo": "1.3.2",
"then-fs": "^2.0.0",
"uglify-js": "^2.8.0",
"update-notifier": "^0.5.0"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/headers.result.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<script>"function"==typeof callback&&callback({"user-agent":"inliner"});</script>
<script>alert("hello i am javascript");</script>
2 changes: 1 addition & 1 deletion test/fixtures/headers.src.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<script src="https://inline-httpbin.glitch.me/user-agent?callback=callback"></script>
<script>alert('hello i am javascript')</script>
2 changes: 1 addition & 1 deletion test/fixtures/inline-svg.result.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/fixtures/svg-bg.result.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>circle.svg bg</title> <style> .homescreen{ background:url('data:image/svg+xml;utf8,%3Csvg width=%22210%22 height=%22210%22 viewBox=%220 0 210 210%22 xmlns=%22http://www.w3.org/2000/svg%22>%3Ctitle>circle%3C/title>%3Cg fill=%22none%22 fill-rule=%22evenodd%22>%3Ccircle cx=%22100%22 cy=%22100%22 r=%22100%22 transform=%22translate(5 5)%22 stroke=%22%2300F%22 stroke-width=%2210%22 fill=%22%23F00%22/>%3Ctext x=%2210%22 y=%2240%22 stroke=%22%23000%22 transform=%22scale(1.25 3)%22>%253F\' %22$({[}])%23/.?%3C/text>%3C/g>%3C/svg>') no-repeat;height:210px;}</style> </head> <body> <div class="homescreen"></div> <div style="background-image:url('data:image/svg+xml;utf8,%3Csvg width=%22210%22 height=%22210%22 viewBox=%220 0 210 210%22 xmlns=%22http://www.w3.org/2000/svg%22>%3Ctitle>circle%3C/title>%3Cg fill=%22none%22 fill-rule=%22evenodd%22>%3Ccircle cx=%22100%22 cy=%22100%22 r=%22100%22 transform=%22translate(5 5)%22 stroke=%22%2300F%22 stroke-width=%2210%22 fill=%22%23F00%22/>%3Ctext x=%2210%22 y=%2240%22 stroke=%22%23000%22 transform=%22scale(1.25 3)%22>%253F\' %22$({[}])%23/.?%3C/text>%3C/g>%3C/svg>') ;height:200px">...</div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>circle.svg bg</title> <style> .homescreen{ background:url('data:image/svg+xml;utf8,%3Csvg width=%22210%22 height=%22210%22 xmlns=%22http://www.w3.org/2000/svg%22>%3Cg fill=%22none%22 fill-rule=%22evenodd%22>%3Ccircle cx=%22100%22 cy=%22100%22 r=%22100%22 transform=%22translate(5 5)%22 stroke=%22%2300F%22 stroke-width=%2210%22 fill=%22red%22/>%3Ctext x=%2210%22 y=%2240%22 stroke=%22%23000%22 transform=%22scale(1.25 3)%22>%253F\' %22$({[}])%23/.?%3C/text>%3C/g>%3C/svg>') no-repeat;height:210px;}</style> </head> <body> <div class="homescreen"></div> <div style="background-image:url('data:image/svg+xml;utf8,%3Csvg width=%22210%22 height=%22210%22 xmlns=%22http://www.w3.org/2000/svg%22>%3Cg fill=%22none%22 fill-rule=%22evenodd%22>%3Ccircle cx=%22100%22 cy=%22100%22 r=%22100%22 transform=%22translate(5 5)%22 stroke=%22%2300F%22 stroke-width=%2210%22 fill=%22red%22/>%3Ctext x=%2210%22 y=%2240%22 stroke=%22%23000%22 transform=%22scale(1.25 3)%22>%253F\' %22$({[}])%23/.?%3C/text>%3C/g>%3C/svg>') ;height:200px">...</div> </body> </html>
2 changes: 1 addition & 1 deletion test/fixtures/svg-compress.result.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img src="data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22740%22 height=%22330%22 viewBox=%220 0 739.99997 329.99998%22>%3Cdefs>%3Cpath id=%22a%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22b%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22c%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22d%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22e%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22f%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22g%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22h%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22i%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22j%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22k%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22l%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath d=%22M61.816-223.017c0 34.379 27.881 62.266 62.264 62.266 34.387 0 62.275-27.887 62.275-62.266 0-34.396-27.888-62.277-62.275-62.277-34.383 0-62.264 27.881-62.264 62.277%22 id=%22m%22/>%3Cpath id=%22n%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22o%22 d=%22M0-386.025h692v278.785H0z%22/>%3C/defs>%3Cpath d=%22M24.125 69.781v109.625h54.406c3.649-32.432 29.54-58.153 62.063-61.5V69.781H24.125zm192.969 125.375c-3.649 32.433-29.54 58.154-62.063 61.5v48.125H271.5V195.156h-54.406z%22 fill=%22%231e99d5%22/>%3Cpath d=%22M24.125 195.156v109.625h116.469v-48.125c-32.523-3.346-58.414-29.067-62.063-61.5H24.125z%22 fill=%22%23335f8c%22/>%3Cpath d=%22M207.34 187.284a59.524 59.524 0 1 1-119.048 0 59.524 59.524 0 1 1 119.048 0z%22 fill=%22%23dadada%22/>%3Cpath d=%22M275.304 76.905h6.627v17.588c6.752-13.247 18.832-19.87 36.216-19.87 24.563 0 36.847 12.839 36.847 38.503v71.203h-6.631v-69.14c0-11.448-2.06-19.854-6.206-25.25-4.827-6.202-12.766-9.31-23.8-9.31-20.28 0-32.08 9.182-35.392 27.524-.277 2.073-.515 4.66-.725 7.768-.206 3.109-.309 6.723-.309 10.858v57.55h-6.627V76.905zm186.074 48.433c0-12.566-2.982-22.907-8.902-31.05-6.633-9.241-15.939-13.868-27.945-13.868-12.426 0-22.145 4.492-29.18 13.449-6.215 8.142-9.729 18.633-10.559 31.469h76.586zm-38.099 61.675c-15.312 0-26.965-5.667-34.965-16.97-7.043-10.078-10.564-23.111-10.564-39.121 0-16.014 3.521-28.98 10.564-38.914 8-11.588 19.65-17.384 34.965-17.384 15.045 0 26.496 5.178 34.363 15.533 7.172 9.242 10.764 21.652 10.764 37.244v3.929h-83.82v1.662c0 13.248 3.104 24.28 9.316 33.104 7.035 10.229 16.832 15.32 29.377 15.32 17.396 0 29.195-8.136 35.4-24.41l5.383 2.883c-2.77 7.322-7.107 13.327-13.053 18.014-7.715 6.077-16.959 9.11-27.73 9.11m79.277-21.108c7.178 10.344 17.666 15.52 31.467 15.52 13.787 0 24.203-5.176 31.248-15.52 6.203-8.831 9.307-20.496 9.307-34.983 0-14.35-3.104-26.007-9.307-34.977-7.045-10.348-17.461-15.525-31.248-15.525-13.801 0-24.217 5.177-31.268 15.525-6.342 8.835-9.514 20.49-9.514 34.977.001 14.487 3.108 26.152 9.315 34.983m31.467 21.108c-15.6 0-27.689-5.517-36.23-16.558-7.455-10.068-11.176-23.246-11.176-39.533 0-16.418 3.721-29.597 11.176-39.53 8.285-11.17 20.348-16.768 36.23-16.768 20 0 33.518 8.97 40.555 26.912V76.905h6.41V184.32h-6.41v-23.18c-6.897 17.253-20.42 25.872-40.555 25.872m77.806-2.692h-6.625V47.518h6.625v29.387h21.526v5.794h-21.526zM383.597 273.75c4.846 6.987 11.887 10.48 21.109 10.48 9.221 0 16.301-3.493 21.242-10.48 4.195-5.957 6.291-13.844 6.291-23.628 0-9.691-2.096-17.564-6.291-23.62-4.941-6.987-12.021-10.486-21.242-10.486-9.322 0-16.357 3.499-21.109 10.486-4.195 6.056-6.297 13.929-6.297 23.62.002 9.784 2.102 17.67 6.297 23.628m-3.215-50.181c5.596-7.646 13.709-11.467 24.324-11.467 10.621 0 18.771 3.82 24.467 11.467 5.025 6.71 7.547 15.562 7.547 26.553 0 10.997-2.521 19.894-7.547 26.718-5.771 7.439-13.938 11.175-24.467 11.175-10.615 0-18.729-3.735-24.324-11.175-5.031-6.824-7.545-15.721-7.545-26.718 0-10.99 2.512-19.843 7.545-26.553m76.33-9.931h4.467v11.89c4.559-8.944 12.73-13.425 24.467-13.425 16.576 0 24.877 8.669 24.877 26v48.094h-4.467V239.5c0-7.73-1.396-13.417-4.188-17.053-3.266-4.188-8.627-6.283-16.09-6.283-13.695 0-21.662 6.199-23.893 18.587-.189 1.393-.354 3.152-.494 5.239a115.451 115.451 0 0 0-.215 7.342v38.864h-4.465v-72.56h.001zm101.891 70.322c5.885 0 10.719-1.257 14.545-3.777 4.566-2.89 6.852-7.128 6.852-12.723 0-6.716-4.807-11.367-14.391-13.98-.291-.084-.73-.226-1.334-.41-.611-.2-1.42-.377-2.449-.57-11.828-3.066-19.475-5.955-22.918-8.667-3.918-3.067-5.879-7.263-5.879-12.574 0-6.34 2.711-11.226 8.107-14.675 4.656-2.982 10.244-4.48 16.783-4.48 6.711 0 12.254 1.768 16.627 5.317 4.48 3.722 7.078 8.904 7.824 15.506h-4.324c-1.49-11.274-8.393-16.91-20.693-16.91-5.127 0-9.5 1.12-13.135 3.358-4.391 2.703-6.576 6.482-6.576 11.322 0 7.277 7.412 12.772 22.223 16.493.191.178.662.319 1.412.426 7.633 1.952 12.938 3.962 15.926 6.007 4.941 3.26 7.412 7.932 7.412 13.98 0 6.524-2.748 11.7-8.25 15.52-4.934 3.26-10.812 4.893-17.602 4.893-7.744 0-14.078-1.918-19.027-5.737-5.109-4.097-8.008-9.97-8.668-17.614h4.348c2.32 12.856 10.056 19.295 23.187 19.295m99.396-37.6c0-8.493-2.01-15.471-6-20.98-4.488-6.241-10.771-9.364-18.879-9.364-8.393 0-14.959 3.03-19.701 9.087-4.197 5.503-6.566 12.588-7.143 21.258l51.723-.001zm-25.709 41.655c-10.346 0-18.232-3.828-23.627-11.46-4.766-6.81-7.137-15.604-7.137-26.433 0-10.798 2.371-19.561 7.137-26.275 5.395-7.831 13.281-11.744 23.627-11.744 10.152 0 17.883 3.493 23.188 10.487 4.85 6.24 7.283 14.633 7.283 25.154v2.655h-56.619v1.129c0 8.945 2.096 16.4 6.281 22.364 4.76 6.887 11.381 10.352 19.865 10.352 11.73 0 19.709-5.503 23.898-16.5l3.627 1.959c-1.865 4.928-4.805 8.989-8.811 12.147-5.216 4.113-11.456 6.165-18.712 6.165m50.586-74.377h4.346v72.559h-4.346v-72.56zm2.11-29.075c2.045 0 3.074 2.2 3.074 6.574 0 4.472-1.029 6.7-3.074 6.7-1.953 0-2.939-2.228-2.939-6.7-.001-4.373.986-6.574 2.939-6.574m26.552 1.27h4.33v100.363h-4.33z%22/>%3Cpath d=%22M349.095 264.06l-.583 2.35c-1.44 5.744-4.261 10.06-8.525 13.206-4.304 3.158-9.277 4.742-15.135 4.742-9.585-.035-16.507-3.493-21.497-10.636-4.295-6.105-6.527-14.277-6.527-24.678.008-10.303 2.226-18.474 6.536-24.693 4.891-7.128 11.778-10.593 21.487-10.63 6.265 0 11.363 1.705 15.609 5.07 3.315 2.768 5.517 5.864 6.73 9.386l.76 2.2 7.256-4.826-.523-1.364c-2.336-6.028-6.078-10.692-11.126-13.78-5.049-3.081-11.316-4.56-18.706-4.56-11.988-.034-21.539 4.424-27.936 13.223-5.755 7.666-8.562 17.733-8.555 29.975-.007 11.927 2.754 21.93 8.392 29.81 6.372 8.77 15.775 13.229 27.501 13.229h.143c8.944.007 16.584-2.5 22.611-7.583l.035-.014.021-.021c4.21-3.771 7.228-8.711 9.038-14.654l.403-1.362-7.409-4.39zM245.245 73.676l-46.354 6.888v9.231s6.114-1.246 10.315-1.63c3.792-.364 8.694 0 6.706 7.784-2.336 9.154-22.093 74.788-22.093 74.788s-3.261 11.496 3.752 16.52c8.427 4.985 14.174 3.05 20.15-1.304 5.98-4.359 15.215-10.863 23.542-24.989l-6.881-4.723s-6.7 8.35-9.602 11.61c-2.721 3.042-5.335 6.005-7.06 5.25-1.876-.827-.544-5.25.905-10.322 1.447-5.085 26.62-89.103 26.62-89.103M237.52 25.21c-7.94 0-14.364 6.428-14.364 14.36 0 7.935 6.425 14.364 14.364 14.364 7.939 0 14.364-6.43 14.364-14.364 0-7.932-6.425-14.36-14.364-14.36%22 fill=%22%231e99d5%22/>%3C/svg>" class="ineat-logo">
<img src="data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22740%22 height=%22330%22>%3Cdefs>%3Cpath id=%22a%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22b%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22c%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22d%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22e%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22f%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22g%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22h%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22i%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22j%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22k%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22l%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath d=%22M61.816-223.017c0 34.379 27.881 62.266 62.264 62.266 34.387 0 62.275-27.887 62.275-62.266 0-34.396-27.888-62.277-62.275-62.277-34.383 0-62.264 27.881-62.264 62.277%22 id=%22m%22/>%3Cpath id=%22n%22 d=%22M0-386.025h692v278.785H0z%22/>%3Cpath id=%22o%22 d=%22M0-386.025h692v278.785H0z%22/>%3C/defs>%3Cpath d=%22M24.125 69.781v109.625h54.406c3.649-32.432 29.54-58.153 62.063-61.5V69.781H24.125zm192.969 125.375c-3.649 32.433-29.54 58.154-62.063 61.5v48.125H271.5V195.156h-54.406z%22 fill=%22%231e99d5%22/>%3Cpath d=%22M24.125 195.156v109.625h116.469v-48.125c-32.523-3.346-58.414-29.067-62.063-61.5H24.125z%22 fill=%22%23335f8c%22/>%3Cpath d=%22M207.34 187.284a59.524 59.524 0 11-119.048 0 59.524 59.524 0 11119.048 0z%22 fill=%22%23dadada%22/>%3Cpath d=%22M275.304 76.905h6.627v17.588c6.752-13.247 18.832-19.87 36.216-19.87 24.563 0 36.847 12.839 36.847 38.503v71.203h-6.631v-69.14c0-11.448-2.06-19.854-6.206-25.25-4.827-6.202-12.766-9.31-23.8-9.31-20.28 0-32.08 9.182-35.392 27.524-.277 2.073-.515 4.66-.725 7.768-.206 3.109-.309 6.723-.309 10.858v57.55h-6.627V76.905zm186.074 48.433c0-12.566-2.982-22.907-8.902-31.05-6.633-9.241-15.939-13.868-27.945-13.868-12.426 0-22.145 4.492-29.18 13.449-6.215 8.142-9.729 18.633-10.559 31.469h76.586zm-38.099 61.675c-15.312 0-26.965-5.667-34.965-16.97-7.043-10.078-10.564-23.111-10.564-39.121 0-16.014 3.521-28.98 10.564-38.914 8-11.588 19.65-17.384 34.965-17.384 15.045 0 26.496 5.178 34.363 15.533 7.172 9.242 10.764 21.652 10.764 37.244v3.929h-83.82v1.662c0 13.248 3.104 24.28 9.316 33.104 7.035 10.229 16.832 15.32 29.377 15.32 17.396 0 29.195-8.136 35.4-24.41l5.383 2.883c-2.77 7.322-7.107 13.327-13.053 18.014-7.715 6.077-16.959 9.11-27.73 9.11m79.277-21.108c7.178 10.344 17.666 15.52 31.467 15.52 13.787 0 24.203-5.176 31.248-15.52 6.203-8.831 9.307-20.496 9.307-34.983 0-14.35-3.104-26.007-9.307-34.977-7.045-10.348-17.461-15.525-31.248-15.525-13.801 0-24.217 5.177-31.268 15.525-6.342 8.835-9.514 20.49-9.514 34.977.001 14.487 3.108 26.152 9.315 34.983m31.467 21.108c-15.6 0-27.689-5.517-36.23-16.558-7.455-10.068-11.176-23.246-11.176-39.533 0-16.418 3.721-29.597 11.176-39.53 8.285-11.17 20.348-16.768 36.23-16.768 20 0 33.518 8.97 40.555 26.912V76.905h6.41V184.32h-6.41v-23.18c-6.897 17.253-20.42 25.872-40.555 25.872m77.806-2.692h-6.625V47.518h6.625v29.387h21.526v5.794h-21.526zM383.597 273.75c4.846 6.987 11.887 10.48 21.109 10.48 9.221 0 16.301-3.493 21.242-10.48 4.195-5.957 6.291-13.844 6.291-23.628 0-9.691-2.096-17.564-6.291-23.62-4.941-6.987-12.021-10.486-21.242-10.486-9.322 0-16.357 3.499-21.109 10.486-4.195 6.056-6.297 13.929-6.297 23.62.002 9.784 2.102 17.67 6.297 23.628m-3.215-50.181c5.596-7.646 13.709-11.467 24.324-11.467 10.621 0 18.771 3.82 24.467 11.467 5.025 6.71 7.547 15.562 7.547 26.553 0 10.997-2.521 19.894-7.547 26.718-5.771 7.439-13.938 11.175-24.467 11.175-10.615 0-18.729-3.735-24.324-11.175-5.031-6.824-7.545-15.721-7.545-26.718 0-10.99 2.512-19.843 7.545-26.553m76.33-9.931h4.467v11.89c4.559-8.944 12.73-13.425 24.467-13.425 16.576 0 24.877 8.669 24.877 26v48.094h-4.467V239.5c0-7.73-1.396-13.417-4.188-17.053-3.266-4.188-8.627-6.283-16.09-6.283-13.695 0-21.662 6.199-23.893 18.587-.189 1.393-.354 3.152-.494 5.239a115.451 115.451 0 00-.215 7.342v38.864h-4.465v-72.56h.001zm101.891 70.322c5.885 0 10.719-1.257 14.545-3.777 4.566-2.89 6.852-7.128 6.852-12.723 0-6.716-4.807-11.367-14.391-13.98-.291-.084-.73-.226-1.334-.41-.611-.2-1.42-.377-2.449-.57-11.828-3.066-19.475-5.955-22.918-8.667-3.918-3.067-5.879-7.263-5.879-12.574 0-6.34 2.711-11.226 8.107-14.675 4.656-2.982 10.244-4.48 16.783-4.48 6.711 0 12.254 1.768 16.627 5.317 4.48 3.722 7.078 8.904 7.824 15.506h-4.324c-1.49-11.274-8.393-16.91-20.693-16.91-5.127 0-9.5 1.12-13.135 3.358-4.391 2.703-6.576 6.482-6.576 11.322 0 7.277 7.412 12.772 22.223 16.493.191.178.662.319 1.412.426 7.633 1.952 12.938 3.962 15.926 6.007 4.941 3.26 7.412 7.932 7.412 13.98 0 6.524-2.748 11.7-8.25 15.52-4.934 3.26-10.812 4.893-17.602 4.893-7.744 0-14.078-1.918-19.027-5.737-5.109-4.097-8.008-9.97-8.668-17.614h4.348c2.32 12.856 10.056 19.295 23.187 19.295m99.396-37.6c0-8.493-2.01-15.471-6-20.98-4.488-6.241-10.771-9.364-18.879-9.364-8.393 0-14.959 3.03-19.701 9.087-4.197 5.503-6.566 12.588-7.143 21.258l51.723-.001zm-25.709 41.655c-10.346 0-18.232-3.828-23.627-11.46-4.766-6.81-7.137-15.604-7.137-26.433 0-10.798 2.371-19.561 7.137-26.275 5.395-7.831 13.281-11.744 23.627-11.744 10.152 0 17.883 3.493 23.188 10.487 4.85 6.24 7.283 14.633 7.283 25.154v2.655h-56.619v1.129c0 8.945 2.096 16.4 6.281 22.364 4.76 6.887 11.381 10.352 19.865 10.352 11.73 0 19.709-5.503 23.898-16.5l3.627 1.959c-1.865 4.928-4.805 8.989-8.811 12.147-5.216 4.113-11.456 6.165-18.712 6.165m50.586-74.377h4.346v72.559h-4.346v-72.56zm2.11-29.075c2.045 0 3.074 2.2 3.074 6.574 0 4.472-1.029 6.7-3.074 6.7-1.953 0-2.939-2.228-2.939-6.7-.001-4.373.986-6.574 2.939-6.574m26.552 1.27h4.33v100.363h-4.33z%22/>%3Cpath d=%22M349.095 264.06l-.583 2.35c-1.44 5.744-4.261 10.06-8.525 13.206-4.304 3.158-9.277 4.742-15.135 4.742-9.585-.035-16.507-3.493-21.497-10.636-4.295-6.105-6.527-14.277-6.527-24.678.008-10.303 2.226-18.474 6.536-24.693 4.891-7.128 11.778-10.593 21.487-10.63 6.265 0 11.363 1.705 15.609 5.07 3.315 2.768 5.517 5.864 6.73 9.386l.76 2.2 7.256-4.826-.523-1.364c-2.336-6.028-6.078-10.692-11.126-13.78-5.049-3.081-11.316-4.56-18.706-4.56-11.988-.034-21.539 4.424-27.936 13.223-5.755 7.666-8.562 17.733-8.555 29.975-.007 11.927 2.754 21.93 8.392 29.81 6.372 8.77 15.775 13.229 27.501 13.229h.143c8.944.007 16.584-2.5 22.611-7.583l.035-.014.021-.021c4.21-3.771 7.228-8.711 9.038-14.654l.403-1.362-7.409-4.39zM245.245 73.676l-46.354 6.888v9.231s6.114-1.246 10.315-1.63c3.792-.364 8.694 0 6.706 7.784-2.336 9.154-22.093 74.788-22.093 74.788s-3.261 11.496 3.752 16.52c8.427 4.985 14.174 3.05 20.15-1.304 5.98-4.359 15.215-10.863 23.542-24.989l-6.881-4.723s-6.7 8.35-9.602 11.61c-2.721 3.042-5.335 6.005-7.06 5.25-1.876-.827-.544-5.25.905-10.322 1.447-5.085 26.62-89.103 26.62-89.103M237.52 25.21c-7.94 0-14.364 6.428-14.364 14.36 0 7.935 6.425 14.364 14.364 14.364 7.939 0 14.364-6.43 14.364-14.364 0-7.932-6.425-14.36-14.364-14.36%22 fill=%22%231e99d5%22/>%3C/svg>" class="ineat-logo">
2 changes: 1 addition & 1 deletion test/fixtures/svg-viewbox.result.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<button data-menu="menu-primary-menu" id="toogle-menu" title="menu"> <svg class="bnw-icon_api-mobile-menu" viewBox="0 0 512 512"><path d="M0 0zm53 431c-4 0-8-4-8-9v-64c0-5 4-9 8-9h406c4 0 8 4 8 9v64c0 5-4 9-8 9zm0-128c-4 0-8-4-8-9v-64c0-5 4-9 8-9h406c4 0 8 4 8 9v64c0 5-4 9-8 9zm0-128c-4 0-8-4-8-9v-64c0-5 4-9 8-9h406c4 0 8 4 8 9v64c0 5-4 9-8 9z"/></svg> </button>
<button data-menu="menu-primary-menu" id="toogle-menu" title="menu"> <svg class="bnw-icon_api-mobile-menu" viewBox="0 0 512 512"> <path d="m0 0z m53 431c-4 0-8-4-8-9l0-64c0-5 4-9 8-9l406 0c4 0 8 4 8 9l0 64c0 5-4 9-8 9z m0-128c-4 0-8-4-8-9l0-64c0-5 4-9 8-9l406 0c4 0 8 4 8 9l0 64c0 5-4 9-8 9z m0-128c-4 0-8-4-8-9l0-64c0-5 4-9 8-9l406 0c4 0 8 4 8 9l0 64c0 5-4 9-8 9z"/> </svg> </button>
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test('inliner fixtures', function fixtureTests(t) {
});
});
}));
}).catch(t.threw).then(t.end);
}).then(t.end);
});

test('tear down', function (t) {
Expand Down