-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMCODEClient.js
More file actions
23 lines (22 loc) · 847 Bytes
/
MCODEClient.js
File metadata and controls
23 lines (22 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { BaseClient } = require('./BaseClient');
const { allExtractors, dependencyInfo } = require('../extractors');
const { sortExtractors } = require('../helpers/dependencyUtils.js');
class MCODEClient extends BaseClient {
constructor({ extractors, commonExtractorArgs, webServiceAuthConfig }) {
super();
this.registerExtractors(...allExtractors);
// Store the extractors defined by the configuration file as local state
this.extractorConfig = extractors;
// Sort extractors based on order and dependencies
this.extractorConfig = sortExtractors(this.extractorConfig, dependencyInfo);
// Store webServiceAuthConfig if provided`
this.authConfig = webServiceAuthConfig;
this.commonExtractorArgs = {
implementation: 'mcode',
...commonExtractorArgs,
};
}
}
module.exports = {
MCODEClient,
};