@sap-ux/fe-mockserver-core
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -50,2 +50,3 @@ /// <reference types="node" /> | ||
contextBasedIsolation?: boolean; | ||
generateMockData?: boolean; | ||
fileLoader?: string; | ||
@@ -89,2 +90,3 @@ /** Name of the package to use for the metadata provider **/ | ||
contextBasedIsolation?: boolean; | ||
generateMockData?: boolean; | ||
watch?: boolean; | ||
@@ -91,0 +93,0 @@ strictKeyMode?: boolean; |
@@ -34,2 +34,5 @@ "use strict"; | ||
this.fileLoader = fileLoader; | ||
if (this.generateMockData && this.debug) { | ||
this.log.info('Missing mockdata will be generated'); | ||
} | ||
this.initializeMockData(); | ||
@@ -36,0 +39,0 @@ } |
@@ -18,5 +18,2 @@ "use strict"; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -29,2 +26,5 @@ if (mod && mod.__esModule) return mod; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -36,2 +36,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const middleware_1 = require("./middleware"); | ||
const path = __importStar(require("path")); | ||
__exportStar(require("./api"), exports); | ||
@@ -46,5 +47,5 @@ class FEMockserver { | ||
var _a, _b; | ||
const FileLoaderClass = (await Promise.resolve().then(() => __importStar(require(this.configuration.fileLoader || './plugins/fileSystemLoader')))).default; | ||
const FileLoaderClass = this.configuration.fileLoader || (await Promise.resolve().then(() => __importStar(require('./plugins/fileSystemLoader')))).default; | ||
this.fileLoader = new FileLoaderClass(); | ||
const MetadataProviderClass = (await Promise.resolve().then(() => __importStar(require(((_a = this.configuration.metadataProcessor) === null || _a === void 0 ? void 0 : _a.name) || './plugins/metadataProvider')))).default; | ||
const MetadataProviderClass = (await this.fileLoader.loadJS(((_a = this.configuration.metadataProcessor) === null || _a === void 0 ? void 0 : _a.name) || path.resolve(__dirname, './plugins/metadataProvider'))).default; | ||
this.metadataProvider = new MetadataProviderClass(this.fileLoader, (_b = this.configuration.metadataProcessor) === null || _b === void 0 ? void 0 : _b.options); | ||
@@ -51,0 +52,0 @@ await (0, middleware_1.createMockMiddleware)(this.configuration, this.mainRouter, this.fileLoader, this.metadataProvider); |
{ | ||
"name": "@sap-ux/fe-mockserver-core", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "SAP Fiori OData - Fiori elements mock server core", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
417686
4874
1