Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Jan 21, 2025
1 parent 2f90d24 commit e75877c
Show file tree
Hide file tree
Showing 21 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/bidiMapper/BidiServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
} from './modules/session/EventManager.js';
import type {OutgoingMessage} from './OutgoingMessage.js';

interface BidiServerEvent {
interface BidiServerEvent extends Record<string | symbol, unknown> {
message: ChromiumBidi.Command;
}

Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/CommandProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const enum CommandProcessorEvents {
Response = 'response',
}

interface CommandProcessorEventsMap {
interface CommandProcessorEventsMap extends Record<string | symbol, unknown> {
[CommandProcessorEvents.Response]: {
message: Promise<Result<OutgoingMessage>>;
event: string;
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/browser/BrowserProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
NoSuchUserContextException,
} from '../../../protocol/protocol.js';
import type {CdpClient} from '../../BidiMapper.js';
import type {BrowsingContextStorage} from '../context/BrowsingContextStorage';
import type {BrowsingContextStorage} from '../context/BrowsingContextStorage.js';

export class BrowserProcessor {
readonly #browserCdpClient: CdpClient;
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/cdp/TargetEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const enum TargetEvents {
FrameStartedNavigating = 'frameStartedNavigating',
}

export interface TargetEventMap {
export interface TargetEventMap extends Record<string | symbol, unknown> {
[TargetEvents.FrameStartedNavigating]: {
loaderId: string;
url: string;
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/context/BrowsingContextImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {type LoggerFn, LogType} from '../../../utils/log.js';
import {getTimestamp} from '../../../utils/time.js';
import {inchesFromCm} from '../../../utils/unitConversions.js';
import type {CdpTarget} from '../cdp/CdpTarget.js';
import {TargetEvents} from '../cdp/TargetEvents';
import {TargetEvents} from '../cdp/TargetEvents.js';
import type {Realm} from '../script/Realm.js';
import type {RealmStorage} from '../script/RealmStorage.js';
import {WindowRealm} from '../script/WindowRealm.js';
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/context/BrowsingContextProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
NoSuchUserContextException,
NoSuchAlertException,
} from '../../../protocol/protocol.js';
import {CdpErrorConstants} from '../../../utils/CdpErrorConstants.js';
import {CdpErrorConstants} from '../../../utils/cdpErrorConstants.js';
import type {EventManager} from '../session/EventManager.js';

import type {BrowsingContextImpl} from './BrowsingContextImpl.js';
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/context/BrowsingContextStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const enum BrowsingContextStorageEvents {
Added = 'added',
}

interface BrowsingContextStorageEvent {
interface BrowsingContextStorageEvent extends Record<string | symbol, unknown> {
[BrowsingContextStorageEvents.Added]: {browsingContext: BrowsingContextImpl};
}

Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/context/NavigationTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import {Deferred} from '../../../utils/Deferred.js';
import {type LoggerFn, LogType} from '../../../utils/log.js';
import {getTimestamp} from '../../../utils/time.js';
import {urlMatchesAboutBlank} from '../../../utils/UrlHelpers.js';
import {urlMatchesAboutBlank} from '../../../utils/urlHelpers.js';
import {uuidv4} from '../../../utils/uuid.js';
import type {EventManager} from '../session/EventManager.js';

Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/input/ActionDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {assert} from '../../../utils/assert.js';
import {
isSingleComplexGrapheme,
isSingleGrapheme,
} from '../../../utils/GraphemeTools.js';
} from '../../../utils/graphemeTools.js';
import type {BrowsingContextImpl} from '../context/BrowsingContextImpl.js';
import type {BrowsingContextStorage} from '../context/BrowsingContextStorage.js';

Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/network/NetworkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {Protocol} from 'devtools-protocol';

import {InvalidArgumentException} from '../../../protocol/ErrorResponse.js';
import {Network, type Storage} from '../../../protocol/protocol.js';
import {base64ToString} from '../../../utils/Base64.js';
import {base64ToString} from '../../../utils/base64.js';

export function computeHeadersSize(headers: Network.Header[]): number {
const requestHeaders = headers.reduce((acc, header) => {
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/script/Realm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
NoSuchHandleException,
Script,
} from '../../../protocol/protocol.js';
import {CdpErrorConstants} from '../../../utils/CdpErrorConstants.js';
import {CdpErrorConstants} from '../../../utils/cdpErrorConstants.js';
import {LogType, type LoggerFn} from '../../../utils/log.js';
import {uuidv4} from '../../../utils/uuid.js';
import type {BrowsingContextImpl} from '../context/BrowsingContextImpl.js';
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/script/WindowRealm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
type BrowsingContext,
type Script,
} from '../../../protocol/protocol.js';
import {CdpErrorConstants} from '../../../utils/CdpErrorConstants.js';
import {CdpErrorConstants} from '../../../utils/cdpErrorConstants.js';
import type {LoggerFn} from '../../../utils/log.js';
import type {BrowsingContextImpl} from '../context/BrowsingContextImpl.js';
import type {BrowsingContextStorage} from '../context/BrowsingContextStorage.js';
Expand Down
2 changes: 1 addition & 1 deletion src/bidiMapper/modules/session/EventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const enum EventManagerEvents {
Event = 'event',
}

interface EventManagerEventsMap {
interface EventManagerEventsMap extends Record<string | symbol, unknown> {
[EventManagerEvents.Event]: {
message: Promise<Result<OutgoingMessage>>;
event: string;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/EventEmitter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import sinon from 'sinon';
import {EventEmitter} from './EventEmitter.js';

describe('EventEmitter', () => {
interface Events {
interface Events extends Record<string | symbol, unknown> {
foo: undefined;
bar: string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Base64.spec.ts → src/utils/base64.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import {expect} from 'chai';

import {base64ToString} from './Base64.js';
import {base64ToString} from './base64.js';

describe('base64ToString', () => {
it('should decode', () => {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import {expect} from 'chai';

import {isSingleComplexGrapheme, isSingleGrapheme} from './GraphemeTools.js';
import {isSingleComplexGrapheme, isSingleGrapheme} from './graphemeTools.js';

describe('GraphemeTools', () => {
describe('isSingleGrapheme', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import {expect} from 'chai';

import {urlMatchesAboutBlank} from './UrlHelpers.js';
import {urlMatchesAboutBlank} from './urlHelpers.js';

describe('BrowsingContextStorage', () => {
describe('urlMatchesAboutBlank', () => {
Expand Down
File renamed without changes.

0 comments on commit e75877c

Please sign in to comment.