diff --git a/sources/src/call-validators/analyzers.ts b/sources/src/call-validators/analyzers.ts index 938a255..6db81d4 100644 --- a/sources/src/call-validators/analyzers.ts +++ b/sources/src/call-validators/analyzers.ts @@ -1,4 +1,4 @@ -import type {getCallStack} from '../utils'; +import type {getCallStack} from '../utils.js'; type Analyzer = (line: string) => boolean; class MemoizedCallAnalyzer { diff --git a/sources/src/call-validators/suites.ts b/sources/src/call-validators/suites.ts index 928d017..07697d3 100644 --- a/sources/src/call-validators/suites.ts +++ b/sources/src/call-validators/suites.ts @@ -1,5 +1,5 @@ -import {type getCallStack} from '../utils'; -import {adShieldCallAnalyzer} from './analyzers'; +import {type getCallStack} from '../utils.js'; +import {adShieldCallAnalyzer} from './analyzers.js'; export type ValidatorFunction = (callStack: ReturnType) => boolean; diff --git a/sources/src/loaders/basedrop.ts b/sources/src/loaders/basedrop.ts index c87e77e..686dca6 100644 --- a/sources/src/loaders/basedrop.ts +++ b/sources/src/loaders/basedrop.ts @@ -1,4 +1,4 @@ -import {createDebug, documentReady} from '../utils'; +import {createDebug, documentReady} from '../utils.js'; const debug = createDebug('[microShield:basedrop]'); diff --git a/sources/src/loaders/basera1n.ts b/sources/src/loaders/basera1n.ts index 0845486..4eef3be 100644 --- a/sources/src/loaders/basera1n.ts +++ b/sources/src/loaders/basera1n.ts @@ -1,4 +1,4 @@ -import * as asKit from '../adshield-defuser-libs/basera1n'; +import * as asKit from '../adshield-defuser-libs/basera1n.js'; import {createDebug, documentReady} from '../utils.js'; const debug = createDebug('[microShield:basera1n]'); diff --git a/sources/src/loaders/baseshower.ts b/sources/src/loaders/baseshower.ts index 36bf19b..e4da193 100644 --- a/sources/src/loaders/baseshower.ts +++ b/sources/src/loaders/baseshower.ts @@ -1,4 +1,4 @@ -import * as asKit from '../adshield-defuser-libs/baseshower'; +import * as asKit from '../adshield-defuser-libs/baseshower.js'; import {createDebug, documentReady} from '../utils.js'; const debug = createDebug('[microShield:baseshower]'); diff --git a/sources/src/utils.ts b/sources/src/utils.ts index a447daa..104e60b 100644 --- a/sources/src/utils.ts +++ b/sources/src/utils.ts @@ -1,5 +1,5 @@ -import {isNotResourceInfectedByAdShield, knownAdShieldOrigins} from './call-validators/analyzers'; -import {adShieldOriginCheck, adShieldStrictCheck} from './call-validators/suites'; +import {isNotResourceInfectedByAdShield, knownAdShieldOrigins} from './call-validators/analyzers.js'; +import {adShieldOriginCheck, adShieldStrictCheck} from './call-validators/suites.js'; // eslint-disable-next-line @typescript-eslint/naming-convention type unsafeWindow = typeof window;