@speedkit/cli 2.26.0 → 2.28.0
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/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/models/files.d.ts +4 -0
- package/dist/models/files.js +4 -0
- package/dist/services/cli/error/cli-type-error.d.ts +1 -2
- package/dist/services/cli/error/cli-type-error.js +1 -3
- package/dist/services/config-api/context/config-api-context.d.ts +1 -2
- package/dist/services/config-api/factory/config-api-service-factory.js +1 -2
- package/dist/services/config-api/interface/config-api-context-interface.d.ts +1 -2
- package/dist/services/customer-config/customer-config-service.js +0 -3
- package/dist/services/customer-config/templates/config_documentHandler.js.hbs +0 -4
- package/dist/services/deploy/checks/post-deploy/save-files-check.d.ts +1 -1
- package/dist/services/deploy/checks/pre-deploy/split-change-check.d.ts +1 -2
- package/dist/services/deploy/deploy-service-factory.js +3 -4
- package/dist/services/deploy/deploy-service.d.ts +3 -2
- package/dist/services/deploy/deploy-service.js +23 -1
- package/dist/services/deploy/handler/customer-config-handler.d.ts +4 -5
- package/dist/services/deploy/handler/customer-config-handler.js +2 -2
- package/dist/services/deploy/handler/install-resource-handler.d.ts +3 -4
- package/dist/services/deploy/handler/install-resource-handler.js +2 -3
- package/dist/services/deploy/handler/module-handler.d.ts +8 -5
- package/dist/services/deploy/handler/module-handler.js +2 -3
- package/dist/services/deploy/handler/server-config-handler.d.ts +9 -6
- package/dist/services/deploy/handler/server-config-handler.js +6 -4
- package/dist/services/document-handler-runtime/document-handler-runtime-service.d.ts +2 -3
- package/dist/services/document-handler-runtime/document-handler-runtime-service.js +2 -6
- package/dist/services/document-handler-runtime/document-handler-server.d.ts +1 -2
- package/dist/services/document-handler-runtime/document-handler-server.js +2 -5
- package/dist/services/document-handler-runtime/error/required-file-not-found-error.d.ts +1 -2
- package/dist/services/document-handler-runtime/error/required-file-not-found-error.js +1 -3
- package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.d.ts +3 -6
- package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.js +9 -18
- package/dist/services/integration-api/error/customer-config-legacy-error.d.ts +1 -2
- package/dist/services/integration-api/error/customer-config-legacy-error.js +1 -3
- package/dist/services/integration-api/error/handler/customer-config-legacy-handler.d.ts +1 -2
- package/dist/services/integration-api/error/handler/customer-config-legacy-handler.js +1 -1
- package/dist/services/integration-api/error/handler/origin-handler.d.ts +1 -2
- package/dist/services/integration-api/error/handler/origin-handler.js +1 -1
- package/dist/services/integration-api/error/origin-error.d.ts +1 -2
- package/dist/services/integration-api/error/origin-error.js +1 -3
- package/dist/services/integration-api/file-list.d.ts +3 -5
- package/dist/services/integration-api/file-list.js +6 -10
- package/dist/services/integration-api/file-reader.d.ts +14 -6
- package/dist/services/integration-api/file-reader.js +8 -8
- package/dist/services/integration-api/file-writer.d.ts +10 -2
- package/dist/services/integration-api/file-writer.js +9 -6
- package/dist/services/integration-api/handler/customer-config-handler.js +6 -8
- package/dist/services/integration-api/handler/install-resource-handler.js +3 -4
- package/dist/services/integration-api/handler/module-handler.js +2 -2
- package/dist/services/integration-api/handler/server-config-handler.js +2 -2
- package/dist/services/integration-api/index.d.ts +3 -0
- package/dist/services/integration-api/index.js +6 -0
- package/dist/services/integration-api/integration-api-factory.d.ts +13 -0
- package/dist/services/integration-api/integration-api-factory.js +50 -0
- package/dist/services/integration-api/integration-api-model.d.ts +33 -14
- package/dist/services/integration-api/integration-api-model.js +37 -0
- package/dist/services/integration-api/integration-api-service.d.ts +1 -2
- package/dist/services/integration-api/integration-api-service.js +3 -23
- package/dist/services/integration-api/spec/customer-config-validator.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/customer-config-validator.spec.js +50 -0
- package/dist/services/integration-api/spec/file-list.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/file-list.spec.js +163 -0
- package/dist/services/integration-api/spec/file-reader.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/file-reader.spec.js +71 -0
- package/dist/services/integration-api/spec/file-writer.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/file-writer.spec.js +55 -0
- package/dist/services/integration-api/spec/integration-api-service.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/integration-api-service.spec.js +122 -0
- package/dist/services/integration-api/spec/mandatory-files-validator.spec.d.ts +1 -0
- package/dist/services/integration-api/spec/mandatory-files-validator.spec.js +105 -0
- package/dist/services/integration-api/struct/customer-config-file.d.ts +3 -4
- package/dist/services/integration-api/struct/customer-config-file.js +7 -6
- package/dist/services/integration-api/struct/customer-config.d.ts +3 -5
- package/dist/services/integration-api/struct/customer-config.js +5 -8
- package/dist/services/integration-api/struct/file.d.ts +4 -4
- package/dist/services/integration-api/struct/file.js +6 -6
- package/dist/services/integration-api/struct/install-resource-file.d.ts +4 -3
- package/dist/services/integration-api/struct/install-resource-file.js +7 -5
- package/dist/services/integration-api/struct/module-file.d.ts +4 -3
- package/dist/services/integration-api/struct/module-file.js +7 -5
- package/dist/services/integration-api/struct/ro-file.d.ts +2 -2
- package/dist/services/integration-api/struct/ro-file.js +1 -1
- package/dist/services/integration-api/struct/server-config-file.d.ts +5 -4
- package/dist/services/integration-api/struct/server-config-file.js +7 -5
- package/dist/services/integration-api/struct/virtual-file.d.ts +2 -2
- package/dist/services/integration-api/struct/virtual-file.js +2 -1
- package/dist/services/integration-api/validator/customer-config-validator.d.ts +5 -1
- package/dist/services/integration-api/validator/customer-config-validator.js +28 -17
- package/dist/services/integration-api/virtual/static-recipe.d.ts +6 -0
- package/dist/services/integration-api/virtual/static-recipe.js +14 -0
- package/dist/services/integration-api/virtual/virtual-file-handler.js +2 -2
- package/dist/services/onboarding/config-renderer/speed-kit-install-context.d.ts +1 -2
- package/dist/services/onboarding/dashboard/index.d.ts +1 -1
- package/dist/services/onboarding/dashboard/parameter-query-builder.d.ts +1 -2
- package/dist/services/onboarding/fetch-event-handler.d.ts +1 -1
- package/dist/services/onboarding/fetch-events/customer-domain-document-response.d.ts +1 -2
- package/dist/services/onboarding/fetch-events/customer-service-worker-js.d.ts +1 -1
- package/dist/services/onboarding/fetch-events/speed-kit-asset-request.d.ts +1 -1
- package/dist/services/onboarding/fetch-events/speed-kit-install-html.d.ts +1 -1
- package/dist/services/onboarding/fetch-events/speed-kit-install-js.d.ts +1 -2
- package/dist/services/onboarding/fetch-events/speed-kit-rum-pi-request.d.ts +1 -1
- package/dist/services/onboarding/fetch-events/speed-kit-service-worker-js.d.ts +1 -2
- package/dist/services/onboarding/file-events/file-watcher.d.ts +1 -2
- package/dist/services/onboarding/file-events/file-watcher.js +3 -3
- package/dist/services/onboarding/onboarding-service-factory.js +9 -13
- package/dist/services/onboarding/onboarding-service.d.ts +1 -1
- package/dist/services/onboarding/todo-collector.js +2 -2
- package/dist/services/pull/pull-service-factory.js +3 -4
- package/dist/services/pull/pull-service.d.ts +1 -1
- package/dist/services/pull/pull-service.js +2 -3
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- package/dist/services/context/error/context-runtime-error.d.ts +0 -3
- package/dist/services/context/error/context-runtime-error.js +0 -7
- package/dist/services/context/interface/context-interface.d.ts +0 -2
- package/dist/services/context/interface/context-interface.js +0 -2
- package/dist/services/customer-config/templates/deploymentDetection.es6.hbs +0 -303
- package/dist/services/document-handler-runtime/error/handler/required-file-not-found-handler.d.ts +0 -6
- package/dist/services/document-handler-runtime/error/handler/required-file-not-found-handler.js +0 -14
- package/dist/services/error-handling/abstract/abstract-async-error-handling-factory.d.ts +0 -6
- package/dist/services/error-handling/abstract/abstract-async-error-handling-factory.js +0 -19
- package/dist/services/error-handling/abstract/abstract-async-error-handling-service.d.ts +0 -6
- package/dist/services/error-handling/abstract/abstract-async-error-handling-service.js +0 -18
- package/dist/services/error-handling/abstract/abstract-error-handling-factory.d.ts +0 -6
- package/dist/services/error-handling/abstract/abstract-error-handling-factory.js +0 -19
- package/dist/services/error-handling/abstract/abstract-error-handling-service.d.ts +0 -6
- package/dist/services/error-handling/abstract/abstract-error-handling-service.js +0 -19
- package/dist/services/error-handling/error/application-error.d.ts +0 -5
- package/dist/services/error-handling/error/application-error.js +0 -11
- package/dist/services/error-handling/error-handling-service.d.ts +0 -7
- package/dist/services/error-handling/error-handling-service.js +0 -27
- package/dist/services/error-handling/factory/error-handling-factory.d.ts +0 -5
- package/dist/services/error-handling/factory/error-handling-factory.js +0 -22
- package/dist/services/error-handling/interface/error-context-interface.d.ts +0 -6
- package/dist/services/error-handling/interface/error-context-interface.js +0 -2
- package/dist/services/error-handling/interface/error-handler-interface.d.ts +0 -5
- package/dist/services/error-handling/interface/error-handler-interface.js +0 -2
- package/dist/services/error-handling/interface/error-handling-factory-interface.d.ts +0 -8
- package/dist/services/error-handling/interface/error-handling-factory-interface.js +0 -2
- package/dist/services/error-handling/interface/error-handling-service-interface.d.ts +0 -8
- package/dist/services/error-handling/interface/error-handling-service-interface.js +0 -2
- package/dist/services/integration-api/context/integration-api-context.d.ts +0 -9
- package/dist/services/integration-api/context/integration-api-context.js +0 -20
- package/dist/services/integration-api/error/handler/customer-config-handler.d.ts +0 -5
- package/dist/services/integration-api/error/handler/customer-config-handler.js +0 -19
- package/dist/services/integration-api/factory/integration-api-service-factory.d.ts +0 -13
- package/dist/services/integration-api/factory/integration-api-service-factory.js +0 -55
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const error_handling_factory_1 = tslib_1.__importDefault(require("../factory/error-handling-factory"));
|
|
5
|
-
class AbstractErrorHandlingFactory {
|
|
6
|
-
buildService() {
|
|
7
|
-
const errorHandler = this.getErrorHandler();
|
|
8
|
-
try {
|
|
9
|
-
return this._buildService();
|
|
10
|
-
}
|
|
11
|
-
catch (error) {
|
|
12
|
-
errorHandler.handle(error);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
getErrorHandler() {
|
|
16
|
-
return new error_handling_factory_1.default().buildService();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = AbstractErrorHandlingFactory;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const error_handling_factory_1 = tslib_1.__importDefault(require("../factory/error-handling-factory"));
|
|
5
|
-
class AbstractErrorHandlingService {
|
|
6
|
-
run() {
|
|
7
|
-
const errorHandler = this.getErrorHandler();
|
|
8
|
-
try {
|
|
9
|
-
return this._run();
|
|
10
|
-
}
|
|
11
|
-
catch (error) {
|
|
12
|
-
errorHandler.handle(error);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
getErrorHandler() {
|
|
16
|
-
return new error_handling_factory_1.default().buildService();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = AbstractErrorHandlingService;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class ApplicationError extends Error {
|
|
4
|
-
context;
|
|
5
|
-
constructor(context = {}) {
|
|
6
|
-
const { message } = context;
|
|
7
|
-
super(message);
|
|
8
|
-
this.context = context;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.default = ApplicationError;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import ErrorHandlerInterface from "./interface/error-handler-interface";
|
|
2
|
-
import ApplicationError from "./error/application-error";
|
|
3
|
-
export default class ErrorHandlingService {
|
|
4
|
-
handlers: ErrorHandlerInterface[];
|
|
5
|
-
constructor(handlers: ErrorHandlerInterface[]);
|
|
6
|
-
handle(error: ApplicationError | any): void;
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
class ErrorHandlingService {
|
|
5
|
-
handlers;
|
|
6
|
-
constructor(handlers) {
|
|
7
|
-
this.handlers = handlers;
|
|
8
|
-
}
|
|
9
|
-
handle(error) {
|
|
10
|
-
core_1.ux.log(` ===========================`);
|
|
11
|
-
core_1.ux.log(` === An error appeared =====`);
|
|
12
|
-
core_1.ux.log(` ===========================\n`);
|
|
13
|
-
for (let iterator = 0; iterator < this.handlers.length; iterator++) {
|
|
14
|
-
const handler = this.handlers[iterator];
|
|
15
|
-
if (handler.canHandle(error)) {
|
|
16
|
-
handler.handle(error);
|
|
17
|
-
core_1.ux.exit(1);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
core_1.ux.warn("unhandled error:");
|
|
22
|
-
core_1.ux.info(`type of error: ${typeof error}`);
|
|
23
|
-
core_1.ux.log(error);
|
|
24
|
-
core_1.ux.exit(1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.default = ErrorHandlingService;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const error_handling_service_1 = tslib_1.__importDefault(require("../error-handling-service"));
|
|
5
|
-
const customer_config_legacy_handler_1 = tslib_1.__importDefault(require("../../integration-api/error/handler/customer-config-legacy-handler"));
|
|
6
|
-
const origin_handler_1 = tslib_1.__importDefault(require("../../integration-api/error/handler/origin-handler"));
|
|
7
|
-
const document_handler_runtime_service_factory_1 = tslib_1.__importDefault(require("../../document-handler-runtime/factory/document-handler-runtime-service-factory"));
|
|
8
|
-
const customer_config_handler_1 = require("../../integration-api/error/handler/customer-config-handler");
|
|
9
|
-
class ErrorHandlingFactory {
|
|
10
|
-
buildService() {
|
|
11
|
-
return new error_handling_service_1.default(this.importHandlers());
|
|
12
|
-
}
|
|
13
|
-
importHandlers() {
|
|
14
|
-
return [
|
|
15
|
-
new customer_config_legacy_handler_1.default(),
|
|
16
|
-
new origin_handler_1.default(),
|
|
17
|
-
new customer_config_handler_1.CustomerConfigHandler(),
|
|
18
|
-
...document_handler_runtime_service_factory_1.default.getErrorHandlers(),
|
|
19
|
-
];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = ErrorHandlingFactory;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IntegrationApiContextInterface } from "../integration-api-model";
|
|
2
|
-
export declare const DEFAULT_BLOCKED_FOLDERS: string[];
|
|
3
|
-
export default class IntegrationApiContext implements IntegrationApiContextInterface {
|
|
4
|
-
readonly basePath: string;
|
|
5
|
-
readonly configName: string;
|
|
6
|
-
readonly whiteList: string[];
|
|
7
|
-
readonly blockedFolders: string[];
|
|
8
|
-
constructor(basePath: string, configName: string, whitelist: string[], blockedFolders?: string[]);
|
|
9
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_BLOCKED_FOLDERS = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
6
|
-
dotenv.config();
|
|
7
|
-
exports.DEFAULT_BLOCKED_FOLDERS = ["test", ".local", ".git", ".idea"];
|
|
8
|
-
class IntegrationApiContext {
|
|
9
|
-
basePath;
|
|
10
|
-
configName;
|
|
11
|
-
whiteList;
|
|
12
|
-
blockedFolders;
|
|
13
|
-
constructor(basePath, configName, whitelist, blockedFolders) {
|
|
14
|
-
this.basePath = basePath;
|
|
15
|
-
this.configName = configName;
|
|
16
|
-
this.whiteList = whitelist;
|
|
17
|
-
this.blockedFolders = blockedFolders || exports.DEFAULT_BLOCKED_FOLDERS;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.default = IntegrationApiContext;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerConfigHandler = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const customer_config_error_1 = tslib_1.__importDefault(require("../customer-config-error"));
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
-
class CustomerConfigHandler {
|
|
9
|
-
canHandle(error) {
|
|
10
|
-
return error instanceof customer_config_error_1.default;
|
|
11
|
-
}
|
|
12
|
-
handle(error) {
|
|
13
|
-
core_1.ux.log();
|
|
14
|
-
core_1.ux.log(chalk_1.default.red(error.message));
|
|
15
|
-
core_1.ux.log();
|
|
16
|
-
core_1.ux.exit(1);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.CustomerConfigHandler = CustomerConfigHandler;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import IntegrationApiService from "../integration-api-service";
|
|
2
|
-
import { IntegrationApiContextInterface } from "../integration-api-model";
|
|
3
|
-
import { UserCliConfig } from "../../../helpers/cli-config";
|
|
4
|
-
export default class IntegrationApiServiceFactory {
|
|
5
|
-
private context;
|
|
6
|
-
private cliConfig;
|
|
7
|
-
service?: IntegrationApiService;
|
|
8
|
-
private fileReader?;
|
|
9
|
-
constructor(context: IntegrationApiContextInterface, cliConfig: UserCliConfig);
|
|
10
|
-
buildService(): IntegrationApiService;
|
|
11
|
-
private build;
|
|
12
|
-
private getFileReader;
|
|
13
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const context_runtime_error_1 = tslib_1.__importDefault(require("../../context/error/context-runtime-error"));
|
|
5
|
-
const integration_api_service_1 = tslib_1.__importDefault(require("../integration-api-service"));
|
|
6
|
-
const file_reader_1 = tslib_1.__importDefault(require("../file-reader"));
|
|
7
|
-
const mandatory_files_validator_1 = tslib_1.__importDefault(require("../validator/mandatory-files-validator"));
|
|
8
|
-
const customer_config_handler_1 = tslib_1.__importDefault(require("../handler/customer-config-handler"));
|
|
9
|
-
const customer_config_validator_1 = tslib_1.__importDefault(require("../validator/customer-config-validator"));
|
|
10
|
-
const install_resource_handler_1 = tslib_1.__importDefault(require("../handler/install-resource-handler"));
|
|
11
|
-
const module_handler_1 = tslib_1.__importDefault(require("../handler/module-handler"));
|
|
12
|
-
const server_config_handler_1 = tslib_1.__importDefault(require("../handler/server-config-handler"));
|
|
13
|
-
const file_writer_1 = tslib_1.__importDefault(require("../file-writer"));
|
|
14
|
-
const cli_1 = require("../../cli");
|
|
15
|
-
const virtual_file_handler_1 = require("../virtual/virtual-file-handler");
|
|
16
|
-
class IntegrationApiServiceFactory {
|
|
17
|
-
context;
|
|
18
|
-
cliConfig;
|
|
19
|
-
service = undefined;
|
|
20
|
-
fileReader;
|
|
21
|
-
constructor(context, cliConfig) {
|
|
22
|
-
this.context = context;
|
|
23
|
-
this.cliConfig = cliConfig;
|
|
24
|
-
}
|
|
25
|
-
buildService() {
|
|
26
|
-
if (!(this.service instanceof integration_api_service_1.default)) {
|
|
27
|
-
this.build();
|
|
28
|
-
}
|
|
29
|
-
return this.service;
|
|
30
|
-
}
|
|
31
|
-
build() {
|
|
32
|
-
if (!this.context.basePath) {
|
|
33
|
-
throw new context_runtime_error_1.default({ message: "basePath is undefined" });
|
|
34
|
-
}
|
|
35
|
-
if (!this.context.configName) {
|
|
36
|
-
throw new context_runtime_error_1.default({ message: "configName is undefined" });
|
|
37
|
-
}
|
|
38
|
-
const fileReader = this.getFileReader();
|
|
39
|
-
const cli = new cli_1.CliServiceFactory().getService();
|
|
40
|
-
const virtualFileHandler = new virtual_file_handler_1.VirtualFileHandler(cli);
|
|
41
|
-
this.service = new integration_api_service_1.default(fileReader, virtualFileHandler, new mandatory_files_validator_1.default(), [
|
|
42
|
-
new customer_config_handler_1.default(fileReader, cli, new customer_config_validator_1.default(), this.context.configName, this.cliConfig.testApp),
|
|
43
|
-
new install_resource_handler_1.default(fileReader),
|
|
44
|
-
new server_config_handler_1.default(fileReader),
|
|
45
|
-
new module_handler_1.default(fileReader),
|
|
46
|
-
], new file_writer_1.default(this.context.basePath), this.context.whiteList.length === 0);
|
|
47
|
-
}
|
|
48
|
-
getFileReader() {
|
|
49
|
-
if (!this.fileReader) {
|
|
50
|
-
this.fileReader = new file_reader_1.default(this.context.configName, this.context.basePath, this.context.whiteList, this.context.blockedFolders);
|
|
51
|
-
}
|
|
52
|
-
return this.fileReader;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.default = IntegrationApiServiceFactory;
|