chore: fix errors from previous

This commit is contained in:
Oj 2023-01-19 14:26:13 +00:00
parent ca2d46d209
commit 4bb5ff2932
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import { exec } from 'child_process';
import { log } from '../lib/logger';
import { log } from '../lib/logger.js';
const killProcesses = async pids => new Promise(resolve => exec(process.platform !== 'win32' ? `kill -9 ${pids.join(' ')}` : `taskkill /F ${pids.map(x => `/PID ${x}`).join(' ')}`, (e, out) => resolve(out)));

View File

@ -1,6 +1,6 @@
import WebSocket from 'ws';
import { get } from 'http';
import { log } from './logger';
import { log } from './logger.js';
const logCDP = process.argv.includes('--cdp-logging');

View File

@ -1,6 +1,6 @@
import { basename, dirname, extname, join } from 'path';
import { readFile } from 'fs/promises';
import { log } from '../logger';
import { log } from '../logger.js';
const generatePath = (pathname, indexFile) => {
if (pathname === '/') return indexFile;

View File

@ -1,7 +1,7 @@
import { basename, dirname, extname, join } from 'path';
import { readFile } from 'fs/promises';
import { createServer } from 'http';
import { log } from '../logger';
import { log } from '../logger.js';
const generatePath = (pathname, indexFile) => {
if (pathname === '/') return indexFile;