Skip to content

Commit bef064b

Browse files
committed
Upgrade to gulp 4
1 parent aa6e995 commit bef064b

12 files changed

+34
-23
lines changed

docs/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
<body>
2323
<div id="root"></div>
2424
<div id="error-display"></div>
25-
<script type="text/javascript" src="static/preview.0a5ded0c6d25ea84b872.bundle.js"></script></body>
25+
<script type="text/javascript" src="static/preview.c57a8d0ca1345ce67db2.bundle.js"></script></body>
2626

2727
</html>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
</head>
4141
<body style="margin: 0;">
4242
<div id="root"></div>
43-
<script type="text/javascript" src="static/manager.590dac8efce4bda4401d.bundle.js"></script></body>
43+
<script type="text/javascript" src="static/manager.469a9ef1a86e3e533b17.bundle.js"></script></body>
4444
</html>

docs/static/manager.469a9ef1a86e3e533b17.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/manager.590dac8efce4bda4401d.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/static/preview.0a5ded0c6d25ea84b872.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/static/preview.c57a8d0ca1345ce67db2.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ gulp.task('build', function() {
2525

2626
// Rerun the task when a file changes
2727
gulp.task('watch', function() {
28-
gulp.watch(paths.scripts, [ 'build' ])
28+
gulp.watch(paths.scripts, gulp.series([ 'build' ]))
2929
})
3030

3131
// The default task (called when you run `gulp` from cli)
32-
gulp.task('default', [ 'build' ])
32+
gulp.task('default', gulp.series([ 'build' ]))

lib/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,14 @@ function (_React$Component) {
196196
_createClass(BarcodeScanner, [{
197197
key: "componentDidMount",
198198
value: function componentDidMount() {
199-
if (inIframe) window.parent.document.addEventListener('keypress', this.handleKeyPress);else window.document.addEventListener('keypress', this.handleKeyPress);
199+
if (inIframe) window.parent.document.addEventListener('keypress', this.handleKeyPress);
200+
window.document.addEventListener('keypress', this.handleKeyPress);
200201
}
201202
}, {
202203
key: "componentWillUnmount",
203204
value: function componentWillUnmount() {
204-
if (inIframe) window.parent.document.removeEventListener('keypress', this.handleKeyPress);else window.document.removeEventListener('keypress', this.handleKeyPress);
205+
if (inIframe) window.parent.document.removeEventListener('keypress', this.handleKeyPress);
206+
window.document.removeEventListener('keypress', this.handleKeyPress);
205207
}
206208
}, {
207209
key: "render",

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
},
6767
"dependencies": {
6868
"prop-types": "^15.6.2",
69-
"react": "^16.6.3"
69+
"react": "^16.6.3",
70+
"react-dom": "^16.6.3"
7071
}
7172
}

0 commit comments

Comments
 (0)