File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- export const CALM_META_SCHEMA_DIRECTORY = __dirname + '/calm' ;
1+ export const CALM_META_SCHEMA_DIRECTORY = __dirname + '/calm' ;
2+ export const CALM_AUTH_PLUGIN_DIRECTORY = __dirname + '/plugins' ;
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { execFileSync } from 'child_process';
22import { SchemaDirectory } from '../schema-directory' ;
33import { CalmDocumentType , DocumentLoader , CALM_HUB_PROTO } from './document-loader' ;
44import { initLogger , Logger } from '../logger' ;
5+ import path from 'path' ;
6+ import { CALM_AUTH_PLUGIN_DIRECTORY } from "../consts" ;
57
68export class CalmHubCustomDocumentLoader implements DocumentLoader {
79 private readonly logger : Logger ;
@@ -10,9 +12,10 @@ export class CalmHubCustomDocumentLoader implements DocumentLoader {
1012
1113 constructor ( private calmHubUrl : string , calmHubWrapper : string , debug : boolean ) {
1214 this . baseURL = calmHubUrl ;
13- this . wrapper = calmHubWrapper ;
15+ this . wrapper = path . resolve ( CALM_AUTH_PLUGIN_DIRECTORY , calmHubWrapper ) ;
1416 this . logger = initLogger ( debug , 'calmhub-custom-document-loader' ) ;
1517 this . logger . info ( 'Configuring CALMHub custom document loader with base URL: ' + calmHubUrl ) ;
18+ this . logger . info ( 'Configuring CALMHub custom document loader with plugin: ' + this . wrapper ) ;
1619 }
1720
1821 async initialise ( _ : SchemaDirectory ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments