Skip to content

Commit

Permalink
fix(typescript): fix typings path
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Oct 18, 2021
1 parent 49bb36b commit 4f96090
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/analyze.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from './types/interfaces';
import { IBlock } from '../types/interfaces';
import caseRequestModeFinder from './finders/request';
import babelCompilerManipulationNormalize from './utils/babel-normalise';
import eachStringLine from './utils/each-str-line';
Expand Down
2 changes: 1 addition & 1 deletion src/extractors/scopes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BlockMode } from '../types/interfaces';
import { BlockMode } from '../../types/interfaces';

export default (line: string): ['request' | 'req', BlockMode, string?] => {
const matches = [];
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/body.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestModeBodyFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/cookies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestModeCookiesFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/headers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestModeHeadersFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import scopeExtractor from '../../extractors/scopes';
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import isScopeIn from '../../utils/is-scope-in';
import requestModeBodyFinder from './body';
import requestModeCookiesFinder from './cookies';
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestModeParamsFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/property.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestMethodFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/finders/request/query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBlock } from '../../types/interfaces';
import { IBlock } from '../../../types/interfaces';
import variableKeyExtractor from '../../extractors/variable-key';

export default function requestModeQueryFinder(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/is-scope-in.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BlockMode } from '../types/interfaces';
import { BlockMode } from '../../types/interfaces';

const scopes = ['headers', 'cookies', 'params', 'query', 'body', 'property'];
const isScopeIn = (scope: BlockMode): boolean => scopes.includes(scope);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"include": ["src", "types"],
"include": ["src", "types", "types"],
"exclude": ["node_modules", "tests"],
"compilerOptions": {
"target": "es2015",
Expand Down
File renamed without changes.

0 comments on commit 4f96090

Please sign in to comment.