Skip to content

Commit

Permalink
chore: Update examples for snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jul 7, 2019
1 parent 895db29 commit a2a259a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion examples/pug-loader/dist/webpack-4/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ function pug_attr(key, val, escaped, terse) {
if (val === true) {
return ' ' + (terse ? key : key + '="' + key + '"');
}
if (typeof val.toJSON === 'function') {
var type = typeof val;
if ((type === 'object' || type === 'function') && typeof val.toJSON === 'function') {
val = val.toJSON();
}
if (typeof val !== 'string') {
Expand Down
2 changes: 1 addition & 1 deletion examples/pug-loader/dist/webpack-4/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><title>pug demo</title><link rel="shortcut icon" href="favicon.ico"><link href="styles.css" rel="stylesheet"></head><body><div id="main"><div class="time"><b>Current time</b><p>1998-12-31T22:00:00.000Z</p></div><img src="#{require('./logo.png')}"></div><script src="bundle.js"></script></body></html>
<!doctype html><html><head><title>pug demo</title><link rel="shortcut icon" href="favicon.ico"><link href="styles.css" rel="stylesheet"></head><body><div id="main"><div class="time"><b>Current time</b><p>1998-12-31T23:00:00.000Z</p></div><img src="#{require('./logo.png')}"></div><script src="bundle.js"></script></body></html>
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@
]
},
"devDependencies": {
"@types/html-minifier": "^3.5.3",
"@types/html-minifier": "3.5.3",
"@types/loader-utils": "1.1.3",
"@types/node": "11.13.9",
"@types/tapable": "1.0.4",
"appcache-webpack-plugin": "^1.4.0",
"appcache-webpack-plugin": "1.4.0",
"commitizen": "3.1.1",
"css-loader": "^2.1.1",
"css-loader": "2.1.1",
"cz-conventional-changelog": "2.1.0",
"dir-compare": "1.7.2",
"file-loader": "^3.0.1",
"html-loader": "^0.5.5",
"file-loader": "3.0.1",
"html-loader": "0.5.5",
"jest": "24.7.1",
"mini-css-extract-plugin": "^0.6.0",
"mini-css-extract-plugin": "0.6.0",
"pug": "2.0.3",
"pug-loader": "2.4.0",
"rimraf": "^2.6.3",
"rimraf": "2.6.3",
"semistandard": "13.0.1",
"standard-version": "^5.0.2",
"style-loader": "^0.23.1",
"typescript": "^3.4.5",
"webpack": "^4.30.0",
"webpack-recompilation-simulator": "^3.0.0"
"standard-version": "5.0.2",
"style-loader": "0.23.1",
"typescript": "3.5.2",
"webpack": "4.35.2",
"webpack-recompilation-simulator": "3.0.0"
},
"dependencies": {
"html-minifier": "^4.0.0",
Expand Down

0 comments on commit a2a259a

Please sign in to comment.