Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix: moduleResolution issue while compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Mar 12, 2024
1 parent 031a54b commit dcccf68
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sources/src/call-validators/analyzers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {getCallStack} from '../utils';
import type {getCallStack} from '../utils.js';
type Analyzer = (line: string) => boolean;

class MemoizedCallAnalyzer {
Expand Down
4 changes: 2 additions & 2 deletions sources/src/call-validators/suites.ts
Original file line number Diff line number Diff line change
@@ -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<typeof getCallStack>) => boolean;

Expand Down
2 changes: 1 addition & 1 deletion sources/src/loaders/basedrop.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {createDebug, documentReady} from '../utils';
import {createDebug, documentReady} from '../utils.js';

const debug = createDebug('[microShield:basedrop]');

Expand Down
2 changes: 1 addition & 1 deletion sources/src/loaders/basera1n.ts
Original file line number Diff line number Diff line change
@@ -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]');
Expand Down
2 changes: 1 addition & 1 deletion sources/src/loaders/baseshower.ts
Original file line number Diff line number Diff line change
@@ -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]');
Expand Down
4 changes: 2 additions & 2 deletions sources/src/utils.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit dcccf68

Please sign in to comment.