Skip to content

Commit f6e083a

Browse files
committed
update deps. Closes #70
1 parent 2096e70 commit f6e083a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Zlib = require('zlib');
99
const Boom = require('@hapi/boom');
1010
const Bourne = require('@hapi/bourne');
1111
const Content = require('@hapi/content');
12+
const File = require('@hapi/file');
1213
const Hoek = require('@hapi/hoek');
1314
const Pez = require('@hapi/pez');
1415
const Wreck = require('@hapi/wreck');
@@ -303,7 +304,7 @@ internals.writeFile = function (req, options, stream) {
303304

304305
const promise = new Promise((resolve, reject) => {
305306

306-
const path = Hoek.uniqueFilename(options.uploads || Os.tmpdir());
307+
const path = File.uniqueFilename(options.uploads || Os.tmpdir());
307308
const file = Fs.createWriteStream(path, { flags: 'wx' });
308309
const counter = new internals.Counter();
309310

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
"@hapi/boom": "7.x.x",
1616
"@hapi/bourne": "1.x.x",
1717
"@hapi/content": "4.x.x",
18-
"@hapi/hoek": "6.x.x",
18+
"@hapi/file": "1.x.x",
19+
"@hapi/hoek": "8.x.x",
1920
"@hapi/pez": "4.x.x",
2021
"@hapi/wreck": "15.x.x"
2122
},
2223
"devDependencies": {
2324
"@hapi/code": "5.x.x",
24-
"@hapi/lab": "18.x.x",
25-
"form-data": "2.1.x"
25+
"@hapi/lab": "19.x.x",
26+
"form-data": "2.x.x"
2627
},
2728
"scripts": {
2829
"test": "lab -a @hapi/code -t 100 -L",

0 commit comments

Comments
 (0)