Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use Node's promisify function #5748

Merged
merged 1 commit into from Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/helper.ts
Expand Up @@ -13,14 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Errors = require('./Errors');

import debug = require('debug');
import fs = require('fs');
import promisify = require('./promisify');
import {TimeoutError} from './Errors';
import * as debug from 'debug';
import * as fs from 'fs';
import {CDPSession} from './Connection';

const {TimeoutError} = Errors;
import {promisify} from 'util';

const openAsync = promisify(fs.open);
const writeAsync = promisify(fs.write);
Expand Down
51 changes: 0 additions & 51 deletions src/promisify.ts

This file was deleted.