diff --git a/package.json b/package.json index 70b7095..173c4e4 100644 --- a/package.json +++ b/package.json @@ -39,21 +39,21 @@ "babel-preset-env": "^1.1.10", "babel-register": "^6.16.3", "chai": "^3.5.0", - "chai-as-promised": "^6.0.0", + "chai-as-promised": "^7.1.1", "chai-iterator": "^1.1.1", "chai-string": "^1.3.0", - "codecov": "^1.0.1", - "cross-env": "^3.1.4", + "codecov": "^2.2.0", + "cross-env": "^5.0.1", "form-data": ">=1.0.0", "mocha": "^3.1.2", - "nyc": "^10.0.0", + "nyc": "^11.1.0", "parted": "^0.1.1", - "promise": "^7.1.1", + "promise": "^8.0.1", "resumer": "0.0.0", - "rollup": "^0.41.4", + "rollup": "^0.45.2", "rollup-plugin-babel": "^2.6.1", "url-search-params": "^0.9.0", - "whatwg-url": "^4.0.0" + "whatwg-url": "^5.0.0" }, "dependencies": {} } diff --git a/test/test.js b/test/test.js index 7c6795d..91e9e07 100644 --- a/test/test.js +++ b/test/test.js @@ -5,16 +5,17 @@ import chaiPromised from 'chai-as-promised'; import chaiIterator from 'chai-iterator'; import chaiString from 'chai-string'; import then from 'promise'; -import {spawn} from 'child_process'; -import * as stream from 'stream'; import resumer from 'resumer'; import FormData from 'form-data'; import URLSearchParams_Polyfill from 'url-search-params'; -import {parse as parseURL, URLSearchParams} from 'url'; -import {URL} from 'whatwg-url'; -import * as http from 'http'; -import * as fs from 'fs'; -import * as path from 'path'; +import { URL } from 'whatwg-url'; + +const { spawn } = require('child_process'); +const http = require('http'); +const fs = require('fs'); +const path = require('path'); +const stream = require('stream'); +const { parse: parseURL, URLSearchParams } = require('url'); let convert; try { convert = require('encoding').convert; } catch(e) { }