@onlineapps/conn-orch-api-mapper 1.0.31 → 1.0.32
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/package.json +1 -1
- package/src/ApiMapper.js +5 -2
package/package.json
CHANGED
package/src/ApiMapper.js
CHANGED
|
@@ -39,9 +39,12 @@ class ApiMapper {
|
|
|
39
39
|
|
|
40
40
|
this.openApiSpec = config.openApiSpec;
|
|
41
41
|
this.serviceUrl = config.serviceUrl;
|
|
42
|
-
this.service = config.service;
|
|
42
|
+
this.service = config.service;
|
|
43
43
|
this.directCall = config.directCall === true;
|
|
44
|
-
|
|
44
|
+
if (!config.logger || typeof config.logger.warn !== 'function') {
|
|
45
|
+
throw new Error('[ApiMapper] Logger is required — Expected object with warn() method');
|
|
46
|
+
}
|
|
47
|
+
this.logger = config.logger;
|
|
45
48
|
|
|
46
49
|
// Parse OpenAPI to create operation map
|
|
47
50
|
this.operations = this._parseOpenApiSpec(this.openApiSpec);
|