mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: use common debugError (#11039)
This commit is contained in:
parent
48f9382d5e
commit
e853e636d4
@ -28,6 +28,7 @@ import {BrowserContextEvent} from '../api/BrowserContext.js';
|
||||
import {type Page} from '../api/Page.js';
|
||||
import {type Target} from '../api/Target.js';
|
||||
import {type Handler} from '../common/EventEmitter.js';
|
||||
import {debugError} from '../common/util.js';
|
||||
import {type Viewport} from '../common/Viewport.js';
|
||||
|
||||
import {BidiBrowserContext} from './BrowserContext.js';
|
||||
@ -39,7 +40,6 @@ import {
|
||||
BiDiPageTarget,
|
||||
type BidiTarget,
|
||||
} from './Target.js';
|
||||
import {debugError} from './util.js';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
@ -6,12 +6,12 @@ import {type Connection as CdpConnection} from '../cdp/Connection.js';
|
||||
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||
import {TargetCloseError} from '../common/Errors.js';
|
||||
import {type EventType} from '../common/EventEmitter.js';
|
||||
import {debugError} from '../common/util.js';
|
||||
import {assert} from '../util/assert.js';
|
||||
import {Deferred} from '../util/Deferred.js';
|
||||
|
||||
import {type BidiConnection} from './Connection.js';
|
||||
import {BidiRealm} from './Realm.js';
|
||||
import {debugError} from './util.js';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
@ -20,9 +20,9 @@ import {CallbackRegistry} from '../cdp/Connection.js';
|
||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||
import {debug} from '../common/Debug.js';
|
||||
import {EventEmitter} from '../common/EventEmitter.js';
|
||||
import {debugError} from '../common/util.js';
|
||||
|
||||
import {type BrowsingContext, cdpSessions} from './BrowsingContext.js';
|
||||
import {debugError} from './util.js';
|
||||
|
||||
const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►');
|
||||
const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀');
|
||||
|
@ -17,6 +17,7 @@
|
||||
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||
|
||||
import {type Awaitable, type FlattenHandle} from '../common/types.js';
|
||||
import {debugError} from '../common/util.js';
|
||||
import {assert} from '../util/assert.js';
|
||||
import {Deferred} from '../util/Deferred.js';
|
||||
import {interpolateFunction, stringifyFunction} from '../util/Function.js';
|
||||
@ -24,7 +25,6 @@ import {interpolateFunction, stringifyFunction} from '../util/Function.js';
|
||||
import {type BidiConnection} from './Connection.js';
|
||||
import {type BidiFrame} from './Frame.js';
|
||||
import {BidiSerializer} from './Serializer.js';
|
||||
import {debugError} from './util.js';
|
||||
|
||||
type SendArgsChannel<Args> = (value: [id: number, args: Args]) => void;
|
||||
type SendResolveChannel<Ret> = (
|
||||
|
@ -16,17 +16,11 @@
|
||||
|
||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||
|
||||
import {debug} from '../common/Debug.js';
|
||||
import {PuppeteerURL} from '../common/util.js';
|
||||
import {PuppeteerURL, debugError} from '../common/util.js';
|
||||
|
||||
import {type BidiRealm} from './Realm.js';
|
||||
import {BidiSerializer} from './Serializer.js';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const debugError = debug('puppeteer:error');
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user