@static-suite/static-suite-data-server 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +0 -3
- package/.husky/pre-commit +4 -0
- package/api-extractor.json +1 -1
- package/dist/bin/serve.js +4 -6
- package/dist/http/httpServer.js +1 -1
- package/dist/http/public/assets/bulma/bulma.min.css +1 -1
- package/dist/http/public/assets/clipboard/clipboard.min.js +2 -2
- package/dist/http/public/assets/simple-datatables/index.js +2 -6
- package/dist/http/public/assets/simple-datatables/style.css +87 -51
- package/dist/http/routes/cache.js +2 -2
- package/dist/http/routes/data.js +3 -3
- package/dist/http/routes/dependency.d.ts.map +1 -1
- package/dist/http/routes/dependency.js +5 -5
- package/dist/http/routes/docs.js +3 -3
- package/dist/http/routes/dump.js +3 -3
- package/dist/http/routes/query.js +2 -2
- package/dist/http/routes/status.js +7 -7
- package/dist/http/routes/task.js +2 -2
- package/dist/http/views/cacheIndex.pug +1 -1
- package/dist/http/views/docs.pug +1 -1
- package/dist/lib/config/config.js +2 -2
- package/dist/lib/config/config.types.d.ts +3 -3
- package/dist/lib/config/config.types.d.ts.map +1 -1
- package/dist/lib/config/error/InvalidRunMode.d.ts +1 -1
- package/dist/lib/config/error/InvalidRunMode.d.ts.map +1 -1
- package/dist/lib/config/error/InvalidRunMode.js +1 -1
- package/dist/lib/config/error/MissingDirectory.d.ts +1 -1
- package/dist/lib/config/error/MissingDirectory.d.ts.map +1 -1
- package/dist/lib/config/error/MissingDirectory.js +1 -1
- package/dist/lib/config/error/MissingRequiredOption.d.ts +1 -1
- package/dist/lib/config/error/MissingRequiredOption.d.ts.map +1 -1
- package/dist/lib/config/error/MissingRequiredOption.js +1 -1
- package/dist/lib/config/error/NonWritableDirectory.d.ts +1 -1
- package/dist/lib/config/error/NonWritableDirectory.d.ts.map +1 -1
- package/dist/lib/config/error/NonWritableDirectory.js +1 -1
- package/dist/lib/config/error/index.js +5 -1
- package/dist/lib/config/index.js +5 -1
- package/dist/lib/dataServer.d.ts +4 -4
- package/dist/lib/dataServer.d.ts.map +1 -1
- package/dist/lib/dataServer.js +9 -9
- package/dist/lib/dataServer.types.d.ts +5 -5
- package/dist/lib/dataServer.types.d.ts.map +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +5 -3
- package/dist/lib/query/index.js +5 -1
- package/dist/lib/query/query.types.d.ts +8 -8
- package/dist/lib/query/query.types.d.ts.map +1 -1
- package/dist/lib/query/queryManager.js +1 -1
- package/dist/lib/query/queryRunner.js +6 -6
- package/dist/lib/query/queryTagManager.js +1 -1
- package/dist/lib/store/dataDir/dataDir.types.d.ts +1 -1
- package/dist/lib/store/dataDir/dataDir.types.d.ts.map +1 -1
- package/dist/lib/store/dataDir/dataDirManager.js +10 -10
- package/dist/lib/store/dataDir/index.js +5 -1
- package/dist/lib/store/dependency/dependency.types.d.ts +3 -3
- package/dist/lib/store/dependency/dependency.types.d.ts.map +1 -1
- package/dist/lib/store/dependency/dependencyFileHelper.d.ts +1 -1
- package/dist/lib/store/dependency/dependencyFileHelper.d.ts.map +1 -1
- package/dist/lib/store/diff/diff.types.d.ts +2 -2
- package/dist/lib/store/diff/diff.types.d.ts.map +1 -1
- package/dist/lib/store/diff/diffManager.js +1 -1
- package/dist/lib/store/diff/index.js +5 -1
- package/dist/lib/store/dump/dump.types.d.ts +3 -3
- package/dist/lib/store/dump/dump.types.d.ts.map +1 -1
- package/dist/lib/store/dump/dumpManager.js +4 -4
- package/dist/lib/store/dump/dumpMetadataHelper.js +3 -3
- package/dist/lib/store/dump/index.js +5 -1
- package/dist/lib/store/hook/hook.types.d.ts +7 -7
- package/dist/lib/store/hook/hook.types.d.ts.map +1 -1
- package/dist/lib/store/hook/hookManager.js +5 -5
- package/dist/lib/store/hook/index.js +5 -1
- package/dist/lib/store/include/includeParser.types.d.ts +5 -5
- package/dist/lib/store/include/includeParser.types.d.ts.map +1 -1
- package/dist/lib/store/include/index.js +5 -1
- package/dist/lib/store/include/parsers/entityIncludeParser.js +1 -1
- package/dist/lib/store/include/parsers/index.js +5 -1
- package/dist/lib/store/include/parsers/queryIncludeParser.js +5 -5
- package/dist/lib/store/include/parsers/types/aliasIncludeParser.d.ts +1 -1
- package/dist/lib/store/include/parsers/types/aliasIncludeParser.d.ts.map +1 -1
- package/dist/lib/store/include/parsers/types/aliasIncludeParser.js +1 -1
- package/dist/lib/store/include/parsers/types/aliasWithoutTypeIncludeParser.d.ts +1 -1
- package/dist/lib/store/include/parsers/types/aliasWithoutTypeIncludeParser.d.ts.map +1 -1
- package/dist/lib/store/include/parsers/types/aliasWithoutTypeIncludeParser.js +1 -1
- package/dist/lib/store/index.js +5 -1
- package/dist/lib/store/store.js +3 -3
- package/dist/lib/store/store.types.d.ts +4 -4
- package/dist/lib/store/store.types.d.ts.map +1 -1
- package/dist/lib/store/storeManager.js +2 -2
- package/dist/lib/store/workDir/index.js +5 -1
- package/dist/lib/store/workDir/storage/getChangedLinesBetween.js +2 -2
- package/dist/lib/store/workDir/storage/getDataFromLogLine.js +1 -1
- package/dist/lib/store/workDir/storage/getLogFile.js +1 -1
- package/dist/lib/store/workDir/storage/index.js +5 -1
- package/dist/lib/store/workDir/workDir.types.d.ts +2 -2
- package/dist/lib/store/workDir/workDir.types.d.ts.map +1 -1
- package/dist/lib/store/workDir/workDirHelper.js +2 -2
- package/dist/lib/task/index.js +5 -1
- package/dist/lib/task/task.types.d.ts +7 -7
- package/dist/lib/task/task.types.d.ts.map +1 -1
- package/dist/lib/task/taskManager.js +1 -1
- package/dist/lib/task/taskRunner.js +3 -3
- package/dist/lib/tsdoc-metadata.json +1 -1
- package/dist/lib/utils/cache/cacheBinManager.d.ts +2 -2
- package/dist/lib/utils/cache/cacheBinManager.d.ts.map +1 -1
- package/dist/lib/utils/cache/index.js +5 -1
- package/dist/lib/utils/fs/fs.types.d.ts +2 -2
- package/dist/lib/utils/fs/fs.types.d.ts.map +1 -1
- package/dist/lib/utils/fs/fsUtils.js +2 -2
- package/dist/lib/utils/fs/index.js +5 -1
- package/dist/lib/utils/logger/index.js +5 -1
- package/dist/lib/utils/logger/logger.d.ts +1 -1
- package/dist/lib/utils/logger/logger.d.ts.map +1 -1
- package/dist/lib/utils/logger/logger.js +3 -1
- package/dist/lib/utils/logger/logger.types.d.ts +3 -3
- package/dist/lib/utils/logger/logger.types.d.ts.map +1 -1
- package/dist/lib/utils/module/dirBasedModuleGroupManager.js +3 -3
- package/dist/lib/utils/module/index.js +5 -1
- package/dist/lib/utils/module/module.types.d.ts +2 -2
- package/dist/lib/utils/module/module.types.d.ts.map +1 -1
- package/dist/lib/utils/module/moduleManager.js +3 -3
- package/dist/lib/utils/object/index.js +5 -1
- package/dist/lib/utils/object/object.types.d.ts +2 -2
- package/dist/lib/utils/object/object.types.d.ts.map +1 -1
- package/dist/lib/utils/object/objectUtils.d.ts +2 -2
- package/dist/lib/utils/object/objectUtils.d.ts.map +1 -1
- package/dist/lib/utils/string/index.js +5 -1
- package/dist/lib/utils/string/string.types.d.ts +1 -1
- package/dist/lib/utils/string/string.types.d.ts.map +1 -1
- package/dist/lib/utils/string/stringUtils.d.ts +1 -1
- package/dist/lib/utils/string/stringUtils.js +2 -2
- package/dist/lib/watcher/index.js +5 -1
- package/dist/lib/watcher/watcher.js +8 -8
- package/dist/static-suite-data-server.d.ts +201 -27
- package/package.json +43 -60
- package/src/bin/serve.ts +4 -6
- package/src/http/httpServer.ts +1 -1
- package/src/http/routes/cache.ts +2 -2
- package/src/http/routes/data.ts +3 -3
- package/src/http/routes/dependency.ts +5 -6
- package/src/http/routes/docs.ts +3 -3
- package/src/http/routes/dump.ts +3 -3
- package/src/http/routes/query.ts +3 -3
- package/src/http/routes/status.ts +8 -8
- package/src/http/routes/task.ts +3 -3
- package/src/http/views/cacheIndex.pug +1 -1
- package/src/http/views/docs.pug +1 -1
- package/src/lib/config/__tests__/config.test.ts +1 -1
- package/src/lib/config/config.ts +2 -2
- package/src/lib/config/config.types.ts +1 -1
- package/src/lib/config/error/InvalidRunMode.ts +1 -1
- package/src/lib/config/error/MissingDirectory.ts +1 -1
- package/src/lib/config/error/MissingRequiredOption.ts +1 -1
- package/src/lib/config/error/NonWritableDirectory.ts +1 -1
- package/src/lib/dataServer.ts +11 -11
- package/src/lib/dataServer.types.ts +2 -2
- package/src/lib/index.ts +0 -3
- package/src/lib/query/__tests__/queryRunner.test.ts +4 -4
- package/src/lib/query/query.types.ts +1 -1
- package/src/lib/query/queryManager.ts +1 -1
- package/src/lib/query/queryRunner.ts +6 -6
- package/src/lib/query/queryTagManager.ts +2 -2
- package/src/lib/store/dataDir/__tests__/dataDirManager.test.ts +1 -1
- package/src/lib/store/dataDir/dataDirManager.ts +10 -10
- package/src/lib/store/dependency/dependencyFileHelper.ts +1 -1
- package/src/lib/store/diff/diffManager.ts +1 -1
- package/src/lib/store/dump/dumpManager.ts +4 -4
- package/src/lib/store/dump/dumpMetadataHelper.ts +3 -3
- package/src/lib/store/hook/hook.types.ts +5 -5
- package/src/lib/store/hook/hookManager.ts +6 -6
- package/src/lib/store/include/__tests__/includeParser.test.ts +2 -2
- package/src/lib/store/include/includeParser.ts +1 -1
- package/src/lib/store/include/includeParser.types.ts +1 -1
- package/src/lib/store/include/parsers/entityIncludeParser.ts +1 -1
- package/src/lib/store/include/parsers/queryIncludeParser.ts +5 -5
- package/src/lib/store/include/parsers/types/aliasIncludeParser.ts +2 -2
- package/src/lib/store/include/parsers/types/aliasWithoutTypeIncludeParser.ts +2 -2
- package/src/lib/store/store.ts +3 -3
- package/src/lib/store/storeManager.ts +3 -3
- package/src/lib/store/workDir/__tests__/workDirHelper.test.ts +1 -1
- package/src/lib/store/workDir/storage/__tests__/getChangedLinesBetween.test.ts +1 -1
- package/src/lib/store/workDir/storage/getChangedLinesBetween.ts +2 -2
- package/src/lib/store/workDir/storage/getDataFromLogLine.ts +1 -1
- package/src/lib/store/workDir/storage/getLogFile.ts +1 -1
- package/src/lib/store/workDir/workDirHelper.ts +2 -2
- package/src/lib/task/__tests__/taskRunner.test.ts +3 -3
- package/src/lib/task/task.types.ts +1 -1
- package/src/lib/task/taskManager.ts +1 -1
- package/src/lib/task/taskRunner.ts +3 -3
- package/src/lib/utils/fs/__tests__/fsUtils.test.ts +1 -1
- package/src/lib/utils/fs/fs.types.ts +1 -1
- package/src/lib/utils/fs/fsUtils.ts +2 -2
- package/src/lib/utils/logger/__tests__/logger.test.ts +1 -1
- package/src/lib/utils/logger/logger.ts +1 -0
- package/src/lib/utils/module/__tests__/dirBasedModuleGroupManager.test.ts +2 -2
- package/src/lib/utils/module/__tests__/moduleHandler.test.ts +19 -11
- package/src/lib/utils/module/dirBasedModuleGroupManager.ts +3 -3
- package/src/lib/utils/module/moduleManager.ts +3 -3
- package/src/lib/utils/object/objectUtils.ts +4 -1
- package/src/lib/utils/string/__tests__/stringUtils.test.ts +4 -2
- package/src/lib/utils/string/stringUtils.ts +2 -2
- package/src/lib/watcher/watcher.ts +8 -8
- package/tsconfig.json +0 -4
package/src/http/views/docs.pug
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RunMode } from '@lib/dataServer.types';
|
|
2
1
|
import fs from 'fs';
|
|
3
2
|
import path from 'path';
|
|
3
|
+
import { RunMode } from '../../dataServer.types';
|
|
4
4
|
import { setConfig } from '../config';
|
|
5
5
|
import { ConfigOptions, NonSanitizedConfigOptions } from '../config.types';
|
|
6
6
|
import {
|
package/src/lib/config/config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { RunMode } from '
|
|
4
|
-
import { hasKey } from '
|
|
3
|
+
import { RunMode } from '../dataServer.types';
|
|
4
|
+
import { hasKey } from '../utils/object';
|
|
5
5
|
import { ConfigOptions, NonSanitizedConfigOptions } from './config.types';
|
|
6
6
|
import {
|
|
7
7
|
InvalidRunMode,
|
package/src/lib/dataServer.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { configureLogger } from '
|
|
2
|
-
import { LogLevel, LogFile } from '
|
|
3
|
-
import { initWatcher } from '
|
|
4
|
-
import { setConfig } from '
|
|
5
|
-
import { dataDirManager } from '
|
|
6
|
-
import { store } from '
|
|
7
|
-
import { Store } from '
|
|
8
|
-
import { queryRunner } from '
|
|
9
|
-
import { taskRunner } from '
|
|
10
|
-
import { TaskRunner } from '
|
|
1
|
+
import { configureLogger } from './utils/logger';
|
|
2
|
+
import { LogLevel, LogFile } from './utils/logger/logger.types';
|
|
3
|
+
import { initWatcher } from './watcher';
|
|
4
|
+
import { setConfig } from './config';
|
|
5
|
+
import { dataDirManager } from './store/dataDir';
|
|
6
|
+
import { store } from './store';
|
|
7
|
+
import { Store } from './store/store.types';
|
|
8
|
+
import { queryRunner } from './query';
|
|
9
|
+
import { taskRunner } from './task/taskRunner';
|
|
10
|
+
import { TaskRunner } from './task/task.types';
|
|
11
11
|
import {
|
|
12
12
|
QueryRunner,
|
|
13
13
|
QuerySuccessfulResponse,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
QueryArgs,
|
|
16
16
|
QueryModule,
|
|
17
17
|
CacheStatus,
|
|
18
|
-
} from '
|
|
18
|
+
} from './query/query.types';
|
|
19
19
|
import {
|
|
20
20
|
RunMode,
|
|
21
21
|
DataServerReturn,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LogLevel, LogFile } from '
|
|
2
|
-
import { QueryRunner } from '
|
|
1
|
+
import { LogLevel, LogFile } from './utils/logger/logger.types';
|
|
2
|
+
import { QueryRunner } from './query/query.types';
|
|
3
3
|
import { TaskRunner } from './task/task.types';
|
|
4
4
|
import { Store } from './store/store.types';
|
|
5
5
|
|
package/src/lib/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { config } from '
|
|
4
|
-
import { RunMode } from '
|
|
5
|
-
import { cache } from '
|
|
6
|
-
import { logger } from '
|
|
3
|
+
import { config } from '../../config';
|
|
4
|
+
import { RunMode } from '../../dataServer.types';
|
|
5
|
+
import { cache } from '../../utils/cache';
|
|
6
|
+
import { logger } from '../../utils/logger';
|
|
7
7
|
import { isQueryErrorResponse } from '../query.types';
|
|
8
8
|
import { queryRunner } from '../queryRunner';
|
|
9
9
|
import { queryManager } from '../queryManager';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import microtime from 'microtime';
|
|
2
|
-
import { config } from '
|
|
3
|
-
import { store } from '
|
|
4
|
-
import { logger } from '
|
|
5
|
-
import { cache } from '
|
|
6
|
-
import { parseURLSearchParams } from '
|
|
7
|
-
import { dependencyTagger } from '
|
|
2
|
+
import { config } from '../config';
|
|
3
|
+
import { store } from '../store';
|
|
4
|
+
import { logger } from '../utils/logger';
|
|
5
|
+
import { cache } from '../utils/cache';
|
|
6
|
+
import { parseURLSearchParams } from '../utils/string';
|
|
7
|
+
import { dependencyTagger } from '../store/dependency/dependencyTagger';
|
|
8
8
|
import { queryManager } from './queryManager';
|
|
9
9
|
import {
|
|
10
10
|
QueryModuleResult,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { store } from '
|
|
2
|
-
import { Json } from '
|
|
1
|
+
import { store } from '../store/store';
|
|
2
|
+
import { Json } from '../utils/object/object.types';
|
|
3
3
|
import { QueryTagManager } from './query.types';
|
|
4
4
|
|
|
5
5
|
const invalidatedTags = new Set<string>();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import microtime from 'microtime';
|
|
2
|
-
import { config } from '
|
|
3
|
-
import { store } from '
|
|
4
|
-
import { findFilesInDir } from '
|
|
5
|
-
import { logger } from '
|
|
6
|
-
import { unixEpochUniqueId, workDirHelper } from '
|
|
7
|
-
import { cache } from '
|
|
8
|
-
import { storeManager } from '
|
|
9
|
-
import { hookManager } from '
|
|
10
|
-
import { queryManager } from '
|
|
11
|
-
import { taskManager } from '
|
|
2
|
+
import { config } from '../../config';
|
|
3
|
+
import { store } from '../store';
|
|
4
|
+
import { findFilesInDir } from '../../utils/fs';
|
|
5
|
+
import { logger } from '../../utils/logger';
|
|
6
|
+
import { unixEpochUniqueId, workDirHelper } from '../workDir';
|
|
7
|
+
import { cache } from '../../utils/cache';
|
|
8
|
+
import { storeManager } from '../storeManager';
|
|
9
|
+
import { hookManager } from '../hook';
|
|
10
|
+
import { queryManager } from '../../query';
|
|
11
|
+
import { taskManager } from '../../task';
|
|
12
12
|
import { DataDirManager } from './dataDir.types';
|
|
13
13
|
import { ChangedFiles } from '../workDir/workDir.types';
|
|
14
14
|
import { dependencyManager } from '../dependency/dependencyManager';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import microtime from 'microtime';
|
|
2
|
-
import { logger } from '
|
|
2
|
+
import { logger } from '../../utils/logger';
|
|
3
3
|
import { store } from '../store';
|
|
4
4
|
import { DiffManager, Diff } from './diff.types';
|
|
5
5
|
import { dataDirManager } from '../dataDir/dataDirManager';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import microtime from 'microtime';
|
|
4
|
-
import { logger } from '
|
|
4
|
+
import { logger } from '../../utils/logger';
|
|
5
5
|
import {
|
|
6
6
|
getFileContent,
|
|
7
7
|
isJsonFile,
|
|
8
8
|
readFile,
|
|
9
9
|
removeEmptyDirsUpwards,
|
|
10
|
-
} from '
|
|
11
|
-
import { config } from '
|
|
12
|
-
import { store } from '
|
|
10
|
+
} from '../../utils/fs';
|
|
11
|
+
import { config } from '../../config';
|
|
12
|
+
import { store } from '../store';
|
|
13
13
|
import { diffManager } from '../diff/diffManager';
|
|
14
14
|
import { Diff } from '../diff/diff.types';
|
|
15
15
|
import { Dump, DumpManager } from './dump.types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import { logger } from '
|
|
3
|
-
import { jsonify } from '
|
|
4
|
-
import { config } from '
|
|
2
|
+
import { logger } from '../../utils/logger';
|
|
3
|
+
import { jsonify } from '../../utils/object';
|
|
4
|
+
import { config } from '../../config';
|
|
5
5
|
import { Dump, DumpMetadata } from './dump.types';
|
|
6
6
|
import { unixEpochUniqueId } from '../workDir';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigOptions } from '
|
|
2
|
-
import { Store } from '
|
|
3
|
-
import { FileType } from '
|
|
4
|
-
import { Logger } from '
|
|
5
|
-
import { Json } from '
|
|
1
|
+
import { ConfigOptions } from '../../config/config.types';
|
|
2
|
+
import { Store } from '../store.types';
|
|
3
|
+
import { FileType } from '../../utils/fs/fs.types';
|
|
4
|
+
import { Logger } from '../../utils/logger/logger.types';
|
|
5
|
+
import { Json } from '../../utils/object/object.types';
|
|
6
6
|
import { DependencyTagger } from '../dependency/dependency.types';
|
|
7
7
|
import { Dump } from '../dump/dump.types';
|
|
8
8
|
import { ChangedFiles } from '../workDir/workDir.types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { config } from '
|
|
2
|
-
import { store } from '
|
|
3
|
-
import { logger } from '
|
|
4
|
-
import { dependencyTagger } from '
|
|
5
|
-
import { FileType } from '
|
|
6
|
-
import { dirBasedModuleGroupManager } from '
|
|
1
|
+
import { config } from '../../config';
|
|
2
|
+
import { store } from '../store';
|
|
3
|
+
import { logger } from '../../utils/logger';
|
|
4
|
+
import { dependencyTagger } from '../dependency/dependencyTagger';
|
|
5
|
+
import { FileType } from '../../utils/fs/fs.types';
|
|
6
|
+
import { dirBasedModuleGroupManager } from '../../utils/module';
|
|
7
7
|
import { HookManager, HookModule } from './hook.types';
|
|
8
8
|
import { Dump } from '../dump/dump.types';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { config } from '
|
|
4
|
-
import { store } from '
|
|
3
|
+
import { config } from '../../../config';
|
|
4
|
+
import { store } from '../../store';
|
|
5
5
|
import { includeParser } from '../includeParser';
|
|
6
6
|
|
|
7
7
|
const staticFileContent = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { config } from '
|
|
2
|
-
import { RunMode } from '
|
|
3
|
-
import { queryRunner } from '
|
|
4
|
-
import { isQueryErrorResponse } from '
|
|
5
|
-
import { getObjValue } from '
|
|
1
|
+
import { config } from '../../../config';
|
|
2
|
+
import { RunMode } from '../../../dataServer.types';
|
|
3
|
+
import { queryRunner } from '../../../query';
|
|
4
|
+
import { isQueryErrorResponse } from '../../../query/query.types';
|
|
5
|
+
import { getObjValue } from '../../../utils/object';
|
|
6
6
|
import { QueryIncludeParserOptions } from '../includeParser.types';
|
|
7
7
|
import { aliasWithoutTypeIncludeParser } from './types/aliasWithoutTypeIncludeParser';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericIncludeParserOptions } from '
|
|
2
|
-
import { getObjValue } from '
|
|
1
|
+
import { GenericIncludeParserOptions } from '../../includeParser.types';
|
|
2
|
+
import { getObjValue } from '../../../../utils/object';
|
|
3
3
|
|
|
4
4
|
export const aliasIncludeParser = ({
|
|
5
5
|
host,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericIncludeParserOptions } from '
|
|
2
|
-
import { getObjValue } from '
|
|
1
|
+
import { GenericIncludeParserOptions } from '../../includeParser.types';
|
|
2
|
+
import { getObjValue } from '../../../../utils/object';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param options - Object with options as defined in @see {@link IncludeParserOptions}
|
package/src/lib/store/store.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import microtime from 'microtime';
|
|
2
|
-
import { VARIANT_SEPARATOR } from '
|
|
3
|
-
import { logger } from '
|
|
4
|
-
import { cache } from '
|
|
2
|
+
import { VARIANT_SEPARATOR } from '../utils/string';
|
|
3
|
+
import { logger } from '../utils/logger';
|
|
4
|
+
import { cache } from '../utils/cache';
|
|
5
5
|
import {
|
|
6
6
|
Store,
|
|
7
7
|
StoreData,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { config } from '
|
|
2
|
-
import { getFileContent } from '
|
|
3
|
-
import { Json } from '
|
|
1
|
+
import { config } from '../config';
|
|
2
|
+
import { getFileContent } from '../utils/fs';
|
|
3
|
+
import { Json } from '../utils/object/object.types';
|
|
4
4
|
import { StoreManager } from './store.types';
|
|
5
5
|
import { hookManager } from './hook';
|
|
6
6
|
import { store, resetStore } from '.';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { config } from '
|
|
3
|
+
import { config } from '../../../../config';
|
|
4
4
|
import { getChangedLinesBetween } from '../getChangedLinesBetween';
|
|
5
5
|
|
|
6
6
|
describe('workDir storage getChangedLinesBetween test', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import { logger } from '
|
|
3
|
-
import { isUniqueId } from '
|
|
2
|
+
import { logger } from '../../../utils/logger';
|
|
3
|
+
import { isUniqueId } from '../../../utils/string';
|
|
4
4
|
import { getLogFile } from './getLogFile';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import { logger } from '
|
|
3
|
-
import { isUniqueId } from '
|
|
2
|
+
import { logger } from '../../utils/logger';
|
|
3
|
+
import { isUniqueId } from '../../utils/string';
|
|
4
4
|
import { ChangedFiles, LogLineData } from './workDir.types';
|
|
5
5
|
import {
|
|
6
6
|
getLogFile,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { config } from '
|
|
4
|
-
import { RunMode } from '
|
|
5
|
-
import { logger } from '
|
|
3
|
+
import { config } from '../../config';
|
|
4
|
+
import { RunMode } from '../../dataServer.types';
|
|
5
|
+
import { logger } from '../../utils/logger';
|
|
6
6
|
import { isTaskErrorResponse } from '../task.types';
|
|
7
7
|
import { taskRunner } from '../taskRunner';
|
|
8
8
|
import { taskManager } from '../taskManager';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import microtime from 'microtime';
|
|
2
|
-
import { config } from '
|
|
3
|
-
import { store } from '
|
|
4
|
-
import { logger } from '
|
|
2
|
+
import { config } from '../config';
|
|
3
|
+
import { store } from '../store';
|
|
4
|
+
import { logger } from '../utils/logger';
|
|
5
5
|
import { taskManager } from './taskManager';
|
|
6
6
|
import {
|
|
7
7
|
TaskRunner,
|
|
@@ -2,8 +2,8 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import fg, { Options as fastGlobOptions } from 'fast-glob';
|
|
4
4
|
import chokidar from 'chokidar';
|
|
5
|
-
import { logger } from '
|
|
6
|
-
import { parseJsonString } from '
|
|
5
|
+
import { logger } from '../logger';
|
|
6
|
+
import { parseJsonString } from '../string';
|
|
7
7
|
import { FileType } from './fs.types';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -58,6 +58,7 @@ export const logger: winston.Logger = winston.createLogger({
|
|
|
58
58
|
* An exception if a log file is defined, but its path is no writable
|
|
59
59
|
*/
|
|
60
60
|
export const configureLogger = (
|
|
61
|
+
// eslint-disable-next-line default-param-last
|
|
61
62
|
level: LogLevel = LogLevel.WARN,
|
|
62
63
|
logFile?: LogFile,
|
|
63
64
|
): void => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { config } from '
|
|
4
|
-
import { dirBasedModuleGroupManager } from '
|
|
3
|
+
import { config } from '../../../config';
|
|
4
|
+
import { dirBasedModuleGroupManager } from '..';
|
|
5
5
|
|
|
6
6
|
config.queryDir = fs.realpathSync(
|
|
7
7
|
path.resolve(path.join(__dirname, '../__mocks__')),
|