From 4f96090db9596e5259a1e565a36140b85bd49e92 Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Mon, 18 Oct 2021 10:27:14 +0500 Subject: [PATCH] fix(typescript): fix typings path --- src/analyze.ts | 2 +- src/extractors/scopes.ts | 2 +- src/finders/request/body.ts | 2 +- src/finders/request/cookies.ts | 2 +- src/finders/request/headers.ts | 2 +- src/finders/request/index.ts | 2 +- src/finders/request/params.ts | 2 +- src/finders/request/property.ts | 2 +- src/finders/request/query.ts | 2 +- src/utils/is-scope-in.ts | 2 +- tsconfig.json | 2 +- {src/types => types}/interfaces.d.ts | 0 12 files changed, 11 insertions(+), 11 deletions(-) rename {src/types => types}/interfaces.d.ts (100%) diff --git a/src/analyze.ts b/src/analyze.ts index 092a371..0ec2e32 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -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'; diff --git a/src/extractors/scopes.ts b/src/extractors/scopes.ts index e1c44cb..165aad5 100644 --- a/src/extractors/scopes.ts +++ b/src/extractors/scopes.ts @@ -1,4 +1,4 @@ -import { BlockMode } from '../types/interfaces'; +import { BlockMode } from '../../types/interfaces'; export default (line: string): ['request' | 'req', BlockMode, string?] => { const matches = []; diff --git a/src/finders/request/body.ts b/src/finders/request/body.ts index 91aa147..3c7ad59 100644 --- a/src/finders/request/body.ts +++ b/src/finders/request/body.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestModeBodyFinder( diff --git a/src/finders/request/cookies.ts b/src/finders/request/cookies.ts index f2a5863..d05dd5f 100644 --- a/src/finders/request/cookies.ts +++ b/src/finders/request/cookies.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestModeCookiesFinder( diff --git a/src/finders/request/headers.ts b/src/finders/request/headers.ts index ab7dc4c..4d248af 100644 --- a/src/finders/request/headers.ts +++ b/src/finders/request/headers.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestModeHeadersFinder( diff --git a/src/finders/request/index.ts b/src/finders/request/index.ts index c8c6d86..cdc3e7f 100644 --- a/src/finders/request/index.ts +++ b/src/finders/request/index.ts @@ -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'; diff --git a/src/finders/request/params.ts b/src/finders/request/params.ts index 096053f..961311b 100644 --- a/src/finders/request/params.ts +++ b/src/finders/request/params.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestModeParamsFinder( diff --git a/src/finders/request/property.ts b/src/finders/request/property.ts index 2c9b347..5cb01df 100644 --- a/src/finders/request/property.ts +++ b/src/finders/request/property.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestMethodFinder( diff --git a/src/finders/request/query.ts b/src/finders/request/query.ts index 70e0b3f..ed9aa6a 100644 --- a/src/finders/request/query.ts +++ b/src/finders/request/query.ts @@ -1,4 +1,4 @@ -import { IBlock } from '../../types/interfaces'; +import { IBlock } from '../../../types/interfaces'; import variableKeyExtractor from '../../extractors/variable-key'; export default function requestModeQueryFinder( diff --git a/src/utils/is-scope-in.ts b/src/utils/is-scope-in.ts index 150cb6f..bd99c3b 100644 --- a/src/utils/is-scope-in.ts +++ b/src/utils/is-scope-in.ts @@ -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); diff --git a/tsconfig.json b/tsconfig.json index cd4ec0f..97fee93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "include": ["src", "types"], + "include": ["src", "types", "types"], "exclude": ["node_modules", "tests"], "compilerOptions": { "target": "es2015", diff --git a/src/types/interfaces.d.ts b/types/interfaces.d.ts similarity index 100% rename from src/types/interfaces.d.ts rename to types/interfaces.d.ts