@static-suite/static-suite-data-server 0.0.7 → 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 +44 -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
|
@@ -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
|
/**
|
|
@@ -7,7 +7,7 @@ import { Store } from './store/store.types';
|
|
|
7
7
|
*
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type DataServerInitOptions = {
|
|
11
11
|
/**
|
|
12
12
|
* Log level. Optional. @see {@link LogLevel}
|
|
13
13
|
*/
|
|
@@ -61,13 +61,13 @@ export declare enum RunMode {
|
|
|
61
61
|
/**
|
|
62
62
|
* A helper to get RunMode type as strings. @see {@link RunMode}.
|
|
63
63
|
*/
|
|
64
|
-
export
|
|
64
|
+
export type RunModeStrings = keyof typeof RunMode;
|
|
65
65
|
/**
|
|
66
66
|
* Data returned by Data Server once initialized.
|
|
67
67
|
*
|
|
68
68
|
* @public
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export type DataServerReturn = {
|
|
71
71
|
/**
|
|
72
72
|
* The data store.
|
|
73
73
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataServer.types.d.ts","sourceRoot":"","sources":["../../src/lib/dataServer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dataServer.types.d.ts","sourceRoot":"","sources":["../../src/lib/dataServer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,oBAAY,OAAO;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC;AAElD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -10,6 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
14
|
-
require('module-alias')(`${__dirname}/../..`);
|
|
15
17
|
__exportStar(require("./dataServer"), exports);
|
package/dist/lib/query/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Store } from '
|
|
1
|
+
import { Store } from '../store/store.types';
|
|
2
2
|
/**
|
|
3
3
|
* A service to handle the execution of queries.
|
|
4
4
|
*
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type QueryRunner = {
|
|
8
8
|
/**
|
|
9
9
|
* Runs a query and returns its results with metadata.
|
|
10
10
|
*
|
|
@@ -56,11 +56,11 @@ export declare type QueryRunner = {
|
|
|
56
56
|
*
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
|
-
export
|
|
59
|
+
export type QueryArgs = Record<string, any>;
|
|
60
60
|
/**
|
|
61
61
|
* The result that a query returns after being executed.
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type QueryModuleResult = {
|
|
64
64
|
/**
|
|
65
65
|
* A result, which can be of any kind (and array, an object, a string, etc)
|
|
66
66
|
*/
|
|
@@ -103,7 +103,7 @@ export declare enum CacheStatus {
|
|
|
103
103
|
*
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
export
|
|
106
|
+
export type QuerySuccessfulResponse = {
|
|
107
107
|
/**
|
|
108
108
|
* Data returned by the query. @see {@link QueryModule#default}
|
|
109
109
|
*/
|
|
@@ -138,7 +138,7 @@ export declare type QuerySuccessfulResponse = {
|
|
|
138
138
|
/**
|
|
139
139
|
* A module that defines a query.
|
|
140
140
|
*/
|
|
141
|
-
export
|
|
141
|
+
export type QueryModule = {
|
|
142
142
|
/**
|
|
143
143
|
* The handler that executes a query.
|
|
144
144
|
*
|
|
@@ -165,7 +165,7 @@ export declare type QueryModule = {
|
|
|
165
165
|
*
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
|
-
export
|
|
168
|
+
export type QueryErrorResponse = {
|
|
169
169
|
/**
|
|
170
170
|
* Error message from the query, usually coming from a failed validation.
|
|
171
171
|
*/
|
|
@@ -178,7 +178,7 @@ export declare type QueryErrorResponse = {
|
|
|
178
178
|
* @returns True if queryResponse is erroneous.
|
|
179
179
|
*/
|
|
180
180
|
export declare const isQueryErrorResponse: (queryResponse: QuerySuccessfulResponse | QueryErrorResponse) => queryResponse is QueryErrorResponse;
|
|
181
|
-
export
|
|
181
|
+
export type QueryTagManager = {
|
|
182
182
|
/**
|
|
183
183
|
* Marks query items with any of the specified tags as invalid.
|
|
184
184
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.types.d.ts","sourceRoot":"","sources":["../../../src/lib/query/query.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"query.types.d.ts","sourceRoot":"","sources":["../../../src/lib/query/query.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,GAAG,CAAC,eAAe,EAAE,MAAM,GAAG,uBAAuB,GAAG,kBAAkB,CAAC;IAE3E;;;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G;IAC5B;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,oBAAoB,IAAI,IAAI,CAAC;IAE7B;;;;;OAKG;IACH,cAAc,CACZ,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,CAAC;IAER;;;;OAIG;IACH,mBAAmB,IAAI,MAAM,EAAE,CAAC;CACjC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryManager = void 0;
|
|
4
|
-
const module_1 = require("
|
|
4
|
+
const module_1 = require("../utils/module");
|
|
5
5
|
/**
|
|
6
6
|
* A manager for queries stored in a user-land directory defined by configuration.
|
|
7
7
|
*
|
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.queryRunner = void 0;
|
|
7
7
|
const microtime_1 = __importDefault(require("microtime"));
|
|
8
|
-
const config_1 = require("
|
|
9
|
-
const store_1 = require("
|
|
10
|
-
const logger_1 = require("
|
|
11
|
-
const cache_1 = require("
|
|
12
|
-
const string_1 = require("
|
|
13
|
-
const dependencyTagger_1 = require("
|
|
8
|
+
const config_1 = require("../config");
|
|
9
|
+
const store_1 = require("../store");
|
|
10
|
+
const logger_1 = require("../utils/logger");
|
|
11
|
+
const cache_1 = require("../utils/cache");
|
|
12
|
+
const string_1 = require("../utils/string");
|
|
13
|
+
const dependencyTagger_1 = require("../store/dependency/dependencyTagger");
|
|
14
14
|
const queryManager_1 = require("./queryManager");
|
|
15
15
|
const query_types_1 = require("./query.types");
|
|
16
16
|
let count = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryTagManager = void 0;
|
|
4
|
-
const store_1 = require("
|
|
4
|
+
const store_1 = require("../store/store");
|
|
5
5
|
const invalidatedTags = new Set();
|
|
6
6
|
const tagsByQueryIndex = new Map();
|
|
7
7
|
exports.queryTagManager = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataDir.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dataDir/dataDir.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"dataDir.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dataDir/dataDir.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb;;;;;;;;;OASG;IACH,MAAM,IAAI,YAAY,CAAC;IAEvB;;;;;;;;;;;OAWG;IACH,uBAAuB,IAAI,MAAM,CAAC;CACnC,CAAC"}
|
|
@@ -5,16 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.dataDirManager = void 0;
|
|
7
7
|
const microtime_1 = __importDefault(require("microtime"));
|
|
8
|
-
const config_1 = require("
|
|
9
|
-
const store_1 = require("
|
|
10
|
-
const fs_1 = require("
|
|
11
|
-
const logger_1 = require("
|
|
12
|
-
const workDir_1 = require("
|
|
13
|
-
const cache_1 = require("
|
|
14
|
-
const storeManager_1 = require("
|
|
15
|
-
const hook_1 = require("
|
|
16
|
-
const query_1 = require("
|
|
17
|
-
const task_1 = require("
|
|
8
|
+
const config_1 = require("../../config");
|
|
9
|
+
const store_1 = require("../store");
|
|
10
|
+
const fs_1 = require("../../utils/fs");
|
|
11
|
+
const logger_1 = require("../../utils/logger");
|
|
12
|
+
const workDir_1 = require("../workDir");
|
|
13
|
+
const cache_1 = require("../../utils/cache");
|
|
14
|
+
const storeManager_1 = require("../storeManager");
|
|
15
|
+
const hook_1 = require("../hook");
|
|
16
|
+
const query_1 = require("../../query");
|
|
17
|
+
const task_1 = require("../../task");
|
|
18
18
|
const dependencyManager_1 = require("../dependency/dependencyManager");
|
|
19
19
|
let initialUniqueIdAlreadySet = false;
|
|
20
20
|
exports.dataDirManager = {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Service to define dependencies between data.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type DependencyTagger = {
|
|
5
5
|
/**
|
|
6
6
|
* Sets a dependency relationship between a tag that depends on another tags.
|
|
7
7
|
*
|
|
@@ -38,7 +38,7 @@ export declare type DependencyTagger = {
|
|
|
38
38
|
/**
|
|
39
39
|
* Manager that keeps control of dependencies between data.
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export type DependencyManager = {
|
|
42
42
|
/**
|
|
43
43
|
* Calculates and tracks down a list of filepaths which contain an invalidated tag.
|
|
44
44
|
*
|
|
@@ -66,5 +66,5 @@ export declare type DependencyManager = {
|
|
|
66
66
|
*/
|
|
67
67
|
reset(): void;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type DependencyTree = Map<string, Set<string>>;
|
|
70
70
|
//# sourceMappingURL=dependency.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dependency/dependency.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"dependency.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dependency/dependency.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;;OAOG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1D;;;;;;;OAOG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1D;;;;;;OAMG;IACH,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE9D;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;OAQG;IACH,yBAAyB,IAAI,IAAI,CAAC;IAElC;;;;;;;OAOG;IACH,uBAAuB,IAAI;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAEpE;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Json } from '
|
|
1
|
+
import { Json } from '../../utils/object/object.types';
|
|
2
2
|
export declare const dependencyIncludeHelper: {
|
|
3
3
|
addIncludeDependencies: (filepath: string, json: Json) => void;
|
|
4
4
|
deleteIncludeDependencies: (filepath: string, json: Json) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyFileHelper.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dependency/dependencyFileHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dependencyFileHelper.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dependency/dependencyFileHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAGvD,eAAO,MAAM,uBAAuB;uCACC,MAAM,QAAQ,IAAI,KAAG,IAAI;0CA6BtB,MAAM,QAAQ,IAAI,KAAG,IAAI;CAkBhE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Service that handles the incremental differences in data (includes and queries).
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type DiffManager = {
|
|
5
5
|
/**
|
|
6
6
|
* Clears intermediate changes tracked by dependency manager.
|
|
7
7
|
*
|
|
@@ -33,7 +33,7 @@ export declare type DiffManager = {
|
|
|
33
33
|
/**
|
|
34
34
|
* A group of changed files in Static Suite's data dir.
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export type Diff = {
|
|
37
37
|
/**
|
|
38
38
|
* Execution time taken by the diff, in milliseconds.
|
|
39
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/diff/diff.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"diff.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/diff/diff.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;;;OAIG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.diffManager = void 0;
|
|
7
7
|
const microtime_1 = __importDefault(require("microtime"));
|
|
8
|
-
const logger_1 = require("
|
|
8
|
+
const logger_1 = require("../../utils/logger");
|
|
9
9
|
const store_1 = require("../store");
|
|
10
10
|
const dataDirManager_1 = require("../dataDir/dataDirManager");
|
|
11
11
|
const dependencyManager_1 = require("../dependency/dependencyManager");
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -2,7 +2,7 @@ import { Diff } from '../diff/diff.types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Service that dumps resolved data (with resolved includes) into a dump directory.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type DumpManager = {
|
|
6
6
|
/**
|
|
7
7
|
* Dump resolved data (with resolved includes) into a dump directory.
|
|
8
8
|
*
|
|
@@ -31,7 +31,7 @@ export declare type DumpManager = {
|
|
|
31
31
|
/**
|
|
32
32
|
* A group of files to by dumped to dump directory.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export type Dump = {
|
|
35
35
|
/**
|
|
36
36
|
* Execution time taken by the dump, in milliseconds.
|
|
37
37
|
*/
|
|
@@ -68,7 +68,7 @@ export declare type Dump = {
|
|
|
68
68
|
*/
|
|
69
69
|
diff: Diff;
|
|
70
70
|
};
|
|
71
|
-
export
|
|
71
|
+
export type DumpMetadata = {
|
|
72
72
|
current: string;
|
|
73
73
|
dumps: Dump[];
|
|
74
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dump.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dump/dump.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"dump.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/dump/dump.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE/C;;;;;;;OAOG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,OAAO,EAAE,GAAG,CACV,MAAM,EACN;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAC7D,CAAC;IAEF;;;;;OAKG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IAE1E;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC"}
|
|
@@ -7,10 +7,10 @@ exports.dumpManager = void 0;
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const microtime_1 = __importDefault(require("microtime"));
|
|
10
|
-
const logger_1 = require("
|
|
11
|
-
const fs_2 = require("
|
|
12
|
-
const config_1 = require("
|
|
13
|
-
const store_1 = require("
|
|
10
|
+
const logger_1 = require("../../utils/logger");
|
|
11
|
+
const fs_2 = require("../../utils/fs");
|
|
12
|
+
const config_1 = require("../../config");
|
|
13
|
+
const store_1 = require("../store");
|
|
14
14
|
const diffManager_1 = require("../diff/diffManager");
|
|
15
15
|
const hook_1 = require("../hook");
|
|
16
16
|
const dumpMetadataHelper_1 = require("./dumpMetadataHelper");
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.dumpMetadataHelper = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const logger_1 = require("
|
|
9
|
-
const object_1 = require("
|
|
10
|
-
const config_1 = require("
|
|
8
|
+
const logger_1 = require("../../utils/logger");
|
|
9
|
+
const object_1 = require("../../utils/object");
|
|
10
|
+
const config_1 = require("../../config");
|
|
11
11
|
const workDir_1 = require("../workDir");
|
|
12
12
|
const getMetadataFilepath = () => `${config_1.config.dumpDir}/metadata.json`;
|
|
13
13
|
exports.dumpMetadataHelper = {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -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';
|
|
@@ -11,7 +11,7 @@ import { ChangedFiles } from '../workDir/workDir.types';
|
|
|
11
11
|
*
|
|
12
12
|
* @typeParam ModuleType - The type of module being managed.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type HookManager = {
|
|
15
15
|
reset(): void;
|
|
16
16
|
invokeOnStoreLoadStart(): void;
|
|
17
17
|
invokeOnProcessFile(options: FileTypeHookOptions): FileType;
|
|
@@ -120,7 +120,7 @@ export interface OnDumpHookOptions {
|
|
|
120
120
|
/**
|
|
121
121
|
* A module that defines several hooks.
|
|
122
122
|
*/
|
|
123
|
-
export
|
|
123
|
+
export type HookModule = {
|
|
124
124
|
/**
|
|
125
125
|
* A hook executed when a hook module is loaded or reloaded.
|
|
126
126
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hook.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/hook/hook.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hook.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/hook/hook.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,I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,iBAAiB,CAAC,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAE3D;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACjD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hookManager = void 0;
|
|
4
|
-
const config_1 = require("
|
|
5
|
-
const store_1 = require("
|
|
6
|
-
const logger_1 = require("
|
|
7
|
-
const dependencyTagger_1 = require("
|
|
8
|
-
const module_1 = require("
|
|
4
|
+
const config_1 = require("../../config");
|
|
5
|
+
const store_1 = require("../store");
|
|
6
|
+
const logger_1 = require("../../utils/logger");
|
|
7
|
+
const dependencyTagger_1 = require("../dependency/dependencyTagger");
|
|
8
|
+
const module_1 = require("../../utils/module");
|
|
9
9
|
/**
|
|
10
10
|
* A manager for hooks stored in a user-land directory defined by configuration.
|
|
11
11
|
*
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Json } from '
|
|
1
|
+
import { Json } from '../../utils/object/object.types';
|
|
2
2
|
/**
|
|
3
3
|
* Global parser that is able to parse static and dynamic includes.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type IncludeParser = {
|
|
6
6
|
/**
|
|
7
7
|
* Parse all static includes (entity, config, locale and custom).
|
|
8
8
|
*
|
|
@@ -20,7 +20,7 @@ export declare type IncludeParser = {
|
|
|
20
20
|
/**
|
|
21
21
|
* Option to be passed a generic include parser (except entity and query includes).
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type GenericIncludeParserOptions = {
|
|
24
24
|
/**
|
|
25
25
|
* Object that will host a pointer to a target.
|
|
26
26
|
*/
|
|
@@ -50,7 +50,7 @@ export declare type GenericIncludeParserOptions = {
|
|
|
50
50
|
/**
|
|
51
51
|
* Option to be passed an entity include parser.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export type EntityIncludeParserOptions = {
|
|
54
54
|
/**
|
|
55
55
|
* Object that will host a pointer to a target.
|
|
56
56
|
*/
|
|
@@ -75,7 +75,7 @@ export declare type EntityIncludeParserOptions = {
|
|
|
75
75
|
/**
|
|
76
76
|
* Option to be passed a query include parser.
|
|
77
77
|
*/
|
|
78
|
-
export
|
|
78
|
+
export type QueryIncludeParserOptions = {
|
|
79
79
|
/**
|
|
80
80
|
* Object that will host a pointer to a target.
|
|
81
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"includeParser.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/include/includeParser.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"includeParser.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/include/includeParser.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnD;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;;;;;OAMG;IACH,MAAM,EAAE,IAAI,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.entityIncludeParser = void 0;
|
|
4
|
-
const object_1 = require("
|
|
4
|
+
const object_1 = require("../../../utils/object");
|
|
5
5
|
const entityIncludeParser = ({ host, target, mountPath, }) => {
|
|
6
6
|
// Remove a level from mountPath, to mount entity a level up.
|
|
7
7
|
const includeKey = mountPath.pop();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.queryIncludeParser = void 0;
|
|
4
|
-
const config_1 = require("
|
|
5
|
-
const dataServer_types_1 = require("
|
|
6
|
-
const query_1 = require("
|
|
7
|
-
const query_types_1 = require("
|
|
8
|
-
const object_1 = require("
|
|
4
|
+
const config_1 = require("../../../config");
|
|
5
|
+
const dataServer_types_1 = require("../../../dataServer.types");
|
|
6
|
+
const query_1 = require("../../../query");
|
|
7
|
+
const query_types_1 = require("../../../query/query.types");
|
|
8
|
+
const object_1 = require("../../../utils/object");
|
|
9
9
|
const aliasWithoutTypeIncludeParser_1 = require("./types/aliasWithoutTypeIncludeParser");
|
|
10
10
|
/**
|
|
11
11
|
* Parses query includes.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GenericIncludeParserOptions } from '
|
|
1
|
+
import { GenericIncludeParserOptions } from '../../includeParser.types';
|
|
2
2
|
export declare const aliasIncludeParser: ({ host, target, mountPath, includeKey, }: GenericIncludeParserOptions) => void;
|
|
3
3
|
//# sourceMappingURL=aliasIncludeParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliasIncludeParser.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/store/include/parsers/types/aliasIncludeParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"aliasIncludeParser.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/store/include/parsers/types/aliasIncludeParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAGxE,eAAO,MAAM,kBAAkB,6CAK5B,2BAA2B,KAAG,IAIhC,CAAC"}
|