Remove mz, mkdirp, body-parser dependencies

'mz' can be safely replaced with fs.promises
and util.promisify for faster native methods.
'mkdirp' after Node v8 uses native fs.mkdir, thus
is redundant. 'body-parser' is deprecated and
contained within express v4.x.

Closes: #1567
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
This commit is contained in:
Christina Wang
2021-04-27 04:54:04 +09:00
parent f40cde8372
commit 4a2ac557ef
63 changed files with 482 additions and 317 deletions

View File

@ -1,8 +1,8 @@
import { fs } from 'mz';
import { promises as fs } from 'fs';
import * as os from 'os';
import { stub, spy } from 'sinon';
import { expect } from './lib/chai-config';
import { expect } from 'chai';
import Log from '../src/lib/supervisor-console';
import * as network from '../src/network';